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));
15 void *ch_malloc LDAP_P((ber_len_t size));
16 void *ch_realloc LDAP_P((void *block, ber_len_t size));
17 void *ch_calloc LDAP_P((ber_len_t nelem, ber_len_t size));
18 void ch_free LDAP_P((void *p));
21 int slurpd_read_config LDAP_P((char *fname));
24 void ch_free LDAP_P(( void *p ));
27 void *fm LDAP_P((void *arg));
28 RETSIGTYPE do_nothing LDAP_P((int i));
31 extern struct globals *sglob;
32 extern int ldap_syslog;
33 extern int ldap_syslog_level;
34 extern int ldap_debug;
35 extern struct globals *init_globals LDAP_P((void));
38 int do_ldap LDAP_P((Ri *ri, Re *re, char **errmsg));
41 FILE *lock_fopen LDAP_P((char *fname, char *type, FILE **lfp));
42 int lock_fclose LDAP_P((FILE *fp, FILE *lfp));
43 int acquire_lock LDAP_P((char *file, FILE **rfp, FILE **lfp));
44 int relinquish_lock LDAP_P((char *file, FILE *rfp, FILE *lfp));
47 void write_reject LDAP_P((Ri *ri, Re *re, int lderr, char *errmsg));
50 int start_replica_thread LDAP_P((Ri *ri));
53 int copy_replog LDAP_P((char *src, char *dst));
54 int file_nonempty LDAP_P((char *filename));
57 int sanity LDAP_P((void));
60 int St_init LDAP_P((St **st));
63 int tsleep LDAP_P((time_t interval));
64 #if defined( HAVE_LWP )
65 void start_lwp_scheduler LDAP_P(( void ));
68 #endif /* _PROTO_SLURP */