]> git.sur5r.net Git - openldap/blob - servers/slurpd/proto-slurp.h
Add OpenLDAP RCSid to *.[ch] in clients, libraries, and servers.
[openldap] / servers / slurpd / proto-slurp.h
1 /* $OpenLDAP$ */
2 #ifndef _PROTO_SLURP
3 #define _PROTO_SLURP
4
5 #include <ldap_cdefs.h>
6
7 struct globals;
8
9 /* admin.c */
10 RETSIGTYPE do_admin     LDAP_P((int sig));
11
12 /* args.c */
13 int doargs      LDAP_P((int argc, char **argv, struct globals *g));
14
15 /* ch_malloc.c */
16 #ifdef CSRIMALLOC
17 #define ch_malloc malloc
18 #define ch_realloc realloc
19 #define ch_calloc calloc
20 #define ch_free free
21 #else
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));
26 #endif
27
28 /* config.c */
29 int slurpd_read_config  LDAP_P((char *fname));
30
31 /* ch_malloc.c */
32 void ch_free LDAP_P(( void *p ));
33
34 /* fm.c */
35 void *fm        LDAP_P((void *arg));
36 RETSIGTYPE do_nothing   LDAP_P((int i));
37
38 /* globals.c */
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));
44
45 /* ldap_op.c */
46 int do_ldap     LDAP_P((Ri *ri, Re *re, char **errmsg));
47
48 /* lock.c */
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));
53
54 /* reject.c */
55 void write_reject       LDAP_P((Ri *ri, Re *re, int lderr, char *errmsg));
56
57 /* replica.c */
58 int start_replica_thread        LDAP_P((Ri *ri));
59
60 /* replog.c */
61 int copy_replog LDAP_P((char *src, char *dst));
62 int file_nonempty       LDAP_P((char *filename));
63
64 /* sanity.c */
65 int sanity      LDAP_P((void));
66
67 /* st.c */
68 int St_init     LDAP_P((St **st));
69
70 /* tsleep.c */
71 int tsleep      LDAP_P((time_t interval));
72 #if defined( HAVE_LWP )
73 void start_lwp_scheduler LDAP_P(( void ));
74 #endif
75
76 #endif /* _PROTO_SLURP */