]> git.sur5r.net Git - openldap/blob - servers/slurpd/proto-slurp.h
syncrepl changes
[openldap] / servers / slurpd / proto-slurp.h
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
4  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5  */
6 #ifndef _PROTO_SLURP
7 #define _PROTO_SLURP
8
9 #include <ldap_cdefs.h>
10
11 struct globals;
12
13 /* admin.c */
14 RETSIGTYPE do_admin     LDAP_P((int sig));
15
16 /* args.c */
17 int doargs      LDAP_P((int argc, char **argv, struct globals *g));
18
19 /* ch_malloc.c */
20 #ifdef CSRIMALLOC
21 #define ch_malloc malloc
22 #define ch_realloc realloc
23 #define ch_calloc calloc
24 #define ch_strdup strdup
25 #define ch_free free
26 #else
27 void *ch_malloc LDAP_P((ber_len_t size));
28 void *ch_realloc        LDAP_P((void *block, ber_len_t size));
29 void *ch_calloc LDAP_P((ber_len_t nelem, ber_len_t size));
30 char *ch_strdup LDAP_P((const char *str));
31 void ch_free    LDAP_P((void *p));
32 #endif
33
34 /* config.c */
35 int slurpd_read_config  LDAP_P((char *fname));
36
37 extern char *slurpd_pid_file;
38 extern char *slurpd_args_file;
39
40 /* ch_malloc.c */
41 void ch_free LDAP_P(( void *p ));
42
43 /* fm.c */
44 void *fm        LDAP_P((void *arg));
45 RETSIGTYPE do_nothing   LDAP_P((int i));
46 RETSIGTYPE slurp_set_shutdown LDAP_P((int));
47
48 /* globals.c */
49 extern struct globals *sglob;
50 extern int ldap_syslog;
51 extern int ldap_syslog_level;
52 extern int ldap_debug;
53 extern struct globals *init_globals     LDAP_P((void));
54
55 /* ldap_op.c */
56 int do_ldap     LDAP_P((Ri *ri, Re *re, char **errmsg));
57
58 /* lock.c */
59 FILE *lock_fopen        LDAP_P((const char *fname, const char *type, FILE **lfp));
60 int lock_fclose LDAP_P((FILE *fp, FILE *lfp));
61 int acquire_lock        LDAP_P((const char *file, FILE **rfp, FILE **lfp));
62 int relinquish_lock     LDAP_P((const char *file, FILE *rfp, FILE *lfp));
63
64 /* reject.c */
65 void write_reject       LDAP_P((Ri *ri, Re *re, int lderr, char *errmsg));
66
67 /* replica.c */
68 int start_replica_thread        LDAP_P((Ri *ri));
69
70 /* replog.c */
71 int copy_replog LDAP_P((char *src, char *dst));
72 int file_nonempty       LDAP_P((char *filename));
73
74 /* sanity.c */
75 int sanity      LDAP_P((void));
76
77 /* st.c */
78 int St_init     LDAP_P((St **st));
79
80 /* tsleep.c */
81 int tsleep      LDAP_P((time_t interval));
82 #if defined( HAVE_LWP )
83 void start_lwp_scheduler LDAP_P(( void ));
84 #endif
85
86 #endif /* _PROTO_SLURP */