]> git.sur5r.net Git - openldap/blob - servers/slurpd/proto-slurp.h
2d314cdd3a0588c87eece32bfdddf74198d219c2
[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 #ifdef CSRIMALLOC
16 #define ch_malloc malloc
17 #define ch_realloc realloc
18 #define ch_calloc calloc
19 #define ch_free free
20 #else
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));
25 #endif
26
27 /* config.c */
28 int slurpd_read_config  LDAP_P((char *fname));
29
30 /* ch_malloc.c */
31 void ch_free LDAP_P(( void *p ));
32
33 /* fm.c */
34 void *fm        LDAP_P((void *arg));
35 RETSIGTYPE do_nothing   LDAP_P((int i));
36
37 /* globals.c */
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));
43
44 /* ldap_op.c */
45 int do_ldap     LDAP_P((Ri *ri, Re *re, char **errmsg));
46
47 /* lock.c */
48 FILE *lock_fopen        LDAP_P((char *fname, char *type, FILE **lfp));
49 int lock_fclose LDAP_P((FILE *fp, FILE *lfp));
50 int acquire_lock        LDAP_P((char *file, FILE **rfp, FILE **lfp));
51 int relinquish_lock     LDAP_P((char *file, FILE *rfp, FILE *lfp));
52
53 /* reject.c */
54 void write_reject       LDAP_P((Ri *ri, Re *re, int lderr, char *errmsg));
55
56 /* replica.c */
57 int start_replica_thread        LDAP_P((Ri *ri));
58
59 /* replog.c */
60 int copy_replog LDAP_P((char *src, char *dst));
61 int file_nonempty       LDAP_P((char *filename));
62
63 /* sanity.c */
64 int sanity      LDAP_P((void));
65
66 /* st.c */
67 int St_init     LDAP_P((St **st));
68
69 /* tsleep.c */
70 int tsleep      LDAP_P((time_t interval));
71 #if defined( HAVE_LWP )
72 void start_lwp_scheduler LDAP_P(( void ));
73 #endif
74
75 #endif /* _PROTO_SLURP */