From 557cc55f6f398c0cd02571c077d5c73156820513 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Thu, 23 Aug 2007 14:30:24 +0000 Subject: Porting library to OS/400 --- lib/config-os400.h | 475 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 475 insertions(+) create mode 100644 lib/config-os400.h (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h new file mode 100644 index 000000000..6eccff1e7 --- /dev/null +++ b/lib/config-os400.h @@ -0,0 +1,475 @@ +/* ================================================================ */ +/* lib/config-os400.h - Hand crafted config file for OS/400 */ +/* ================================================================ */ + +#pragma enum(int) + +#undef PACKAGE + +/* Version number of this archive. */ +#undef VERSION + +/* Define if you have the getpass function. */ +#undef HAVE_GETPASS + +/* Define cpu-machine-OS */ +#define OS "OS/400" + +/* Define if you have the gethostbyaddr_r() function with 5 arguments */ +#define HAVE_GETHOSTBYADDR_R_5 + +/* Define if you have the gethostbyaddr_r() function with 7 arguments */ +#undef HAVE_GETHOSTBYADDR_R_7 + +/* Define if you have the gethostbyaddr_r() function with 8 arguments */ +#undef HAVE_GETHOSTBYADDR_R_8 + +/* Define if you have the gethostbyname_r() function with 3 arguments */ +#define HAVE_GETHOSTBYNAME_R_3 + +/* Define if you have the gethostbyname_r() function with 5 arguments */ +#undef HAVE_GETHOSTBYNAME_R_5 + +/* Define if you have the gethostbyname_r() function with 6 arguments */ +#undef HAVE_GETHOSTBYNAME_R_6 + +/* Define if you have the inet_ntoa_r function declared. */ +#define HAVE_INET_NTOA_R_DECL + +/* Define if the inet_ntoa_r function returns an int. */ +#define HAVE_INT_INET_NTOA_R + +/* Define if you need the _REENTRANT define for some functions */ +#undef NEED_REENTRANT + +/* Define if you have the Kerberos4 libraries (including -ldes) */ +#undef HAVE_KRB4 + +/* Define if you want to enable IPv6 support */ +#define ENABLE_IPV6 + +/* Define this to 'int' if ssize_t is not an available typedefed type */ +#undef ssize_t + +/* Define this to 'int' if socklen_t is not an available typedefed type */ +#undef socklen_t + +/* Define this as a suitable file to read random data from */ +#undef RANDOM_FILE + +/* Define this to your Entropy Gathering Daemon socket pathname */ +#undef EGD_SOCKET + +/* Set to explicitly specify we don't want to use thread-safe functions */ +#undef DISABLED_THREADSAFE + +/* Define if you have the header file. */ +#undef HAVE_ALLOCA_H + +/* Define if you have the header file. */ +#define HAVE_ARPA_INET_H + +/* Define if you have the `closesocket' function. */ +#undef HAVE_CLOSESOCKET + +/* Define if you have the header file. */ +#undef HAVE_CRYPTO_H + +/* Define if you have the header file. */ +#undef HAVE_DES_H + +/* Define if you have the header file. */ +#undef HAVE_ERR_H + +/* Define if you have the header file. */ +#define HAVE_FCNTL_H + +/* Define if getaddrinfo exists and works */ +/* OS400 has no ASCII version of this procedure. */ +#undef HAVE_GETADDRINFO + +/* Define if you have the `geteuid' function. */ +#define HAVE_GETEUID + +/* Define if you have the `gethostbyaddr' function. */ +#define HAVE_GETHOSTBYADDR + +/* Define if you have the `gethostbyaddr_r' function. */ +#define HAVE_GETHOSTBYADDR_R + +/* Define if you have the `gethostbyname_r' function. */ +#define HAVE_GETHOSTBYNAME_R + +/* Define if you have the `gethostname' function. */ +#define HAVE_GETHOSTNAME + +/* Define if you have the header file. */ +#undef HAVE_GETOPT_H + +/* Define if you have the `getpass_r' function. */ +#undef HAVE_GETPASS_R + +/* Define if you have the `getpwuid' function. */ +#define HAVE_GETPWUID + +/* Define if you have the `getservbyname' function. */ +#define HAVE_GETSERVBYNAME + +/* Define if you have the `gettimeofday' function. */ +#define HAVE_GETTIMEOFDAY + +/* Define if you have the `timeval' struct. */ +#define HAVE_STRUCT_TIMEVAL + +/* Define if you have the `inet_addr' function. */ +#define HAVE_INET_ADDR + +/* Define if you have the `inet_ntoa' function. */ +#define HAVE_INET_NTOA + +/* Define if you have the `inet_ntoa_r' function. */ +#define HAVE_INET_NTOA_R + +/* Define if you have the header file. */ +#define HAVE_INTTYPES_H + +/* Define if you have the header file. */ +#undef HAVE_IO_H + +/* Define if you have the `krb_get_our_ip_for_realm' function. */ +#undef HAVE_KRB_GET_OUR_IP_FOR_REALM + +/* Define if you have the header file. */ +#undef HAVE_KRB_H + +/* Define if you have the `crypto' library (-lcrypto). */ +#undef HAVE_LIBCRYPTO + +/* Define if you have the `nsl' library (-lnsl). */ +#undef HAVE_LIBNSL + +/* Define if you have the `resolv' library (-lresolv). */ +#undef HAVE_LIBRESOLV + +/* Define if you have the `resolve' library (-lresolve). */ +#undef HAVE_LIBRESOLVE + +/* Define if you have the `socket' library (-lsocket). */ +#undef HAVE_LIBSOCKET + +/* Define if you have the `ssl' library (-lssl). */ +#undef HAVE_LIBSSL + +/* Define if you have GSS API. */ +#define HAVE_GSSAPI + +/* Define if you have the `ucb' library (-lucb). */ +#undef HAVE_LIBUCB + +/* Define if you have the `localtime_r' function. */ +#define HAVE_LOCALTIME_R + +/* Define if you have the header file. */ +#define HAVE_MALLOC_H + +/* Define if you need the malloc.h header file even with stdlib.h */ +/* #define NEED_MALLOC_H 1 */ + +/* Define if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define if you have the header file. */ +#define HAVE_NETDB_H + +/* Define if you have the header file. */ +#undef HAVE_NETINET_IF_ETHER_H + +/* Define if you have the header file. */ +#define HAVE_NETINET_IN_H + +/* Define if you have the header file. */ +#define HAVE_NET_IF_H + +/* Define if you have the header file. */ +#undef HAVE_OPENSSL_CRYPTO_H + +/* Define if you have the header file. */ +#undef HAVE_OPENSSL_ERR_H + +/* Define if you have the header file. */ +#undef HAVE_OPENSSL_PEM_H + +/* Define if you have the header file. */ +#undef HAVE_OPENSSL_RSA_H + +/* Define if you have the header file. */ +#undef HAVE_OPENSSL_SSL_H + +/* Define if you have the header file. */ +#undef HAVE_OPENSSL_X509_H + +/* Define if you have the header file. */ +#undef HAVE_PEM_H + +/* Define if you have the `perror' function. */ +#define HAVE_PERROR + +/* Define if you have the header file. */ +#define HAVE_PWD_H + +/* Define if you have the `RAND_egd' function. */ +#undef HAVE_RAND_EGD + +/* Define if you have the `RAND_screen' function. */ +#undef HAVE_RAND_SCREEN + +/* Define if you have the `RAND_status' function. */ +#undef HAVE_RAND_STATUS + +/* Define if you have the header file. */ +#undef HAVE_RSA_H + +/* Define if you have the `select' function. */ +#define HAVE_SELECT + +/* Define if you have the `setvbuf' function. */ +#define HAVE_SETVBUF + +/* Define if you have the header file. */ +#undef HAVE_SGTTY_H + +/* Define if you have the `sigaction' function. */ +#define HAVE_SIGACTION + +/* Define if you have the `signal' function. */ +#undef HAVE_SIGNAL + +/* Define if you have the header file. */ +#define HAVE_SIGNAL_H + +/* Define if sig_atomic_t is an available typedef. */ +#define HAVE_SIG_ATOMIC_T + +/* Define if sig_atomic_t is already defined as volatile. */ +#undef HAVE_SIG_ATOMIC_T_VOLATILE + +/* Define if you have the `socket' function. */ +#define HAVE_SOCKET + +/* Define if you have the header file. */ +#undef HAVE_SSL_H + +/* Define if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define if you have the header file. */ +#define HAVE_STDLIB_H + +/* Define if you have the `strcasecmp' function. */ +#undef HAVE_STRCASECMP + +/* Define if you have the `strcmpi' function. */ +#undef HAVE_STRCMPI + +/* Define if you have the `strdup' function. */ +#undef HAVE_STRDUP + +/* Define if you have the `strftime' function. */ +#define HAVE_STRFTIME + +/* Define if you have the `stricmp' function. */ +#undef HAVE_STRICMP + +/* Define if you have the header file. */ +#define HAVE_STRINGS_H + +/* Define if you have the header file. */ +#define HAVE_STRING_H + +/* Define if you have the `strlcat' function. */ +#undef HAVE_STRLCAT + +/* Define if you have the `strlcpy' function. */ +#undef HAVE_STRLCPY + +/* Define if you have the `strstr' function. */ +#define HAVE_STRSTR + +/* Define if you have the `strtok_r' function. */ +#define HAVE_STRTOK_R + +/* Define if you have the `strtoll' function. */ +#undef HAVE_STRTOLL /* Allows ASCII compile on V5R1. */ + +/* Define if you have the header file. */ +#define HAVE_SYS_PARAM_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_SELECT_H + +/* Define if you have the header file. */ +#define HAVE_SYS_SOCKET_H + +/* Define if you have the header file. */ +#undef HAVE_SYS_SOCKIO_H + +/* Define if you have the header file. */ +#define HAVE_SYS_STAT_H + +/* Define if you have the header file. */ +#define HAVE_SYS_TIME_H + +/* Define if you have the header file. */ +#define HAVE_SYS_TYPES_H + +/* Define if you have the header file. */ +#define HAVE_SYS_IOCTL_H + +/* Define if you have the `tcgetattr' function. */ +#undef HAVE_TCGETATTR + +/* Define if you have the `tcsetattr' function. */ +#undef HAVE_TCSETATTR + +/* Define if you have the header file. */ +#undef HAVE_TERMIOS_H + +/* Define if you have the header file. */ +#undef HAVE_TERMIO_H + +/* Define if you have the header file. */ +#define HAVE_TIME_H + +/* Define if you have the `uname' function. */ +#undef HAVE_UNAME + +/* Define if you have the header file. */ +#define HAVE_UNISTD_H + +/* Define if you have the header file. */ +#undef HAVE_WINSOCK_H + +/* Define if you have the header file. */ +#undef HAVE_X509_H + +/* Name of package */ +#undef PACKAGE + +/* Define as the return type of signal handlers (`int' or `void'). */ +#define RETSIGTYPE void + +/* The size of a `long double', as computed by sizeof. */ +#define SIZEOF_LONG_DOUBLE 8 + +/* The size of a `long long', as computed by sizeof. */ +#define SIZEOF_LONG_LONG 8 + +/* Whether long long constants must be suffixed by LL. */ + +#define HAVE_LL + +/* The size of `curl_off_t', as computed by sizeof. */ + +#ifndef _LARGE_FILES +#define _LARGE_FILES +#endif + +#define SIZEOF_CURL_OFF_T 8 + +/* Define if you have the ANSI C header files. */ +#define STDC_HEADERS + +/* Define if you can safely include both and . */ +#define TIME_WITH_SYS_TIME + +/* Version number of package */ +#undef VERSION + +/* Number of bits in a file offset, on hosts where this is settable. */ +#undef _FILE_OFFSET_BITS + +/* Define for large files, on AIX-style hosts. */ +#undef _LARGE_FILES + +/* Define to empty if `const' does not conform to ANSI C. */ +#undef const + +/* type to use in place of in_addr_t if not defined */ +#define in_addr_t unsigned long + +/* Define to `unsigned' if does not define. */ +#undef size_t + +#define IOCTL_3_ARGS + +#define HAVE_FIONBIO + +/* to disable LDAP */ +#undef CURL_DISABLE_LDAP + +/* Define if you have the ldap_url_parse procedure. */ +/* #define HAVE_LDAP_URL_PARSE */ /* Disabled because of an IBM bug. */ + +/* Define if you have the getnameinfo function. */ +/* OS400 has no ASCII version of this procedure. */ +#undef HAVE_GETNAMEINFO + +/* Define to the type qualifier of arg 1 for getnameinfo. */ +#define GETNAMEINFO_QUAL_ARG1 const + +/* Define to the type of arg 1 for getnameinfo. */ +#define GETNAMEINFO_TYPE_ARG1 struct sockaddr * + +/* Define to the type of arg 2 for getnameinfo. */ +#define GETNAMEINFO_TYPE_ARG2 socklen_t + +/* Define to the type of args 4 and 6 for getnameinfo. */ +#define GETNAMEINFO_TYPE_ARG46 socklen_t + +/* Define to the type of arg 7 for getnameinfo. */ +#define GETNAMEINFO_TYPE_ARG7 int + +/* Define if you have the recv function. */ +#define HAVE_RECV + +/* Define to the type of arg 1 for recv. */ +#define RECV_TYPE_ARG1 int + +/* Define to the type of arg 2 for recv. */ +#define RECV_TYPE_ARG2 char * + +/* Define to the type of arg 3 for recv. */ +#define RECV_TYPE_ARG3 int + +/* Define to the type of arg 4 for recv. */ +#define RECV_TYPE_ARG4 int + +/* Define to the function return type for recv. */ +#define RECV_TYPE_RETV int + +/* Define if you have the send function. */ +#define HAVE_SEND + +/* Define to the type of arg 1 for send. */ +#define SEND_TYPE_ARG1 int + +/* Define to the type qualifier of arg 2 for send. */ +#define SEND_QUAL_ARG2 + +/* Define to the type of arg 2 for send. */ +#define SEND_TYPE_ARG2 char * + +/* Define to the type of arg 3 for send. */ +#define SEND_TYPE_ARG3 int + +/* Define to the type of arg 4 for send. */ +#define SEND_TYPE_ARG4 int + +/* Define to the function return type for send. */ +#define SEND_TYPE_RETV int + +/* Define to use the QsoSSL package. */ +#define USE_QSOSSL + +/* Use the system keyring as the default CA bundle. */ +#define CURL_CA_BUNDLE "/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB" -- cgit v1.2.1 From a005243908803662d4a05427bc1061db42f4d057 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Mon, 15 Oct 2007 18:32:01 +0000 Subject: Fix dynamic CURLOPT_POSTFIELDS bug: back to static. CURLOPT_COPYPOSTFIELDS option added for dynamic. Fix some OS400 features. --- lib/config-os400.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index 6eccff1e7..5e30e435d 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -361,6 +361,9 @@ /* The size of a `long double', as computed by sizeof. */ #define SIZEOF_LONG_DOUBLE 8 +/* Define if 64 bit integers are supported. */ +#define HAVE_LONGLONG + /* The size of a `long long', as computed by sizeof. */ #define SIZEOF_LONG_LONG 8 -- cgit v1.2.1 From 24bf52bc691cca9f8b3a668e26b4dd695ec4991c Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Tue, 20 May 2008 10:21:50 +0000 Subject: Adapting last changes to OS400: _ Updated packages/OS400/curl.inc.in with new definitions. _ New connect/bind/sendto/recvfrom wrappers to support AF_UNIX sockets. _ Include files line length shortened below 100 chars. _ Const parameter in lib/qssl.[ch]. _ Typos in packages/OS400/initscript.sh. --- lib/config-os400.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index 5e30e435d..edc398768 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -322,6 +322,9 @@ /* Define if you have the header file. */ #define HAVE_SYS_TYPES_H +/* Define if you have the header file. */ +#define HAVE_SYS_UN_H + /* Define if you have the header file. */ #define HAVE_SYS_IOCTL_H @@ -379,6 +382,9 @@ #define SIZEOF_CURL_OFF_T 8 +/* Define this if you have struct sockaddr_storage */ +#define HAVE_STRUCT_SOCKADDR_STORAGE + /* Define if you have the ANSI C header files. */ #define STDC_HEADERS -- cgit v1.2.1 From 0163b5b8be819bceb66546d6205c8d57913fc3ee Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 21 May 2008 13:57:50 +0000 Subject: fix: socklen_t definition comment --- lib/config-os400.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index edc398768..edc01e679 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -51,7 +51,7 @@ /* Define this to 'int' if ssize_t is not an available typedefed type */ #undef ssize_t -/* Define this to 'int' if socklen_t is not an available typedefed type */ +/* Type to use in place of socklen_t when system does not provide it. */ #undef socklen_t /* Define this as a suitable file to read random data from */ -- cgit v1.2.1 From a9dc900515a28dcf55b2901a8609072430087693 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 16 Jul 2008 19:16:41 +0000 Subject: Configure process now checks availability of recvfrom() socket function and finds out its return type and the types of its arguments. Added definitions for non-configure systems config files, and introduced macro sreadfrom which will be used on udp sockets as a recvfrom() wrapper. --- lib/config-os400.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index edc01e679..20785665c 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -456,6 +456,30 @@ /* Define to the function return type for recv. */ #define RECV_TYPE_RETV int +/* Define if you have the recvfrom function. */ +#define HAVE_RECVFROM + +/* Define to the type of arg 1 for recvfrom. */ +#define RECVFROM_TYPE_ARG1 int + +/* Define to the type of arg 2 for recvfrom. */ +#define RECVFROM_TYPE_ARG2 char * + +/* Define to the type of arg 3 for recvfrom. */ +#define RECVFROM_TYPE_ARG3 int + +/* Define to the type of arg 4 for recvfrom. */ +#define RECVFROM_TYPE_ARG4 int + +/* Define to the type of arg 5 for recvfrom. */ +#define RECVFROM_TYPE_ARG5 struct sockaddr * + +/* Define to the type of arg 6 for recvfrom. */ +#define RECVFROM_TYPE_ARG6 int * + +/* Define to the function return type for recvfrom. */ +#define RECVFROM_TYPE_RETV int + /* Define if you have the send function. */ #define HAVE_SEND -- cgit v1.2.1 From 39f23aec6b3cd5e7e5dd9077d96f8eff37ff2b19 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 17 Jul 2008 03:07:54 +0000 Subject: RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now defined to the data type pointed by its respective argument and not the pointer type. --- lib/config-os400.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index 20785665c..f5ca8a2d7 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -462,8 +462,8 @@ /* Define to the type of arg 1 for recvfrom. */ #define RECVFROM_TYPE_ARG1 int -/* Define to the type of arg 2 for recvfrom. */ -#define RECVFROM_TYPE_ARG2 char * +/* Define to the type pointed by arg 2 for recvfrom. */ +#define RECVFROM_TYPE_ARG2 char /* Define to the type of arg 3 for recvfrom. */ #define RECVFROM_TYPE_ARG3 int @@ -471,11 +471,11 @@ /* Define to the type of arg 4 for recvfrom. */ #define RECVFROM_TYPE_ARG4 int -/* Define to the type of arg 5 for recvfrom. */ -#define RECVFROM_TYPE_ARG5 struct sockaddr * +/* Define to the type pointed by arg 5 for recvfrom. */ +#define RECVFROM_TYPE_ARG5 struct sockaddr -/* Define to the type of arg 6 for recvfrom. */ -#define RECVFROM_TYPE_ARG6 int * +/* Define to the type pointed by arg 6 for recvfrom. */ +#define RECVFROM_TYPE_ARG6 int /* Define to the function return type for recvfrom. */ #define RECVFROM_TYPE_RETV int -- cgit v1.2.1 From f22114aeeda6b54067966fec397e6a6d73d05426 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 22 Jul 2008 00:12:06 +0000 Subject: minor reordering in OS/400 config/setup files --- lib/config-os400.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index f5ca8a2d7..d3b3d4585 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -506,3 +506,15 @@ /* Use the system keyring as the default CA bundle. */ #define CURL_CA_BUNDLE "/QIBM/UserData/ICSS/Cert/Server/DEFAULT.KDB" + +/* ---------------------------------------------------------------- */ +/* ADDITIONAL DEFINITIONS */ +/* ---------------------------------------------------------------- */ + +/* The following must be defined BEFORE system header files inclusion. */ + +#define __ptr128 /* No teraspace. */ +#define qadrt_use_fputc_inline /* Generate fputc() wrapper inline. */ +#define qadrt_use_fread_inline /* Generate fread() wrapper inline. */ +#define qadrt_use_fwrite_inline /* Generate fwrite() wrapper inline. */ + -- cgit v1.2.1 From 14240e9e109fe6af19438c6531d573f85dbb0b1e Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 7 Aug 2008 00:29:08 +0000 Subject: Initial support of curlbuild.h and curlrules.h which allows to have a curl_off_t data type no longer gated to off_t. --- lib/config-os400.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index d3b3d4585..c52098731 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -374,14 +374,12 @@ #define HAVE_LL -/* The size of `curl_off_t', as computed by sizeof. */ +/* */ #ifndef _LARGE_FILES #define _LARGE_FILES #endif -#define SIZEOF_CURL_OFF_T 8 - /* Define this if you have struct sockaddr_storage */ #define HAVE_STRUCT_SOCKADDR_STORAGE -- cgit v1.2.1 From ceb49d3742e4c27fdd86f9a6b043bebf7f42deaa Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 21 Aug 2008 00:06:15 +0000 Subject: Get rid of ENABLE_64BIT symbol definition and usage. Improve HAVE_LONGLONG symbol description. --- lib/config-os400.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index c52098731..abe9bb875 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -364,7 +364,7 @@ /* The size of a `long double', as computed by sizeof. */ #define SIZEOF_LONG_DOUBLE 8 -/* Define if 64 bit integers are supported. */ +/* Define if the compiler supports the 'long long' data type. */ #define HAVE_LONGLONG /* The size of a `long long', as computed by sizeof. */ -- cgit v1.2.1 From 852a02daff914c11c7dba80727bd70dbd7ce5f95 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Tue, 26 Aug 2008 09:26:06 +0000 Subject: Fix _LARGE_FILES definition (thanks to Yang Tse for signaling the bug) --- lib/config-os400.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index abe9bb875..246ef9199 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -374,12 +374,6 @@ #define HAVE_LL -/* */ - -#ifndef _LARGE_FILES -#define _LARGE_FILES -#endif - /* Define this if you have struct sockaddr_storage */ #define HAVE_STRUCT_SOCKADDR_STORAGE @@ -396,7 +390,7 @@ #undef _FILE_OFFSET_BITS /* Define for large files, on AIX-style hosts. */ -#undef _LARGE_FILES +#define _LARGE_FILES /* Define to empty if `const' does not conform to ANSI C. */ #undef const -- cgit v1.2.1 From 19bc92289ddb57110b93b1480d058e31963d9648 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 19 Sep 2008 23:51:16 +0000 Subject: HAVE_ALARM definition for static config-*.h files --- lib/config-os400.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index 246ef9199..f49a159c9 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -63,6 +63,9 @@ /* Set to explicitly specify we don't want to use thread-safe functions */ #undef DISABLED_THREADSAFE +/* Define to 1 if you have the alarm function. */ +#define HAVE_ALARM 1 + /* Define if you have the header file. */ #undef HAVE_ALLOCA_H -- cgit v1.2.1 From 4e909ee8b1e7e9f174af629615224180568a7e92 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 24 Sep 2008 12:22:16 +0000 Subject: ntoa() and inet_ntoa_r() no longer used --- lib/config-os400.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index f49a159c9..647893d99 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -33,12 +33,6 @@ /* Define if you have the gethostbyname_r() function with 6 arguments */ #undef HAVE_GETHOSTBYNAME_R_6 -/* Define if you have the inet_ntoa_r function declared. */ -#define HAVE_INET_NTOA_R_DECL - -/* Define if the inet_ntoa_r function returns an int. */ -#define HAVE_INT_INET_NTOA_R - /* Define if you need the _REENTRANT define for some functions */ #undef NEED_REENTRANT @@ -127,12 +121,6 @@ /* Define if you have the `inet_addr' function. */ #define HAVE_INET_ADDR -/* Define if you have the `inet_ntoa' function. */ -#define HAVE_INET_NTOA - -/* Define if you have the `inet_ntoa_r' function. */ -#define HAVE_INET_NTOA_R - /* Define if you have the header file. */ #define HAVE_INTTYPES_H -- cgit v1.2.1 From 17d2a464ad42c47ec37870e4b01a18ef5593877f Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 13 Nov 2008 18:56:55 +0000 Subject: Refactor configure script detection of functions used to set sockets into non-blocking mode, and decouple function detection from function capability. --- lib/config-os400.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index 647893d99..e562b3c0b 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -394,7 +394,11 @@ #define IOCTL_3_ARGS -#define HAVE_FIONBIO +/* Define if you have the ioctl function. */ +#define HAVE_IOCTL + +/* Define if you have a working ioctl FIONBIO function. */ +#define HAVE_IOCTL_FIONBIO /* to disable LDAP */ #undef CURL_DISABLE_LDAP -- cgit v1.2.1 From 608fdce0a0541cbd73eb80e7db1b5e3df70d1bf5 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 17 Nov 2008 14:24:15 +0000 Subject: if2ip.c related preprocessor cleanup --- lib/config-os400.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index e562b3c0b..0814773b5 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -283,6 +283,9 @@ /* Define if you have the `strlcpy' function. */ #undef HAVE_STRLCPY +/* Define if you have the header file. */ +#define HAVE_STROPTS_H + /* Define if you have the `strstr' function. */ #define HAVE_STRSTR @@ -392,14 +395,15 @@ /* Define to `unsigned' if does not define. */ #undef size_t -#define IOCTL_3_ARGS - /* Define if you have the ioctl function. */ #define HAVE_IOCTL /* Define if you have a working ioctl FIONBIO function. */ #define HAVE_IOCTL_FIONBIO +/* Define if you have a working ioctl SIOCGIFADDR function. */ +#define HAVE_IOCTL_SIOCGIFADDR + /* to disable LDAP */ #undef CURL_DISABLE_LDAP -- cgit v1.2.1 From 8e255534a1513584d2411b10b47ea1249d8aaedc Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Thu, 11 Dec 2008 19:20:03 +0000 Subject: _ Use getaddrinfo/getnameinfo ascii wrappers on OS400. _ Adjust OS400 make script for non-CVS distributions. _ Upgrade ILE/RPG binding. _ Define CURL_HIDDEN_SYMBOLS on OS400, since only CURL_EXTERN-marked symbols are exported. --- lib/config-os400.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index 0814773b5..3a118796a 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -82,8 +82,8 @@ #define HAVE_FCNTL_H /* Define if getaddrinfo exists and works */ -/* OS400 has no ASCII version of this procedure. */ -#undef HAVE_GETADDRINFO +/* OS400 has no ASCII version of this procedure: wrapped in setup-os400.h. */ +#define HAVE_GETADDRINFO /* Define if you have the `geteuid' function. */ #define HAVE_GETEUID @@ -284,7 +284,7 @@ #undef HAVE_STRLCPY /* Define if you have the header file. */ -#define HAVE_STROPTS_H +#undef HAVE_STROPTS_H /* Define if you have the `strstr' function. */ #define HAVE_STRSTR @@ -404,15 +404,21 @@ /* Define if you have a working ioctl SIOCGIFADDR function. */ #define HAVE_IOCTL_SIOCGIFADDR -/* to disable LDAP */ +/* To disable LDAP */ #undef CURL_DISABLE_LDAP +/* To avoid external use of library hidden symbols */ +#define CURL_HIDDEN_SYMBOLS + +/* External symbols need no special keyword. */ +#define CURL_EXTERN_SYMBOL + /* Define if you have the ldap_url_parse procedure. */ /* #define HAVE_LDAP_URL_PARSE */ /* Disabled because of an IBM bug. */ /* Define if you have the getnameinfo function. */ -/* OS400 has no ASCII version of this procedure. */ -#undef HAVE_GETNAMEINFO +/* OS400 has no ASCII version of this procedure: wrapped in setup-os400.h. */ +#define HAVE_GETNAMEINFO /* Define to the type qualifier of arg 1 for getnameinfo. */ #define GETNAMEINFO_QUAL_ARG1 const -- cgit v1.2.1 From 104377d718654947f42f8812b17d1d3127c843a0 Mon Sep 17 00:00:00 2001 From: Gunter Knauf Date: Tue, 30 Dec 2008 07:31:04 +0000 Subject: added HAVE_SIN6_SCOPE_ID define to all non-configure platforms which seem to be IPv6-aware. --- lib/config-os400.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index 3a118796a..dccf8a869 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -42,6 +42,9 @@ /* Define if you want to enable IPv6 support */ #define ENABLE_IPV6 +/* Define if struct sockaddr_in6 has the sin6_scope_id member */ +#define HAVE_SIN6_SCOPE_ID 1 + /* Define this to 'int' if ssize_t is not an available typedefed type */ #undef ssize_t -- cgit v1.2.1 From 1cc50d31f9962264fd78cdbe6a27dac10742dcd6 Mon Sep 17 00:00:00 2001 From: Gunter Knauf Date: Tue, 30 Dec 2008 08:05:38 +0000 Subject: changed HAVE_SIN6_SCOPE_ID define to HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID since just found that ares already uses this define. --- lib/config-os400.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index dccf8a869..efb019551 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -43,7 +43,7 @@ #define ENABLE_IPV6 /* Define if struct sockaddr_in6 has the sin6_scope_id member */ -#define HAVE_SIN6_SCOPE_ID 1 +#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1 /* Define this to 'int' if ssize_t is not an available typedefed type */ #undef ssize_t -- cgit v1.2.1 From 9137e717b04644592b9b527839470337fdd9f44d Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 2 May 2009 02:37:32 +0000 Subject: Use build-time configured curl_socklen_t instead of socklen_t --- lib/config-os400.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index efb019551..371cbea28 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -48,9 +48,6 @@ /* Define this to 'int' if ssize_t is not an available typedefed type */ #undef ssize_t -/* Type to use in place of socklen_t when system does not provide it. */ -#undef socklen_t - /* Define this as a suitable file to read random data from */ #undef RANDOM_FILE -- cgit v1.2.1 From 581ce03345d38b124c03c30dcfadcc5b2a2dd819 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sun, 15 Nov 2009 02:45:23 +0000 Subject: Remove enable-thread / disable-thread configure option. These were only placebo options. The library is always built as thread safe as possible on every system. --- lib/config-os400.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index 371cbea28..7a303fdbb 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -54,9 +54,6 @@ /* Define this to your Entropy Gathering Daemon socket pathname */ #undef EGD_SOCKET -/* Set to explicitly specify we don't want to use thread-safe functions */ -#undef DISABLED_THREADSAFE - /* Define to 1 if you have the alarm function. */ #define HAVE_ALARM 1 -- cgit v1.2.1 From 4258e943a15013952afd67354800ec6199af7050 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Thu, 11 Feb 2010 18:49:06 +0000 Subject: _ Make it compilable again on OS400. _ Upgrade OS400 EBCDIC wrappers for new options. _ Upgrade ILE/RPG bindings to current state. --- lib/config-os400.h | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index 7a303fdbb..ac75db2a2 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -24,14 +24,18 @@ /* Define if you have the gethostbyaddr_r() function with 8 arguments */ #undef HAVE_GETHOSTBYADDR_R_8 -/* Define if you have the gethostbyname_r() function with 3 arguments */ -#define HAVE_GETHOSTBYNAME_R_3 - -/* Define if you have the gethostbyname_r() function with 5 arguments */ +/* OS400 supports a 3-argument ASCII version of gethostbyaddr_r(), but its + * prototype is incompatible with the "standard" one (1st argument is not + * const). However, getaddrinfo() is supported (ASCII version defined as + * a local wrapper in setup-os400.h) in a threadsafe way: we can then + * configure getaddrinfo() as such and get rid of gethostbyname_r() without + * loss of threadsafeness. */ +#undef HAVE_GETHOSTBYNAME_R +#undef HAVE_GETHOSTBYNAME_R_3 #undef HAVE_GETHOSTBYNAME_R_5 - -/* Define if you have the gethostbyname_r() function with 6 arguments */ #undef HAVE_GETHOSTBYNAME_R_6 +#define HAVE_GETADDRINFO +#define HAVE_GETADDRINFO_THREADSAFE /* Define if you need the _REENTRANT define for some functions */ #undef NEED_REENTRANT @@ -78,10 +82,6 @@ /* Define if you have the header file. */ #define HAVE_FCNTL_H -/* Define if getaddrinfo exists and works */ -/* OS400 has no ASCII version of this procedure: wrapped in setup-os400.h. */ -#define HAVE_GETADDRINFO - /* Define if you have the `geteuid' function. */ #define HAVE_GETEUID @@ -91,9 +91,6 @@ /* Define if you have the `gethostbyaddr_r' function. */ #define HAVE_GETHOSTBYADDR_R -/* Define if you have the `gethostbyname_r' function. */ -#define HAVE_GETHOSTBYNAME_R - /* Define if you have the `gethostname' function. */ #define HAVE_GETHOSTNAME -- cgit v1.2.1 From cef95aadebf0be4be6b4ed82e07f38cc83faf546 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 26 Feb 2010 18:32:46 +0000 Subject: Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems --- lib/config-os400.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index ac75db2a2..dad4d0c35 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -349,6 +349,9 @@ /* Define as the return type of signal handlers (`int' or `void'). */ #define RETSIGTYPE void +/* The size of `int', as computed by sizeof. */ +#define SIZEOF_INT 4 + /* The size of a `long double', as computed by sizeof. */ #define SIZEOF_LONG_DOUBLE 8 @@ -358,6 +361,9 @@ /* The size of a `long long', as computed by sizeof. */ #define SIZEOF_LONG_LONG 8 +/* The size of `short', as computed by sizeof. */ +#define SIZEOF_SHORT 2 + /* Whether long long constants must be suffixed by LL. */ #define HAVE_LL -- cgit v1.2.1 From 99a07a1fdf2a4e0ee37e8c324fcb6d52222ebaff Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 2 Dec 2010 21:41:23 +0100 Subject: build: provide SIZEOF_SIZE_T definition for non-configure builds --- lib/config-os400.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index dad4d0c35..370fc1138 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -364,6 +364,9 @@ /* The size of `short', as computed by sizeof. */ #define SIZEOF_SHORT 2 +/* The size of `size_t', as computed by sizeof. */ +#define SIZEOF_SIZE_T 8 + /* Whether long long constants must be suffixed by LL. */ #define HAVE_LL -- cgit v1.2.1 From 1aeb635cdd296c16acb375a4a83a78f13166ccab Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 10 Mar 2011 11:48:02 +0100 Subject: sources: update source headers All C and H files now (should) feature the proper project curl source code header, which includes basic info, a copyright statement and some basic disclaimers. --- lib/config-os400.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index 370fc1138..8dba1e4cd 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -1,6 +1,27 @@ /* ================================================================ */ /* lib/config-os400.h - Hand crafted config file for OS/400 */ /* ================================================================ */ +/*************************************************************************** + * _ _ ____ _ + * Project ___| | | | _ \| | + * / __| | | | |_) | | + * | (__| |_| | _ <| |___ + * \___|\___/|_| \_\_____| + * + * Copyright (C) 1998 - 2011, Daniel Stenberg, , et al. + * + * This software is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at http://curl.haxx.se/docs/copyright.html. + * + * You may opt to use, copy, modify, merge, publish, distribute and/or sell + * copies of the Software, and permit persons to whom the Software is + * furnished to do so, under the terms of the COPYING file. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ***************************************************************************/ #pragma enum(int) -- cgit v1.2.1 From ef2176109fca302ed89193716b62c3a7113552a3 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sun, 24 Jul 2011 04:39:43 +0200 Subject: errno.h inclusion conditionally done in setup_once.h --- lib/config-os400.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index 8dba1e4cd..4d2730928 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -97,6 +97,9 @@ /* Define if you have the header file. */ #undef HAVE_DES_H +/* Define if you have the header file. */ +#define HAVE_ERRNO_H + /* Define if you have the header file. */ #undef HAVE_ERR_H -- cgit v1.2.1 From 9e24b9c7afbcb81120af4cf3f6cdee49a06d8224 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 11 Apr 2012 19:33:54 +0200 Subject: build adjustments: CURL_HIDDEN_SYMBOLS no longer defined in config files configure script now provides conditional definitions for Makefile.am that result in CURL_HIDDEN_SYMBOLS being defined by resulting makefiles when appropriate. Additionally, configure script option for symbol hiding control is now named --enable-symbol-hiding --disable-symbol-hiding. While still valid, old option name --enable-hidden-symbols --disable-hidden-symbols will be deprecated in some future release. --- lib/config-os400.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'lib/config-os400.h') diff --git a/lib/config-os400.h b/lib/config-os400.h index 4d2730928..208c02903 100644 --- a/lib/config-os400.h +++ b/lib/config-os400.h @@ -1,6 +1,5 @@ -/* ================================================================ */ -/* lib/config-os400.h - Hand crafted config file for OS/400 */ -/* ================================================================ */ +#ifndef HEADER_CURL_CONFIG_OS400_H +#define HEADER_CURL_CONFIG_OS400_H /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | @@ -8,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -23,6 +22,10 @@ * ***************************************************************************/ +/* ================================================================ */ +/* Hand crafted config file for OS/400 */ +/* ================================================================ */ + #pragma enum(int) #undef PACKAGE @@ -434,10 +437,7 @@ /* To disable LDAP */ #undef CURL_DISABLE_LDAP -/* To avoid external use of library hidden symbols */ -#define CURL_HIDDEN_SYMBOLS - -/* External symbols need no special keyword. */ +/* Definition to make a library symbol externally visible. */ #define CURL_EXTERN_SYMBOL /* Define if you have the ldap_url_parse procedure. */ @@ -542,3 +542,4 @@ #define qadrt_use_fread_inline /* Generate fread() wrapper inline. */ #define qadrt_use_fwrite_inline /* Generate fwrite() wrapper inline. */ +#endif /* HEADER_CURL_CONFIG_OS400_H */ -- cgit v1.2.1