| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| #ifdef DOS |
| #define PATH_SEP '\\' |
| #else |
|
|
|
|
| #ifdef ATT |
| #define STDLIB_HAS_GETOPT |
| #ifdef SQLSERVER |
| #define WIN32 |
| #else |
| |
| #define SUPPORT_64BITS |
| #define DSS_HUGE long long |
| #define RNG_A 6364136223846793005ull |
| #define RNG_C 1ull |
| #define HUGE_FORMAT "%LLd" |
| #define HUGE_DATE_FORMAT "%02LLd" |
| #endif |
| #endif |
|
|
| #ifdef HP |
| #define _INCLUDE_POSIX_SOURCE |
| #define STDLIB_HAS_GETOPT |
| #define SUPPORT_64BITS |
| #define DSS_HUGE long |
| #define HUGE_COUNT 2 |
| #define HUGE_FORMAT "%ld" |
| #define HUGE_DATE_FORMAT "%02lld" |
| #define RNG_C 1ull |
| #define RNG_A 6364136223846793005ull |
| #endif |
|
|
| #ifdef IBM |
| #define STDLIB_HAS_GETOPT |
| #define SUPPORT_64BITS |
| #define DSS_HUGE long long |
| #define HUGE_FORMAT "%lld" |
| #define HUGE_DATE_FORMAT "%02lld" |
| #define RNG_A 6364136223846793005ull |
| #define RNG_C 1ull |
| #endif |
|
|
| #ifdef LINUX |
| #define STDLIB_HAS_GETOPT |
| #define SUPPORT_64BITS |
| #define DSS_HUGE long long int |
| #define HUGE_FORMAT "%lld" |
| #define HUGE_DATE_FORMAT "%02lld" |
| #define RNG_A 6364136223846793005ull |
| #define RNG_C 1ull |
| #endif |
|
|
| #ifdef SUN |
| #define STDLIB_HAS_GETOPT |
| #define RNG_A 6364136223846793005ull |
| #define RNG_C 1ull |
| #define SUPPORT_64BITS |
| #define DSS_HUGE long long |
| #define HUGE_FORMAT "%lld" |
| #define HUGE_DATE_FORMAT "%02lld" |
| #endif |
|
|
| #ifdef SGI |
| #define STDLIB_HAS_GETOPT |
| #define SUPPORT_64BITS |
| #define DSS_HUGE __int64_t |
| #endif |
|
|
| #if (defined(WIN32)&&!defined(_POSIX_)) |
| #define pid_t int |
| #define SET_HANDLER(proc) signal(SIGINT, proc) |
| #define KILL(pid) \ |
| TerminateProcess(OpenProcess(PROCESS_TERMINATE,FALSE,pid),3) |
| #if (defined (__WATCOMC__)) |
| #define SPAWN() spawnv(P_NOWAIT, spawn_args[0], spawn_args) |
| #define WAIT(res, pid) cwait(res, pid, WAIT_CHILD) |
| #else |
| #define SPAWN() _spawnv(_P_NOWAIT, spawn_args[0], spawn_args) |
| #define WAIT(res, pid) _cwait(res, pid, _WAIT_CHILD) |
| #define getpid _getpid |
| #endif |
| #define SIGS_DEFINED |
| #define PATH_SEP '\\' |
| #define SUPPORT_64BITS |
| #define DSS_HUGE __int64 |
| #define RNG_A 6364136223846793005uI64 |
| #define RNG_C 1uI64 |
| #define HUGE_FORMAT "%I64d" |
| #define HUGE_DATE_FORMAT "%02I64d" |
| |
| |
| |
| #define WIFEXITED(s) ((s & 0xFF) == 0) |
| #define WIFSIGNALED(s) (((unsigned int)((status)-1) & 0xFFFF) < 0xFF) |
| #define WIFSTOPPED(s) (((s) & 0xff) == 0x7f) |
| #define WTERMSIG(s) ((s) & 0x7f) |
| #define WSTOPSIG(s) (((s) & 0xff00) >> 8) |
| |
| #define strdup(x) _strdup(x) |
| #endif |
|
|
| #ifndef SIGS_DEFINED |
| #define KILL(pid) kill(SIGUSR1, pid) |
| #define SET_HANDLER(proc) signal(SIGUSR1, proc) |
| #define SPAWN fork |
| #define WAIT(res, pid) wait(res) |
| #endif |
|
|
| #endif |
|
|
| #ifndef PATH_SEP |
| #define PATH_SEP '/' |
| #endif |
|
|
| #ifndef DSS_HUGE |
| #error Support for a 64-bit datatype is required in this release |
| #endif |
|
|
| #ifndef DOUBLE_CAST |
| #define DOUBLE_CAST (double) |
| #endif |
|
|
|
|