X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslurpd%2Fglobals.h;h=a7ea523c683779af480d083cc04da7a691e0defa;hb=fad62c5d1dea6fa56e740dd81ce025eaaaab1917;hp=1582d1780daae21c8a4d6410420ca03b28758424;hpb=b76c56ba3f45576b9c418ea9fe7f7b3440052904;p=openldap diff --git a/servers/slurpd/globals.h b/servers/slurpd/globals.h index 1582d1780d..a7ea523c68 100644 --- a/servers/slurpd/globals.h +++ b/servers/slurpd/globals.h @@ -1,3 +1,4 @@ +/* $OpenLDAP$ */ /* * Copyright (c) 1996 Regents of the University of Michigan. * All rights reserved. @@ -23,13 +24,13 @@ LDAP_BEGIN_DECL typedef struct globals { /* Thread ID for file manager thread */ - pthread_t fm_tid; + ldap_pvt_thread_t fm_tid; /* The name of the slapd config file (which is also our config file) */ char *slapd_configfile; /* How long the master slurpd sleeps when there's no work to do */ int no_work_interval; /* We keep running until slurpd_shutdown is nonzero. HUP signal set this */ - int slurpd_shutdown; + sig_atomic_t slurpd_shutdown; /* Number of replicas we're servicing */ int num_replicas; /* Array of pointers to replica info */ @@ -44,24 +45,22 @@ typedef struct globals { char slurpd_replogfile[ MAXPATHLEN ]; /* Non-zero if we were given a replog file to process on command-line */ int one_shot_mode; + /* Non-zero if we should not detach the process */ + int no_detach; /* Name of program */ char *myname; /* Current offset into slurpd replica logfile */ off_t srpos; /* mutex to serialize access to reject file */ - pthread_mutex_t rej_mutex; + ldap_pvt_thread_mutex_t rej_mutex; /* pointer to status struct */ St *st; /* Pointer to replication queue */ Rq *rq; -#ifdef HAVE_KERBEROS +#ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND /* Default name of kerberos srvtab file */ char *default_srvtab; -#endif /* HAVE_KERBEROS */ -#if defined( HAVE_LWP ) && !defined( HAVE_LWP_THR ) - tl_t *tsl_list; - mon_t tsl_mon; -#endif /* THREAD_SUNOS4_LWP */ +#endif /* LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND */ } Globals;