3 * Copyright (c) 1996 Regents of the University of Michigan.
6 * Redistribution and use in source and binary forms are permitted
7 * provided that this notice is preserved and that due credit is given
8 * to the University of Michigan at Ann Arbor. The name of the University
9 * may not be used to endorse or promote products derived from this
10 * software without specific prior written permission. This software
11 * is provided ``as is'' without express or implied warranty.
14 #ifndef SLURPD_GLOBALS_H
15 #define SLURPD_GLOBALS_H 1
18 * globals.h - definition of structure holding global data.
25 typedef struct globals {
26 /* Thread ID for file manager thread */
27 ldap_pvt_thread_t fm_tid;
28 /* The name of the slapd config file (which is also our config file) */
29 char *slapd_configfile;
30 /* How long the master slurpd sleeps when there's no work to do */
32 /* We keep running until slurpd_shutdown is nonzero. HUP signal set this */
33 sig_atomic_t slurpd_shutdown;
34 /* Number of replicas we're servicing */
36 /* Array of pointers to replica info */
38 /* Directory where our replica files are written/read */
40 /* Name of slurpd status file (timestamp of last replog */
41 char slurpd_status_file[ MAXPATHLEN ];
42 /* Name of the replication log slapd is writing (and we are reading) */
43 char slapd_replogfile[ MAXPATHLEN ];
44 /* Name of local copy of replogfile we maintain */
45 char slurpd_replogfile[ MAXPATHLEN ];
46 /* Non-zero if we were given a replog file to process on command-line */
48 /* Non-zero if we should not detach the process */
52 /* Current offset into slurpd replica logfile */
54 /* mutex to serialize access to reject file */
55 ldap_pvt_thread_mutex_t rej_mutex;
56 /* pointer to status struct */
58 /* Pointer to replication queue */
61 /* Default name of kerberos srvtab file */
63 #endif /* HAVE_KERBEROS */
67 extern Globals *sglob;
71 #endif /* SLURPD_GLOBALS_H */