#ifndef HEADER_CURL_CONFIG_OS400_H1#define HEADER_CURL_CONFIG_OS400_H2/***************************************************************************3* _ _ ____ _4* Project ___| | | | _ \| |5* / __| | | | |_) | |6* | (__| |_| | _ <| |___7* \___|\___/|_| \_\_____|8*9* Copyright (C) Daniel Stenberg, <[email protected]>, et al.10*11* This software is licensed as described in the file COPYING, which12* you should have received as part of this distribution. The terms13* are also available at https://curl.se/docs/copyright.html.14*15* You may opt to use, copy, modify, merge, publish, distribute and/or sell16* copies of the Software, and permit persons to whom the Software is17* furnished to do so, under the terms of the COPYING file.18*19* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY20* KIND, either express or implied.21*22* SPDX-License-Identifier: curl23*24***************************************************************************/2526/* ================================================================ */27/* Hand crafted config file for OS/400 */28/* ================================================================ */2930#pragma enum(int)3132/* Define cpu-machine-OS */33#ifndef CURL_OS34#define CURL_OS "OS/400"35#endif3637/* OS400 supports a 3-argument ASCII version of gethostbyaddr_r(), but its38* prototype is incompatible with the "standard" one (1st argument is not39* const). However, getaddrinfo() is supported (ASCII version defined as40* a local wrapper in setup-os400.h) in a threadsafe way: we can then41* configure getaddrinfo() as such and get rid of gethostbyname_r() without42* loss of threadsafeness. */43#undef HAVE_GETHOSTBYNAME_R44#undef HAVE_GETHOSTBYNAME_R_345#undef HAVE_GETHOSTBYNAME_R_546#undef HAVE_GETHOSTBYNAME_R_647#define HAVE_GETADDRINFO48#define HAVE_GETADDRINFO_THREADSAFE4950/* Define if you need the _REENTRANT define for some functions */51#undef NEED_REENTRANT5253/* Define if you want to enable IPv6 support */54#define USE_IPV65556/* Define if struct sockaddr_in6 has the sin6_scope_id member */57#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 15859/* Define this to 'int' if ssize_t is not an available typedefed type */60#undef ssize_t6162/* Define to 1 if you have the alarm function. */63#define HAVE_ALARM 16465/* Define if you have the <arpa/inet.h> header file. */66#define HAVE_ARPA_INET_H6768/* Define if you have the `closesocket' function. */69#undef HAVE_CLOSESOCKET7071/* Define if you have the <fcntl.h> header file. */72#define HAVE_FCNTL_H7374/* Define if you have the `geteuid' function. */75#define HAVE_GETEUID7677/* Define if you have the `gethostname' function. */78#define HAVE_GETHOSTNAME7980/* Define if you have the `getpass_r' function. */81#undef HAVE_GETPASS_R8283/* Define to 1 if you have the getpeername function. */84#define HAVE_GETPEERNAME 18586/* Define if you have the `getpwuid' function. */87#define HAVE_GETPWUID8889/* Define to 1 if you have the getsockname function. */90#define HAVE_GETSOCKNAME 19192/* Define if you have the `gettimeofday' function. */93#define HAVE_GETTIMEOFDAY9495/* Define if you have the `timeval' struct. */96#define HAVE_STRUCT_TIMEVAL9798/* Define if you have the <io.h> header file. */99#undef HAVE_IO_H100101/* Define if you have GSS API. */102#define HAVE_GSSAPI103104/* Define if you have the GNU gssapi libraries */105#undef HAVE_GSSGNU106107/* Define if you have the <netdb.h> header file. */108#define HAVE_NETDB_H109110/* Define if you have the <netinet/in.h> header file. */111#define HAVE_NETINET_IN_H112113/* Define if you have the <net/if.h> header file. */114#define HAVE_NET_IF_H115116/* Define if you have the <pwd.h> header file. */117#define HAVE_PWD_H118119/* Define if you have the `select' function. */120#define HAVE_SELECT121122/* Define if you have the `sigaction' function. */123#define HAVE_SIGACTION124125/* Define if you have the `signal' function. */126#undef HAVE_SIGNAL127128/* Define if you have the `socket' function. */129#define HAVE_SOCKET130131132/* The following define is needed on OS400 to enable strcmpi(), stricmp() and133strdup(). */134#define __cplusplus__strings__135136/* Define if you have the `strcasecmp' function. */137#undef HAVE_STRCASECMP138139/* Define if you have the `strcmpi' function. */140#define HAVE_STRCMPI141142/* Define if you have the `stricmp' function. */143#define HAVE_STRICMP144145/* Define if you have the `strdup' function. */146#define HAVE_STRDUP147148/* Define if you have the <strings.h> header file. */149#define HAVE_STRINGS_H150151/* Define if you have the <stropts.h> header file. */152#undef HAVE_STROPTS_H153154/* Define if you have the <sys/param.h> header file. */155#define HAVE_SYS_PARAM_H156157/* Define if you have the <sys/select.h> header file. */158#undef HAVE_SYS_SELECT_H159160/* Define if you have the <sys/socket.h> header file. */161#define HAVE_SYS_SOCKET_H162163/* Define if you have the <sys/sockio.h> header file. */164#undef HAVE_SYS_SOCKIO_H165166/* Define if you have the <sys/stat.h> header file. */167#define HAVE_SYS_STAT_H168169/* Define if you have the <sys/time.h> header file. */170#define HAVE_SYS_TIME_H171172/* Define if you have the <sys/types.h> header file. */173#define HAVE_SYS_TYPES_H174175/* Define if you have the <sys/un.h> header file. */176#define HAVE_SYS_UN_H177178/* Define if you have the <sys/ioctl.h> header file. */179#define HAVE_SYS_IOCTL_H180181/* Define if you have the <termios.h> header file. */182#undef HAVE_TERMIOS_H183184/* Define if you have the <termio.h> header file. */185#undef HAVE_TERMIO_H186187/* Define if you have the <unistd.h> header file. */188#define HAVE_UNISTD_H189190/* The size of `int', as computed by sizeof. */191#define SIZEOF_INT 4192193/* Define if the compiler supports the 'long long' data type. */194#define HAVE_LONGLONG195196/* The size of a `long long', as computed by sizeof. */197#define SIZEOF_LONG_LONG 8198199/* The size of `long', as computed by sizeof. */200#define SIZEOF_LONG 4201202/* The size of `size_t', as computed by sizeof. */203#define SIZEOF_SIZE_T 4204205/* The size of `curl_off_t', as computed by sizeof. */206#define SIZEOF_CURL_OFF_T 8207208/* Define this if you have struct sockaddr_storage */209#define HAVE_STRUCT_SOCKADDR_STORAGE210211/* Define if you have the ANSI C header files. */212#define STDC_HEADERS213214/* Define to enable HTTP3 support (experimental, requires NGTCP2, quiche or215MSH3) */216#undef USE_HTTP3217218/* Version number of package */219#undef VERSION220221/* Number of bits in a file offset, on hosts where this is settable. */222#undef _FILE_OFFSET_BITS223224/* Define for large files, on AIX-style hosts. */225#define _LARGE_FILES226227/* Define to empty if `const' does not conform to ANSI C. */228#undef const229230/* Define to `unsigned' if <sys/types.h> does not define. */231#undef size_t232233/* Define if you have a working ioctl FIONBIO function. */234#define HAVE_IOCTL_FIONBIO235236/* Define if you have a working ioctl SIOCGIFADDR function. */237#define HAVE_IOCTL_SIOCGIFADDR238239/* To disable LDAP */240#undef CURL_DISABLE_LDAP241242/* Definition to make a library symbol externally visible. */243#define CURL_EXTERN_SYMBOL244245/* Define if you have the ldap_url_parse procedure. */246/* #define HAVE_LDAP_URL_PARSE */ /* Disabled because of an IBM bug. */247248/* Define if you have the recv function. */249#define HAVE_RECV250251/* Define to the type of arg 1 for recv. */252#define RECV_TYPE_ARG1 int253254/* Define to the type of arg 2 for recv. */255#define RECV_TYPE_ARG2 char *256257/* Define to the type of arg 3 for recv. */258#define RECV_TYPE_ARG3 int259260/* Define to the type of arg 4 for recv. */261#define RECV_TYPE_ARG4 int262263/* Define to the function return type for recv. */264#define RECV_TYPE_RETV int265266/* Define if you have the send function. */267#define HAVE_SEND268269/* Define to the type of arg 1 for send. */270#define SEND_TYPE_ARG1 int271272/* Define to the type qualifier of arg 2 for send. */273#define SEND_QUAL_ARG2274275/* Define to the type of arg 2 for send. */276#define SEND_TYPE_ARG2 char *277278/* Define to the type of arg 3 for send. */279#define SEND_TYPE_ARG3 int280281/* Define to the type of arg 4 for send. */282#define SEND_TYPE_ARG4 int283284/* Define to the function return type for send. */285#define SEND_TYPE_RETV int286287/* Define to use the OS/400 crypto library. */288#define USE_OS400CRYPTO289290/* Define to use Unix sockets. */291#define USE_UNIX_SOCKETS292293/* Use the system keyring as the default CA bundle. */294#define CURL_CA_BUNDLE "/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB"295296/* ---------------------------------------------------------------- */297/* ADDITIONAL DEFINITIONS */298/* ---------------------------------------------------------------- */299300/* The following must be defined BEFORE system header files inclusion. */301302#define __ptr128 /* No teraspace. */303#define qadrt_use_fputc_inline /* Generate fputc() wrapper inline. */304#define qadrt_use_fread_inline /* Generate fread() wrapper inline. */305#define qadrt_use_fwrite_inline /* Generate fwrite() wrapper inline. */306307#endif /* HEADER_CURL_CONFIG_OS400_H */308309310