citadel
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)  

Loading...
Searching...
No Matches
sysdep_decls.h
Go to the documentation of this file.
1
2#ifndef SYSDEP_DECLS_H
3#define SYSDEP_DECLS_H
4
5#include <stdarg.h>
6#include "sysdep.h"
7
8#ifdef HAVE_PTHREAD_H
9#include <pthread.h>
10#endif
11
12#include "server.h"
13#include "database.h"
14
15#if SIZEOF_SIZE_T == SIZEOF_INT
16#define SIZE_T_FMT "%d"
17#else
18#define SIZE_T_FMT "%ld"
19#endif
20
21#if SIZEOF_LOFF_T == SIZEOF_LONG
22#define LOFF_T_FMT "%ld"
23#else
24#define LOFF_T_FMT "%lld"
25#endif
26
27void cputbuf(const StrBuf *Buf);
28
29#ifdef __GNUC__
30void cprintf (const char *format, ...) __attribute__((__format__(__printf__,1,2)));
31#else
32void cprintf (const char *format, ...);
33#endif
34
35void init_sysdep (void);
36int ctdl_tcp_server(char *ip_addr, int port_number, int queue_len);
37int ctdl_uds_server(char *sockpath, int queue_len);
38void buffer_output(void);
39void unbuffer_output(void);
40void flush_output(void);
41int client_write (const char *buf, int nbytes);
42int client_read_to (char *buf, int bytes, int timeout);
43int client_read (char *buf, int bytes);
44int client_getln (char *buf, int maxbytes);
45int CtdlClientGetLine(StrBuf *Target);
46int client_read_blob(StrBuf *Target, int bytes, int timeout);
47void client_set_inbound_buf(long N);
48int client_read_random_blob(StrBuf *Target, int timeout);
49void client_close(void);
50void kill_session (int session_to_kill);
51int convert_login (char *NameToConvert);
53void *worker_thread(void *);
54
55extern volatile int exit_signal;
56extern volatile int shutdown_and_halt;
57extern volatile int running_as_daemon;
58extern volatile int restart_server;
59
60extern int verbosity;
61extern int rescan[];
62
63extern int SyslogFacility(char *name);
64
65#endif
void timeout(int signum)
Definition citmail.c:41
int SyslogFacility(char *name)
Definition sysdep.c:890
int CtdlClientGetLine(StrBuf *Target)
Definition sysdep.c:503
int verbosity
void cprintf(const char *format,...)
Definition sysdep.c:363
int ctdl_tcp_server(char *ip_addr, int port_number, int queue_len)
Definition sysdep.c:107
int client_read_to(char *buf, int bytes, int timeout)
Definition sysdep.c:465
int client_read_random_blob(StrBuf *Target, int timeout)
Definition sysdep.c:437
int client_write(const char *buf, int nbytes)
Definition sysdep.c:290
void flush_output(void)
Definition sysdep.c:271
void kill_session(int session_to_kill)
void client_close(void)
Definition sysdep.c:280
void * worker_thread(void *)
Definition sysdep.c:655
volatile int restart_server
Definition sysdep.c:40
void buffer_output(void)
Definition sysdep.c:253
void init_master_fdset(void)
volatile int exit_signal
Definition sysdep.c:38
int client_getln(char *buf, int maxbytes)
Definition sysdep.c:532
void client_set_inbound_buf(long N)
Definition sysdep.c:431
int convert_login(char *NameToConvert)
int client_read_blob(StrBuf *Target, int bytes, int timeout)
Definition sysdep.c:396
int client_read(char *buf, int bytes)
Definition sysdep.c:498
volatile int shutdown_and_halt
Definition sysdep.c:39
void unbuffer_output(void)
Definition sysdep.c:262
volatile int running_as_daemon
Definition sysdep.c:41
int rescan[]
int ctdl_uds_server(char *sockpath, int queue_len)
Definition sysdep.c:191
void cputbuf(const StrBuf *Buf)
Definition sysdep.c:356
void init_sysdep(void)
Definition sysdep.c:57