22 |
|
* $Id$ |
23 |
|
*/ |
24 |
|
|
25 |
+ |
#define IN_MISC_C |
26 |
|
#include "stdinc.h" |
26 |
– |
#include "s_misc.h" |
27 |
– |
#include "irc_string.h" |
28 |
– |
#include "sprintf_irc.h" |
29 |
– |
#include "memory.h" |
30 |
– |
#include "s_log.h" |
31 |
– |
#include "event.h" |
27 |
|
|
28 |
|
struct timeval SystemTime; |
29 |
|
|
188 |
|
SystemTime.tv_sec = newtime.tv_sec; |
189 |
|
SystemTime.tv_usec = newtime.tv_usec; |
190 |
|
} |
191 |
+ |
|
192 |
+ |
void |
193 |
+ |
libio_init(void) |
194 |
+ |
{ |
195 |
+ |
/* It ain't random, but it ought to be a little harder to guess */ |
196 |
+ |
srand(SystemTime.tv_sec ^ (SystemTime.tv_usec | (getpid() << 20))); |
197 |
+ |
|
198 |
+ |
set_time(); |
199 |
+ |
eventInit(); |
200 |
+ |
fdlist_init(); |
201 |
+ |
init_comm(); |
202 |
+ |
#ifndef NOBALLOC |
203 |
+ |
initBlockHeap(); |
204 |
+ |
#endif |
205 |
+ |
init_dlink_nodes(); |
206 |
+ |
dbuf_init(); |
207 |
+ |
#ifndef _WIN32 |
208 |
+ |
init_resolver(); |
209 |
+ |
#endif |
210 |
+ |
} |