config-os400.h 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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) 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. * SPDX-License-Identifier: curl
  24. *
  25. ***************************************************************************/
  26. /* ================================================================ */
  27. /* Hand crafted config file for OS/400 */
  28. /* ================================================================ */
  29. #pragma enum(int)
  30. #undef PACKAGE
  31. /* Version number of this archive. */
  32. #undef VERSION
  33. /* Define cpu-machine-OS */
  34. #ifndef OS
  35. #define OS "OS/400"
  36. #endif
  37. /* OS400 supports a 3-argument ASCII version of gethostbyaddr_r(), but its
  38. * prototype is incompatible with the "standard" one (1st argument is not
  39. * const). However, getaddrinfo() is supported (ASCII version defined as
  40. * a local wrapper in setup-os400.h) in a threadsafe way: we can then
  41. * configure getaddrinfo() as such and get rid of gethostbyname_r() without
  42. * loss of threadsafeness. */
  43. #undef HAVE_GETHOSTBYNAME_R
  44. #undef HAVE_GETHOSTBYNAME_R_3
  45. #undef HAVE_GETHOSTBYNAME_R_5
  46. #undef HAVE_GETHOSTBYNAME_R_6
  47. #define HAVE_GETADDRINFO
  48. #define HAVE_GETADDRINFO_THREADSAFE
  49. /* Define if you need the _REENTRANT define for some functions */
  50. #undef NEED_REENTRANT
  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 to 1 if you have the alarm function. */
  60. #define HAVE_ALARM 1
  61. /* Define if you have the <arpa/inet.h> header file. */
  62. #define HAVE_ARPA_INET_H
  63. /* Define if you have the `closesocket' function. */
  64. #undef HAVE_CLOSESOCKET
  65. /* Define if you have the <fcntl.h> header file. */
  66. #define HAVE_FCNTL_H
  67. /* Define if you have the `geteuid' function. */
  68. #define HAVE_GETEUID
  69. /* Define if you have the `gethostname' function. */
  70. #define HAVE_GETHOSTNAME
  71. /* Define if you have the `getpass_r' function. */
  72. #undef HAVE_GETPASS_R
  73. /* Define to 1 if you have the getpeername function. */
  74. #define HAVE_GETPEERNAME 1
  75. /* Define if you have the `getpwuid' function. */
  76. #define HAVE_GETPWUID
  77. /* Define to 1 if you have the getsockname function. */
  78. #define HAVE_GETSOCKNAME 1
  79. /* Define if you have the `gettimeofday' function. */
  80. #define HAVE_GETTIMEOFDAY
  81. /* Define if you have the `timeval' struct. */
  82. #define HAVE_STRUCT_TIMEVAL
  83. /* Define if you have the <inttypes.h> header file. */
  84. #define HAVE_INTTYPES_H
  85. /* Define if you have the <io.h> header file. */
  86. #undef HAVE_IO_H
  87. /* Define if you have the `socket' library (-lsocket). */
  88. #undef HAVE_LIBSOCKET
  89. /* Define if you have GSS API. */
  90. #define HAVE_GSSAPI
  91. /* Define if you have the GNU gssapi libraries */
  92. #undef HAVE_GSSGNU
  93. /* Define if you have the Heimdal gssapi libraries */
  94. #define HAVE_GSSHEIMDAL
  95. /* Define if you have the MIT gssapi libraries */
  96. #undef HAVE_GSSMIT
  97. /* Define if you need the malloc.h header file even with stdlib.h */
  98. /* #define NEED_MALLOC_H 1 */
  99. /* Define if you have the <netdb.h> header file. */
  100. #define HAVE_NETDB_H
  101. /* Define if you have the <netinet/in.h> header file. */
  102. #define HAVE_NETINET_IN_H
  103. /* Define if you have the <net/if.h> header file. */
  104. #define HAVE_NET_IF_H
  105. /* Define if you have the <pwd.h> header file. */
  106. #define HAVE_PWD_H
  107. /* Define if you have the `select' function. */
  108. #define HAVE_SELECT
  109. /* Define if you have the `sigaction' function. */
  110. #define HAVE_SIGACTION
  111. /* Define if you have the `signal' function. */
  112. #undef HAVE_SIGNAL
  113. /* Define if you have the `socket' function. */
  114. #define HAVE_SOCKET
  115. /* Define if you have the <stdint.h> header file. */
  116. #undef HAVE_STDINT_H
  117. /* The following define is needed on OS400 to enable strcmpi(), stricmp() and
  118. strdup(). */
  119. #define __cplusplus__strings__
  120. /* Define if you have the `strcasecmp' function. */
  121. #undef HAVE_STRCASECMP
  122. /* Define if you have the `strcmpi' function. */
  123. #define HAVE_STRCMPI
  124. /* Define if you have the `stricmp' function. */
  125. #define HAVE_STRICMP
  126. /* Define if you have the `strdup' function. */
  127. #define HAVE_STRDUP
  128. /* Define if you have the <strings.h> header file. */
  129. #define HAVE_STRINGS_H
  130. /* Define if you have the <stropts.h> header file. */
  131. #undef HAVE_STROPTS_H
  132. /* Define if you have the `strtok_r' function. */
  133. #define HAVE_STRTOK_R
  134. /* Define if you have the `strtoll' function. */
  135. #undef HAVE_STRTOLL /* Allows ASCII compile on V5R1. */
  136. /* Define if you have the <sys/param.h> header file. */
  137. #define HAVE_SYS_PARAM_H
  138. /* Define if you have the <sys/select.h> header file. */
  139. #undef HAVE_SYS_SELECT_H
  140. /* Define if you have the <sys/socket.h> header file. */
  141. #define HAVE_SYS_SOCKET_H
  142. /* Define if you have the <sys/sockio.h> header file. */
  143. #undef HAVE_SYS_SOCKIO_H
  144. /* Define if you have the <sys/stat.h> header file. */
  145. #define HAVE_SYS_STAT_H
  146. /* Define if you have the <sys/time.h> header file. */
  147. #define HAVE_SYS_TIME_H
  148. /* Define if you have the <sys/types.h> header file. */
  149. #define HAVE_SYS_TYPES_H
  150. /* Define if you have the <sys/un.h> header file. */
  151. #define HAVE_SYS_UN_H
  152. /* Define if you have the <sys/ioctl.h> header file. */
  153. #define HAVE_SYS_IOCTL_H
  154. /* Define if you have the <termios.h> header file. */
  155. #undef HAVE_TERMIOS_H
  156. /* Define if you have the <termio.h> header file. */
  157. #undef HAVE_TERMIO_H
  158. /* Define if you have the <unistd.h> header file. */
  159. #define HAVE_UNISTD_H
  160. /* Name of package */
  161. #undef PACKAGE
  162. /* The size of `int', as computed by sizeof. */
  163. #define SIZEOF_INT 4
  164. /* Define if the compiler supports the 'long long' data type. */
  165. #define HAVE_LONGLONG
  166. /* The size of a `long long', as computed by sizeof. */
  167. #define SIZEOF_LONG_LONG 8
  168. /* The size of `long', as computed by sizeof. */
  169. #define SIZEOF_LONG 4
  170. /* The size of `size_t', as computed by sizeof. */
  171. #define SIZEOF_SIZE_T 4
  172. /* The size of `curl_off_t', as computed by sizeof. */
  173. #define SIZEOF_CURL_OFF_T 8
  174. /* Define this if you have struct sockaddr_storage */
  175. #define HAVE_STRUCT_SOCKADDR_STORAGE
  176. /* Define if you have the ANSI C header files. */
  177. #define STDC_HEADERS
  178. /* Define to enable HTTP3 support (experimental, requires NGTCP2, QUICHE or
  179. MSH3) */
  180. #undef ENABLE_QUIC
  181. /* Version number of package */
  182. #undef VERSION
  183. /* Number of bits in a file offset, on hosts where this is settable. */
  184. #undef _FILE_OFFSET_BITS
  185. /* Define for large files, on AIX-style hosts. */
  186. #define _LARGE_FILES
  187. /* Define to empty if `const' does not conform to ANSI C. */
  188. #undef const
  189. /* type to use in place of in_addr_t if not defined */
  190. #define in_addr_t unsigned long
  191. /* Define to `unsigned' if <sys/types.h> does not define. */
  192. #undef size_t
  193. /* Define if you have a working ioctl FIONBIO function. */
  194. #define HAVE_IOCTL_FIONBIO
  195. /* Define if you have a working ioctl SIOCGIFADDR function. */
  196. #define HAVE_IOCTL_SIOCGIFADDR
  197. /* To disable LDAP */
  198. #undef CURL_DISABLE_LDAP
  199. /* Definition to make a library symbol externally visible. */
  200. #define CURL_EXTERN_SYMBOL
  201. /* Define if you have the ldap_url_parse procedure. */
  202. /* #define HAVE_LDAP_URL_PARSE */ /* Disabled because of an IBM bug. */
  203. /* Define if you have the recv function. */
  204. #define HAVE_RECV
  205. /* Define to the type of arg 1 for recv. */
  206. #define RECV_TYPE_ARG1 int
  207. /* Define to the type of arg 2 for recv. */
  208. #define RECV_TYPE_ARG2 char *
  209. /* Define to the type of arg 3 for recv. */
  210. #define RECV_TYPE_ARG3 int
  211. /* Define to the type of arg 4 for recv. */
  212. #define RECV_TYPE_ARG4 int
  213. /* Define to the function return type for recv. */
  214. #define RECV_TYPE_RETV int
  215. /* Define if you have the send function. */
  216. #define HAVE_SEND
  217. /* Define to the type of arg 1 for send. */
  218. #define SEND_TYPE_ARG1 int
  219. /* Define to the type qualifier of arg 2 for send. */
  220. #define SEND_QUAL_ARG2
  221. /* Define to the type of arg 2 for send. */
  222. #define SEND_TYPE_ARG2 char *
  223. /* Define to the type of arg 3 for send. */
  224. #define SEND_TYPE_ARG3 int
  225. /* Define to the type of arg 4 for send. */
  226. #define SEND_TYPE_ARG4 int
  227. /* Define to the function return type for send. */
  228. #define SEND_TYPE_RETV int
  229. /* Define to use the OS/400 crypto library. */
  230. #define USE_OS400CRYPTO
  231. /* Define to use Unix sockets. */
  232. #define USE_UNIX_SOCKETS
  233. /* Use the system keyring as the default CA bundle. */
  234. #define CURL_CA_BUNDLE "/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB"
  235. /* ---------------------------------------------------------------- */
  236. /* ADDITIONAL DEFINITIONS */
  237. /* ---------------------------------------------------------------- */
  238. /* The following must be defined BEFORE system header files inclusion. */
  239. #define __ptr128 /* No teraspace. */
  240. #define qadrt_use_fputc_inline /* Generate fputc() wrapper inline. */
  241. #define qadrt_use_fread_inline /* Generate fread() wrapper inline. */
  242. #define qadrt_use_fwrite_inline /* Generate fwrite() wrapper inline. */
  243. #endif /* HEADER_CURL_CONFIG_OS400_H */