#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/sockio.h> header file. */161#undef HAVE_SYS_SOCKIO_H162163/* Define if you have the <sys/types.h> header file. */164#define HAVE_SYS_TYPES_H165166/* Define if you have the <sys/un.h> header file. */167#define HAVE_SYS_UN_H168169/* Define if you have the <sys/ioctl.h> header file. */170#define HAVE_SYS_IOCTL_H171172/* Define if you have the <termios.h> header file. */173#undef HAVE_TERMIOS_H174175/* Define if you have the <termio.h> header file. */176#undef HAVE_TERMIO_H177178/* Define if you have the <unistd.h> header file. */179#define HAVE_UNISTD_H180181/* The size of `int', as computed by sizeof. */182#define SIZEOF_INT 4183184/* Define if the compiler supports the 'long long' data type. */185#define HAVE_LONGLONG186187/* The size of a `long long', as computed by sizeof. */188#define SIZEOF_LONG_LONG 8189190/* The size of `long', as computed by sizeof. */191#define SIZEOF_LONG 4192193/* The size of `size_t', as computed by sizeof. */194#define SIZEOF_SIZE_T 4195196/* The size of `curl_off_t', as computed by sizeof. */197#define SIZEOF_CURL_OFF_T 8198199/* Define this if you have struct sockaddr_storage */200#define HAVE_STRUCT_SOCKADDR_STORAGE201202/* Define if you have the ANSI C header files. */203#define STDC_HEADERS204205/* Version number of package */206#undef VERSION207208/* Number of bits in a file offset, on hosts where this is settable. */209#undef _FILE_OFFSET_BITS210211/* Define for large files, on AIX-style hosts. */212#define _LARGE_FILES213214/* Define to empty if `const' does not conform to ANSI C. */215#undef const216217/* Define to `unsigned' if <sys/types.h> does not define. */218#undef size_t219220/* Define if you have a working ioctl FIONBIO function. */221#define HAVE_IOCTL_FIONBIO222223/* Define if you have a working ioctl SIOCGIFADDR function. */224#define HAVE_IOCTL_SIOCGIFADDR225226/* To disable LDAP */227#undef CURL_DISABLE_LDAP228229/* Definition to make a library symbol externally visible. */230#define CURL_EXTERN_SYMBOL231232/* Define if you have the ldap_url_parse procedure. */233/* #define HAVE_LDAP_URL_PARSE */ /* Disabled because of an IBM bug. */234235/* Define if you have the recv function. */236#define HAVE_RECV237238/* Define to the type of arg 1 for recv. */239#define RECV_TYPE_ARG1 int240241/* Define to the type of arg 2 for recv. */242#define RECV_TYPE_ARG2 char *243244/* Define to the type of arg 3 for recv. */245#define RECV_TYPE_ARG3 int246247/* Define to the type of arg 4 for recv. */248#define RECV_TYPE_ARG4 int249250/* Define to the function return type for recv. */251#define RECV_TYPE_RETV int252253/* Define if you have the send function. */254#define HAVE_SEND255256/* Define to the type of arg 1 for send. */257#define SEND_TYPE_ARG1 int258259/* Define to the type qualifier of arg 2 for send. */260#define SEND_QUAL_ARG2261262/* Define to the type of arg 2 for send. */263#define SEND_TYPE_ARG2 char *264265/* Define to the type of arg 3 for send. */266#define SEND_TYPE_ARG3 int267268/* Define to the type of arg 4 for send. */269#define SEND_TYPE_ARG4 int270271/* Define to the function return type for send. */272#define SEND_TYPE_RETV int273274/* Define to use the OS/400 crypto library. */275#define USE_OS400CRYPTO276277/* Define to use Unix sockets. */278#define USE_UNIX_SOCKETS279280/* Use the system keyring as the default CA bundle. */281#define CURL_CA_BUNDLE "/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB"282283/* ---------------------------------------------------------------- */284/* ADDITIONAL DEFINITIONS */285/* ---------------------------------------------------------------- */286287/* The following must be defined BEFORE system header files inclusion. */288289#define __ptr128 /* No teraspace. */290#define qadrt_use_fputc_inline /* Generate fputc() wrapper inline. */291#define qadrt_use_fread_inline /* Generate fread() wrapper inline. */292#define qadrt_use_fwrite_inline /* Generate fwrite() wrapper inline. */293294#endif /* HEADER_CURL_CONFIG_OS400_H */295296297