curl/scripts
Viktor Szakats 39dec13ec0
build: always use local inet_pton()/inet_ntop() implementations
Also repurpose existing build-time feature checks into unit test 1961,
to verify.

Prior to this patch these functions were auto-detected with both
autotools and cmake. In case of autotools there was an extra
verification phase ensuring the functions work as expected. This step
required running the function, thus was limited to non-cross-builds. For
cross-builds and CMake it always used the system implementation if
present. On Windows it always used the local implementation, because
availability/use is complicated there.

After this patch all platforms, always use the local implementation,
which is known to be accurate. This makes curl behave more consistently,
and simplifies the build process, a fixes cross-builds and CMake
auto-detection differences.

Also:
- test1960: enable unconditionally.
- checksrc: disallow globally, allowlist in `block_ip.c` example.
- dnsd: verify ntop result for NULL before passing to printf.

Ref: https://github.com/curl/curl/pull/22137#issuecomment-4797440983
Ref: #22137
Ref: 8537a5b0bc #16577

Closes #22170
2026-06-27 01:24:39 +02:00
..
.checksrc REUSE: move copyright headers to .checksrc 2025-10-13 11:54:22 +02:00
badwords tidy-up: syntax and code nits 2026-06-26 15:45:24 +02:00
badwords-all badwords-all: stop checking source code comments 2026-03-21 22:58:51 +01:00
badwords.txt tidy-up: miscellaneous 2026-06-14 20:10:28 +02:00
cd2cd tidy-up: syntax and code nits 2026-06-26 15:45:24 +02:00
cd2nroff tidy-up: docs, comments, typos, whitespace 2026-06-26 11:36:09 +02:00
cdall perl: || die -> or die 2026-06-16 00:41:29 +02:00
checksrc-all.pl perl: || die -> or die 2026-06-16 00:41:29 +02:00
checksrc.pl build: always use local inet_pton()/inet_ntop() implementations 2026-06-27 01:24:39 +02:00
cmakelint.sh scripts: use end-of-options marker in cd, mkdir, mv, sha256sum commands 2026-06-25 11:32:36 +02:00
CMakeLists.txt tidy-up: a cmake warning message and a variable name 2026-04-28 09:07:27 +02:00
completion.pl perl: || die -> or die 2026-06-16 00:41:29 +02:00
contributors.sh tidy-up: add space around operators, where missing 2026-05-28 10:12:00 +02:00
contrithanks.sh tidy-up: miscellaneous 2026-06-14 20:10:28 +02:00
coverage.sh GHA: add shellcheck job and fix warnings, shell tidy-ups 2024-04-08 09:37:24 +00:00
delta delta: harden external command invocations 2026-05-11 22:05:29 +02:00
dmaketgz dmaketgz: use --no-cache when building docker image 2024-12-05 15:41:53 +01:00
extract-unit-protos perl: || die -> or die 2026-06-16 00:41:29 +02:00
firefox-db2pem.sh tidy-up: make 'CA' uppercase, where missing 2026-06-22 21:04:45 +02:00
installcheck.sh GHA: add shellcheck job and fix warnings, shell tidy-ups 2024-04-08 09:37:24 +00:00
Makefile.am GHA: verify function-lengths 2026-05-05 16:26:44 +02:00
maketgz scripts: use end-of-options marker in cd, mkdir, mv, sha256sum commands 2026-06-25 11:32:36 +02:00
managen tidy-up: syntax and code nits 2026-06-26 15:45:24 +02:00
mdlinkcheck perl: open... || -> open... or (cont.) 2026-06-16 19:11:15 +02:00
mk-ca-bundle.pl tidy-up: syntax and code nits 2026-06-26 15:45:24 +02:00
mk-unity.pl mk-unity.pl: #include, and not concatenate input headers 2026-05-18 13:57:13 +02:00
nroff2cd perl: open... || -> open... or (cont.) 2026-06-16 19:11:15 +02:00
perlcheck.sh scripts: use end-of-options marker in cd, mkdir, mv, sha256sum commands 2026-06-25 11:32:36 +02:00
pythonlint.sh pythonlint.sh: make it fail on error, fix ruff warnings in pytest 2026-05-13 22:59:36 +02:00
randdisable perl: switch from backticks to qx() 2026-06-14 14:25:02 +02:00
release-notes.pl perl: switch from backticks to qx() 2026-06-14 14:25:02 +02:00
release-tools.sh badwords: fix issues found in scripts and other files 2025-11-17 17:18:07 +01:00
schemetable.c lib: introduce Curl_peer 2026-05-05 16:22:11 +02:00
singleuse.pl perl: || die -> or die 2026-06-16 00:41:29 +02:00
spacecheck.pl spacecheck.pl: fix to check 3+ newlines in all files 2026-04-06 04:05:58 +02:00
top-complexity tidy-up: miscellaneous 2026-06-14 20:10:28 +02:00
top-length setopt: refactor setopt_cptr into smaller helper functions 2026-06-19 23:43:24 +02:00
verify-release tidy-up: syntax and code nits 2026-06-26 15:45:24 +02:00
wcurl tidy-up: miscellaneous 2026-06-01 22:33:57 +02:00