]> git.sur5r.net Git - openldap/blob - servers/slurpd/proto-slurp.h
Kill lber_debug
[openldap] / servers / slurpd / proto-slurp.h
1 #ifndef _PROTO_SLURP
2 #define _PROTO_SLURP
3
4 #include <ldap_cdefs.h>
5
6 struct globals;
7
8 /* admin.c */
9 RETSIGTYPE do_admin     LDAP_P((int sig));
10
11 /* args.c */
12 int doargs      LDAP_P((int argc, char **argv, struct globals *g));
13
14 /* ch_malloc.c */
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));
19
20 /* config.c */
21 int slurpd_read_config  LDAP_P((char *fname));
22
23 /* ch_malloc.c */
24 void ch_free LDAP_P(( void *p ));
25
26 /* fm.c */
27 void *fm        LDAP_P((void *arg));
28 RETSIGTYPE do_nothing   LDAP_P((int i));
29
30 /* globals.c */
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));
36
37 /* ldap_op.c */
38 int do_ldap     LDAP_P((Ri *ri, Re *re, char **errmsg));
39
40 /* lock.c */
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));
45
46 /* reject.c */
47 void write_reject       LDAP_P((Ri *ri, Re *re, int lderr, char *errmsg));
48
49 /* replica.c */
50 int start_replica_thread        LDAP_P((Ri *ri));
51
52 /* replog.c */
53 int copy_replog LDAP_P((char *src, char *dst));
54 int file_nonempty       LDAP_P((char *filename));
55
56 /* sanity.c */
57 int sanity      LDAP_P((void));
58
59 /* st.c */
60 int St_init     LDAP_P((St **st));
61
62 /* tsleep.c */
63 int tsleep      LDAP_P((time_t interval));
64 #if defined( HAVE_LWP )
65 void start_lwp_scheduler LDAP_P(( void ));
66 #endif
67
68 #endif /* _PROTO_SLURP */