config-os400.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. #ifndef HEADER_CURL_CONFIG_OS400_H
  2. #define HEADER_CURL_CONFIG_OS400_H
  3. /***************************************************************************
  4. * _ _ ____ _
  5. * Project ___| | | | _ \| |
  6. * / __| | | | |_) | |
  7. * | (__| |_| | _ <| |___
  8. * \___|\___/|_| \_\_____|
  9. *
  10. * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
  11. *
  12. * This software is licensed as described in the file COPYING, which
  13. * you should have received as part of this distribution. The terms
  14. * are also available at https://curl.se/docs/copyright.html.
  15. *
  16. * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  17. * copies of the Software, and permit persons to whom the Software is
  18. * furnished to do so, under the terms of the COPYING file.
  19. *
  20. * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  21. * KIND, either express or implied.
  22. *
  23. ***************************************************************************/
  24. /* ================================================================ */
  25. /* Hand crafted config file for OS/400 */
  26. /* ================================================================ */
  27. #pragma enum(int)
  28. #undef PACKAGE
  29. /* Version number of this archive. */
  30. #undef VERSION
  31. /* Define if you have the getpass function. */
  32. #undef HAVE_GETPASS
  33. /* Define cpu-machine-OS */
  34. #define OS "OS/400"
  35. /* OS400 supports a 3-argument ASCII version of gethostbyaddr_r(), but its
  36. * prototype is incompatible with the "standard" one (1st argument is not
  37. * const). However, getaddrinfo() is supported (ASCII version defined as
  38. * a local wrapper in setup-os400.h) in a threadsafe way: we can then
  39. * configure getaddrinfo() as such and get rid of gethostbyname_r() without
  40. * loss of threadsafeness. */
  41. #undef HAVE_GETHOSTBYNAME_R
  42. #undef HAVE_GETHOSTBYNAME_R_3
  43. #undef HAVE_GETHOSTBYNAME_R_5
  44. #undef HAVE_GETHOSTBYNAME_R_6
  45. #define HAVE_GETADDRINFO
  46. #define HAVE_GETADDRINFO_THREADSAFE
  47. /* Define if you need the _REENTRANT define for some functions */
  48. #undef NEED_REENTRANT
  49. /* Define if you have the Kerberos4 libraries (including -ldes) */
  50. #undef HAVE_KRB4
  51. /* Define if you want to enable IPv6 support */
  52. #define ENABLE_IPV6
  53. /* Define if struct sockaddr_in6 has the sin6_scope_id member */
  54. #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
  55. /* Define this to 'int' if ssize_t is not an available typedefed type */
  56. #undef ssize_t
  57. /* Define this as a suitable file to read random data from */
  58. #undef RANDOM_FILE
  59. /* Define this to your Entropy Gathering Daemon socket pathname */
  60. #undef EGD_SOCKET
  61. /* Define to 1 if you have the alarm function. */
  62. #define HAVE_ALARM 1
  63. /* Define if you have the <alloca.h> header file. */
  64. #undef HAVE_ALLOCA_H
  65. /* Define if you have the <arpa/inet.h> header file. */
  66. #define HAVE_ARPA_INET_H
  67. /* Define if you have the `closesocket' function. */
  68. #undef HAVE_CLOSESOCKET
  69. /* Define if you have the <errno.h> header file. */
  70. #define HAVE_ERRNO_H
  71. /* Define if you have the <fcntl.h> header file. */
  72. #define HAVE_FCNTL_H
  73. /* Define if you have the `geteuid' function. */
  74. #define HAVE_GETEUID
  75. /* Define if you have the `gethostname' function. */
  76. #define HAVE_GETHOSTNAME
  77. /* Define if you have the <getopt.h> header file. */
  78. #undef HAVE_GETOPT_H
  79. /* Define if you have the `getpass_r' function. */
  80. #undef HAVE_GETPASS_R
  81. /* Define to 1 if you have the getpeername function. */
  82. #define HAVE_GETPEERNAME 1
  83. /* Define if you have the `getpwuid' function. */
  84. #define HAVE_GETPWUID
  85. /* Define if you have the `getservbyname' function. */
  86. #define HAVE_GETSERVBYNAME
  87. /* Define to 1 if you have the getsockname function. */
  88. #define HAVE_GETSOCKNAME 1
  89. /* Define if you have the `gettimeofday' function. */
  90. #define HAVE_GETTIMEOFDAY
  91. /* Define if you have the `timeval' struct. */
  92. #define HAVE_STRUCT_TIMEVAL
  93. /* Define if you have the `inet_addr' function. */
  94. #define HAVE_INET_ADDR
  95. /* Define if you have the <inttypes.h> header file. */
  96. #define HAVE_INTTYPES_H
  97. /* Define if you have the <io.h> header file. */
  98. #undef HAVE_IO_H
  99. /* Define if you have the `krb_get_our_ip_for_realm' function. */
  100. #undef HAVE_KRB_GET_OUR_IP_FOR_REALM
  101. /* Define if you have the <krb.h> header file. */
  102. #undef HAVE_KRB_H
  103. /* Define if you have the `nsl' library (-lnsl). */
  104. #undef HAVE_LIBNSL
  105. /* Define if you have the `resolv' library (-lresolv). */
  106. #undef HAVE_LIBRESOLV
  107. /* Define if you have the `resolve' library (-lresolve). */
  108. #undef HAVE_LIBRESOLVE
  109. /* Define if you have the `socket' library (-lsocket). */
  110. #undef HAVE_LIBSOCKET
  111. /* Define if you have GSS API. */
  112. #define HAVE_GSSAPI
  113. /* Define if you have the GNU gssapi libraries */
  114. #undef HAVE_GSSGNU
  115. /* Define if you have the Heimdal gssapi libraries */
  116. #define HAVE_GSSHEIMDAL
  117. /* Define if you have the MIT gssapi libraries */
  118. #undef HAVE_GSSMIT
  119. /* Define if you have the `ucb' library (-lucb). */
  120. #undef HAVE_LIBUCB
  121. /* Define if you have the `localtime_r' function. */
  122. #define HAVE_LOCALTIME_R
  123. /* Define if you have the <malloc.h> header file. */
  124. #define HAVE_MALLOC_H
  125. /* Define if you need the malloc.h header file even with stdlib.h */
  126. /* #define NEED_MALLOC_H 1 */
  127. /* Define if you have the <memory.h> header file. */
  128. #undef HAVE_MEMORY_H
  129. /* Define if you have the <netdb.h> header file. */
  130. #define HAVE_NETDB_H
  131. /* Define if you have the <netinet/if_ether.h> header file. */
  132. #undef HAVE_NETINET_IF_ETHER_H
  133. /* Define if you have the <netinet/in.h> header file. */
  134. #define HAVE_NETINET_IN_H
  135. /* Define if you have the <net/if.h> header file. */
  136. #define HAVE_NET_IF_H
  137. /* Define if you have the <openssl/crypto.h> header file. */
  138. #undef HAVE_OPENSSL_CRYPTO_H
  139. /* Define if you have the <openssl/err.h> header file. */
  140. #undef HAVE_OPENSSL_ERR_H
  141. /* Define if you have the <openssl/pem.h> header file. */
  142. #undef HAVE_OPENSSL_PEM_H
  143. /* Define if you have the <openssl/rsa.h> header file. */
  144. #undef HAVE_OPENSSL_RSA_H
  145. /* Define if you have the <openssl/ssl.h> header file. */
  146. #undef HAVE_OPENSSL_SSL_H
  147. /* Define if you have the <openssl/x509.h> header file. */
  148. #undef HAVE_OPENSSL_X509_H
  149. /* Define if you have the <pem.h> header file. */
  150. #undef HAVE_PEM_H
  151. /* Define if you have the <pwd.h> header file. */
  152. #define HAVE_PWD_H
  153. /* Define if you have the `RAND_egd' function. */
  154. #undef HAVE_RAND_EGD
  155. /* Define if you have the `RAND_screen' function. */
  156. #undef HAVE_RAND_SCREEN
  157. /* Define if you have the `RAND_status' function. */
  158. #undef HAVE_RAND_STATUS
  159. /* Define if you have the `select' function. */
  160. #define HAVE_SELECT
  161. /* Define if you have the `setvbuf' function. */
  162. #define HAVE_SETVBUF
  163. /* Define if you have the `sigaction' function. */
  164. #define HAVE_SIGACTION
  165. /* Define if you have the `signal' function. */
  166. #undef HAVE_SIGNAL
  167. /* Define if you have the <signal.h> header file. */
  168. #define HAVE_SIGNAL_H
  169. /* Define if you have the `socket' function. */
  170. #define HAVE_SOCKET
  171. /* Define if you have the <ssl.h> header file. */
  172. #undef HAVE_SSL_H
  173. /* Define if you have the <stdint.h> header file. */
  174. #undef HAVE_STDINT_H
  175. /* Define if you have the <stdlib.h> header file. */
  176. #define HAVE_STDLIB_H
  177. /* The following define is needed on OS400 to enable strcmpi(), stricmp() and
  178. strdup(). */
  179. #define __cplusplus__strings__
  180. /* Define if you have the `strcasecmp' function. */
  181. #undef HAVE_STRCASECMP
  182. /* Define if you have the `strcmpi' function. */
  183. #define HAVE_STRCMPI
  184. /* Define if you have the `stricmp' function. */
  185. #define HAVE_STRICMP
  186. /* Define if you have the `strdup' function. */
  187. #define HAVE_STRDUP
  188. /* Define if you have the `strftime' function. */
  189. #define HAVE_STRFTIME
  190. /* Define if you have the <strings.h> header file. */
  191. #define HAVE_STRINGS_H
  192. /* Define if you have the <string.h> header file. */
  193. #define HAVE_STRING_H
  194. /* Define if you have the <stropts.h> header file. */
  195. #undef HAVE_STROPTS_H
  196. /* Define if you have the `strstr' function. */
  197. #define HAVE_STRSTR
  198. /* Define if you have the `strtok_r' function. */
  199. #define HAVE_STRTOK_R
  200. /* Define if you have the `strtoll' function. */
  201. #undef HAVE_STRTOLL /* Allows ASCII compile on V5R1. */
  202. /* Define if you have the <sys/param.h> header file. */
  203. #define HAVE_SYS_PARAM_H
  204. /* Define if you have the <sys/select.h> header file. */
  205. #undef HAVE_SYS_SELECT_H
  206. /* Define if you have the <sys/socket.h> header file. */
  207. #define HAVE_SYS_SOCKET_H
  208. /* Define if you have the <sys/sockio.h> header file. */
  209. #undef HAVE_SYS_SOCKIO_H
  210. /* Define if you have the <sys/stat.h> header file. */
  211. #define HAVE_SYS_STAT_H
  212. /* Define if you have the <sys/time.h> header file. */
  213. #define HAVE_SYS_TIME_H
  214. /* Define if you have the <sys/types.h> header file. */
  215. #define HAVE_SYS_TYPES_H
  216. /* Define if you have the <sys/un.h> header file. */
  217. #define HAVE_SYS_UN_H
  218. /* Define if you have the <sys/ioctl.h> header file. */
  219. #define HAVE_SYS_IOCTL_H
  220. /* Define if you have the <termios.h> header file. */
  221. #undef HAVE_TERMIOS_H
  222. /* Define if you have the <termio.h> header file. */
  223. #undef HAVE_TERMIO_H
  224. /* Define if you have the <time.h> header file. */
  225. #define HAVE_TIME_H
  226. /* Define if you have the `uname' function. */
  227. #undef HAVE_UNAME
  228. /* Define if you have the <unistd.h> header file. */
  229. #define HAVE_UNISTD_H
  230. /* Define if you have the <x509.h> header file. */
  231. #undef HAVE_X509_H
  232. /* Name of package */
  233. #undef PACKAGE
  234. /* The size of `int', as computed by sizeof. */
  235. #define SIZEOF_INT 4
  236. /* The size of a `long double', as computed by sizeof. */
  237. #define SIZEOF_LONG_DOUBLE 8
  238. /* Define if the compiler supports the 'long long' data type. */
  239. #define HAVE_LONGLONG
  240. /* The size of a `long long', as computed by sizeof. */
  241. #define SIZEOF_LONG_LONG 8
  242. /* The size of `short', as computed by sizeof. */
  243. #define SIZEOF_SHORT 2
  244. /* The size of `long', as computed by sizeof. */
  245. #define SIZEOF_LONG 4
  246. /* The size of `size_t', as computed by sizeof. */
  247. #define SIZEOF_SIZE_T 4
  248. /* The size of `curl_off_t', as computed by sizeof. */
  249. #define SIZEOF_CURL_OFF_T 8
  250. /* Whether long long constants must be suffixed by LL. */
  251. #define HAVE_LL
  252. /* Define this if you have struct sockaddr_storage */
  253. #define HAVE_STRUCT_SOCKADDR_STORAGE
  254. /* Define if you have the ANSI C header files. */
  255. #define STDC_HEADERS
  256. /* Define if you can safely include both <sys/time.h> and <time.h>. */
  257. #define TIME_WITH_SYS_TIME
  258. /* Define to enable HTTP3 support (experimental, requires NGTCP2, QUICHE or
  259. MSH3) */
  260. #undef ENABLE_QUIC
  261. /* Version number of package */
  262. #undef VERSION
  263. /* Number of bits in a file offset, on hosts where this is settable. */
  264. #undef _FILE_OFFSET_BITS
  265. /* Define for large files, on AIX-style hosts. */
  266. #define _LARGE_FILES
  267. /* Define to empty if `const' does not conform to ANSI C. */
  268. #undef const
  269. /* type to use in place of in_addr_t if not defined */
  270. #define in_addr_t unsigned long
  271. /* Define to `unsigned' if <sys/types.h> does not define. */
  272. #undef size_t
  273. /* Define if you have the ioctl function. */
  274. #define HAVE_IOCTL
  275. /* Define if you have a working ioctl FIONBIO function. */
  276. #define HAVE_IOCTL_FIONBIO
  277. /* Define if you have a working ioctl SIOCGIFADDR function. */
  278. #define HAVE_IOCTL_SIOCGIFADDR
  279. /* To disable LDAP */
  280. #undef CURL_DISABLE_LDAP
  281. /* Definition to make a library symbol externally visible. */
  282. #define CURL_EXTERN_SYMBOL
  283. /* Define if you have the ldap_url_parse procedure. */
  284. /* #define HAVE_LDAP_URL_PARSE */ /* Disabled because of an IBM bug. */
  285. /* Define if you have the recv function. */
  286. #define HAVE_RECV
  287. /* Define to the type of arg 1 for recv. */
  288. #define RECV_TYPE_ARG1 int
  289. /* Define to the type of arg 2 for recv. */
  290. #define RECV_TYPE_ARG2 char *
  291. /* Define to the type of arg 3 for recv. */
  292. #define RECV_TYPE_ARG3 int
  293. /* Define to the type of arg 4 for recv. */
  294. #define RECV_TYPE_ARG4 int
  295. /* Define to the function return type for recv. */
  296. #define RECV_TYPE_RETV int
  297. /* Define if you have the recvfrom function. */
  298. #define HAVE_RECVFROM
  299. /* Define to the type of arg 1 for recvfrom. */
  300. #define RECVFROM_TYPE_ARG1 int
  301. /* Define to the type pointed by arg 2 for recvfrom. */
  302. #define RECVFROM_TYPE_ARG2 char
  303. /* Define to the type of arg 3 for recvfrom. */
  304. #define RECVFROM_TYPE_ARG3 int
  305. /* Define to the type of arg 4 for recvfrom. */
  306. #define RECVFROM_TYPE_ARG4 int
  307. /* Define to the type pointed by arg 5 for recvfrom. */
  308. #define RECVFROM_TYPE_ARG5 struct sockaddr
  309. /* Define to the type pointed by arg 6 for recvfrom. */
  310. #define RECVFROM_TYPE_ARG6 int
  311. /* Define to the function return type for recvfrom. */
  312. #define RECVFROM_TYPE_RETV int
  313. /* Define if you have the send function. */
  314. #define HAVE_SEND
  315. /* Define to the type of arg 1 for send. */
  316. #define SEND_TYPE_ARG1 int
  317. /* Define to the type qualifier of arg 2 for send. */
  318. #define SEND_QUAL_ARG2
  319. /* Define to the type of arg 2 for send. */
  320. #define SEND_TYPE_ARG2 char *
  321. /* Define to the type of arg 3 for send. */
  322. #define SEND_TYPE_ARG3 int
  323. /* Define to the type of arg 4 for send. */
  324. #define SEND_TYPE_ARG4 int
  325. /* Define to the function return type for send. */
  326. #define SEND_TYPE_RETV int
  327. /* Define to use the GSKit package. */
  328. #define USE_GSKIT
  329. /* Define to use the OS/400 crypto library. */
  330. #define USE_OS400CRYPTO
  331. /* Define to use Unix sockets. */
  332. #define USE_UNIX_SOCKETS
  333. /* Use the system keyring as the default CA bundle. */
  334. #define CURL_CA_BUNDLE "/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB"
  335. /* ---------------------------------------------------------------- */
  336. /* ADDITIONAL DEFINITIONS */
  337. /* ---------------------------------------------------------------- */
  338. /* The following must be defined BEFORE system header files inclusion. */
  339. #define __ptr128 /* No teraspace. */
  340. #define qadrt_use_fputc_inline /* Generate fputc() wrapper inline. */
  341. #define qadrt_use_fread_inline /* Generate fread() wrapper inline. */
  342. #define qadrt_use_fwrite_inline /* Generate fwrite() wrapper inline. */
  343. #endif /* HEADER_CURL_CONFIG_OS400_H */