00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef APR_H
00019 #define APR_H
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059 #if !defined(__GNUC__) || __GNUC__ < 2 || \
00060 (__GNUC__ == 2 && __GNUC_MINOR__ < 7) ||\
00061 defined(NEXT)
00062 #ifndef __attribute__
00063 #define __attribute__(__x)
00064 #endif
00065 #define APR_INLINE
00066 #define APR_HAS_INLINE 0
00067 #else
00068 #define APR_INLINE __inline__
00069 #define APR_HAS_INLINE 1
00070 #endif
00071
00072 #define APR_HAVE_ARPA_INET_H 1
00073 #define APR_HAVE_CONIO_H 0
00074 #define APR_HAVE_CRYPT_H 1
00075 #define APR_HAVE_CTYPE_H 1
00076 #define APR_HAVE_DIRENT_H 1
00077 #define APR_HAVE_ERRNO_H 1
00078 #define APR_HAVE_FCNTL_H 1
00079 #define APR_HAVE_IO_H 0
00080 #define APR_HAVE_LIMITS_H 1
00081 #define APR_HAVE_NETDB_H 1
00082 #define APR_HAVE_NETINET_IN_H 1
00083 #define APR_HAVE_NETINET_SCTP_H 0
00084 #define APR_HAVE_NETINET_SCTP_UIO_H 0
00085 #define APR_HAVE_NETINET_TCP_H 1
00086 #define APR_HAVE_PTHREAD_H 1
00087 #define APR_HAVE_SEMAPHORE_H 1
00088 #define APR_HAVE_SIGNAL_H 1
00089 #define APR_HAVE_STDARG_H 1
00090 #define APR_HAVE_STDINT_H 1
00091 #define APR_HAVE_STDIO_H 1
00092 #define APR_HAVE_STDLIB_H 1
00093 #define APR_HAVE_STRING_H 1
00094 #define APR_HAVE_STRINGS_H 1
00095 #define APR_HAVE_SYS_IOCTL_H 1
00096 #define APR_HAVE_SYS_SENDFILE_H 1
00097 #define APR_HAVE_SYS_SIGNAL_H 1
00098 #define APR_HAVE_SYS_SOCKET_H 1
00099 #define APR_HAVE_SYS_SOCKIO_H 0
00100 #define APR_HAVE_SYS_SYSLIMITS_H 0
00101 #define APR_HAVE_SYS_TIME_H 1
00102 #define APR_HAVE_SYS_TYPES_H 1
00103 #define APR_HAVE_SYS_UIO_H 1
00104 #define APR_HAVE_SYS_UN_H 1
00105 #define APR_HAVE_SYS_WAIT_H 1
00106 #define APR_HAVE_TIME_H 1
00107 #define APR_HAVE_UNISTD_H 1
00108 #define APR_HAVE_WINDOWS_H 0
00109 #define APR_HAVE_WINSOCK2_H 0
00110
00111
00112
00113
00114
00115
00116
00117
00118 #if APR_HAVE_WINDOWS_H
00119 #include <windows.h>
00120 #endif
00121
00122 #if APR_HAVE_WINSOCK2_H
00123 #include <winsock2.h>
00124 #endif
00125
00126 #if APR_HAVE_SYS_TYPES_H
00127 #include <sys/types.h>
00128 #endif
00129
00130 #if APR_HAVE_SYS_SOCKET_H
00131 #include <sys/socket.h>
00132 #endif
00133
00134 #if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS)
00135
00136
00137 #define __STDC_CONSTANT_MACROS
00138 #endif
00139
00140 #if APR_HAVE_STDINT_H
00141 #include <stdint.h>
00142 #endif
00143
00144 #if APR_HAVE_SYS_WAIT_H
00145 #include <sys/wait.h>
00146 #endif
00147
00148 #ifdef OS2
00149 #define INCL_DOS
00150 #define INCL_DOSERRORS
00151 #include <os2.h>
00152 #endif
00153
00154
00155 #if APR_HAVE_LIMITS_H
00156 #include <limits.h>
00157 #else
00158 #if APR_HAVE_SYS_SYSLIMITS_H
00159 #include <sys/syslimits.h>
00160 #endif
00161 #endif
00162
00163
00164 #ifdef __cplusplus
00165 extern "C" {
00166 #endif
00167
00168
00169
00170
00171
00172
00173
00174 #define APR_HAVE_SHMEM_MMAP_TMP 1
00175 #define APR_HAVE_SHMEM_MMAP_SHM 1
00176 #define APR_HAVE_SHMEM_MMAP_ZERO 1
00177 #define APR_HAVE_SHMEM_SHMGET_ANON 1
00178 #define APR_HAVE_SHMEM_SHMGET 1
00179 #define APR_HAVE_SHMEM_MMAP_ANON 1
00180 #define APR_HAVE_SHMEM_BEOS 0
00181
00182 #define APR_USE_SHMEM_MMAP_TMP 0
00183 #define APR_USE_SHMEM_MMAP_SHM 0
00184 #define APR_USE_SHMEM_MMAP_ZERO 0
00185 #define APR_USE_SHMEM_SHMGET_ANON 0
00186 #define APR_USE_SHMEM_SHMGET 1
00187 #define APR_USE_SHMEM_MMAP_ANON 1
00188 #define APR_USE_SHMEM_BEOS 0
00189
00190 #define APR_USE_FLOCK_SERIALIZE 0
00191 #define APR_USE_SYSVSEM_SERIALIZE 1
00192 #define APR_USE_POSIXSEM_SERIALIZE 0
00193 #define APR_USE_FCNTL_SERIALIZE 0
00194 #define APR_USE_PROC_PTHREAD_SERIALIZE 0
00195 #define APR_USE_PTHREAD_SERIALIZE 1
00196
00197 #define APR_HAS_FLOCK_SERIALIZE 1
00198 #define APR_HAS_SYSVSEM_SERIALIZE 1
00199 #define APR_HAS_POSIXSEM_SERIALIZE 1
00200 #define APR_HAS_FCNTL_SERIALIZE 1
00201 #define APR_HAS_PROC_PTHREAD_SERIALIZE 1
00202
00203 #define APR_PROCESS_LOCK_IS_GLOBAL 0
00204
00205 #define APR_HAVE_CORKABLE_TCP 1
00206 #define APR_HAVE_GETRLIMIT 1
00207 #define APR_HAVE_IN_ADDR 1
00208 #define APR_HAVE_INET_ADDR 1
00209 #define APR_HAVE_INET_NETWORK 1
00210 #define APR_HAVE_IPV6 1
00211 #define APR_HAVE_SOCKADDR_UN 1
00212 #define APR_HAVE_MEMMOVE 1
00213 #define APR_HAVE_SETRLIMIT 1
00214 #define APR_HAVE_SIGACTION 1
00215 #define APR_HAVE_SIGSUSPEND 1
00216 #define APR_HAVE_SIGWAIT 1
00217 #define APR_HAVE_SA_STORAGE 1
00218 #define APR_HAVE_STRCASECMP 1
00219 #define APR_HAVE_STRDUP 1
00220 #define APR_HAVE_STRICMP 0
00221 #define APR_HAVE_STRNCASECMP 1
00222 #define APR_HAVE_STRNICMP 0
00223 #define APR_HAVE_STRSTR 1
00224 #define APR_HAVE_MEMCHR 1
00225 #define APR_HAVE_STRUCT_RLIMIT 1
00226 #define APR_HAVE_UNION_SEMUN 0
00227 #define APR_HAVE_SCTP 0
00228 #define APR_HAVE_IOVEC 1
00229
00230
00231 #define APR_HAS_SHARED_MEMORY 1
00232 #define APR_HAS_THREADS 1
00233 #define APR_HAS_SENDFILE 1
00234 #define APR_HAS_MMAP 1
00235 #define APR_HAS_FORK 1
00236 #define APR_HAS_RANDOM 1
00237 #define APR_HAS_OTHER_CHILD 1
00238 #define APR_HAS_DSO 1
00239 #define APR_HAS_SO_ACCEPTFILTER 0
00240 #define APR_HAS_UNICODE_FS 0
00241 #define APR_HAS_PROC_INVOKED 0
00242 #define APR_HAS_USER 1
00243 #define APR_HAS_LARGE_FILES 1
00244 #define APR_HAS_XTHREAD_FILES 0
00245 #define APR_HAS_OS_UUID 1
00246
00247 #define APR_PROCATTR_USER_SET_REQUIRES_PASSWORD 0
00248
00249
00250
00251
00252 #define APR_FILES_AS_SOCKETS 1
00253
00254
00255
00256 #define APR_CHARSET_EBCDIC 0
00257
00258
00259
00260
00261 #define APR_TCP_NOPUSH_FLAG TCP_CORK
00262
00263
00264
00265 #define APR_TCP_NODELAY_INHERITED 1
00266
00267
00268
00269 #define APR_O_NONBLOCK_INHERITED 0
00270
00271
00272
00273 typedef unsigned char apr_byte_t;
00274
00275 typedef short apr_int16_t;
00276 typedef unsigned short apr_uint16_t;
00277
00278 typedef int apr_int32_t;
00279 typedef unsigned int apr_uint32_t;
00280
00281 typedef long long apr_int64_t;
00282 typedef unsigned long long apr_uint64_t;
00283
00284 typedef size_t apr_size_t;
00285 typedef ssize_t apr_ssize_t;
00286 typedef off64_t apr_off_t;
00287 typedef socklen_t apr_socklen_t;
00288 typedef unsigned long apr_ino_t;
00289
00290 #define APR_SIZEOF_VOIDP 4
00291
00292 #if APR_SIZEOF_VOIDP == 8
00293 typedef apr_uint64_t apr_uintptr_t;
00294 #else
00295 typedef apr_uint32_t apr_uintptr_t;
00296 #endif
00297
00298
00299 #define APR_IS_BIGENDIAN 0
00300
00301
00302 #define APR_INT64_C(val) INT64_C(val)
00303 #define APR_UINT64_C(val) UINT64_C(val)
00304
00305 #ifdef INT16_MIN
00306 #define APR_INT16_MIN INT16_MIN
00307 #else
00308 #define APR_INT16_MIN (-0x7fff - 1)
00309 #endif
00310
00311 #ifdef INT16_MAX
00312 #define APR_INT16_MAX INT16_MAX
00313 #else
00314 #define APR_INT16_MAX (0x7fff)
00315 #endif
00316
00317 #ifdef UINT16_MAX
00318 #define APR_UINT16_MAX UINT16_MAX
00319 #else
00320 #define APR_UINT16_MAX (0xffff)
00321 #endif
00322
00323 #ifdef INT32_MIN
00324 #define APR_INT32_MIN INT32_MIN
00325 #else
00326 #define APR_INT32_MIN (-0x7fffffff - 1)
00327 #endif
00328
00329 #ifdef INT32_MAX
00330 #define APR_INT32_MAX INT32_MAX
00331 #else
00332 #define APR_INT32_MAX 0x7fffffff
00333 #endif
00334
00335 #ifdef UINT32_MAX
00336 #define APR_UINT32_MAX UINT32_MAX
00337 #else
00338 #define APR_UINT32_MAX (0xffffffffU)
00339 #endif
00340
00341 #ifdef INT64_MIN
00342 #define APR_INT64_MIN INT64_MIN
00343 #else
00344 #define APR_INT64_MIN (APR_INT64_C(-0x7fffffffffffffff) - 1)
00345 #endif
00346
00347 #ifdef INT64_MAX
00348 #define APR_INT64_MAX INT64_MAX
00349 #else
00350 #define APR_INT64_MAX APR_INT64_C(0x7fffffffffffffff)
00351 #endif
00352
00353 #ifdef UINT64_MAX
00354 #define APR_UINT64_MAX UINT64_MAX
00355 #else
00356 #define APR_UINT64_MAX APR_UINT64_C(0xffffffffffffffff)
00357 #endif
00358
00359 #define APR_SIZE_MAX (~((apr_size_t)0))
00360
00361
00362
00363
00364
00365
00366
00367 #ifdef __cplusplus
00368 #define APR_BEGIN_DECLS extern "C" {
00369 #define APR_END_DECLS }
00370 #else
00371 #define APR_BEGIN_DECLS
00372 #define APR_END_DECLS
00373 #endif
00374
00375
00376
00377
00378
00379
00380
00381
00382
00383
00384 #define APR_THREAD_FUNC
00385
00386
00387
00388
00389
00390
00391
00392
00393
00394
00395
00396
00397
00398
00399
00400
00401
00402
00403
00404
00405
00406
00407 #define APR_DECLARE(type) type
00408
00409
00410
00411
00412
00413
00414
00415
00416
00417
00418
00419
00420 #define APR_DECLARE_NONSTD(type) type
00421
00422
00423
00424
00425
00426
00427
00428
00429
00430
00431
00432
00433
00434
00435
00436 #define APR_DECLARE_DATA
00437
00438
00439
00440
00441
00442
00443
00444
00445
00446 #define APR_SSIZE_T_FMT "d"
00447
00448
00449 #define APR_SIZE_T_FMT "u"
00450
00451
00452 #define APR_OFF_T_FMT APR_INT64_T_FMT
00453
00454
00455 #define APR_PID_T_FMT "d"
00456
00457
00458 #define APR_INT64_T_FMT "lld"
00459
00460
00461 #define APR_UINT64_T_FMT "llu"
00462
00463
00464 #define APR_UINT64_T_HEX_FMT "llx"
00465
00466
00467 #define APR_PROC_MUTEX_IS_GLOBAL 0
00468
00469
00470 #define APR_EOL_STR "\n"
00471
00472 #if APR_HAVE_SYS_WAIT_H
00473 #ifdef WEXITSTATUS
00474 #define apr_wait_t int
00475 #else
00476 #define apr_wait_t union wait
00477 #define WEXITSTATUS(status) (int)((status).w_retcode)
00478 #define WTERMSIG(status) (int)((status).w_termsig)
00479 #endif
00480 #elif defined(__MINGW32__)
00481 typedef int apr_wait_t;
00482 #endif
00483
00484 #if defined(PATH_MAX)
00485 #define APR_PATH_MAX PATH_MAX
00486 #elif defined(_POSIX_PATH_MAX)
00487 #define APR_PATH_MAX _POSIX_PATH_MAX
00488 #else
00489 #error no decision has been made on APR_PATH_MAX for your platform
00490 #endif
00491
00492 #define APR_DSOPATH "LD_LIBRARY_PATH"
00493
00494
00495
00496
00497
00498
00499
00500
00501 #ifdef __MINGW32__
00502 #ifndef __GNUC__
00503 typedef int pid_t;
00504 #endif
00505 typedef int uid_t;
00506 typedef int gid_t;
00507 #endif
00508
00509 #ifdef __cplusplus
00510 }
00511 #endif
00512
00513 #endif