4 #include <ldap_cdefs.h>
9 RETSIGTYPE do_admin LDAP_P((int sig));
12 int doargs LDAP_P((int argc, char **argv, struct globals *g));
16 #define ch_malloc malloc
17 #define ch_realloc realloc
18 #define ch_calloc calloc
21 void *ch_malloc LDAP_P((ber_len_t size));
22 void *ch_realloc LDAP_P((void *block, ber_len_t size));
23 void *ch_calloc LDAP_P((ber_len_t nelem, ber_len_t size));
24 void ch_free LDAP_P((void *p));
28 int slurpd_read_config LDAP_P((char *fname));
31 void ch_free LDAP_P(( void *p ));
34 void *fm LDAP_P((void *arg));
35 RETSIGTYPE do_nothing LDAP_P((int i));
38 extern struct globals *sglob;
39 extern int ldap_syslog;
40 extern int ldap_syslog_level;
41 extern int ldap_debug;
42 extern struct globals *init_globals LDAP_P((void));
45 int do_ldap LDAP_P((Ri *ri, Re *re, char **errmsg));
48 FILE *lock_fopen LDAP_P((const char *fname, const char *type, FILE **lfp));
49 int lock_fclose LDAP_P((FILE *fp, FILE *lfp));
50 int acquire_lock LDAP_P((const char *file, FILE **rfp, FILE **lfp));
51 int relinquish_lock LDAP_P((const char *file, FILE *rfp, FILE *lfp));
54 void write_reject LDAP_P((Ri *ri, Re *re, int lderr, char *errmsg));
57 int start_replica_thread LDAP_P((Ri *ri));
60 int copy_replog LDAP_P((char *src, char *dst));
61 int file_nonempty LDAP_P((char *filename));
64 int sanity LDAP_P((void));
67 int St_init LDAP_P((St **st));
70 int tsleep LDAP_P((time_t interval));
71 #if defined( HAVE_LWP )
72 void start_lwp_scheduler LDAP_P(( void ));
75 #endif /* _PROTO_SLURP */