3c4a1cb5105918361206014082b38a44ab807f3a
2 * Author......: Jens Steube <jens.steube@gmail.com>
11 #define _FILE_OFFSET_BITS 64
12 #define _CRT_SECURE_NO_WARNINGS
28 #include <sys/types.h>
34 #include <semaphore.h>
44 #include <sys/ioctl.h>
51 #define WIN32_LEAN_AND_MEAN
60 typedef UINT8
uint8_t;
61 typedef UINT16
uint16_t;
62 typedef UINT32
uint32_t;
63 typedef UINT64
uint64_t;
65 typedef INT16
int16_t;
66 typedef INT32
int32_t;
67 typedef INT64
int64_t;
70 typedef UINT64
uint64_t;
72 typedef HINSTANCE HM_LIB
;
74 #define mkdir(name,mode) mkdir (name)
78 #define SPEED_CACHE 128
79 #define SPEED_MAXAGE 4096
88 void log_out_nn (FILE *fp
, const char *fmt
, ...);
89 void log_info_nn (const char *fmt
, ...);
90 void log_error_nn (const char *fmt
, ...);
92 void log_out (FILE *fp
, const char *fmt
, ...);
93 void log_info (const char *fmt
, ...);
94 void log_error (const char *fmt
, ...);
96 typedef int bool; // this is ugly but ADL requires the bool datatype
98 typedef uint32_t uint
; // we should rename to u32, sooner or later, for consistency