14 #elif defined(HAVE_DB4_DB_H)
17 #error Neither <db.h> nor <db4/db.h> was found by configure. Install db4-devel.
21 #if DB_VERSION_MAJOR < 4 || DB_VERSION_MINOR < 1
22 #error Citadel requires Berkeley DB v4.1 or newer. Please upgrade.
28 #if SIZEOF_SIZE_T == SIZEOF_INT
29 #define SIZE_T_FMT "%d"
31 #define SIZE_T_FMT "%ld"
34 #if SIZEOF_LOFF_T == SIZEOF_LONG
35 #define LOFF_T_FMT "%ld"
37 #define LOFF_T_FMT "%lld"
40 void cputbuf(const StrBuf *Buf);
43 void cprintf (const char *format, ...) __attribute__((__format__(__printf__,1,2)));
45 void cprintf (const char *format, ...);
48 void init_sysdep (void);
49 int ctdl_tcp_server(char *ip_addr, int port_number, int queue_len, char *errormessage);
50 int ctdl_uds_server(char *sockpath, int queue_len, char *errormessage);
51 void buffer_output(void);
52 void unbuffer_output(void);
53 void flush_output(void);
54 int client_write (const char *buf, int nbytes);
55 int client_read_to (char *buf, int bytes, int timeout);
56 int client_read (char *buf, int bytes);
57 int client_getln (char *buf, int maxbytes);
58 int CtdlClientGetLine(StrBuf *Target);
59 int client_read_blob(StrBuf *Target, int bytes, int timeout);
60 void client_set_inbound_buf(long N);
61 int client_read_random_blob(StrBuf *Target, int timeout);
62 void client_close(void);
63 void sysdep_master_cleanup (void);
64 void kill_session (int session_to_kill);
65 void start_daemon (int do_close_stdio);
66 void checkcrash(void);
67 void cmd_nset (char *cmdbuf);
68 int convert_login (char *NameToConvert);
69 void init_master_fdset(void);
70 void *worker_thread(void *);
72 extern volatile int exit_signal;
73 extern volatile int shutdown_and_halt;
74 extern volatile int running_as_daemon;
75 extern volatile int restart_server;
81 extern int SyslogFacility(char *name);
83 #endif /* SYSDEP_DECLS_H */