About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

No Matches
serv_file.c File Reference
#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"
Include dependency graph for serv_file.c:

Go to the source code of this file.


typedef const char * ccharp


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 Documentation

◆ ccharp

typedef const char* ccharp

Definition at line 510 of file serv_file.c.

Function Documentation

◆ abort_upl()

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().

◆ cmd_clos()

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().

◆ cmd_delf()

void cmd_delf ( char *  filename)

◆ cmd_emsg()

void cmd_emsg ( char *  mname)

◆ cmd_mesg()

void cmd_mesg ( char *  mname)

◆ cmd_movf()

◆ cmd_oimg()

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().

◆ cmd_open()

◆ cmd_read()

void cmd_read ( char *  cmdbuf)

◆ cmd_ucls()

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().

◆ cmd_uimg()

void cmd_uimg ( char *  cmdbuf)

◆ cmd_uopn()

void cmd_uopn ( char *  cmdbuf)

◆ cmd_writ()

void cmd_writ ( char *  cmdbuf)

◆ ctdl_module_init_file_ops()

◆ do_help_subst()

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().

◆ files_logout_hook()

void files_logout_hook ( void  )

◆ help_subst()

void help_subst ( char *  strbuf,
char *  source,
char *  dest 

Definition at line 482 of file serv_file.c.

References SIZ.

Referenced by do_help_subst().

◆ OpenCmdResult()

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().