2 * Copyright (c) 1994, 1995. Netscape Communications Corporation. All
5 * Use of this software is governed by the terms of the license agreement for
6 * the Netscape Communications or Netscape Comemrce Server between the
11 /* ------------------------------------------------------------------------ */
15 * systems.h: Lists of defines for systems
17 * This sets what general flavor the system is (UNIX, etc.),
18 * and defines what extra functions your particular system needs.
29 #define DAEMON_LISTEN_SIZE 128
34 /* Linux is not currently supported */
39 #undef DAEMON_UNIX_FORK
40 #undef DAEMON_UNIX_POOL
41 #define DAEMON_UNIX_MOBRULE
46 #define FILE_UNIX_MMAP
47 #define FILE_MMAP_FLAGS (MAP_FILE | MAP_PRIVATE)
50 #undef NEED_CRYPT_PROTO
55 #define ZERO(ptr,len) memset(ptr,0,len)
60 #define DAEMON_UNIX_MOBRULE
64 #define FILE_UNIX_MMAP
65 #define FILE_MMAP_FLAGS (MAP_FILE | MAP_PRIVATE)
69 #undef NEED_CRYPT_PROTO
73 #define ZERO(ptr,len) memset(ptr,0,len)
84 #define DAEMON_UNIX_MOBRULE
86 #define FILE_UNIX_MMAP
87 #define FILE_MMAP_FLAGS MAP_PRIVATE
89 #define NEED_CRYPT_PROTO
92 #define ZERO(ptr,len) memset(ptr,0,len)
104 #define DAEMON_UNIX_MOBRULE
105 #define DAEMON_NEEDS_SEMAPHORE
107 #define FILE_UNIX_MMAP
108 #define FILE_MMAP_FLAGS MAP_PRIVATE
111 #define ZERO(ptr,len) memset(ptr,0,len)
115 #else /* Windows NT */
120 typedef void* PASSWD
;
127 #define ZERO(ptr, len) ZeroMemory(ptr, len)
131 #define NO_NODELOCK /* aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaagh */
133 /* The stat call under NT doesn't define these macros */
134 #define S_ISDIR(mode) ((mode&S_IFMT) == S_IFDIR)
135 #define S_ISREG(mode) ((mode&S_IFMT) == S_IFREG)
137 #define strcasecmp util_strcasecmp
138 #define strncasecmp util_strncasecmp
139 int util_strcasecmp(const char *s1
, const char *s2
);
140 int util_strncasecmp(const char *s1
, const char *s2
, int n
);
141 #endif /* Windows NT */