Go to the documentation of this file.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 #ifndef _GNU_SOURCE
00037 # define _GNU_SOURCE 1
00038 #endif
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063 #if !defined(__GNUC__) || __GNUC__ < 2 || \
00064 (__GNUC__ == 2 && __GNUC_MINOR__ < 7) ||\
00065 defined(NEXT)
00066 #ifndef __attribute__
00067 #define __attribute__(__x)
00068 #endif
00069 #define APR_INLINE
00070 #define APR_HAS_INLINE 0
00071 #else
00072 #define APR_INLINE __inline__
00073 #define APR_HAS_INLINE 1
00074 #endif
00075
00076 #define APR_HAVE_ARPA_INET_H 1
00077 #define APR_HAVE_CONIO_H 0
00078 #define APR_HAVE_CRYPT_H 1
00079 #define APR_HAVE_CTYPE_H 1
00080 #define APR_HAVE_DIRENT_H 1
00081 #define APR_HAVE_ERRNO_H 1
00082 #define APR_HAVE_FCNTL_H 1
00083 #define APR_HAVE_IO_H 0
00084 #define APR_HAVE_LIMITS_H 1
00085 #define APR_HAVE_NETDB_H 1
00086 #define APR_HAVE_NETINET_IN_H 1
00087 #define APR_HAVE_NETINET_SCTP_H 0
00088 #define APR_HAVE_NETINET_SCTP_UIO_H 0
00089 #define APR_HAVE_NETINET_TCP_H 1
00090 #define APR_HAVE_PTHREAD_H 1
00091 #define APR_HAVE_SEMAPHORE_H 1
00092 #define APR_HAVE_SIGNAL_H 1
00093 #define APR_HAVE_STDARG_H 1
00094 #define APR_HAVE_STDINT_H 1
00095 #define APR_HAVE_STDIO_H 1
00096 #define APR_HAVE_STDLIB_H 1
00097 #define APR_HAVE_STRING_H 1
00098 #define APR_HAVE_STRINGS_H 1
00099 #define APR_HAVE_SYS_IOCTL_H 1
00100 #define APR_HAVE_SYS_SENDFILE_H 1
00101 #define APR_HAVE_SYS_SIGNAL_H 1
00102 #define APR_HAVE_SYS_SOCKET_H 1
00103 #define APR_HAVE_SYS_SOCKIO_H 1
00104 #define APR_HAVE_SYS_SYSLIMITS_H 1
00105 #define APR_HAVE_SYS_TIME_H 1
00106 #define APR_HAVE_SYS_TYPES_H 1
00107 #define APR_HAVE_SYS_UIO_H 1
00108 #define APR_HAVE_SYS_UN_H 1
00109 #define APR_HAVE_SYS_WAIT_H 1
00110 #define APR_HAVE_TIME_H 1
00111 #define APR_HAVE_UNISTD_H 1
00112 #define APR_HAVE_WINDOWS_H 0
00113 #define APR_HAVE_WINSOCK2_H 0
00114
00115
00116
00117
00118
00119
00120
00121
00122 #if APR_HAVE_WINDOWS_H
00123 #include <windows.h>
00124 #endif
00125
00126 #if APR_HAVE_WINSOCK2_H
00127 #include <winsock2.h>
00128 #endif
00129
00130 #if APR_HAVE_SYS_TYPES_H
00131 #include <sys/types.h>
00132 #endif
00133
00134 #if APR_HAVE_SYS_SOCKET_H
00135 #include <sys/socket.h>
00136 #endif
00137
00138 #if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS)
00139
00140
00141 #define __STDC_CONSTANT_MACROS
00142 #endif
00143
00144 #if APR_HAVE_STDINT_H
00145 #include <stdint.h>
00146 #endif
00147
00148 #if APR_HAVE_SYS_WAIT_H
00149 #include <sys/wait.h>
00150 #endif
00151
00152 #ifdef OS2
00153 #define INCL_DOS
00154 #define INCL_DOSERRORS
00155 #include <os2.h>
00156 #endif
00157
00158
00159 #if APR_HAVE_LIMITS_H
00160 #include <limits.h>
00161 #else
00162 #if APR_HAVE_SYS_SYSLIMITS_H
00163 #include <sys/syslimits.h>
00164 #endif
00165 #endif
00166
00167
00168 #ifdef __cplusplus
00169 extern "C" {
00170 #endif
00171
00172
00173
00174
00175
00176
00177
00178 #define APR_HAVE_SHMEM_MMAP_TMP 1
00179 #define APR_HAVE_SHMEM_MMAP_SHM 1
00180 #define APR_HAVE_SHMEM_MMAP_ZERO 1
00181 #define APR_HAVE_SHMEM_SHMGET_ANON 1
00182 #define APR_HAVE_SHMEM_SHMGET 1
00183 #define APR_HAVE_SHMEM_MMAP_ANON 1
00184 #define APR_HAVE_SHMEM_BEOS 0
00185
00186 #define APR_USE_SHMEM_MMAP_TMP 0
00187 #define APR_USE_SHMEM_MMAP_SHM 0
00188 #define APR_USE_SHMEM_MMAP_ZERO 0
00189 #define APR_USE_SHMEM_SHMGET_ANON 0
00190 #define APR_USE_SHMEM_SHMGET 1
00191 #define APR_USE_SHMEM_MMAP_ANON 1
00192 #define APR_USE_SHMEM_BEOS 0
00193
00194 #define APR_USE_FLOCK_SERIALIZEor">#define APR_HAVE_SYS_UN_H 1
00109 #define APR_HAVE_SYS_WAIT_H 1
00110 #define APR_HAVE_TIME_H 1
00111 #define APR_HAVE_UNISTD_H 1
00112 #define APR_HAVE_WINDOWS_H 0
00113 #define APR_HAVE_WINSOCK2_H 0
00114
00115
00116
00117
00118
00119
00120
00121
00122 #if APR_HAVE_WINDOWS_H
00123 #include <windows.h>
00124 #endif
00125
00126 #if APR_HAVE_WINSOCK2_H
00127 #include <winsock2.h>
00128 #endif
00129
00130 #if APR_HAVE_SYS_TYPES_H
00131 #include <sys/types.h>
00132 #endif
00133
00134 #if APR_HAVE_SYS_SOCKET_H
00135 #include <sys/socket.h>
00136 #endif
00137
00138 #if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS)
00139
00140
00141 #define __STDC_CONSTANT_MACROS
00142 #endif
00143
00144 #if APR_HAVE_STDINT_H
00145 #include <stdint.h>
00146 #endif
00147
00148 #if APR_HAVE_SYS_WAIT_H
00149 #include <sys/wait.h>
00150 #endif
00151
00152 #ifdef OS2
00153 #define INCL_DOS
00154 #define INCL_DOSERRORS
00155 #include <os2.h>
00156 #endif
00157
00158
00159 #if APR_HAVE_LIMITS_H
00160 #include <limits.h>
00161 #else
00162 #if APR_HAVE_SYS_SYSLIMITS_H
00163 #include <sys/syslimits.h>
00164 #endif
00165 #endif
00166
00167
00168 #ifdef __cplusplus
00169 extern "C" {
00170 #endif
00171
00172
00173
00174
00175
00176
00177
00178 #define APR_HAVE_SHMEM_MMAP_TMP 1
00179 #define APR_HAVE_SHMEM_MMAP_SHM 1
00180 #define APR_HAVE_SHMEM_MMAP_ZERO 1
00181 #define APR_HAVE_SHMEM_SHMGET_ANON 1
00182 #define APR_HAVE_SHMEM_SHMGET 1
00183 #define APR_HAVE_SHMEM_MMAP_ANON 1
00184 #define APR_HAVE_SHMEM_BEOS 0
00185
00186 #define APR_USE_SHMEM_MMAP_TMP 0
00187 #define APR_USE_SHMEM_MMAP_SHM 0
00188 #define APR_USE_SHMEM_MMAP_ZERO 0
00189 #define APR_USE_SHMEM_SHMGET_ANON 0
00190 #define APR_USE_SHMEM_SHMGET 1
00191 #define APR_USE_SHMEM_MMAP_ANON 1
00192 #define APR_USE_SHMEM_BEOS 0
00193
00194 #define APR_USE_FLOCK_SERIALIZEor">#define APR_HAVE_SYS_UN_H 1
00109 #define APR_HAVE_SYS_WAIT_H 1
00110 #define APR_HAVE_TIME_H 1
00111 #define APR_HAVE_UNISTD_H 1
00112 #define APR_HAVE_WINDOWS_H 0
00113 #define APR_HAVE_WINSOCK2_H 0
00114
00115
00116
00117
00118
00119
00120
00121
00122 #if APR_HAVE_WINDOWS_H
00123 #include <windows.h>
00124 #endif
00125
00126 #if APR_HAVE_WINSOCK2_H
00127 #include <winsock2.h>
00128 #endif
00129
00130 #if APR_HAVE_SYS_TYPES_H
00131 #include <sys/types.h>
00132 #endif
00133
00134 #if APR_HAVE_SYS_SOCKET_H
00135 #include <sys/socket.h>
00136 #endif
00137
00138 #if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS)
00139
00140
00141 #define __STDC_CONSTANT_MACROS
00142 #endif
00143
00144 #if APR_HAVE_STDINT_H
00145 #include <stdint.h>
00146 #endif
00147
00148 #if APR_HAVE_SYS_WAIT_H
00149 #include <sys/wait.h>
00150 #endif
00151
00152 #ifdef OS2
00153 #define INCL_DOS
00154 #define INCL_DOSERRORS
00155 #include <os2.h>
00156 #endif
00157
00158
00159 #if APR_HAVE_LIMITS_H
00160 #include <limits.h>
00161 #else
00162 #if APR_HAVE_SYS_SYSLIMITS_H
00163 #include <sys/syslimits.h>
00164 #endif
00165 #endif
00166
00167
00168 #ifdef __cplusplus
00169 extern "C" {
00170 #endif
00171
00172
00173
00174
00175
00176
00177
00178 #define APR_HAVE_SHMEM_MMAP_TMP 1
00179 #define APR_HAVE_SHMEM_MMAP_SHM 1
00180 #define APR_HAVE_SHMEM_MMAP_ZERO 1
00181 #define APR_HAVE_SHMEM_SHMGET_ANON 1
00182 #define APR_HAVE_SHMEM_SHMGET 1
00183 #define APR_HAVE_SHMEM_MMAP_ANON 1
00184 #define APR_HAVE_SHMEM_BEOS 0
00185
00186 #define APR_USE_SHMEM_MMAP_TMP 0
00187 #define APR_USE_SHMEM_MMAP_SHM 0
00188 #define APR_USE_SHMEM_MMAP_ZERO 0
00189 #define APR_USE_SHMEM_SHMGET_ANON 0
00190 #define APR_USE_SHMEM_SHMGET 1
00191 #define APR_USE_SHMEM_MMAP_ANON 1
00192 #define APR_USE_SHMEM_BEOS 0
00193
00194 #define APR_USE_FLOCK_SERIALIZEor">#define APR_HAVE_SYS_UN_H 1
00109 #define APR_HAVE_SYS_WAIT_H 1
00110 #define APR_HAVE_TIME_H 1
00111 #define APR_HAVE_UNISTD_H 1
00112 #define APR_HAVE_WINDOWS_H 0
00113 #define APR_HAVE_WINSOCK2_H 0
00114
00115
00116
00117
00118
00119
00120
00121
00122 #if APR_HAVE_WINDOWS_H
00123 #include <windows.h>
00124 #endif
00125
00126 #if APR_HAVE_WINSOCK2_H
00127 #include <winsock2.h>
00128 #endif
00129
00130 #if APR_HAVE_SYS_TYPES_H
00131 #include <sys/types.h>
00132 #endif
00133
00134 #if APR_HAVE_SYS_SOCKET_H
00135 #include <sys/socket.h>
00136 #endif
00137
00138 #if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS)
00139
00140
00141 #define __STDC_CONSTANT_MACROS
00142 #endif
00143
00144 #if APR_HAVE_STDINT_H
00145 #include <stdint.h>
00146 #endif
00147
00148 #if APR_HAVE_SYS_WAIT_H
00149 #include <sys/wait.h>
00150 #endif
00151
00152 #ifdef OS2
00153 #define INCL_DOS
00154 #define INCL_DOSERRORS
00155 #include <os2.h>
00156 #endif
00157
00158
00159 #if APR_HAVE_LIMITS_H
00160 #include <limits.h>
00161 #else
00162 #if APR_HAVE_SYS_SYSLIMITS_H
00163 #include <sys/syslimits.h>
00164 #endif
00165 #endif
00166
00167
00168 #ifdef __cplusplus
00169 extern "C" {
00170 #endif
00171
00172
00173
00174
00175
00176
00177
00178 #define APR_HAVE_SHMEM_MMAP_TMP 1
00179 #define APR_HAVE_SHMEM_MMAP_SHM 1
00180 #define APR_HAVE_SHMEM_MMAP_ZERO 1
00181 #define APR_HAVE_SHMEM_SHMGET_ANON 1
00182 #define APR_HAVE_SHMEM_SHMGET 1
00183 #define APR_HAVE_SHMEM_MMAP_ANON 1
00184 #define APR_HAVE_SHMEM_BEOS 0
00185
00186 #define APR_USE_SHMEM_MMAP_TMP 0
00187 #define APR_USE_SHMEM_MMAP_SHM 0
00188 #define APR_USE_SHMEM_MMAP_ZERO 0
00189 #define APR_USE_SHMEM_SHMGET_ANON 0
00190 #define APR_USE_SHMEM_SHMGET 1
00191 #define APR_USE_SHMEM_MMAP_ANON 1
00192 #define APR_USE_SHMEM_BEOS 0
00193
00194 #define APR_USE_FLOCK_SERIALIZEor">#define APR_HAVE_SYS_UN_H 1
00109 #define APR_HAVE_SYS_WAIT_H 1
00110 #define APR_HAVE_TIME_H 1
00111 #define APR_HAVE_UNISTD_H 1
00112 #define APR_HAVE_WINDOWS_H 0
00113 #define APR_HAVE_WINSOCK2_H 0
00114
00115
00116
00117
00118
00119
00120
00121
00122 #if APR_HAVE_WINDOWS_H
00123 #include <windows.h>
00124 #endif
00125
00126 #if APR_HAVE_WINSOCK2_H
00127 #include <winsock2.h>
00128 #endif
00129
00130 #if APR_HAVE_SYS_TYPES_H
00131 #include <sys/types.h>
00132 #endif
00133
00134 #if APR_HAVE_SYS_SOCKET_H
00135 #include <sys/socket.h>
00136 #endif
00137
00138 #if defined(__cplusplus) && !defined(__STDC_CONSTANT_MACROS)
00139
00140
00141 #define __STDC_CONSTANT_MACROS
00142 #endif
00143
00144 #if APR_HAVE_STDINT_H
00145 #include <stdint.h>
00146 #endif
00147
00148 #if APR_HAVE_SYS_WAIT_H
00149 #include <sys/wait.h>
00150 #endif
00151
00152 #ifdef OS2
00153 #define INCL_DOS
00154 #define INCL_DOSERRORS
00155 #include <os2.h>
00156 #endif
00157
00158
00159 #if APR_HAVE_LIMITS_H
00160 #include <limits.h>
00161 #else
00162 #if APR_HAVE_SYS_SYSLIMITS_H
00163 #include <sys/syslimits.h>
00164 #endif
00165 #endif
00166
00167
00168 #ifdef __cplusplus
00169 extern "C" {
00170 #endif
00171
00172
00173
00174
00175
00176
00177
00178 #define APR_HAVE_SHMEM_MMAP_TMP 1
00179 #define APR_HAVE_SHMEM_MMAP_SHM 1
00180 #define APR_HAVE_SHMEM_MMAP_ZERO 1
00181 #define APR_HAVE_SHMEM_SHMGET_ANON 1
00182 #define APR_HAVE_SHMEM_SHMGET 1
00183 #define APR_HAVE_SHMEM_MMAP_ANON 1
00184 #define APR_HAVE_SHMEM_BEOS 0
00185
00186 #define APR_USE_SHMEM_MMAP_TMP 0
00187 #define APR_USE_SHMEM_MMAP_SHM 0
00188 #define APR_USE_SHMEM_MMAP_ZERO 0
00189 #define APR_USE_SHMEM_SHMGET_ANON 0
00190 #define APR_USE_SHMEM_SHMGET 1
00191 #define APR_USE_SHMEM_MMAP_ANON 1
00192 #define APR_USE_SHMEM_BEOS 0
00193
00194 #define APR_USE_FLOCK_SERIALIZEor">#define APR_HAVE_SYS_UN_H 1
00109 #define APR_HAVE_SYS_WAIT_H 1
00110 #define APR_HAVE_TIME_H 1
00111 #define APR_HAVE_UNISTD_H 1
00112 #define APR_HAVE_WINDOWS_H 0
00113 #define APR_HAVE_WINSOCK2_H 0
00114
00115
00116
00117
00118
00119
00120
00121
00122 #if APR_HAVE_WINDOWS_H
00123 #include <windows.h>
00124 #endif
00125
00126 #if APR_HAVE_WINSOCK2_H
00127 #include <winsock2.h>
00128 #endif
00129