-
-/*
- * Try and find the correct name to use with getrlimit() for setting the max.
- * number of files allowed to be open by this process.
- */
-int _charybdis_data_version = CHARYBDIS_DV;
-
-extern int ServerRunning, initialVMTop;
-extern struct LocalUser meLocalUser;
-extern char **myargv;
-
-/*
- * get_vm_top - get the operating systems notion of the resident set size
- */
-static unsigned long
-get_vm_top(void)
-{
- /*
- * NOTE: sbrk is not part of the ANSI C library or the POSIX.1 standard
- * however it seems that everyone defines it. Calling sbrk with a 0
- * argument will return a pointer to the top of the process virtual
- * memory without changing the process size, so this call should be
- * reasonably safe (sbrk returns the new value for the top of memory).
- * This code relies on the notion that the address returned will be an
- * offset from 0 (NULL), so the result of sbrk is cast to a size_t and
- * returned. We really shouldn't be using it here but...
- */
- void *vptr = sbrk(0);
- return (unsigned long) vptr;
-}
-
-/*
- * get_maxrss - get the operating systems notion of the resident set size
- */
-unsigned long
-get_maxrss(void)
-{
- return get_vm_top() - initialVMTop;
-}
+#include "sslproc.h"
+
+/* /quote set variables */\r
+struct SetOptions GlobalSetOptions;
+\r
+/* configuration set from ircd.conf */\r
+struct config_file_entry ConfigFileEntry;\r
+/* server info set from ircd.conf */\r
+struct server_info ServerInfo;\r
+/* admin info set from ircd.conf */\r
+struct admin_info AdminInfo;
+
+struct Counter Count;\r
+struct ServerStatistics ServerStats;
+
+int maxconnections;
+struct timeval SystemTime;
+struct Client me; /* That's me */\r
+struct LocalUser meLocalUser; /* That's also part of me */
+
+rb_dlink_list lclient_list = { NULL, NULL, 0 };\r
+rb_dlink_list global_client_list = { NULL, NULL, 0 };\r
+rb_dlink_list global_channel_list = { NULL, NULL, 0 };\r
+\r
+rb_dlink_list unknown_list; /* unknown clients ON this server only */\r
+rb_dlink_list serv_list; /* local servers to this server ONLY */\r
+rb_dlink_list global_serv_list; /* global servers on the network */\r
+rb_dlink_list local_oper_list; /* our opers, duplicated in lclient_list */\r
+rb_dlink_list oper_list; /* network opers */
+
+time_t startup_time;\r
+\r
+int default_server_capabs = CAP_MASK;\r
+\r
+int splitmode;\r
+int splitchecking;\r
+int split_users;\r
+int split_servers;\r
+int eob_count;\r
+\r
+unsigned long initialVMTop = 0; /* top of virtual memory at init */\r
+const char *logFileName = LPATH;\r
+const char *pidFileName = PPATH;
+
+char **myargv;
+int dorehash = 0;\r
+int dorehashbans = 0;\r
+int doremotd = 0;\r
+int kline_queued = 0;\r
+int server_state_foreground = 0;\r
+int opers_see_all_users = 0;\r
+int ssl_ok = 0;\r
+int zlib_ok = 1;\r
+\r
+int testing_conf = 0;\r
+\r
+struct config_channel_entry ConfigChannel;\r
+rb_bh *channel_heap;\r
+rb_bh *ban_heap;\r
+rb_bh *topic_heap;\r
+rb_bh *member_heap;\r
+\r
+rb_bh *client_heap = NULL;\r
+rb_bh *lclient_heap = NULL;\r
+rb_bh *pclient_heap = NULL;\r
+\r
+char current_uid[IDLEN];\r
+\r
+/* patricia */\r
+rb_bh *prefix_heap;\r
+rb_bh *node_heap;\r
+rb_bh *patricia_heap;\r
+\r
+rb_bh *linebuf_heap;\r
+\r
+rb_bh *dnode_heap;