5 #include <ldap_cdefs.h>
10 RETSIGTYPE do_admin LDAP_P((int sig));
13 int doargs LDAP_P((int argc, char **argv, struct globals *g));
17 #define ch_malloc malloc
18 #define ch_realloc realloc
19 #define ch_calloc calloc
22 void *ch_malloc LDAP_P((ber_len_t size));
23 void *ch_realloc LDAP_P((void *block, ber_len_t size));
24 void *ch_calloc LDAP_P((ber_len_t nelem, ber_len_t size));
25 void ch_free LDAP_P((void *p));
29 int slurpd_read_config LDAP_P((char *fname));
32 void ch_free LDAP_P(( void *p ));
35 void *fm LDAP_P((void *arg));
36 RETSIGTYPE do_nothing LDAP_P((int i));
39 extern struct globals *sglob;
40 extern int ldap_syslog;
41 extern int ldap_syslog_level;
42 extern int ldap_debug;
43 extern struct globals *init_globals LDAP_P((void));
46 int do_ldap LDAP_P((Ri *ri, Re *re, char **errmsg));
49 FILE *lock_fopen LDAP_P((const char *fname, const char *type, FILE **lfp));
50 int lock_fclose LDAP_P((FILE *fp, FILE *lfp));
51 int acquire_lock LDAP_P((const char *file, FILE **rfp, FILE **lfp));
52 int relinquish_lock LDAP_P((const char *file, FILE *rfp, FILE *lfp));
55 void write_reject LDAP_P((Ri *ri, Re *re, int lderr, char *errmsg));
58 int start_replica_thread LDAP_P((Ri *ri));
61 int copy_replog LDAP_P((char *src, char *dst));
62 int file_nonempty LDAP_P((char *filename));
65 int sanity LDAP_P((void));
68 int St_init LDAP_P((St **st));
71 int tsleep LDAP_P((time_t interval));
72 #if defined( HAVE_LWP )
73 void start_lwp_scheduler LDAP_P(( void ));
76 #endif /* _PROTO_SLURP */