use the gnu format string checker for CtdlLogPrintf; fix associated new warnings...
[citadel.git] / citadel / sysdep_decls.h
index 3c463f755e699d444ae211c3385e6bb9aa87b500..663e9b50b0b0108683cd90099af0b94fbf17704f 100644 (file)
@@ -1,4 +1,3 @@
-/* $Id$ */
 
 #ifndef SYSDEP_DECLS_H
 #define SYSDEP_DECLS_H
 #define SIZE_T_FMT "%ld"
 #endif
 
+void cputbuf(const StrBuf *Buf);
+
 #ifdef __GNUC__
 void cprintf (const char *format, ...) __attribute__((__format__(__printf__,1,2)));
 #else
 void cprintf (const char *format, ...);
 #endif
 
-void CtdlLogPrintf(enum LogLevel loglevel, const char *format, ...);
+void CtdlLogPrintf(enum LogLevel loglevel, const char *format, ...) __attribute__((__format__(__printf__,2,3)));
 void vCtdlLogPrintf (enum LogLevel loglevel, const char *format, va_list arg_ptr);
 
 extern int enable_syslog;
+extern int print_to_logfile;
 
 void init_sysdep (void);
-int ig_tcp_server (char *ip_addr, int port_number, int queue_len,char **errormessage);
-int ig_uds_server(char *sockpath, int queue_len, char **errormessage);
+int ctdl_tcp_server(char *ip_addr, int port_number, int queue_len, char *errormessage);
+int ctdl_uds_server(char *sockpath, int queue_len, char *errormessage);
 void buffer_output(void);
 void unbuffer_output(void);
 void flush_output(void);
-int client_write (char *buf, int nbytes);
+int client_write (const char *buf, int nbytes);
 int client_read_to (char *buf, int bytes, int timeout);
 int client_read (char *buf, int bytes);
 int client_getln (char *buf, int maxbytes);
+int CtdlClientGetLine(StrBuf *Target);
+int client_read_blob(StrBuf *Target, int bytes, int timeout);
+void client_set_inbound_buf(long N);
+int client_read_random_blob(StrBuf *Target, int timeout);
 void sysdep_master_cleanup (void);
 void kill_session (int session_to_kill);
 void start_daemon (int do_close_stdio);
@@ -70,7 +76,7 @@ int convert_login (char *NameToConvert);
 void *worker_thread (void *arg);
 void init_master_fdset(void);
 void create_worker(void);
-
+void *select_on_master (void *arg);
 
 extern volatile int exit_signal;
 extern volatile int shutdown_and_halt;