summaryrefslogtreecommitdiff
path: root/lib/config-os400.h
Commit message (Collapse)AuthorAgeFilesLines
* copyright: update all copyright lines and remove year rangesDaniel Stenberg2023-01-031-1/+1
| | | | | | | | | | | | - they are mostly pointless in all major jurisdictions - many big corporations and projects already don't use them - saves us from pointless churn - git keeps history for us - the year range is kept in COPYING checksrc is updated to allow non-year using copyright statements Closes #10205
* build: assume errno.h is always availableJay Satiro2022-12-071-3/+0
| | | | | | | | - Remove errno.h detection from all build configurations. errno.h is a standard header according to C89. Closes https://github.com/curl/curl/pull/9986
* Makefile.mk: portable Makefile.m32Viktor Szakats2022-11-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update bare GNU Make `Makefile.m32` to: - Move objects into a subdirectory. - Add support for MS-DOS. Tested with DJGPP. - Add support for Watt-32 (on MS-DOS). - Add support for AmigaOS. - Rename `Makefile.m32` to `Makefile.mk` - Replace `ARCH` with `TRIPLET`. - Build `tool_hugehelp.c` proper (when tools are available). - Drop MS-DOS compatibility macro `USE_ZLIB` (replaced by `HAVE_LIBZ`) - Add support for `ZLIB_LIBS` to override `-lz`. - Omit object files when building examples. - Default `CC` to `gcc` once again, for convenience. (Caveat: compiler name `cc` cannot be set now.) - Set `-DCURL_NO_OLDIES` for examples, like autotools does. - Delete `makefile.dj` files. Notice the configuration details and defaults are not retained with the new method. - Delete `makefile.amiga` files. A successful build needs a few custom options. We're also not retaining all build details from the existing Amiga make files. - Rename `Makefile.m32` to `Makefile.mk` to reflect that they are not Windows/MinGW32-specific anymore. - Add support for new `CFG` options: `-map`, `-debug`, `-trackmem` - Set `-DNDEBUG` by default. - Allow using `-DOS=...` in all `lib/config-*.h` headers, syncing this with `config-win32.h`. - Look for zlib parts in `ZLIB_PATH/include` and `ZLIB_PATH/lib` instead of bare `ZLIB_PATH`. Note that existing build configurations for MS-DOS and AmigaOS likely become incompatible with this change. Example AmigaOS configuration: ``` export CROSSPREFIX=/opt/amiga/bin/m68k-amigaos- export CC=gcc export CPPFLAGS='-DHAVE_PROTO_BSDSOCKET_H' export CFLAGS='-mcrt=clib2' export LDFLAGS="${CFLAGS}" export LIBS='-lnet -lm' make -C lib -f Makefile.mk make -C src -f Makefile.mk ``` Example MS-DOS configuration: ``` export CROSSPREFIX=/opt/djgpp/bin/i586-pc-msdosdjgpp- export WATT_PATH=/opt/djgpp/net/watt export ZLIB_PATH=/opt/djgpp export OPENSSL_PATH=/opt/djgpp export OPENSSL_LIBS='-lssl -lcrypt' export CFG=-zlib-ssl make -C lib -f Makefile.mk make -C src -f Makefile.mk ``` Closes #9764
* config: remove the check for and use of SIZEOF_SHORTDaniel Stenberg2022-08-111-3/+0
| | | | | | shorts are 2 bytes on all platforms curl runs and have ever run on. Closes #9291
* tidy-up: delete unused build configuration macrosViktor Szakats2022-07-191-125/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of them feature guards: - `CURL_INCLUDES_SYS_UIO` [1] - `HAVE_ALLOCA_H` [2] - `HAVE_CRYPTO_CLEANUP_ALL_EX_DATA` (unused since de71e68000c8624ea13f90b136f8734dd0fb1bdc) - `HAVE_DLFCN_H` - `HAVE_DLOPEN` - `HAVE_DOPRNT` - `HAVE_FCNTL` - `HAVE_GETHOSTBYNAME` [3] - `HAVE_GETOPT_H` - `HAVE_GETPASS` - `HAVE_GETPROTOBYNAME` - `HAVE_GETSERVBYNAME` - `HAVE_IDN_FREE*` - `HAVE_INET_ADDR` - `HAVE_IOCTL` - `HAVE_KRB4` - `HAVE_KRB_GET_OUR_IP_FOR_REALM` - `HAVE_KRB_H` - `HAVE_LDAPSSL_H` - `HAVE_LDAP_INIT_FD` - `HAVE_LIBDL` - `HAVE_LIBNSL` - `HAVE_LIBRESOLV*` - `HAVE_LIBUCB` - `HAVE_LL` - `HAVE_LOCALTIME_R` - `HAVE_MALLOC_H` - `HAVE_MEMCPY` - `HAVE_MEMORY_H` - `HAVE_NETINET_IF_ETHER_H` - `HAVE_NI_WITHSCOPEID` - `HAVE_OPENSSL_CRYPTO_H` - `HAVE_OPENSSL_ERR_H` - `HAVE_OPENSSL_PEM_H` - `HAVE_OPENSSL_PKCS12_H` - `HAVE_OPENSSL_RAND_H` - `HAVE_OPENSSL_RSA_H` - `HAVE_OPENSSL_SSL_H` - `HAVE_OPENSSL_X509_H` - `HAVE_PEM_H` - `HAVE_POLL` - `HAVE_RAND_SCREEN` - `HAVE_RAND_STATUS` - `HAVE_RECVFROM` - `HAVE_SETSOCKOPT` - `HAVE_SETVBUF` - `HAVE_SIZEOF_LONG_DOUBLE` - `HAVE_SOCKIO_H` - `HAVE_SOCK_OPTS` - `HAVE_STDIO_H` - `HAVE_STRCASESTR` - `HAVE_STRFTIME` - `HAVE_STRLCAT` - `HAVE_STRNCMPI` - `HAVE_STRNICMP` - `HAVE_STRSTR` - `HAVE_STRUCT_IN6_ADDR` - `HAVE_TLD_H` - `HAVE_TLD_STRERROR` - `HAVE_UNAME` - `HAVE_USLEEP` - `HAVE_WINBER_H` - `HAVE_WRITEV` - `HAVE_X509_H` - `LT_OBJDIR` - `NEED_BASENAME_PROTO` - `NOT_NEED_LIBNSL` - `OPENSSL_NO_KRB5` - `RECVFROM_TYPE*` - `SIZEOF_LONG_DOUBLE` - `STRERROR_R_TYPE_ARG3` - `USE_YASSLEMUL` - `_USRDLL` (from CMake) [4] [1] Related parts in `m4/curl-functions.m4` and `configure.ac` might also be deleted. [2] Related comment can possibly be deleted in `packages/vms/generate_config_vms_h_curl.com`. [3] There are more instances of this in autotools, but I did not dare to touch those. Looked like it's used to detect socket support. [4] This is necessary for MFC (Microsoft Foundation Class) DLLs to force linking MFC components statically to the DLL. `libcurl.dll` does not use MFC, so we can delete this define. Ref: https://docs.microsoft.com/cpp/build/regular-dlls-statically-linked-to-mfc Script that can help finding unused settings like above: ```shell autoheader configure.ac # generate lib/curl_config.h.in { grep -o -E 'set\([A-Z][A-Z0-9_]{3,}' CMake/Platforms/WindowsCache.cmake | sed -E 's|set\(||g' grep -o -E -h '#define +[A-Z][A-Z0-9_]{3,}' lib/config-*.h | sed -E 's|#define +||g' grep -o -E '#cmakedefine +[A-Z][A-Z0-9_]{3,}' lib/curl_config.h.cmake | sed -E 's|#cmakedefine +||g' grep -o -E '#undef +[A-Z][A-Z0-9_]{3,}' lib/curl_config.h.in | sed -E 's|#undef +||g' } | sort -u | grep -v -F 'HEADER_CURL_' | while read -r def; do c="$(git grep -w -F "${def}" | grep -v -E -c '(/libcurl\.tmpl|^lib/config-|^lib/curl_config\.h\.cmake|^CMakeLists\.txt|^CMake/Platforms/WindowsCache\.cmake|^packages/vms/config_h\.com|^m4/curl-functions\.m4|^acinclude\.m4|^configure\.ac)')" if [ "${c}" = '0' ]; then echo "${def}" fi done ``` Reviewed-by: Daniel Stenberg Closes #9044
* copyright: make repository REUSE compliantmax.mehl2022-06-131-0/+2
| | | | | | | | | | | Add licensing and copyright information for all files in this repository. This either happens in the file itself as a comment header or in the file `.reuse/dep5`. This commit also adds a Github workflow to check pull requests and adapts copyright.pl to the changes. Closes #8869
* msh3: add support for QUIC and HTTP/3 using msh3Nick Banks2022-04-101-2/+3
| | | | | | Considered experimental, as the other HTTP/3 backends. Closes #8517
* config: remove `HAVE_WINSOCK_H` definitionMarcel Raad2021-09-291-3/+0
| | | | | | It's not used anymore. Closes https://github.com/curl/curl/pull/7795
* Revert "build: remove checks for WinSock 1"Daniel Stenberg2021-09-291-0/+3
| | | | | | | | Due to CI issues This reverts commit c2ea04f92b00b6271627cb218647527b5a50f2fc. Closes #7790
* build: remove checks for WinSock 1Marcel Raad2021-09-281-3/+0
| | | | | | It's not supported anymore. Closes https://github.com/curl/curl/pull/7778
* Get rid of the unused HAVE_SIG_ATOMIC_T et. al.Dan Fandrich2021-07-231-6/+0
| | | | It was added in 2006 but I see no evidence it was ever used.
* configure/cmake: remove checks for unused gethostbyaddr and gethostbyaddr_rGergely Nagy2021-06-181-15/+0
| | | | Closes #7276
* configure/cmake: remove unused define HAVE_PERRORGergely Nagy2021-06-181-3/+0
| | | | Closes #7276
* configure/cmake: remove checks for unused sgtty.hGergely Nagy2021-06-181-3/+0
| | | | Closes #7276
* configure/cmake: remove remaining checks for rsa.hGergely Nagy2021-06-181-3/+0
| | | | Closes #7276
* configure/cmake: remove remaining checks for err.hGergely Nagy2021-06-181-3/+0
| | | | Closes #7276
* configure/cmake: remove remaining checks for crypto.hGergely Nagy2021-06-181-3/+0
| | | | Closes #7276
* config: remove now-unused macrosMarc Aldorasi2021-05-191-19/+0
| | | | Closes #7094
* cmake: check for getppid and utimesDaniel Stenberg2021-05-041-3/+0
| | | | | | | | | | | | | ... as they're checked for in the configure script and are used by source code. Removed checks for perror, setvbuf and strlcat since those defines are not checked for in source code. Bonus: removed HAVE_STRLCPY from a few config-*.h files since that symbol is not used in source code. Closes #6997
* configure: remove use of RETSIGTYPEMichael Forney2021-04-071-3/+0
| | | | | | | | | | | This was previously defined by the obsolete AC_TYPE_SIGNAL macro, which was removed in 2682e5f5. The deprecation text says > Your code may safely assume C89 semantics that RETSIGTYPE is void. So, remove it and just use void instead. Closes #6861
* build: delete unused feature guardsViktor Szakats2021-02-231-7/+1
| | | | | | | | | | - `HAVE_STRNCASECMP` - `HAVE_TCGETATTR` - `HAVE_TCSETATTR` Reviewed-by: Jay Satiro Reviewed-by: Daniel Stenberg Closes #6645
* curl.se: new homeDaniel Stenberg2020-11-041-1/+1
| | | | Closes #6172
* alt-svc: enable by defaultDaniel Stenberg2020-10-251-3/+0
| | | | | | | | Remove CURLALTSVC_IMMEDIATELY, which was never implemented/supported. alt-svc support in curl is no longer considered experimental Closes #5868
* config: remove all defines of HAVE_DES_HDaniel Stenberg2020-03-241-4/+1
| | | | | | As there's no code using it. Closes #5144
* build: Remove unused HAVE_LIBSSL and HAVE_LIBCRYPTO definesPaul B. Omta2019-10-051-6/+0
| | | | Closes https://github.com/curl/curl/pull/4460
* OS400: Add CURLOPT_H3 symbolsJay Satiro2019-08-041-0/+3
| | | | | | Follow-up to 3af0e76 which added experimental H3 support. Closes https://github.com/curl/curl/pull/4185
* config-os400: add getpeername and getsockname definesDaniel Stenberg2019-06-181-0/+6
| | | | | | Reported-by: jonrumsey on github Fixes #4037 Closes #4039
* os400: Disable Alt-Svc by default since it's experimentalJay Satiro2019-03-241-2/+2
| | | | | | | | | | | Follow-up to 520f0b4 which added Alt-Svc support and enabled it by default for OS400. Since the feature is experimental, it should be disabled by default. Ref: https://github.com/curl/curl/commit/520f0b4#commitcomment-32792332 Ref: https://curl.haxx.se/mail/lib-2019-02/0008.html Closes https://github.com/curl/curl/pull/3688
* os400: alt-svc support.Patrick Monnerat2019-03-171-1/+4
| | | | | Although experimental, enable it in the platform config file. Upgrade ILE/RPG binding.
* os400: add missing symbols in config file.Patrick Monnerat2017-10-191-2/+8
| | | | Also adjust makefile to renamed files and warn about installation dirs mix-up.
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* OS400: enable NTLM authenticationPatrick Monnerat2014-12-051-0/+3
|
* OS400: enable Unix sockets.Patrick Monnerat2014-12-041-0/+3
|
* vtls: remove QsoSSLPatrick Monnerat2014-10-131-4/+1
|
* GSSAPI: private export mechanisms OIDs. OS400: Make RPG binding up to date.Patrick Monnerat2014-07-231-0/+9
|
* OS400: sync RPG wrapper, zlib support, fix header file names, ...Patrick Monnerat2013-10-251-2/+2
| | | | | IFS compilation support, SSL GSKit backend by default, TLSv1.[12] support in GSKit for OS400 >= V7R1, no more tabs in make scripts.
* OS400: new SSL backend GSKitPatrick Monnerat2013-07-151-0/+3
|
* config-os400.h: enable system strdup(), strcmpi(), etc.Patrick Monnerat2013-07-151-5/+11
|
* strlcat: remove functionDaniel Stenberg2013-02-141-4/+1
| | | | | | | | | | | | | | | | | | This function was only used twice, both in places where performance isn't crucial (socks + if2ip). Removing the use of this function removes the need to have our private version for systems without it == reduced amount of code. Also, in the SOCKS case it is clearly better to fail gracefully rather than to truncate the results. This work was triggered by a bug report on the strcal prototype in strequal.h. strlcat was added in commit db70cd28 in February 2001! Bug: http://curl.haxx.se/bug/view.cgi?id=1192 Reported by: Jeremy Huddleston
* build adjustments: CURL_HIDDEN_SYMBOLS no longer defined in config filesYang Tse2012-04-111-8/+9
| | | | | | | | | | | 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.
* errno.h inclusion conditionally done in setup_once.hYang Tse2011-07-241-0/+3
|
* sources: update source headersDaniel Stenberg2011-03-101-0/+21
| | | | | | 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.
* build: provide SIZEOF_SIZE_T definition for non-configure buildsYang Tse2010-12-021-0/+3
|
* Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systemsYang Tse2010-02-261-0/+6
|
* _ Make it compilable again on OS400.Patrick Monnerat2010-02-111-13/+10
| | | | | _ Upgrade OS400 EBCDIC wrappers for new options. _ Upgrade ILE/RPG bindings to current state.
* Remove enable-thread / disable-thread configure option. These were only placeboYang Tse2009-11-151-3/+0
| | | | options. The library is always built as thread safe as possible on every system.
* Use build-time configured curl_socklen_t instead of socklen_tYang Tse2009-05-021-3/+0
|
* changed HAVE_SIN6_SCOPE_ID define to HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID since ↵Gunter Knauf2008-12-301-1/+1
| | | | just found that ares already uses this define.
* added HAVE_SIN6_SCOPE_ID define to all non-configure platforms which seem to ↵Gunter Knauf2008-12-301-0/+3
| | | | be IPv6-aware.
* _ Use getaddrinfo/getnameinfo ascii wrappers on OS400.Patrick Monnerat2008-12-111-6/+12
| | | | | | _ 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.