• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

apr.h

Go to the documentation of this file.
00001 /* Licensed to the Apache Software Foundation (ASF) under one or more
00002  * contributor license agreements.  See the NOTICE file distributed with
00003  * this work for additional information regarding copyright ownership.
00004  * The ASF licenses this file to You under the Apache License, Version 2.0
00005  * (the "License"); you may not use this file except in compliance with
00006  * the License.  You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 
00018 #ifndef APR_H
00019 #define APR_H
00020 
00021 /* GENERATED FILE WARNING!  DO NOT EDIT apr.h
00022  *
00023  * You must modify apr.h.in instead.
00024  *
00025  * And please, make an effort to stub apr.hw and apr.hnw in the process.
00026  */
00027 
00028 /**
00029  * @file apr.h
00030  * @brief APR Platform Definitions
00031  * @remark This is a generated header generated from include/apr.h.in by
00032  * ./configure, or copied from include/apr.hw or include/apr.hnw 
00033  * for Win32 or Netware by those build environments, respectively.
00034  */
00035 
00036 #ifndef _GNU_SOURCE
00037 # define _GNU_SOURCE 1
00038 #endif
00039 
00040 /**
00041  * @defgroup APR Apache Portability Runtime library
00042  * @{
00043  */
00044 /**
00045  * @defgroup apr_platform Platform Definitions
00046  * @{
00047  * @warning
00048  * <strong><em>The actual values of macros and typedefs on this page<br>
00049  * are platform specific and should NOT be relied upon!</em></strong>
00050  */
00051 
00052 /* So that we can use inline on some critical functions, and use
00053  * GNUC attributes (such as to get -Wall warnings for printf-like
00054  * functions).  Only do this in gcc 2.7 or later ... it may work
00055  * on earlier stuff, but why chance it.
00056  *
00057  * We've since discovered that the gcc shipped with NeXT systems
00058  * as "cc" is completely broken.  It claims to be __GNUC__ and so
00059  * on, but it doesn't implement half of the things that __GNUC__
00060  * means.  In particular it's missing inline and the __attribute__
00061  * stuff.  So we hack around it.  PR#1613. -djg
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 /* We don't include our conditional headers within the doxyblocks 
00119  * or the extern "C" namespace 
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 /* C99 7.18.4 requires that stdint.h only exposes INT64_C 
00140  * and UINT64_C for C++ implementations if this is defined: */
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 /* header files for PATH_MAX, _POSIX_PATH_MAX */
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  * @addtogroup apr_platform
00174  * @ingroup APR 
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 /* We don't include our conditional headers within the doxyblocks 
00119  * or the extern "C" namespace 
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 /* C99 7.18.4 requires that stdint.h only exposes INT64_C 
00140  * and UINT64_C for C++ implementations if this is defined: */
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 /* header files for PATH_MAX, _POSIX_PATH_MAX */
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  * @addtogroup apr_platform
00174  * @ingroup APR 
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 /* We don't include our conditional headers within the doxyblocks 
00119  * or the extern "C" namespace 
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 /* C99 7.18.4 requires that stdint.h only exposes INT64_C 
00140  * and UINT64_C for C++ implementations if this is defined: */
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 /* header files for PATH_MAX, _POSIX_PATH_MAX */
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  * @addtogroup apr_platform
00174  * @ingroup APR 
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 /* We don't include our conditional headers within the doxyblocks 
00119  * or the extern "C" namespace 
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 /* C99 7.18.4 requires that stdint.h only exposes INT64_C 
00140  * and UINT64_C for C++ implementations if this is defined: */
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 /* header files for PATH_MAX, _POSIX_PATH_MAX */
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  * @addtogroup apr_platform
00174  * @ingroup APR 
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 /* We don't include our conditional headers within the doxyblocks 
00119  * or the extern "C" namespace 
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 /* C99 7.18.4 requires that stdint.h only exposes INT64_C 
00140  * and UINT64_C for C++ implementations if this is defined: */
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 /* header files for PATH_MAX, _POSIX_PATH_MAX */
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  * @addtogroup apr_platform
00174  * @ingroup APR 
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 /* We don't include our conditional headers within the doxyblocks 
00119  * or the extern "C" namespace 
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