bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / srclib / apr / include / apr.hnw
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements.  See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License.  You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17
18 #ifndef APR_H
19 #define APR_H
20
21 /* GENERATED FILE WARNING!  DO NOT EDIT apr.h
22  *
23  * You must modify apr.hnw instead.
24  *
25  * And please, make an effort to stub apr.hw and apr.h.in in the process.
26  *
27  * This is the NetWare specific version of apr.h.  It is copied from
28  * apr.hnw at the start of a NetWare build by prebuildNW.bat. 
29  */
30
31 /**
32  * @file apr.h
33  * @brief APR Platform Definitions
34  * @remark This is a generated header generated from include/apr.h.in by
35  * ./configure, or copied from include/apr.hw or include/apr.hnw 
36  * for Win32 or Netware by those build environments, respectively.
37  */
38
39 #if defined(NETWARE) || defined(DOXYGEN)
40
41 #define FD_SETSIZE 1024
42
43 #include <sys/types.h>
44 #include <stddef.h>
45 #include <stdio.h>
46 #include <time.h>
47 #include <stdint.h>
48 #include <stdlib.h>
49 #include <string.h>
50 #include <limits.h>
51 #include <nks/thread.h>
52 #include <nks/synch.h>
53 #include <nks/time.h>
54 #include <signal.h>
55 #include <novsock2.h>
56 #include <sys/types.h>
57
58 #ifdef NW_BUILD_IPV6
59 #include <novtcpip.h>
60 #endif
61
62 #define _POSIX_THREAD_SAFE_FUNCTIONS    1
63 #define READDIR_IS_THREAD_SAFE          1
64
65 /* Keep #include'd headers from within the __cplusplus or doxyblocks */
66
67 #ifdef __cplusplus
68 extern "C" {
69 #endif
70
71 /**
72  * @defgroup apr_platform Platform Definitions
73  * @ingroup APR 
74  * @{
75  */
76
77 #define APR_INLINE 
78 #define APR_HAS_INLINE          0
79 #ifndef __attribute__
80 #define __attribute__(__x)
81 #endif
82 #define ENUM_BITFIELD(e,n,w)  signed int n : w
83
84 #define APR_HAVE_ARPA_INET_H    0
85 #define APR_HAVE_CONIO_H        0
86 #define APR_HAVE_CRYPT_H        0
87 #define APR_HAVE_CTYPE_H        1
88 #define APR_HAVE_DIRENT_H       1
89 #define APR_HAVE_ERRNO_H        1
90 #define APR_HAVE_FCNTL_H        1
91 #define APR_HAVE_IO_H           0
92 #define APR_HAVE_LIMITS_H       1
93 #define APR_HAVE_NETDB_H        0
94 #define APR_HAVE_NETINET_IN_H   0
95 #define APR_HAVE_NETINET_SCTP_H 0
96 #define APR_HAVE_NETINET_SCTP_UIO_H 0
97 #define APR_HAVE_NETINET_TCP_H  0
98 #define APR_HAVE_PTHREAD_H      0
99 #define APR_HAVE_SIGNAL_H       1
100 #define APR_HAVE_STDARG_H       1
101 #define APR_HAVE_STDINT_H       0
102 #define APR_HAVE_STDIO_H        1
103 #define APR_HAVE_STDLIB_H       1
104 #define APR_HAVE_STRING_H       1
105 #define APR_HAVE_STRINGS_H      0
106 #define APR_HAVE_STRTOLL        1
107 #define APR_HAVE_SYS_SENDFILE_H 0
108 #define APR_HAVE_SYS_SIGNAL_H   0
109 #define APR_HAVE_SYS_SOCKET_H   0
110 #define APR_HAVE_SYS_SOCKIO_H   0
111 #define APR_HAVE_SYS_SYSLIMITS_H 0
112 #define APR_HAVE_SYS_TIME_H     0
113 #define APR_HAVE_SYS_TYPES_H    1
114 #define APR_HAVE_SYS_UIO_H      1
115 #define APR_HAVE_SYS_UN_H       0
116 #define APR_HAVE_SYS_WAIT_H     0
117 #define APR_HAVE_TIME_H         1
118 #define APR_HAVE_UNISTD_H       1
119
120 #define APR_HAVE_SHMEM_MMAP_TMP     0
121 #define APR_HAVE_SHMEM_MMAP_SHM     0
122 #define APR_HAVE_SHMEM_MMAP_ZERO    0
123 #define APR_HAVE_SHMEM_SHMGET_ANON  0
124 #define APR_HAVE_SHMEM_SHMGET       0
125 #define APR_HAVE_SHMEM_MMAP_ANON    0
126 #define APR_HAVE_SHMEM_BEOS         0
127
128 #define APR_USE_SHMEM_MMAP_TMP     0
129 #define APR_USE_SHMEM_MMAP_SHM     0
130 #define APR_USE_SHMEM_MMAP_ZERO    0
131 #define APR_USE_SHMEM_SHMGET_ANON  0
132 #define APR_USE_SHMEM_SHMGET       0
133 #define APR_USE_SHMEM_MMAP_ANON    0
134 #define APR_USE_SHMEM_BEOS         0
135
136 #define APR_USE_FLOCK_SERIALIZE           0 
137 #define APR_USE_SYSVSEM_SERIALIZE         0
138 #define APR_USE_FCNTL_SERIALIZE           0
139 #define APR_USE_PROC_PTHREAD_SERIALIZE    0 
140 #define APR_USE_PTHREAD_SERIALIZE         0
141
142 #define APR_HAS_FLOCK_SERIALIZE           0
143 #define APR_HAS_SYSVSEM_SERIALIZE         0
144 #define APR_HAS_FCNTL_SERIALIZE           0
145 #define APR_HAS_PROC_PTHREAD_SERIALIZE    0
146 #define APR_HAS_RWLOCK_SERIALIZE          0 
147
148 #define APR_HAS_LOCK_CREATE_NP            0
149
150 #define APR_PROCESS_LOCK_IS_GLOBAL        1
151
152 #define APR_FILE_BASED_SHM      0
153
154 #define APR_HAVE_CORKABLE_TCP   0
155 #define APR_HAVE_GETRLIMIT      0
156 #define APR_HAVE_ICONV          0
157 #define APR_HAVE_IN_ADDR        1
158 #define APR_HAVE_INET_ADDR      1
159 #define APR_HAVE_INET_NETWORK   0
160 #ifdef NW_BUILD_IPV6
161 #define APR_HAVE_IPV6           1
162 #else
163 #define APR_HAVE_IPV6           0
164 #endif
165 #define APR_HAVE_MEMCHR         1
166 #define APR_HAVE_MEMMOVE        1
167 #define APR_HAVE_SETRLIMIT      0
168 #define APR_HAVE_SIGACTION      0
169 #define APR_HAVE_SIGSUSPEND     0
170 #define APR_HAVE_SIGWAIT        0
171 #define APR_HAVE_STRCASECMP     1
172 #define APR_HAVE_STRDUP         1
173 #define APR_HAVE_STRICMP        1
174 #define APR_HAVE_STRNCASECMP    1
175 #define APR_HAVE_STRNICMP       1
176 #define APR_HAVE_STRSTR         1
177 #define APR_HAVE_STRUCT_RLIMIT  0
178 #define APR_HAVE_UNION_SEMUN    0
179 #define APR_HAVE_SCTP           0
180
181 /*  APR Feature Macros */
182 #define APR_HAS_SHARED_MEMORY     0
183 #define APR_HAS_THREADS           1
184 #define APR_HAS_SENDFILE          0
185 #define APR_HAS_MMAP              0
186 #define APR_HAS_FORK              0
187 #define APR_HAS_RANDOM            1
188 #define APR_HAS_OTHER_CHILD       0
189 #define APR_HAS_DSO               1
190 #define APR_HAS_SO_ACCEPTFILTER   0
191 #define APR_HAS_UNICODE_FS        0
192 #define APR_HAS_PROC_INVOKED      0
193 #define APR_HAS_USER              1
194 #define APR_HAS_LARGE_FILES       0
195 #define APR_HAS_XTHREAD_FILES     0
196 #define APR_HAS_OS_UUID           0
197
198 /* Netware can poll on files/pipes.
199  */
200 #define APR_FILES_AS_SOCKETS      1
201
202 /* Not all platforms have a real INADDR_NONE.  This macro replaces INADDR_NONE
203  * on all platforms.
204  */
205 #define APR_INADDR_NONE           INADDR_NONE
206
207 /* This macro indicates whether or not EBCDIC is the native character set.
208  */
209 #define APR_CHARSET_EBCDIC        0
210
211 /* Is the TCP_NODELAY socket option inherited from listening sockets?
212 */
213 #define APR_TCP_NODELAY_INHERITED 1
214
215 /* Is the O_NONBLOCK flag inherited from listening sockets?
216 */
217 #define APR_O_NONBLOCK_INHERITED  1
218
219 /* Typedefs that APR needs. */
220
221 typedef  unsigned char     apr_byte_t;
222
223 typedef  short             apr_int16_t;
224 typedef  unsigned short    apr_uint16_t;
225                                                
226 typedef  int               apr_int32_t;
227 typedef  unsigned int      apr_uint32_t;
228                                                
229 typedef  long long                 apr_int64_t;
230 typedef  unsigned long long apr_uint64_t;
231
232 typedef  size_t            apr_size_t;
233 typedef  ssize_t           apr_ssize_t;
234 typedef  off_t             apr_off_t;
235 typedef  int               apr_socklen_t;
236
237 typedef apr_uint64_t       apr_ino_t;
238
239 #ifdef UNKNOWN_NETWARE_64BIT_FLAG_NEEDED
240 #define APR_SIZEOF_VOIDP   8
241 #else
242 #define APR_SIZEOF_VOIDP   4
243 #endif
244
245 /* Mechanisms to properly type numeric literals */
246
247 #ifdef __GNUC__
248 #define APR_INT64_C(val) (val)
249 #else
250 #define APR_INT64_C(val) (val##i64)
251 #endif
252
253 /* PROC mutex is a GLOBAL mutex on Netware */
254 #define APR_PROC_MUTEX_IS_GLOBAL      1
255
256 /* Definitions that APR programs need to work properly. */
257
258 /** 
259  * Thread callbacks from APR functions must be declared with APR_THREAD_FUNC, 
260  * so that they follow the platform's calling convention.
261  * @example
262  */
263 /** void* APR_THREAD_FUNC my_thread_entry_fn(apr_thread_t *thd, void *data);
264  */
265 #define APR_THREAD_FUNC
266
267 /**
268  * The public APR functions are declared with APR_DECLARE(), so they may
269  * use the most appropriate calling convention.  Public APR functions with 
270  * variable arguments must use APR_DECLARE_NONSTD().
271  *
272  * @remark Both the declaration and implementations must use the same macro.
273  * @example
274  */
275 /** APR_DECLARE(rettype) apr_func(args)
276  * @see APR_DECLARE_NONSTD @see APR_DECLARE_DATA
277  * @remark Note that when APR compiles the library itself, it passes the 
278  * symbol -DAPR_DECLARE_EXPORT to the compiler on some platforms (e.g. Win32) 
279  * to export public symbols from the dynamic library build.\n
280  * The user must define the APR_DECLARE_STATIC when compiling to target
281  * the static APR library on some platforms (e.g. Win32.)  The public symbols 
282  * are neither exported nor imported when APR_DECLARE_STATIC is defined.\n
283  * By default, compiling an application and including the APR public
284  * headers, without defining APR_DECLARE_STATIC, will prepare the code to be
285  * linked to the dynamic library.
286  */
287 #define APR_DECLARE(type)            type 
288
289 /**
290  * The public APR functions using variable arguments are declared with 
291  * APR_DECLARE_NONSTD(), as they must follow the C language calling convention.
292  * @see APR_DECLARE @see APR_DECLARE_DATA
293  * @remark Both the declaration and implementations must use the same macro.
294  * @example
295  */
296 /** APR_DECLARE_NONSTD(rettype) apr_func(args, ...);
297  */
298 #define APR_DECLARE_NONSTD(type)     type
299
300 /**
301  * The public APR variables are declared with AP_MODULE_DECLARE_DATA.
302  * This assures the appropriate indirection is invoked at compile time.
303  * @see APR_DECLARE @see APR_DECLARE_NONSTD
304  * @remark Note that the declaration and implementations use different forms,
305  * but both must include the macro.
306  * @example
307  */
308 /** extern APR_DECLARE_DATA type apr_variable;\n
309  * APR_DECLARE_DATA type apr_variable = value;
310  */
311 #define APR_DECLARE_DATA
312
313 #define APR_SSIZE_T_FMT          "d"
314
315 #define APR_SIZE_T_FMT           "d"
316
317 #define APR_OFF_T_FMT            "ld"
318
319 #define APR_PID_T_FMT            "d"
320
321 /* Local machine definition for console and log output. */
322 #define APR_EOL_STR              "\r\n"
323
324 typedef int apr_wait_t;
325
326 #define APR_PATH_MAX PATH_MAX
327
328 #define APR_INT64_T_FMT          "lld"
329 #define APR_INT64_T_FMT_LEN      3
330 #define APR_UINT64_T_FMT         "llu"
331 #define APR_UINT64_T_FMT_LEN     3
332 #define APR_UINT64_T_HEX_FMT     "llx"
333 #define APR_UINT64_T_HEX_FMT_LEN (sizeof(APR_UINT64_T_HEX_FMT) - 1)
334 #define APR_TIME_T_FMT APR_INT64_T_FMT
335
336 /* Deal with atoi64 variables ... these should move to apr_private.h */
337 #define APR_HAVE_INT64_STRFN  1
338 #define APR_INT64_STRFN       strtoll
339
340 /** @} */
341
342 #ifdef __cplusplus
343 }
344 #endif
345
346 #endif /* NETWARE */
347
348 #endif /* APR_H */