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