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