Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / apps / JAWS / clients / WebSTONE / src / nsapi-includes / base / systems.h
blobfbdf805a2cf65700bef4a622209166d5b01b81c9
1 /*
2 * Copyright (c) 1994, 1995. Netscape Communications Corporation. All
3 * rights reserved.
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
7 * parties.
8 */
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.
22 #ifndef SYSTEMS_H
23 #define SYSTEMS_H
25 #include <string.h>
28 #define DAEMON_ANY
29 #define DAEMON_LISTEN_SIZE 128
30 #ifndef MCC_ADMSERV
31 #define DAEMON_STATS
32 #endif
34 /* Linux is not currently supported */
35 #ifdef ACE_LINUX
37 #define FILE_UNIX
38 #undef FILE_STDIO
39 #undef DAEMON_UNIX_FORK
40 #undef DAEMON_UNIX_POOL
41 #define DAEMON_UNIX_MOBRULE
42 #undef DAEMON_STATS
43 #define BSD_FLOCK
44 #define BSD_RLIMIT
45 #define NET_SOCKETS
46 #define FILE_UNIX_MMAP
47 #define FILE_MMAP_FLAGS (MAP_FILE | MAP_PRIVATE)
48 #undef BSD_SIGNALS
50 #undef NEED_CRYPT_PROTO
51 #undef AUTH_DBM
52 #define SEM_FLOCK
55 #define ZERO(ptr,len) memset(ptr,0,len)
57 #elif defined(BSDI)
59 #define FILE_UNIX
60 #define DAEMON_UNIX_MOBRULE
61 #define BSD_FLOCK
62 #define BSD_RLIMIT
63 #define NET_SOCKETS
64 #define FILE_UNIX_MMAP
65 #define FILE_MMAP_FLAGS (MAP_FILE | MAP_PRIVATE)
66 #define BSD_SIGNALS
67 #define BSD_TIME
68 #define BSD_MAIL
69 #undef NEED_CRYPT_PROTO
70 #define AUTH_DBM
71 #define SEM_FLOCK
73 #define ZERO(ptr,len) memset(ptr,0,len)
75 #elif defined(SUNOS4)
77 #define BSD_SIGNALS
78 #define BSD_TIME
79 #define BSD_MAIL
80 #define BSD_FLOCK
81 #define BSD_RLIMIT
82 #define FILE_UNIX
83 #undef FILE_STDIO
84 #define DAEMON_UNIX_MOBRULE
85 #define NET_SOCKETS
86 #define FILE_UNIX_MMAP
87 #define FILE_MMAP_FLAGS MAP_PRIVATE
88 #undef NEED_CRYPT_H
89 #define NEED_CRYPT_PROTO
90 #define AUTH_DBM
91 #define SEM_FLOCK
92 #define ZERO(ptr,len) memset(ptr,0,len)
93 #define DLL_CAPABLE
94 #define DLL_DLOPEN
96 #elif defined(OSF1)
98 #undef BSD_SIGNALS
99 #define BSD_TIME
100 #define BSD_FLOCK
101 #define BSD_RLIMIT
102 #define FILE_UNIX
103 #undef FILE_STDIO
104 #define DAEMON_UNIX_MOBRULE
105 #define DAEMON_NEEDS_SEMAPHORE
106 #define NET_SOCKETS
107 #define FILE_UNIX_MMAP
108 #define FILE_MMAP_FLAGS MAP_PRIVATE
109 #define AUTH_DBM
110 #define SEM_FLOCK
111 #define ZERO(ptr,len) memset(ptr,0,len)
112 #define DLL_CAPABLE
113 #define DLL_DLOPEN
115 #else /* Windows NT */
117 #include <wtypes.h>
118 #include <winbase.h>
120 typedef void* PASSWD;
122 #define FILE_WIN32
123 #define NET_SOCKETS
124 #define NET_WINSOCK
125 #define DAEMON_WIN32
126 #undef AUTH_DBM
127 #define ZERO(ptr, len) ZeroMemory(ptr, len)
128 #define SEM_WIN32
129 #define DLL_CAPABLE
130 #define DLL_WIN32
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 */
143 #endif