modified: myjupyterlab.sh
[GalaxyCodeBases.git] / etc / Windows / vlmcsd_old_vancepym / shared_globals.c
blobf7f32657a46e5639cf0c269507152e11b132fe8e
1 #ifndef CONFIG
2 #define CONFIG "config.h"
3 #endif // CONFIG
4 #include CONFIG
6 #include "shared_globals.h"
8 int global_argc, multi_argc = 0;
9 CARGV global_argv, multi_argv = NULL;
10 const char *const Version = VERSION;
11 DWORD VLActivationInterval = 60 * 2; // 2 hours
12 DWORD VLRenewalInterval = 60 * 24 * 7; // 7 days
13 int_fast8_t DisconnectImmediately = FALSE;
14 const char *const cIPv4 = "IPv4";
15 const char *const cIPv6 = "IPv6";
17 #ifndef USE_MSRPC
18 int_fast8_t UseMultiplexedRpc = TRUE;
19 int_fast8_t UseRpcNDR64 = TRUE;
20 int_fast8_t UseRpcBTFN = TRUE;
21 #endif // USE_MSRPC
23 #ifndef NO_SOCKETS
24 const char *defaultport = "1688";
25 #endif // NO_SOCKETS
27 KmsResponseParam_t KmsResponseParameters[MAX_KMSAPPS];
29 #if !defined(NO_SOCKETS) && !defined(NO_SIGHUP) && !defined(_WIN32)
30 int_fast8_t IsRestarted = FALSE;
31 #endif // !defined(NO_SOCKETS) && !defined(NO_SIGHUP) && !defined(_WIN32)
33 #if !defined(NO_TIMEOUT) && !__minix__
34 DWORD ServerTimeout = 30;
35 #endif // !defined(NO_TIMEOUT) && !__minix__
37 #if !defined(NO_LIMIT) && !defined (NO_SOCKETS) && !__minix__
38 #ifdef USE_MSRPC
39 uint32_t MaxTasks = RPC_C_LISTEN_MAX_CALLS_DEFAULT;
40 #else // !USE_MSRPC
41 uint32_t MaxTasks = SEM_VALUE_MAX;
42 #endif // !USE_MSRPC
43 #endif // !defined(NO_LIMIT) && !defined (NO_SOCKETS) && !__minix__
45 #ifndef NO_LOG
46 char *fn_log = NULL;
47 int_fast8_t logstdout = 0;
48 #ifndef NO_VERBOSE_LOG
49 int_fast8_t logverbose = 0;
50 #endif // NO_VERBOSE_LOG
51 #endif // NO_LOG
53 #ifndef NO_SOCKETS
54 int_fast8_t nodaemon = 0;
55 int_fast8_t InetdMode = 0;
56 #else
57 int_fast8_t nodaemon = 1;
58 int_fast8_t InetdMode = 1;
59 #endif
61 #ifndef NO_RANDOM_EPID
62 int_fast8_t RandomizationLevel = 1;
63 uint16_t Lcid = 0;
64 #endif
66 #ifndef NO_SOCKETS
67 SOCKET *SocketList;
68 int numsockets = 0;
70 #if !defined(NO_LIMIT) && !__minix__
71 #ifndef _WIN32 // Posix
72 sem_t *Semaphore;
73 #else // _WIN32
74 HANDLE Semaphore;
75 #endif // _WIN32
77 #endif // !defined(NO_LIMIT) && !__minix__
78 #endif // NO_SOCKETS
80 #ifdef _NTSERVICE
81 int_fast8_t IsNTService = TRUE;
82 int_fast8_t ServiceShutdown = FALSE;
83 #endif // _NTSERVICE
85 #ifndef NO_LOG
86 #ifdef USE_THREADS
87 #if !defined(_WIN32) && !defined(__CYGWIN__)
88 pthread_mutex_t logmutex = PTHREAD_MUTEX_INITIALIZER;
89 #else
90 CRITICAL_SECTION logmutex;
91 #endif // !defined(_WIN32) && !defined(__CYGWIN__)
92 #endif // USE_THREADS
93 #endif // NO_LOG