3 * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
9 #include <ldap_cdefs.h>
14 RETSIGTYPE do_admin LDAP_P((int sig));
17 int doargs LDAP_P((int argc, char **argv, struct globals *g));
21 #define ch_malloc malloc
22 #define ch_realloc realloc
23 #define ch_calloc calloc
26 void *ch_malloc LDAP_P((ber_len_t size));
27 void *ch_realloc LDAP_P((void *block, ber_len_t size));
28 void *ch_calloc LDAP_P((ber_len_t nelem, ber_len_t size));
29 void ch_free LDAP_P((void *p));
33 int slurpd_read_config LDAP_P((char *fname));
36 void ch_free LDAP_P(( void *p ));
39 void *fm LDAP_P((void *arg));
40 RETSIGTYPE do_nothing LDAP_P((int i));
43 extern struct globals *sglob;
44 extern int ldap_syslog;
45 extern int ldap_syslog_level;
46 extern int ldap_debug;
47 extern struct globals *init_globals LDAP_P((void));
50 int do_ldap LDAP_P((Ri *ri, Re *re, char **errmsg));
53 FILE *lock_fopen LDAP_P((const char *fname, const char *type, FILE **lfp));
54 int lock_fclose LDAP_P((FILE *fp, FILE *lfp));
55 int acquire_lock LDAP_P((const char *file, FILE **rfp, FILE **lfp));
56 int relinquish_lock LDAP_P((const char *file, FILE *rfp, FILE *lfp));
59 void write_reject LDAP_P((Ri *ri, Re *re, int lderr, char *errmsg));
62 int start_replica_thread LDAP_P((Ri *ri));
65 int copy_replog LDAP_P((char *src, char *dst));
66 int file_nonempty LDAP_P((char *filename));
69 int sanity LDAP_P((void));
72 int St_init LDAP_P((St **st));
75 int tsleep LDAP_P((time_t interval));
76 #if defined( HAVE_LWP )
77 void start_lwp_scheduler LDAP_P(( void ));
80 #endif /* _PROTO_SLURP */