X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslurpd%2Fglobals.h;h=1f9595f70b2b7def700fec9a6a933c075d126c0b;hb=42d7d6d7432b87d37bfb4beba489cc141ee2edf9;hp=1582d1780daae21c8a4d6410420ca03b28758424;hpb=2a869f5a99f537b246ba8640502e2a86117cb6e8;p=openldap diff --git a/servers/slurpd/globals.h b/servers/slurpd/globals.h index 1582d1780d..1f9595f70b 100644 --- a/servers/slurpd/globals.h +++ b/servers/slurpd/globals.h @@ -1,5 +1,18 @@ -/* - * Copyright (c) 1996 Regents of the University of Michigan. +/* $OpenLDAP$ */ +/* This work is part of OpenLDAP Software . + * + * Copyright 1998-2003 The OpenLDAP Foundation. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted only as authorized by the OpenLDAP + * Public License. + * + * A copy of this license is available in file LICENSE in the + * top-level directory of the distribution or, alternatively, at + * . + */ +/* Portions Copyright (c) 1996 Regents of the University of Michigan. * All rights reserved. * * Redistribution and use in source and binary forms are permitted @@ -9,6 +22,10 @@ * software without specific prior written permission. This software * is provided ``as is'' without express or implied warranty. */ +/* ACKNOWLEDGEMENTS: + * This work was originally developed by the University of Michigan + * (as part of U-MICH LDAP). + */ #ifndef SLURPD_GLOBALS_H #define SLURPD_GLOBALS_H 1 @@ -23,13 +40,15 @@ LDAP_BEGIN_DECL typedef struct globals { /* Thread ID for file manager thread */ - pthread_t fm_tid; + ldap_pvt_thread_t fm_tid; + /* pipe/socket used to wake manager from signal handler */ + int wake_sds[2]; /* 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 +63,26 @@ 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; + /* NT service name */ + char *serverName; /* 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 */ + /* Non-zero if we shall print the version */ + int version; } Globals;