00001 #ifndef HEADER_CURL_CONFIG_OS400_H 00002 #define HEADER_CURL_CONFIG_OS400_H 00003 /*************************************************************************** 00004 * _ _ ____ _ 00005 * Project ___| | | | _ \| | 00006 * / __| | | | |_) | | 00007 * | (__| |_| | _ <| |___ 00008 * \___|\___/|_| \_\_____| 00009 * 00010 * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. 00011 * 00012 * This software is licensed as described in the file COPYING, which 00013 * you should have received as part of this distribution. The terms 00014 * are also available at https://curl.haxx.se/docs/copyright.html. 00015 * 00016 * You may opt to use, copy, modify, merge, publish, distribute and/or sell 00017 * copies of the Software, and permit persons to whom the Software is 00018 * furnished to do so, under the terms of the COPYING file. 00019 * 00020 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 00021 * KIND, either express or implied. 00022 * 00023 ***************************************************************************/ 00024 00025 /* ================================================================ */ 00026 /* Hand crafted config file for OS/400 */ 00027 /* ================================================================ */ 00028 00029 #pragma enum(int) 00030 00031 #undef PACKAGE 00032 00033 /* Version number of this archive. */ 00034 #undef VERSION 00035 00036 /* Define if you have the getpass function. */ 00037 #undef HAVE_GETPASS 00038 00039 /* Define cpu-machine-OS */ 00040 #define OS "OS/400" 00041 00042 /* Define if you have the gethostbyaddr_r() function with 5 arguments */ 00043 #define HAVE_GETHOSTBYADDR_R_5 00044 00045 /* Define if you have the gethostbyaddr_r() function with 7 arguments */ 00046 #undef HAVE_GETHOSTBYADDR_R_7 00047 00048 /* Define if you have the gethostbyaddr_r() function with 8 arguments */ 00049 #undef HAVE_GETHOSTBYADDR_R_8 00050 00051 /* OS400 supports a 3-argument ASCII version of gethostbyaddr_r(), but its 00052 * prototype is incompatible with the "standard" one (1st argument is not 00053 * const). However, getaddrinfo() is supported (ASCII version defined as 00054 * a local wrapper in setup-os400.h) in a threadsafe way: we can then 00055 * configure getaddrinfo() as such and get rid of gethostbyname_r() without 00056 * loss of threadsafeness. */ 00057 #undef HAVE_GETHOSTBYNAME_R 00058 #undef HAVE_GETHOSTBYNAME_R_3 00059 #undef HAVE_GETHOSTBYNAME_R_5 00060 #undef HAVE_GETHOSTBYNAME_R_6 00061 #define HAVE_GETADDRINFO 00062 #define HAVE_GETADDRINFO_THREADSAFE 00063 00064 /* Define if you need the _REENTRANT define for some functions */ 00065 #undef NEED_REENTRANT 00066 00067 /* Define if you have the Kerberos4 libraries (including -ldes) */ 00068 #undef HAVE_KRB4 00069 00070 /* Define if you want to enable IPv6 support */ 00071 #define ENABLE_IPV6 00072 00073 /* Define if struct sockaddr_in6 has the sin6_scope_id member */ 00074 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 00075 00076 /* Define this to 'int' if ssize_t is not an available typedefed type */ 00077 #undef ssize_t 00078 00079 /* Define this as a suitable file to read random data from */ 00080 #undef RANDOM_FILE 00081 00082 /* Define this to your Entropy Gathering Daemon socket pathname */ 00083 #undef EGD_SOCKET 00084 00085 /* Define to 1 if you have the alarm function. */ 00086 #define HAVE_ALARM 1 00087 00088 /* Define if you have the <alloca.h> header file. */ 00089 #undef HAVE_ALLOCA_H 00090 00091 /* Define if you have the <arpa/inet.h> header file. */ 00092 #define HAVE_ARPA_INET_H 00093 00094 /* Define if you have the `closesocket' function. */ 00095 #undef HAVE_CLOSESOCKET 00096 00097 /* Define if you have the <crypto.h> header file. */ 00098 #undef HAVE_CRYPTO_H 00099 00100 /* Define if you have the <des.h> header file. */ 00101 #undef HAVE_DES_H 00102 00103 /* Define if you have the <errno.h> header file. */ 00104 #define HAVE_ERRNO_H 00105 00106 /* Define if you have the <err.h> header file. */ 00107 #undef HAVE_ERR_H 00108 00109 /* Define if you have the <fcntl.h> header file. */ 00110 #define HAVE_FCNTL_H 00111 00112 /* Define if you have the `geteuid' function. */ 00113 #define HAVE_GETEUID 00114 00115 /* Define if you have the `gethostbyaddr' function. */ 00116 #define HAVE_GETHOSTBYADDR 00117 00118 /* Define if you have the `gethostbyaddr_r' function. */ 00119 #define HAVE_GETHOSTBYADDR_R 00120 00121 /* Define if you have the `gethostname' function. */ 00122 #define HAVE_GETHOSTNAME 00123 00124 /* Define if you have the <getopt.h> header file. */ 00125 #undef HAVE_GETOPT_H 00126 00127 /* Define if you have the `getpass_r' function. */ 00128 #undef HAVE_GETPASS_R 00129 00130 /* Define if you have the `getpwuid' function. */ 00131 #define HAVE_GETPWUID 00132 00133 /* Define if you have the `getservbyname' function. */ 00134 #define HAVE_GETSERVBYNAME 00135 00136 /* Define if you have the `gettimeofday' function. */ 00137 #define HAVE_GETTIMEOFDAY 00138 00139 /* Define if you have the `timeval' struct. */ 00140 #define HAVE_STRUCT_TIMEVAL 00141 00142 /* Define if you have the `inet_addr' function. */ 00143 #define HAVE_INET_ADDR 00144 00145 /* Define if you have the <inttypes.h> header file. */ 00146 #define HAVE_INTTYPES_H 00147 00148 /* Define if you have the <io.h> header file. */ 00149 #undef HAVE_IO_H 00150 00151 /* Define if you have the `krb_get_our_ip_for_realm' function. */ 00152 #undef HAVE_KRB_GET_OUR_IP_FOR_REALM 00153 00154 /* Define if you have the <krb.h> header file. */ 00155 #undef HAVE_KRB_H 00156 00157 /* Define if you have the `crypto' library (-lcrypto). */ 00158 #undef HAVE_LIBCRYPTO 00159 00160 /* Define if you have the `nsl' library (-lnsl). */ 00161 #undef HAVE_LIBNSL 00162 00163 /* Define if you have the `resolv' library (-lresolv). */ 00164 #undef HAVE_LIBRESOLV 00165 00166 /* Define if you have the `resolve' library (-lresolve). */ 00167 #undef HAVE_LIBRESOLVE 00168 00169 /* Define if you have the `socket' library (-lsocket). */ 00170 #undef HAVE_LIBSOCKET 00171 00172 /* Define if you have the `ssl' library (-lssl). */ 00173 #undef HAVE_LIBSSL 00174 00175 /* Define if you have GSS API. */ 00176 #define HAVE_GSSAPI 00177 00178 /* Define if you have the GNU gssapi libraries */ 00179 #undef HAVE_GSSGNU 00180 00181 /* Define if you have the Heimdal gssapi libraries */ 00182 #define HAVE_GSSHEIMDAL 00183 00184 /* Define if you have the MIT gssapi libraries */ 00185 #undef HAVE_GSSMIT 00186 00187 /* Define if you have the `ucb' library (-lucb). */ 00188 #undef HAVE_LIBUCB 00189 00190 /* Define if you have the `localtime_r' function. */ 00191 #define HAVE_LOCALTIME_R 00192 00193 /* Define if you have the <malloc.h> header file. */ 00194 #define HAVE_MALLOC_H 00195 00196 /* Define if you need the malloc.h header file even with stdlib.h */ 00197 /* #define NEED_MALLOC_H 1 */ 00198 00199 /* Define if you have the <memory.h> header file. */ 00200 #undef HAVE_MEMORY_H 00201 00202 /* Define if you have the <netdb.h> header file. */ 00203 #define HAVE_NETDB_H 00204 00205 /* Define if you have the <netinet/if_ether.h> header file. */ 00206 #undef HAVE_NETINET_IF_ETHER_H 00207 00208 /* Define if you have the <netinet/in.h> header file. */ 00209 #define HAVE_NETINET_IN_H 00210 00211 /* Define if you have the <net/if.h> header file. */ 00212 #define HAVE_NET_IF_H 00213 00214 /* Define if you have the <openssl/crypto.h> header file. */ 00215 #undef HAVE_OPENSSL_CRYPTO_H 00216 00217 /* Define if you have the <openssl/err.h> header file. */ 00218 #undef HAVE_OPENSSL_ERR_H 00219 00220 /* Define if you have the <openssl/pem.h> header file. */ 00221 #undef HAVE_OPENSSL_PEM_H 00222 00223 /* Define if you have the <openssl/rsa.h> header file. */ 00224 #undef HAVE_OPENSSL_RSA_H 00225 00226 /* Define if you have the <openssl/ssl.h> header file. */ 00227 #undef HAVE_OPENSSL_SSL_H 00228 00229 /* Define if you have the <openssl/x509.h> header file. */ 00230 #undef HAVE_OPENSSL_X509_H 00231 00232 /* Define if you have the <pem.h> header file. */ 00233 #undef HAVE_PEM_H 00234 00235 /* Define if you have the `perror' function. */ 00236 #define HAVE_PERROR 00237 00238 /* Define if you have the <pwd.h> header file. */ 00239 #define HAVE_PWD_H 00240 00241 /* Define if you have the `RAND_egd' function. */ 00242 #undef HAVE_RAND_EGD 00243 00244 /* Define if you have the `RAND_screen' function. */ 00245 #undef HAVE_RAND_SCREEN 00246 00247 /* Define if you have the `RAND_status' function. */ 00248 #undef HAVE_RAND_STATUS 00249 00250 /* Define if you have the <rsa.h> header file. */ 00251 #undef HAVE_RSA_H 00252 00253 /* Define if you have the `select' function. */ 00254 #define HAVE_SELECT 00255 00256 /* Define if you have the `setvbuf' function. */ 00257 #define HAVE_SETVBUF 00258 00259 /* Define if you have the <sgtty.h> header file. */ 00260 #undef HAVE_SGTTY_H 00261 00262 /* Define if you have the `sigaction' function. */ 00263 #define HAVE_SIGACTION 00264 00265 /* Define if you have the `signal' function. */ 00266 #undef HAVE_SIGNAL 00267 00268 /* Define if you have the <signal.h> header file. */ 00269 #define HAVE_SIGNAL_H 00270 00271 /* Define if sig_atomic_t is an available typedef. */ 00272 #define HAVE_SIG_ATOMIC_T 00273 00274 /* Define if sig_atomic_t is already defined as volatile. */ 00275 #undef HAVE_SIG_ATOMIC_T_VOLATILE 00276 00277 /* Define if you have the `socket' function. */ 00278 #define HAVE_SOCKET 00279 00280 /* Define if you have the <ssl.h> header file. */ 00281 #undef HAVE_SSL_H 00282 00283 /* Define if you have the <stdint.h> header file. */ 00284 #undef HAVE_STDINT_H 00285 00286 /* Define if you have the <stdlib.h> header file. */ 00287 #define HAVE_STDLIB_H 00288 00289 00290 /* The following define is needed on OS400 to enable strcmpi(), stricmp() and 00291 strdup(). */ 00292 #define __cplusplus__strings__ 00293 00294 /* Define if you have the `strcasecmp' function. */ 00295 #undef HAVE_STRCASECMP 00296 00297 /* Define if you have the `strcmpi' function. */ 00298 #define HAVE_STRCMPI 00299 00300 /* Define if you have the `stricmp' function. */ 00301 #define HAVE_STRICMP 00302 00303 /* Define if you have the `strdup' function. */ 00304 #define HAVE_STRDUP 00305 00306 00307 /* Define if you have the `strftime' function. */ 00308 #define HAVE_STRFTIME 00309 00310 /* Define if you have the <strings.h> header file. */ 00311 #define HAVE_STRINGS_H 00312 00313 /* Define if you have the <string.h> header file. */ 00314 #define HAVE_STRING_H 00315 00316 /* Define if you have the `strlcpy' function. */ 00317 #undef HAVE_STRLCPY 00318 00319 /* Define if you have the <stropts.h> header file. */ 00320 #undef HAVE_STROPTS_H 00321 00322 /* Define if you have the `strstr' function. */ 00323 #define HAVE_STRSTR 00324 00325 /* Define if you have the `strtok_r' function. */ 00326 #define HAVE_STRTOK_R 00327 00328 /* Define if you have the `strtoll' function. */ 00329 #undef HAVE_STRTOLL /* Allows ASCII compile on V5R1. */ 00330 00331 /* Define if you have the <sys/param.h> header file. */ 00332 #define HAVE_SYS_PARAM_H 00333 00334 /* Define if you have the <sys/select.h> header file. */ 00335 #undef HAVE_SYS_SELECT_H 00336 00337 /* Define if you have the <sys/socket.h> header file. */ 00338 #define HAVE_SYS_SOCKET_H 00339 00340 /* Define if you have the <sys/sockio.h> header file. */ 00341 #undef HAVE_SYS_SOCKIO_H 00342 00343 /* Define if you have the <sys/stat.h> header file. */ 00344 #define HAVE_SYS_STAT_H 00345 00346 /* Define if you have the <sys/time.h> header file. */ 00347 #define HAVE_SYS_TIME_H 00348 00349 /* Define if you have the <sys/types.h> header file. */ 00350 #define HAVE_SYS_TYPES_H 00351 00352 /* Define if you have the <sys/un.h> header file. */ 00353 #define HAVE_SYS_UN_H 00354 00355 /* Define if you have the <sys/ioctl.h> header file. */ 00356 #define HAVE_SYS_IOCTL_H 00357 00358 /* Define if you have the `tcgetattr' function. */ 00359 #undef HAVE_TCGETATTR 00360 00361 /* Define if you have the `tcsetattr' function. */ 00362 #undef HAVE_TCSETATTR 00363 00364 /* Define if you have the <termios.h> header file. */ 00365 #undef HAVE_TERMIOS_H 00366 00367 /* Define if you have the <termio.h> header file. */ 00368 #undef HAVE_TERMIO_H 00369 00370 /* Define if you have the <time.h> header file. */ 00371 #define HAVE_TIME_H 00372 00373 /* Define if you have the `uname' function. */ 00374 #undef HAVE_UNAME 00375 00376 /* Define if you have the <unistd.h> header file. */ 00377 #define HAVE_UNISTD_H 00378 00379 /* Define if you have the <winsock.h> header file. */ 00380 #undef HAVE_WINSOCK_H 00381 00382 /* Define if you have the <x509.h> header file. */ 00383 #undef HAVE_X509_H 00384 00385 /* Name of package */ 00386 #undef PACKAGE 00387 00388 /* Define as the return type of signal handlers (`int' or `void'). */ 00389 #define RETSIGTYPE void 00390 00391 /* The size of `int', as computed by sizeof. */ 00392 #define SIZEOF_INT 4 00393 00394 /* The size of a `long double', as computed by sizeof. */ 00395 #define SIZEOF_LONG_DOUBLE 8 00396 00397 /* Define if the compiler supports the 'long long' data type. */ 00398 #define HAVE_LONGLONG 00399 00400 /* The size of a `long long', as computed by sizeof. */ 00401 #define SIZEOF_LONG_LONG 8 00402 00403 /* The size of `short', as computed by sizeof. */ 00404 #define SIZEOF_SHORT 2 00405 00406 /* The size of `size_t', as computed by sizeof. */ 00407 #define SIZEOF_SIZE_T 8 00408 00409 /* Whether long long constants must be suffixed by LL. */ 00410 00411 #define HAVE_LL 00412 00413 /* Define this if you have struct sockaddr_storage */ 00414 #define HAVE_STRUCT_SOCKADDR_STORAGE 00415 00416 /* Define if you have the ANSI C header files. */ 00417 #define STDC_HEADERS 00418 00419 /* Define if you can safely include both <sys/time.h> and <time.h>. */ 00420 #define TIME_WITH_SYS_TIME 00421 00422 /* Version number of package */ 00423 #undef VERSION 00424 00425 /* Number of bits in a file offset, on hosts where this is settable. */ 00426 #undef _FILE_OFFSET_BITS 00427 00428 /* Define for large files, on AIX-style hosts. */ 00429 #define _LARGE_FILES 00430 00431 /* Define to empty if `const' does not conform to ANSI C. */ 00432 #undef const 00433 00434 /* type to use in place of in_addr_t if not defined */ 00435 #define in_addr_t unsigned long 00436 00437 /* Define to `unsigned' if <sys/types.h> does not define. */ 00438 #undef size_t 00439 00440 /* Define if you have the ioctl function. */ 00441 #define HAVE_IOCTL 00442 00443 /* Define if you have a working ioctl FIONBIO function. */ 00444 #define HAVE_IOCTL_FIONBIO 00445 00446 /* Define if you have a working ioctl SIOCGIFADDR function. */ 00447 #define HAVE_IOCTL_SIOCGIFADDR 00448 00449 /* To disable LDAP */ 00450 #undef CURL_DISABLE_LDAP 00451 00452 /* Definition to make a library symbol externally visible. */ 00453 #define CURL_EXTERN_SYMBOL 00454 00455 /* Define if you have the ldap_url_parse procedure. */ 00456 /* #define HAVE_LDAP_URL_PARSE */ /* Disabled because of an IBM bug. */ 00457 00458 /* Define if you have the getnameinfo function. */ 00459 /* OS400 has no ASCII version of this procedure: wrapped in setup-os400.h. */ 00460 #define HAVE_GETNAMEINFO 00461 00462 /* Define to the type qualifier of arg 1 for getnameinfo. */ 00463 #define GETNAMEINFO_QUAL_ARG1 const 00464 00465 /* Define to the type of arg 1 for getnameinfo. */ 00466 #define GETNAMEINFO_TYPE_ARG1 struct sockaddr * 00467 00468 /* Define to the type of arg 2 for getnameinfo. */ 00469 #define GETNAMEINFO_TYPE_ARG2 socklen_t 00470 00471 /* Define to the type of args 4 and 6 for getnameinfo. */ 00472 #define GETNAMEINFO_TYPE_ARG46 socklen_t 00473 00474 /* Define to the type of arg 7 for getnameinfo. */ 00475 #define GETNAMEINFO_TYPE_ARG7 int 00476 00477 /* Define if you have the recv function. */ 00478 #define HAVE_RECV 00479 00480 /* Define to the type of arg 1 for recv. */ 00481 #define RECV_TYPE_ARG1 int 00482 00483 /* Define to the type of arg 2 for recv. */ 00484 #define RECV_TYPE_ARG2 char * 00485 00486 /* Define to the type of arg 3 for recv. */ 00487 #define RECV_TYPE_ARG3 int 00488 00489 /* Define to the type of arg 4 for recv. */ 00490 #define RECV_TYPE_ARG4 int 00491 00492 /* Define to the function return type for recv. */ 00493 #define RECV_TYPE_RETV int 00494 00495 /* Define if you have the recvfrom function. */ 00496 #define HAVE_RECVFROM 00497 00498 /* Define to the type of arg 1 for recvfrom. */ 00499 #define RECVFROM_TYPE_ARG1 int 00500 00501 /* Define to the type pointed by arg 2 for recvfrom. */ 00502 #define RECVFROM_TYPE_ARG2 char 00503 00504 /* Define to the type of arg 3 for recvfrom. */ 00505 #define RECVFROM_TYPE_ARG3 int 00506 00507 /* Define to the type of arg 4 for recvfrom. */ 00508 #define RECVFROM_TYPE_ARG4 int 00509 00510 /* Define to the type pointed by arg 5 for recvfrom. */ 00511 #define RECVFROM_TYPE_ARG5 struct sockaddr 00512 00513 /* Define to the type pointed by arg 6 for recvfrom. */ 00514 #define RECVFROM_TYPE_ARG6 int 00515 00516 /* Define to the function return type for recvfrom. */ 00517 #define RECVFROM_TYPE_RETV int 00518 00519 /* Define if you have the send function. */ 00520 #define HAVE_SEND 00521 00522 /* Define to the type of arg 1 for send. */ 00523 #define SEND_TYPE_ARG1 int 00524 00525 /* Define to the type qualifier of arg 2 for send. */ 00526 #define SEND_QUAL_ARG2 00527 00528 /* Define to the type of arg 2 for send. */ 00529 #define SEND_TYPE_ARG2 char * 00530 00531 /* Define to the type of arg 3 for send. */ 00532 #define SEND_TYPE_ARG3 int 00533 00534 /* Define to the type of arg 4 for send. */ 00535 #define SEND_TYPE_ARG4 int 00536 00537 /* Define to the function return type for send. */ 00538 #define SEND_TYPE_RETV int 00539 00540 /* Define to use the GSKit package. */ 00541 #define USE_GSKIT 00542 00543 /* Define to use the OS/400 crypto library. */ 00544 #define USE_OS400CRYPTO 00545 00546 /* Define to use Unix sockets. */ 00547 #define USE_UNIX_SOCKETS 00548 00549 /* Use the system keyring as the default CA bundle. */ 00550 #define CURL_CA_BUNDLE "/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB" 00551 00552 /* ---------------------------------------------------------------- */ 00553 /* ADDITIONAL DEFINITIONS */ 00554 /* ---------------------------------------------------------------- */ 00555 00556 /* The following must be defined BEFORE system header files inclusion. */ 00557 00558 #define __ptr128 /* No teraspace. */ 00559 #define qadrt_use_fputc_inline /* Generate fputc() wrapper inline. */ 00560 #define qadrt_use_fread_inline /* Generate fread() wrapper inline. */ 00561 #define qadrt_use_fwrite_inline /* Generate fwrite() wrapper inline. */ 00562 00563 #endif /* HEADER_CURL_CONFIG_OS400_H */