14#if DB_VERSION_MAJOR < 5
15#error Citadel requires Berkeley DB v5 or newer. Please upgrade.
21#if SIZEOF_SIZE_T == SIZEOF_INT
22#define SIZE_T_FMT "%d"
24#define SIZE_T_FMT "%ld"
27#if SIZEOF_LOFF_T == SIZEOF_LONG
28#define LOFF_T_FMT "%ld"
30#define LOFF_T_FMT "%lld"
36void cprintf (
const char *format, ...) __attribute__((__format__(__printf__,1,2)));
38void cprintf (
const char *format, ...);
int SyslogFacility(char *name)
int CtdlClientGetLine(StrBuf *Target)
void cprintf(const char *format,...)
int ctdl_tcp_server(char *ip_addr, int port_number, int queue_len)
int client_read_to(char *buf, int bytes, int timeout)
void sysdep_master_cleanup(void)
int client_read_random_blob(StrBuf *Target, int timeout)
int client_write(const char *buf, int nbytes)
void kill_session(int session_to_kill)
void * worker_thread(void *)
volatile int restart_server
void init_master_fdset(void)
int client_getln(char *buf, int maxbytes)
void client_set_inbound_buf(long N)
int convert_login(char *NameToConvert)
int client_read_blob(StrBuf *Target, int bytes, int timeout)
int client_read(char *buf, int bytes)
volatile int shutdown_and_halt
void unbuffer_output(void)
volatile int running_as_daemon
int ctdl_uds_server(char *sockpath, int queue_len)
void start_daemon(int do_close_stdio)
void cputbuf(const StrBuf *Buf)