citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
![]() ![]() |
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <netdb.h>
#include <libcitadel.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "../../ctdl_module.h"
#include "../../citserver.h"
#include "../../support.h"
#include "../../config.h"
#include "../../user_ops.h"
Go to the source code of this file.
Typedefs | |
typedef const char * | ccharp |
Functions | |
void | cmd_delf (char *filename) |
void | cmd_movf (char *cmdbuf) |
void | OpenCmdResult (char *filename, const char *mime_type) |
void | cmd_open (char *cmdbuf) |
void | cmd_oimg (char *cmdbuf) |
void | cmd_uopn (char *cmdbuf) |
void | cmd_uimg (char *cmdbuf) |
void | cmd_clos (char *cmdbuf) |
void | abort_upl (CitContext *who) |
void | cmd_ucls (char *cmd) |
void | cmd_read (char *cmdbuf) |
void | cmd_writ (char *cmdbuf) |
void | files_logout_hook (void) |
void | help_subst (char *strbuf, char *source, char *dest) |
void | do_help_subst (char *buffer) |
void | cmd_mesg (char *mname) |
void | cmd_emsg (char *mname) |
char * | ctdl_module_init_file_ops (void) |
typedef const char* ccharp |
Definition at line 510 of file serv_file.c.
void abort_upl | ( | CitContext * | who | ) |
Definition at line 338 of file serv_file.c.
References CC, and CitContext::upload_fp.
Referenced by cmd_ucls(), and files_logout_hook().
void cmd_clos | ( | char * | cmdbuf | ) |
Definition at line 325 of file serv_file.c.
References CC, CIT_OK, cprintf(), ERROR, and RESOURCE_NOT_OPEN.
Referenced by ctdl_module_init_file_ops().
void cmd_delf | ( | char * | filename | ) |
Definition at line 24 of file serv_file.c.
References ac_room_aide, CC, CIT_OK, cprintf(), ctdl_file_dir, CtdlAccessCheck(), ERROR, FILE_NOT_FOUND, NOT_HERE, and QR_DIRECTORY.
Referenced by ctdl_module_init_file_ops().
void cmd_emsg | ( | char * | mname | ) |
Definition at line 562 of file serv_file.c.
References ac_aide, client_getln(), cprintf(), ctdl_message_dir, CtdlAccessCheck(), ERROR, INTERNAL_ERROR, SEND_LISTING, and unbuffer_output().
Referenced by ctdl_module_init_file_ops().
void cmd_mesg | ( | char * | mname | ) |
Definition at line 513 of file serv_file.c.
References CC, cprintf(), ctdl_message_dir, do_help_subst(), ERROR, FILE_NOT_FOUND, and LISTING_FOLLOWS.
Referenced by ctdl_module_init_file_ops().
void cmd_movf | ( | char * | cmdbuf | ) |
Definition at line 57 of file serv_file.c.
References ac_room_aide, CC, CIT_OK, cprintf(), CtdlAccessCheck(), CtdlGetRoom(), ERROR, FILE_NOT_FOUND, INTERNAL_ERROR, NOT_HERE, QR_DIRECTORY, qrbuf, ctdlroom::QRdirname, ctdlroom::QRflags, ctdlroom::QRname, ROOM_NOT_FOUND, and ROOMNAMELEN.
Referenced by ctdl_module_init_file_ops().
void cmd_oimg | ( | char * | cmdbuf | ) |
Definition at line 184 of file serv_file.c.
References CC, cprintf(), ERROR, FILE_NOT_FOUND, OpenCmdResult(), and RESOURCE_BUSY.
Referenced by ctdl_module_init_file_ops().
void cmd_open | ( | char * | cmdbuf | ) |
Definition at line 136 of file serv_file.c.
References ac_logged_in, CC, cprintf(), ctdl_file_dir, CtdlAccessCheck(), ERROR, FILE_NOT_FOUND, ILLEGAL_VALUE, INTERNAL_ERROR, NOT_HERE, OpenCmdResult(), QR_DIRECTORY, and RESOURCE_BUSY.
Referenced by ctdl_module_init_file_ops().
void cmd_read | ( | char * | cmdbuf | ) |
Definition at line 386 of file serv_file.c.
References BINARY_FOLLOWS, CC, client_write(), cprintf(), ERROR, ILLEGAL_VALUE, RESOURCE_NOT_OPEN, and SIZ.
Referenced by ctdl_module_init_file_ops().
void cmd_ucls | ( | char * | cmd | ) |
Definition at line 348 of file serv_file.c.
References abort_upl(), CC, CIT_OK, cprintf(), ERROR, quickie_message(), RESOURCE_NOT_OPEN, and SIZ.
Referenced by ctdl_module_init_file_ops().
void cmd_uimg | ( | char * | cmdbuf | ) |
Definition at line 274 of file serv_file.c.
References CC, CIT_OK, cprintf(), ctdl_image_dir, ERROR, HIGHER_ACCESS_REQUIRED, ILLEGAL_VALUE, INTERNAL_ERROR, and RESOURCE_BUSY.
Referenced by ctdl_module_init_file_ops().
void cmd_uopn | ( | char * | cmdbuf | ) |
Definition at line 223 of file serv_file.c.
References ac_logged_in, ALREADY_EXISTS, CC, CIT_OK, cprintf(), ctdl_file_dir, CtdlAccessCheck(), ERROR, FILE_NOT_FOUND, INTERNAL_ERROR, NOT_HERE, QR_DIRECTORY, and RESOURCE_BUSY.
Referenced by ctdl_module_init_file_ops().
void cmd_writ | ( | char * | cmdbuf | ) |
Definition at line 431 of file serv_file.c.
References CC, client_read(), cprintf(), ERROR, free(), ILLEGAL_VALUE, malloc(), RESOURCE_NOT_OPEN, SEND_BINARY, and unbuffer_output().
Referenced by ctdl_module_init_file_ops().
char * ctdl_module_init_file_ops | ( | void | ) |
Definition at line 599 of file serv_file.c.
References cmd_clos(), cmd_delf(), cmd_emsg(), cmd_mesg(), cmd_movf(), cmd_oimg(), cmd_open(), cmd_read(), cmd_ucls(), cmd_uimg(), cmd_uopn(), cmd_writ(), CtdlRegisterProtoHook(), CtdlRegisterSessionHook(), EVT_LOGOUT, files_logout_hook(), PRIO_LOGOUT, and threading.
Referenced by initialize_modules().
void do_help_subst | ( | char * | buffer | ) |
Definition at line 494 of file serv_file.c.
References CC, CITADEL, ctdl_message_dir, CtdlGetConfigStr(), and help_subst().
Referenced by cmd_mesg().
void files_logout_hook | ( | void | ) |
Definition at line 464 of file serv_file.c.
References abort_upl(), CitContext::download_fp, MyContext(), and CitContext::upload_fp.
Referenced by ctdl_module_init_file_ops().
void help_subst | ( | char * | strbuf, |
char * | source, | ||
char * | dest | ||
) |
void OpenCmdResult | ( | char * | filename, |
const char * | mime_type | ||
) |
Definition at line 121 of file serv_file.c.
References CC, CIT_OK, and cprintf().
Referenced by cmd_oimg(), cmd_open(), and mime_download().