-time_t currenttime;
-pthread_mutex_t currenttime_mutex;
-int active_threads;
-pthread_mutex_t active_threads_mutex;
-pthread_mutex_t new_conn_mutex;
-#ifdef SLAPD_CRYPT
-pthread_mutex_t crypt_mutex;
-#endif
-long ops_initiated;
-long ops_completed;
-int num_conns;
-pthread_mutex_t ops_mutex;
-long num_entries_sent;
-long num_bytes_sent;
-pthread_mutex_t num_sent_mutex;
-/*
- * these mutexes must be used when calling the entry2str()
- * routine since it returns a pointer to static data.
- */
-pthread_mutex_t entry2str_mutex;
-pthread_mutex_t replog_mutex;
+
+#ifndef HAVE_MKVERSION
+const char Versionstr[] =
+ OPENLDAP_PACKAGE " " OPENLDAP_VERSION " Standalone LDAP Server (slapd)";
+#endif
+
+#ifdef LOG_LOCAL4
+
+#define DEFAULT_SYSLOG_USER LOG_LOCAL4
+
+typedef struct _str2intDispatch {
+ char *stringVal;
+ int abbr;
+ int intVal;
+} STRDISP, *STRDISP_P;
+
+
+/* table to compute syslog-options to integer */
+static STRDISP syslog_types[] = {
+ { "LOCAL0", 6, LOG_LOCAL0 },
+ { "LOCAL1", 6, LOG_LOCAL1 },
+ { "LOCAL2", 6, LOG_LOCAL2 },
+ { "LOCAL3", 6, LOG_LOCAL3 },
+ { "LOCAL4", 6, LOG_LOCAL4 },
+ { "LOCAL5", 6, LOG_LOCAL5 },
+ { "LOCAL6", 6, LOG_LOCAL6 },
+ { "LOCAL7", 6, LOG_LOCAL7 },
+ { NULL }
+};
+
+static int cnvt_str2int( char *, STRDISP_P, int );
+
+#endif /* LOG_LOCAL4 */
+