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)  

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_file_ops_init (int threading)

Typedef Documentation

◆ ccharp

typedef const char* ccharp

Definition at line 570 of file serv_file.c.

Function Documentation

◆ abort_upl()

void abort_upl ( CitContext who)

Definition at line 372 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 356 of file serv_file.c.

References CC, CIT_OK, cprintf(), ERROR, and RESOURCE_NOT_OPEN.

Referenced by ctdl_module_file_ops_init().

◆ 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 207 of file serv_file.c.

References CC, cprintf(), ERROR, FILE_NOT_FOUND, OpenCmdResult(), and RESOURCE_BUSY.

Referenced by ctdl_module_file_ops_init().

◆ cmd_open()

◆ cmd_read()

void cmd_read ( char *  cmdbuf)

◆ cmd_ucls()

void cmd_ucls ( char *  cmd)

◆ cmd_uimg()

void cmd_uimg ( char *  cmdbuf)

◆ cmd_uopn()

◆ cmd_writ()

void cmd_writ ( char *  cmdbuf)

◆ ctdl_module_file_ops_init()

◆ do_help_subst()

void do_help_subst ( char *  buffer)

Definition at line 553 of file serv_file.c.

References CC, CITADEL, ctdl_message_dir, CtdlGetConfigStr(), help_subst(), and snprintf().

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 540 of file serv_file.c.

References SIZ.

Referenced by do_help_subst().

◆ OpenCmdResult()

void OpenCmdResult ( char *  filename,
const char *  mime_type 

Definition at line 138 of file serv_file.c.

References CC, CIT_OK, and cprintf().

Referenced by cmd_oimg(), cmd_open(), and mime_download().