Apache Portable Runtime
apr.h
Go to the documentation of this file.
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.h.in instead.
24  *
25  * And please, make an effort to stub apr.hw and apr.hnw in the process.
26  */
27 
28 /**
29  * @file apr.h
30  * @brief APR Platform Definitions
31  * @remark This is a generated header generated from include/apr.h.in by
32  * ./configure, or copied from include/apr.hw or include/apr.hnw
33  * for Win32 or Netware by those build environments, respectively.
34  */
35 
36 /**
37  * @defgroup APR Apache Portability Runtime library
38  * @{
39  */
40 /**
41  * @defgroup apr_platform Platform Definitions
42  * @{
43  * @warning
44  * <strong><em>The actual values of macros and typedefs on this page<br>
45  * are platform specific and should NOT be relied upon!</em></strong>
46  */
47 
48 /* So that we can use inline on some critical functions, and use
49  * GNUC attributes (such as to get -Wall warnings for printf-like
50  * functions). Only do this in gcc 2.7 or later ... it may work
51  * on earlier stuff, but why chance it.
52  *
53  * We've since discovered that the gcc shipped with NeXT systems
54  * as "cc" is completely broken. It claims to be __GNUC__ and so
55  * on, but it doesn't implement half of the things that __GNUC__
56  * means. In particular it's missing inline and the __attribute__
57  * stuff. So we hack around it. PR#1613. -djg
58  */
59 #if !defined(__GNUC__) || __GNUC__ < 2 || \
60  (__GNUC__ == 2 && __GNUC_MINOR__ < 7) ||\
61  defined(NEXT)
62 #ifndef __attribute__
63 #define __attribute__(__x)
64 #endif
65 #define APR_INLINE
66 #define APR_HAS_INLINE 0
67 #else
68 #define APR_INLINE __inline__
69 #define APR_HAS_INLINE 1
70 #endif
71 
72 #define APR_HAVE_ARPA_INET_H 1
73 #define APR_HAVE_CONIO_H 0
74 #define APR_HAVE_CRYPT_H 1
75 #define APR_HAVE_CTYPE_H 1
76 #define APR_HAVE_DIRENT_H 1
77 #define APR_HAVE_ERRNO_H 1
78 #define APR_HAVE_FCNTL_H 1
79 #define APR_HAVE_IFADDRS_H 1
80 #define APR_HAVE_IO_H 0
81 #define APR_HAVE_LIMITS_H 1
82 #define APR_HAVE_MSWSOCK_H 0
83 #define APR_HAVE_NETDB_H 1
84 #define APR_HAVE_NETINET_IN_H 1
85 #define APR_HAVE_NETINET_SCTP_H 0
86 #define APR_HAVE_NETINET_SCTP_UIO_H 0
87 #define APR_HAVE_NETINET_TCP_H 1
88 #define APR_HAVE_PROCESS_H 0
89 #define APR_HAVE_PTHREAD_H 1
90 #define APR_HAVE_SEMAPHORE_H 1
91 #define APR_HAVE_SIGNAL_H 1
92 #define APR_HAVE_STDARG_H 1
93 #define APR_HAVE_STDDEF_H 1
94 #define APR_HAVE_STDINT_H 1
95 #define APR_HAVE_STDIO_H 1
96 #define APR_HAVE_STDLIB_H 1
97 #define APR_HAVE_STRING_H 1
98 #define APR_HAVE_STRINGS_H 1
99 #define APR_HAVE_SYS_IOCTL_H 1
100 #define APR_HAVE_SYS_SENDFILE_H 1
101 #define APR_HAVE_SYS_SIGNAL_H 1
102 #define APR_HAVE_SYS_SOCKET_H 1
103 #define APR_HAVE_SYS_SOCKIO_H 0
104 #define APR_HAVE_SYS_SYSLIMITS_H 0
105 #define APR_HAVE_SYS_TIME_H 1
106 #define APR_HAVE_SYS_TYPES_H 1
107 #define APR_HAVE_SYS_UIO_H 1
108 #define APR_HAVE_SYS_UN_H 1
109 #define APR_HAVE_SYS_WAIT_H 1
110 #define APR_HAVE_TIME_H 1
111 #define APR_HAVE_UNISTD_H 1
112 #define APR_HAVE_WINDOWS_H 0
113 #define APR_HAVE_WINSOCK2_H 0
114 #define APR_HAVE_WS2TCPIP_H 0
115 
116 /** @} */
117 /** @} */
118 
119 /* We don't include our conditional headers within the doxyblocks
120  * or the extern "C" namespace
121  */
122 
123 #if APR_HAVE_WINDOWS_H && defined(WIN32)
124 /* If windows.h was already included, our preferences don't matter.
125  * If not, include a restricted set of windows headers to our tastes.
126  */
127 #ifndef _WINDOWS_
128 
129 #ifndef WIN32_LEAN_AND_MEAN
130 #define WIN32_LEAN_AND_MEAN
131 #endif
132 
133 #ifndef _WIN32_WINNT
134 #define _WIN32_WINNT 0x0501
135 #endif
136 
137 #ifndef NOUSER
138 #define NOUSER
139 #endif
140 #ifndef NOMCX
141 #define NOMCX
142 #endif
143 #ifndef NOIME
144 #define NOIME
145 #endif
146 
147 /* Impossible to include winsock2.h after winsock.h, while windows.h
148  * attempts to load winsock. Setting _WINSOCKAPI_ will dodge this.
149  */
150 #if APR_HAVE_WINSOCK2_H
151 #define _WINSOCKAPI_
152 #endif
153 
154 #include <windows.h>
155 #endif /* ndef _WINDOWS_ */
156 #endif /* APR_HAVE_WINDOWS_H */
157 
158 #if APR_HAVE_WINSOCK2_H
159 #include <winsock2.h>
160 
161 #if APR_HAVE_WS2TCPIP_H
162 #include <ws2tcpip.h>
163 #endif
164 
165 #if APR_HAVE_MSWSOCK_H
166 #include <mswsock.h>
167 #endif
168 
169 #else /* !APR_HAVE_WINSOCK2_H */
170 
171 #if APR_HAVE_WINSOCK_H
172 #include <winsock.h>
173 #endif
174 
175 #endif /* !APR_HAVE_WINSOCK2_H */
176 
177 #if APR_HAVE_SYS_TYPES_H
178 #include <sys/types.h>
179 #endif
180 
181 #if APR_HAVE_STDDEF_H
182 #include <stddef.h>
183 #endif
184 
185 #if APR_HAVE_SYS_SOCKET_H
186 #include <sys/socket.h>
187 #endif
188 
189 #if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS)
190 /* C99 7.18.4 requires that stdint.h only exposes INT64_C
191  * and UINT64_C for C++ implementations if this is defined: */
192 #define __STDC_CONSTANT_MACROS
193 #endif
194 
195 #if APR_HAVE_STDINT_H
196 #include <stdint.h>
197 #endif
198 
199 #if APR_HAVE_SYS_WAIT_H
200 #include <sys/wait.h>
201 #endif
202 
203 #ifdef OS2
204 #define INCL_DOS
205 #define INCL_DOSERRORS
206 #include <os2.h>
207 #endif
208 
209 /* header files for PATH_MAX, _POSIX_PATH_MAX */
210 #if APR_HAVE_LIMITS_H
211 #include <limits.h>
212 #else
213 #if APR_HAVE_SYS_SYSLIMITS_H
214 #include <sys/syslimits.h>
215 #endif
216 #endif
217 
218 
219 #ifdef __cplusplus
220 extern "C" {
221 #endif
222 
223 /**
224  * @addtogroup apr_platform
225  * @ingroup APR
226  * @{
227  */
228 
229 #define APR_HAVE_SHMEM_MMAP_TMP 1
230 #define APR_HAVE_SHMEM_MMAP_SHM 1
231 #define APR_HAVE_SHMEM_MMAP_ZERO 1
232 #define APR_HAVE_SHMEM_SHMGET_ANON 1
233 #define APR_HAVE_SHMEM_SHMGET 1
234 #define APR_HAVE_SHMEM_MMAP_ANON 1
235 #define APR_HAVE_SHMEM_BEOS 0
236 
237 #define APR_USE_SHMEM_MMAP_TMP 0
238 #define APR_USE_SHMEM_MMAP_SHM 0
239 #define APR_USE_SHMEM_MMAP_ZERO 0
240 #define APR_USE_SHMEM_SHMGET_ANON 0
241 #define APR_USE_SHMEM_SHMGET 1
242 #define APR_USE_SHMEM_MMAP_ANON 1
243 #define APR_USE_SHMEM_BEOS 0
244 
245 #define APR_USE_FLOCK_SERIALIZE 0
246 #define APR_USE_SYSVSEM_SERIALIZE 1
247 #define APR_USE_POSIXSEM_SERIALIZE 0
248 #define APR_USE_FCNTL_SERIALIZE 0
249 #define APR_USE_PROC_PTHREAD_SERIALIZE 0
250 #define APR_USE_PTHREAD_SERIALIZE 1
251 
252 #define APR_HAS_FLOCK_SERIALIZE 1
253 #define APR_HAS_SYSVSEM_SERIALIZE 1
254 #define APR_HAS_POSIXSEM_SERIALIZE 1
255 #define APR_HAS_FCNTL_SERIALIZE 1
256 #define APR_HAS_PROC_PTHREAD_SERIALIZE 1
257 
258 #define APR_PROCESS_LOCK_IS_GLOBAL 0
259 
260 #define APR_HAVE_CORKABLE_TCP 1
261 #define APR_HAVE_GETRLIMIT 1
262 #define APR_HAVE_IN_ADDR 1
263 #define APR_HAVE_INET_ADDR 1
264 #define APR_HAVE_INET_NETWORK 1
265 #define APR_HAVE_IPV6 1
266 #define APR_HAVE_SOCKADDR_UN 1
267 #define APR_HAVE_MEMMOVE 1
268 #define APR_HAVE_SETRLIMIT 1
269 #define APR_HAVE_SIGACTION 1
270 #define APR_HAVE_SIGSUSPEND 1
271 #define APR_HAVE_SIGWAIT 1
272 #define APR_HAVE_SA_STORAGE 1
273 #define APR_HAVE_STRCASECMP 1
274 #define APR_HAVE_STRDUP 1
275 #define APR_HAVE_STRICMP 0
276 #define APR_HAVE_STRNCASECMP 1
277 #define APR_HAVE_STRNICMP 0
278 #define APR_HAVE_STRSTR 1
279 #define APR_HAVE_MEMCHR 1
280 #define APR_HAVE_STRUCT_RLIMIT 1
281 #define APR_HAVE_UNION_SEMUN 0
282 #define APR_HAVE_SCTP 0
283 #define APR_HAVE_IOVEC 1
284 
285 /* APR Feature Macros */
286 #define APR_HAS_SHARED_MEMORY 1
287 #define APR_HAS_THREADS 1
288 #define APR_HAS_SENDFILE 1
289 #define APR_HAS_MMAP 1
290 #define APR_HAS_FORK 1
291 #define APR_HAS_RANDOM 1
292 #define APR_HAS_OTHER_CHILD 1
293 #define APR_HAS_DSO 1
294 #define APR_HAS_SO_ACCEPTFILTER 0
295 #define APR_HAS_UNICODE_FS 0
296 #define APR_HAS_PROC_INVOKED 0
297 #define APR_HAS_USER 1
298 #define APR_HAS_LARGE_FILES 0
299 #define APR_HAS_XTHREAD_FILES 0
300 #define APR_HAS_OS_UUID 1
301 
302 #define APR_PROCATTR_USER_SET_REQUIRES_PASSWORD 0
303 
304 /* APR sets APR_FILES_AS_SOCKETS to 1 on systems where it is possible
305  * to poll on files/pipes.
306  */
307 #define APR_FILES_AS_SOCKETS 1
308 
309 /* This macro indicates whether or not EBCDIC is the native character set.
310  */
311 #define APR_CHARSET_EBCDIC 0
312 
313 /* If we have a TCP implementation that can be "corked", what flag
314  * do we use?
315  */
316 #define APR_TCP_NOPUSH_FLAG TCP_CORK
317 
318 /* Is the TCP_NODELAY socket option inherited from listening sockets?
319 */
320 #define APR_TCP_NODELAY_INHERITED 1
321 
322 /* Is the O_NONBLOCK flag inherited from listening sockets?
323 */
324 #define APR_O_NONBLOCK_INHERITED 0
325 
326 /* Typedefs that APR needs. */
327 
328 typedef unsigned char apr_byte_t;
329 
330 typedef short apr_int16_t;
331 typedef unsigned short apr_uint16_t;
332 
333 typedef int apr_int32_t;
334 typedef unsigned int apr_uint32_t;
335 
336 #define APR_SIZEOF_VOIDP 8
337 
338 /*
339  * Darwin 10's default compiler (gcc42) builds for both 64 and
340  * 32 bit architectures unless specifically told not to.
341  * In those cases, we need to override types depending on how
342  * we're being built at compile time.
343  * NOTE: This is an ugly work-around for Darwin's
344  * concept of universal binaries, a single package
345  * (executable, lib, etc...) which contains both 32
346  * and 64 bit versions. The issue is that if APR is
347  * built universally, if something else is compiled
348  * against it, some bit sizes will depend on whether
349  * it is 32 or 64 bit. This is determined by the __LP64__
350  * flag. Since we need to support both, we have to
351  * handle OS X unqiuely.
352  */
353 #ifdef DARWIN_10
354 #undef APR_SIZEOF_VOIDP
355 #undef INT64_C
356 #undef UINT64_C
357 #ifdef __LP64__
358  typedef long apr_int64_t;
359  typedef unsigned long apr_uint64_t;
360  #define APR_SIZEOF_VOIDP 8
361  #define INT64_C(v) (v ## L)
362  #define UINT64_C(v) (v ## UL)
363 #else
364  typedef long long apr_int64_t;
365  typedef unsigned long long apr_uint64_t;
366  #define APR_SIZEOF_VOIDP 4
367  #define INT64_C(v) (v ## LL)
368  #define UINT64_C(v) (v ## ULL)
369 #endif
370 #else
371  typedef long apr_int64_t;
372  typedef unsigned long apr_uint64_t;
373 #endif
374 
375 typedef size_t apr_size_t;
376 typedef ssize_t apr_ssize_t;
377 typedef off_t apr_off_t;
378 typedef socklen_t apr_socklen_t;
379 typedef ino_t apr_ino_t;
380 
381 #if APR_SIZEOF_VOIDP == 8
382 typedef apr_uint64_t apr_uintptr_t;
383 typedef apr_int64_t apr_intptr_t;
384 #else
385 typedef apr_uint32_t apr_uintptr_t;
386 typedef apr_int32_t apr_intptr_t;
387 #endif
388 
389 /* Are we big endian? */
390 #define APR_IS_BIGENDIAN 0
391 
392 /* Mechanisms to properly type numeric literals */
393 #define APR_INT64_C(val) INT64_C(val)
394 #define APR_UINT64_C(val) UINT64_C(val)
395 
396 #ifdef INT16_MIN
397 #define APR_INT16_MIN INT16_MIN
398 #else
399 #define APR_INT16_MIN (-0x7fff - 1)
400 #endif
401 
402 #ifdef INT16_MAX
403 #define APR_INT16_MAX INT16_MAX
404 #else
405 #define APR_INT16_MAX (0x7fff)
406 #endif
407 
408 #ifdef UINT16_MAX
409 #define APR_UINT16_MAX UINT16_MAX
410 #else
411 #define APR_UINT16_MAX (0xffff)
412 #endif
413 
414 #ifdef INT32_MIN
415 #define APR_INT32_MIN INT32_MIN
416 #else
417 #define APR_INT32_MIN (-0x7fffffff - 1)
418 #endif
419 
420 #ifdef INT32_MAX
421 #define APR_INT32_MAX INT32_MAX
422 #else
423 #define APR_INT32_MAX 0x7fffffff
424 #endif
425 
426 #ifdef UINT32_MAX
427 #define APR_UINT32_MAX UINT32_MAX
428 #else
429 #define APR_UINT32_MAX (0xffffffffU)
430 #endif
431 
432 #ifdef INT64_MIN
433 #define APR_INT64_MIN INT64_MIN
434 #else
435 #define APR_INT64_MIN (APR_INT64_C(-0x7fffffffffffffff) - 1)
436 #endif
437 
438 #ifdef INT64_MAX
439 #define APR_INT64_MAX INT64_MAX
440 #else
441 #define APR_INT64_MAX APR_INT64_C(0x7fffffffffffffff)
442 #endif
443 
444 #ifdef UINT64_MAX
445 #define APR_UINT64_MAX UINT64_MAX
446 #else
447 #define APR_UINT64_MAX APR_UINT64_C(0xffffffffffffffff)
448 #endif
449 
450 #define APR_SIZE_MAX (~((apr_size_t)0))
451 
452 
453 /* Definitions that APR programs need to work properly. */
454 
455 /**
456  * APR public API wrap for C++ compilers.
457  */
458 #ifdef __cplusplus
459 #define APR_BEGIN_DECLS extern "C" {
460 #define APR_END_DECLS }
461 #else
462 #define APR_BEGIN_DECLS
463 #define APR_END_DECLS
464 #endif
465 
466 /**
467  * Thread callbacks from APR functions must be declared with APR_THREAD_FUNC,
468  * so that they follow the platform's calling convention.
469  * <PRE>
470  *
471  * void* APR_THREAD_FUNC my_thread_entry_fn(apr_thread_t *thd, void *data);
472  *
473  * </PRE>
474  */
475 #define APR_THREAD_FUNC
476 
477 #if defined(DOXYGEN) || !defined(WIN32)
478 
479 /**
480  * The public APR functions are declared with APR_DECLARE(), so they may
481  * use the most appropriate calling convention. Public APR functions with
482  * variable arguments must use APR_DECLARE_NONSTD().
483  *
484  * @remark Both the declaration and implementations must use the same macro.
485  *
486  * <PRE>
487  * APR_DECLARE(rettype) apr_func(args)
488  * </PRE>
489  * @see APR_DECLARE_NONSTD @see APR_DECLARE_DATA
490  * @remark Note that when APR compiles the library itself, it passes the
491  * symbol -DAPR_DECLARE_EXPORT to the compiler on some platforms (e.g. Win32)
492  * to export public symbols from the dynamic library build.\n
493  * The user must define the APR_DECLARE_STATIC when compiling to target
494  * the static APR library on some platforms (e.g. Win32.) The public symbols
495  * are neither exported nor imported when APR_DECLARE_STATIC is defined.\n
496  * By default, compiling an application and including the APR public
497  * headers, without defining APR_DECLARE_STATIC, will prepare the code to be
498  * linked to the dynamic library.
499  */
500 #define APR_DECLARE(type) type
501 
502 /**
503  * The public APR functions using variable arguments are declared with
504  * APR_DECLARE_NONSTD(), as they must follow the C language calling convention.
505  * @see APR_DECLARE @see APR_DECLARE_DATA
506  * @remark Both the declaration and implementations must use the same macro.
507  * <PRE>
508  *
509  * APR_DECLARE_NONSTD(rettype) apr_func(args, ...);
510  *
511  * </PRE>
512  */
513 #define APR_DECLARE_NONSTD(type) type
514 
515 /**
516  * The public APR variables are declared with APR_DECLARE_DATA.
517  * This assures the appropriate indirection is invoked at compile time.
518  * @see APR_DECLARE @see APR_DECLARE_NONSTD
519  * @remark Note that the declaration and implementations use different forms,
520  * but both must include the macro.
521  *
522  * <PRE>
523  *
524  * extern APR_DECLARE_DATA type apr_variable;\n
525  * APR_DECLARE_DATA type apr_variable = value;
526  *
527  * </PRE>
528  */
529 #define APR_DECLARE_DATA
530 
531 #elif defined(APR_DECLARE_STATIC)
532 #define APR_DECLARE(type) type __stdcall
533 #define APR_DECLARE_NONSTD(type) type __cdecl
534 #define APR_DECLARE_DATA
535 #elif defined(APR_DECLARE_EXPORT)
536 #define APR_DECLARE(type) __declspec(dllexport) type __stdcall
537 #define APR_DECLARE_NONSTD(type) __declspec(dllexport) type __cdecl
538 #define APR_DECLARE_DATA __declspec(dllexport)
539 #else
540 #define APR_DECLARE(type) __declspec(dllimport) type __stdcall
541 #define APR_DECLARE_NONSTD(type) __declspec(dllimport) type __cdecl
542 #define APR_DECLARE_DATA __declspec(dllimport)
543 #endif
544 
545 #if !defined(WIN32) || defined(APU_MODULE_DECLARE_STATIC)
546 /**
547  * Declare a dso module's exported module structure as APR_MODULE_DECLARE_DATA.
548  *
549  * Unless APR_MODULE_DECLARE_STATIC is defined at compile time, symbols
550  * declared with APR_MODULE_DECLARE_DATA are always exported.
551  * @code
552  * module APR_MODULE_DECLARE_DATA mod_tag
553  * @endcode
554  */
555 #define APR_MODULE_DECLARE_DATA
556 #else
557 #define APR_MODULE_DECLARE_DATA __declspec(dllexport)
558 #endif
559 
560 /**
561  * @deprecated
562  * @see APR_MODULE_DECLARE_DATA
563  */
564 #define APU_MODULE_DECLARE_DATA APR_MODULE_DECLARE_DATA
565 
566 /* Define APR_SSIZE_T_FMT.
567  * If ssize_t is an integer we define it to be "d",
568  * if ssize_t is a long int we define it to be "ld",
569  * if ssize_t is neither we declare an error here.
570  * I looked for a better way to define this here, but couldn't find one, so
571  * to find the logic for this definition search for "ssize_t_fmt" in
572  * configure.in.
573  */
574 
575 #define APR_SSIZE_T_FMT "ld"
576 
577 /* And APR_SIZE_T_FMT */
578 #define APR_SIZE_T_FMT "lu"
579 
580 /* And APR_OFF_T_FMT */
581 #define APR_OFF_T_FMT "ld"
582 
583 /* And APR_PID_T_FMT */
584 #define APR_PID_T_FMT "d"
585 
586 /* And APR_INT64_T_FMT */
587 #define APR_INT64_T_FMT "ld"
588 
589 /* And APR_UINT64_T_FMT */
590 #define APR_UINT64_T_FMT "lu"
591 
592 /* And APR_UINT64_T_HEX_FMT */
593 #define APR_UINT64_T_HEX_FMT "lx"
594 
595 /*
596  * Ensure we work with universal binaries on Darwin
597  */
598 #ifdef DARWIN_10
599 
600 #undef APR_HAS_LARGE_FILES
601 #undef APR_SIZEOF_VOIDP
602 #undef APR_INT64_T_FMT
603 #undef APR_UINT64_T_FMT
604 #undef APR_UINT64_T_HEX_FMT
605 
606 #ifdef __LP64__
607  #define APR_HAS_LARGE_FILES 0
608  #define APR_SIZEOF_VOIDP 8
609  #define APR_INT64_T_FMT "ld"
610  #define APR_UINT64_T_FMT "lu"
611  #define APR_UINT64_T_HEX_FMT "lx"
612 #else
613  #define APR_HAS_LARGE_FILES 1
614  #define APR_SIZEOF_VOIDP 4
615  #define APR_INT64_T_FMT "lld"
616  #define APR_UINT64_T_FMT "llu"
617  #define APR_UINT64_T_HEX_FMT "llx"
618 #endif
619 
620 #undef APR_IS_BIGENDIAN
621 #ifdef __BIG_ENDIAN__
622  #define APR_IS_BIGENDIAN 1
623 #else
624  #define APR_IS_BIGENDIAN 0
625 #endif
626 
627 #undef APR_OFF_T_FMT
628 #define APR_OFF_T_FMT "lld"
629 
630 #endif /* DARWIN_10 */
631 
632 /* Does the proc mutex lock threads too */
633 #ifdef WIN32
634 #define APR_PROC_MUTEX_IS_GLOBAL 1
635 #else
636 #define APR_PROC_MUTEX_IS_GLOBAL 0
637 #endif
638 
639 /* Local machine definition for console and log output. */
640 #define APR_EOL_STR "\n"
641 
642 #if APR_HAVE_SYS_WAIT_H
643 #ifdef WEXITSTATUS
644 #define apr_wait_t int
645 #else
646 #define apr_wait_t union wait
647 #define WEXITSTATUS(status) (int)((status).w_retcode)
648 #define WTERMSIG(status) (int)((status).w_termsig)
649 #endif /* !WEXITSTATUS */
650 #elif defined(__MINGW32__)
651 typedef int apr_wait_t;
652 #endif /* HAVE_SYS_WAIT_H */
653 
654 #if defined(PATH_MAX)
655 #define APR_PATH_MAX PATH_MAX
656 #elif defined(_POSIX_PATH_MAX)
657 #define APR_PATH_MAX _POSIX_PATH_MAX
658 #else
659 #error no decision has been made on APR_PATH_MAX for your platform
660 #endif
661 
662 #define APR_DSOPATH "LD_LIBRARY_PATH"
663 
664 /** @} */
665 
666 /*
667  * we always have SDBM (it's in our codebase)
668  */
669 #define APU_HAVE_SDBM 1
670 #define APU_HAVE_GDBM 0
671 #define APU_HAVE_NDBM 0
672 #define APU_HAVE_DB 0
673 
674 #if APU_HAVE_DB
675 #define APU_HAVE_DB_VERSION 0
676 #endif
677 
678 #define APU_HAVE_PGSQL 1
679 #define APU_HAVE_MYSQL 0
680 #define APU_HAVE_SQLITE3 1
681 #define APU_HAVE_SQLITE2 0
682 #define APU_HAVE_ORACLE 0
683 #define APU_HAVE_ODBC 0
684 
685 #define APU_HAVE_CRYPTO 1
686 #define APU_HAVE_OPENSSL 1
687 #define APU_HAVE_NSS 0
688 #define APU_HAVE_COMMONCRYPTO 0
689 
690 #define APU_HAVE_ICONV 1
691 #define APR_HAS_XLATE (APU_HAVE_ICONV)
692 
693 #define APU_USE_EXPAT 1
694 #define APU_USE_LIBXML2 0
695 
696 /* Definitions that only Win32 programs need to compile properly. */
697 
698 /* XXX These simply don't belong here, perhaps in apr_portable.h
699  * based on some APR_HAVE_PID/GID/UID?
700  */
701 #ifdef WIN32
702 #ifndef __GNUC__
703 typedef int pid_t;
704 #endif
705 typedef int uid_t;
706 typedef int gid_t;
707 #endif
708 
709 #ifdef __cplusplus
710 }
711 #endif
712 
713 #endif /* APR_H */