fspr.hnw 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  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. #ifndef APR_H
  17. #define APR_H
  18. /* GENERATED FILE WARNING! DO NOT EDIT apr.h
  19. *
  20. * You must modify apr.hnw instead.
  21. *
  22. * And please, make an effort to stub apr.hw and apr.h.in in the process.
  23. *
  24. * This is the NetWare specific version of apr.h. It is copied from
  25. * apr.hnw at the start of a NetWare build by prebuildNW.bat.
  26. */
  27. /**
  28. * @file apr.h
  29. * @brief APR Platform Definitions
  30. * @remark This is a generated header generated from include/apr.h.in by
  31. * ./configure, or copied from include/apr.hw or include/apr.hnw
  32. * for Win32 or Netware by those build environments, respectively.
  33. */
  34. #if defined(NETWARE) || defined(DOXYGEN)
  35. #define FD_SETSIZE 1024
  36. #include <sys/types.h>
  37. #include <stddef.h>
  38. #include <stdio.h>
  39. #include <time.h>
  40. #include <stdint.h>
  41. #include <stdlib.h>
  42. #include <string.h>
  43. #include <limits.h>
  44. #include <nks/thread.h>
  45. #include <nks/synch.h>
  46. #include <nks/time.h>
  47. #include <signal.h>
  48. #ifdef USE_WINSOCK
  49. #include <novsock2.h>
  50. #else
  51. #include <sys/socket.h>
  52. #endif
  53. #include <sys/types.h>
  54. #ifdef NW_BUILD_IPV6
  55. #include <novtcpip.h>
  56. #endif
  57. #define _POSIX_THREAD_SAFE_FUNCTIONS 1
  58. #define READDIR_IS_THREAD_SAFE 1
  59. /* Keep #include'd headers from within the __cplusplus or doxyblocks */
  60. #ifdef __cplusplus
  61. extern "C" {
  62. #endif
  63. /**
  64. * @defgroup fspr_platform Platform Definitions
  65. * @ingroup APR
  66. * @{
  67. */
  68. #define APR_INLINE
  69. #define APR_HAS_INLINE 0
  70. #ifndef __attribute__
  71. #define __attribute__(__x)
  72. #endif
  73. #define ENUM_BITFIELD(e,n,w) signed int n : w
  74. #define APR_HAVE_ARPA_INET_H 0
  75. #define APR_HAVE_CONIO_H 0
  76. #define APR_HAVE_CRYPT_H 0
  77. #define APR_HAVE_CTYPE_H 1
  78. #define APR_HAVE_DIRENT_H 1
  79. #define APR_HAVE_ERRNO_H 1
  80. #define APR_HAVE_FCNTL_H 1
  81. #define APR_HAVE_IO_H 0
  82. #define APR_HAVE_LIMITS_H 1
  83. #ifdef USE_WINSOCK
  84. #define APR_HAVE_ARPA_INET_H 0
  85. #define APR_HAVE_NETDB_H 0
  86. #define APR_HAVE_NETINET_IN_H 0
  87. #else
  88. #define APR_HAVE_ARPA_INET_H 1
  89. #define APR_HAVE_NETDB_H 1
  90. #define APR_HAVE_NETINET_IN_H 1
  91. #endif
  92. #define APR_HAVE_NETINET_SCTP_H 0
  93. #define APR_HAVE_NETINET_SCTP_UIO_H 0
  94. #define APR_HAVE_NETINET_TCP_H 0
  95. #define APR_HAVE_PTHREAD_H 0
  96. #define APR_HAVE_SIGNAL_H 1
  97. #define APR_HAVE_STDARG_H 1
  98. #define APR_HAVE_STDINT_H 0
  99. #define APR_HAVE_STDIO_H 1
  100. #define APR_HAVE_STDLIB_H 1
  101. #define APR_HAVE_STRING_H 1
  102. #define APR_HAVE_STRINGS_H 0
  103. #define APR_HAVE_STRTOLL 1
  104. #define APR_HAVE_SYS_SENDFILE_H 0
  105. #define APR_HAVE_SYS_SYSLIMITS_H 0
  106. #ifdef USE_WINSOCK
  107. #define APR_HAVE_SYS_SOCKET_H 0
  108. #define APR_HAVE_SYS_SOCKIO_H 0
  109. #define APR_HAVE_SYS_TIME_H 0
  110. #else
  111. #define APR_HAVE_SYS_SOCKET_H 1
  112. #define APR_HAVE_SYS_SOCKIO_H 1
  113. #define APR_HAVE_SYS_TIME_H 1
  114. #endif
  115. #define APR_HAVE_SYS_SIGNAL_H 1
  116. #define APR_HAVE_SYS_TYPES_H 1
  117. #define APR_HAVE_SYS_UIO_H 1
  118. #define APR_HAVE_SYS_UN_H 1
  119. #define APR_HAVE_SYS_WAIT_H 1
  120. #define APR_HAVE_TIME_H 1
  121. #define APR_HAVE_UNISTD_H 1
  122. #define APR_HAVE_SHMEM_MMAP_TMP 0
  123. #define APR_HAVE_SHMEM_MMAP_SHM 0
  124. #define APR_HAVE_SHMEM_MMAP_ZERO 0
  125. #define APR_HAVE_SHMEM_SHMGET_ANON 0
  126. #define APR_HAVE_SHMEM_SHMGET 0
  127. #define APR_HAVE_SHMEM_MMAP_ANON 0
  128. #define APR_HAVE_SHMEM_BEOS 0
  129. #define APR_USE_SHMEM_MMAP_TMP 0
  130. #define APR_USE_SHMEM_MMAP_SHM 0
  131. #define APR_USE_SHMEM_MMAP_ZERO 0
  132. #define APR_USE_SHMEM_SHMGET_ANON 0
  133. #define APR_USE_SHMEM_SHMGET 0
  134. #define APR_USE_SHMEM_MMAP_ANON 0
  135. #define APR_USE_SHMEM_BEOS 0
  136. #define APR_USE_FLOCK_SERIALIZE 0
  137. #define APR_USE_SYSVSEM_SERIALIZE 0
  138. #define APR_USE_FCNTL_SERIALIZE 0
  139. #define APR_USE_PROC_PTHREAD_SERIALIZE 0
  140. #define APR_USE_PTHREAD_SERIALIZE 0
  141. #define APR_HAS_FLOCK_SERIALIZE 0
  142. #define APR_HAS_SYSVSEM_SERIALIZE 0
  143. #define APR_HAS_FCNTL_SERIALIZE 0
  144. #define APR_HAS_PROC_PTHREAD_SERIALIZE 0
  145. #define APR_HAS_RWLOCK_SERIALIZE 0
  146. #define APR_HAS_LOCK_CREATE_NP 0
  147. #define APR_PROCESS_LOCK_IS_GLOBAL 1
  148. #define APR_FILE_BASED_SHM 0
  149. #define APR_HAVE_CORKABLE_TCP 0
  150. #define APR_HAVE_GETRLIMIT 0
  151. #define APR_HAVE_ICONV 0
  152. #define APR_HAVE_IN_ADDR 1
  153. #define APR_HAVE_INET_ADDR 1
  154. #define APR_HAVE_INET_NETWORK 0
  155. #ifdef NW_BUILD_IPV6
  156. #define APR_HAVE_IPV6 1
  157. #else
  158. #define APR_HAVE_IPV6 0
  159. #endif
  160. #define APR_HAVE_MEMCHR 1
  161. #define APR_HAVE_MEMMOVE 1
  162. #define APR_HAVE_SETRLIMIT 0
  163. #define APR_HAVE_SIGACTION 0
  164. #define APR_HAVE_SIGSUSPEND 0
  165. #define APR_HAVE_SIGWAIT 0
  166. #define APR_HAVE_STRCASECMP 1
  167. #define APR_HAVE_STRDUP 1
  168. #define APR_HAVE_STRICMP 1
  169. #define APR_HAVE_STRNCASECMP 1
  170. #define APR_HAVE_STRNICMP 1
  171. #define APR_HAVE_STRSTR 1
  172. #define APR_HAVE_STRUCT_RLIMIT 0
  173. #define APR_HAVE_UNION_SEMUN 0
  174. #define APR_HAVE_SCTP 0
  175. /* APR Feature Macros */
  176. #define APR_HAS_SHARED_MEMORY 0
  177. #define APR_HAS_THREADS 1
  178. #define APR_HAS_SENDFILE 0
  179. #define APR_HAS_MMAP 0
  180. #define APR_HAS_FORK 0
  181. #define APR_HAS_RANDOM 1
  182. #define APR_HAS_OTHER_CHILD 0
  183. #define APR_HAS_DSO 1
  184. #define APR_HAS_SO_ACCEPTFILTER 0
  185. #define APR_HAS_UNICODE_FS 0
  186. #define APR_HAS_PROC_INVOKED 0
  187. #define APR_HAS_USER 1
  188. #define APR_HAS_LARGE_FILES 1
  189. #define APR_HAS_XTHREAD_FILES 0
  190. #define APR_HAS_OS_UUID 0
  191. #define APR_PROCATTR_USER_SET_REQUIRES_PASSWORD 0
  192. /* Netware can poll on files/pipes.
  193. */
  194. #define APR_FILES_AS_SOCKETS 1
  195. /* This macro indicates whether or not EBCDIC is the native character set.
  196. */
  197. #define APR_CHARSET_EBCDIC 0
  198. /* Is the TCP_NODELAY socket option inherited from listening sockets?
  199. */
  200. #define APR_TCP_NODELAY_INHERITED 1
  201. /* Is the O_NONBLOCK flag inherited from listening sockets?
  202. */
  203. #define APR_O_NONBLOCK_INHERITED 1
  204. /* Typedefs that APR needs. */
  205. typedef unsigned char fspr_byte_t;
  206. typedef short fspr_int16_t;
  207. typedef unsigned short fspr_uint16_t;
  208. typedef int fspr_int32_t;
  209. typedef unsigned int fspr_uint32_t;
  210. typedef long long fspr_int64_t;
  211. typedef unsigned long long fspr_uint64_t;
  212. typedef size_t fspr_size_t;
  213. typedef ssize_t fspr_ssize_t;
  214. #if APR_HAS_LARGE_FILES
  215. typedef off64_t fspr_off_t;
  216. #else
  217. typedef off_t fspr_off_t;
  218. #endif
  219. #ifdef USE_WINSOCK
  220. typedef int fspr_socklen_t;
  221. #else
  222. typedef size_t fspr_socklen_t;
  223. #endif
  224. /* Are we big endian? */
  225. /* XXX: Fatal assumption on Alpha platforms */
  226. #define APR_IS_BIGENDIAN 0
  227. #ifdef UNKNOWN_NETWARE_64BIT_FLAG_NEEDED
  228. #define APR_SIZEOF_VOIDP 8
  229. #else
  230. #define APR_SIZEOF_VOIDP 4
  231. #endif
  232. /* Mechanisms to properly type numeric literals */
  233. #define APR_INT64_C(val) (val##LL)
  234. #define APR_UINT64_C(val) (val##ULL)
  235. /* PROC mutex is a GLOBAL mutex on Netware */
  236. #define APR_PROC_MUTEX_IS_GLOBAL 1
  237. /* Definitions that APR programs need to work properly. */
  238. /**
  239. * Thread callbacks from APR functions must be declared with APR_THREAD_FUNC,
  240. * so that they follow the platform's calling convention.
  241. * @example
  242. */
  243. /** void* APR_THREAD_FUNC my_thread_entry_fn(fspr_thread_t *thd, void *data);
  244. */
  245. #define APR_THREAD_FUNC
  246. /**
  247. * The public APR functions are declared with APR_DECLARE(), so they may
  248. * use the most appropriate calling convention. Public APR functions with
  249. * variable arguments must use APR_DECLARE_NONSTD().
  250. *
  251. * @remark Both the declaration and implementations must use the same macro.
  252. * @example
  253. */
  254. /** APR_DECLARE(rettype) fspr_func(args)
  255. * @see APR_DECLARE_NONSTD @see APR_DECLARE_DATA
  256. * @remark Note that when APR compiles the library itself, it passes the
  257. * symbol -DAPR_DECLARE_EXPORT to the compiler on some platforms (e.g. Win32)
  258. * to export public symbols from the dynamic library build.\n
  259. * The user must define the APR_DECLARE_STATIC when compiling to target
  260. * the static APR library on some platforms (e.g. Win32.) The public symbols
  261. * are neither exported nor imported when APR_DECLARE_STATIC is defined.\n
  262. * By default, compiling an application and including the APR public
  263. * headers, without defining APR_DECLARE_STATIC, will prepare the code to be
  264. * linked to the dynamic library.
  265. */
  266. #define APR_DECLARE(type) type
  267. /**
  268. * The public APR functions using variable arguments are declared with
  269. * APR_DECLARE_NONSTD(), as they must follow the C language calling convention.
  270. * @see APR_DECLARE @see APR_DECLARE_DATA
  271. * @remark Both the declaration and implementations must use the same macro.
  272. * @example
  273. */
  274. /** APR_DECLARE_NONSTD(rettype) fspr_func(args, ...);
  275. */
  276. #define APR_DECLARE_NONSTD(type) type
  277. /**
  278. * The public APR variables are declared with AP_MODULE_DECLARE_DATA.
  279. * This assures the appropriate indirection is invoked at compile time.
  280. * @see APR_DECLARE @see APR_DECLARE_NONSTD
  281. * @remark Note that the declaration and implementations use different forms,
  282. * but both must include the macro.
  283. * @example
  284. */
  285. /** extern APR_DECLARE_DATA type fspr_variable;\n
  286. * APR_DECLARE_DATA type fspr_variable = value;
  287. */
  288. #define APR_DECLARE_DATA
  289. #define APR_SSIZE_T_FMT "d"
  290. #define APR_SIZE_T_FMT "d"
  291. #if APR_HAS_LARGE_FILES
  292. #define APR_OFF_T_FMT "lld"
  293. #else
  294. #define APR_OFF_T_FMT "ld"
  295. #endif
  296. #define APR_PID_T_FMT "d"
  297. /* Local machine definition for console and log output. */
  298. #define APR_EOL_STR "\r\n"
  299. typedef int fspr_wait_t;
  300. #define APR_PATH_MAX PATH_MAX
  301. #define APR_INT64_T_FMT "lld"
  302. #define APR_UINT64_T_FMT "llu"
  303. #define APR_UINT64_T_HEX_FMT "llx"
  304. #define APR_TIME_T_FMT APR_INT64_T_FMT
  305. /** @} */
  306. #ifdef __cplusplus
  307. }
  308. #endif
  309. #endif /* NETWARE */
  310. #endif /* APR_H */