curl-curl/tests/server
Viktor Szakats e50aa46fb2
build: update to not need _CRT_NONSTDC_NO_DEPRECATE with MSVC
Use non-deprecated CRT function variants on Windows.

- introduce `curlx_fdopen()`, `curlx_close()` and use them. Map them to
  non-deprecated, underscored, CRT functions on Windows.

- replace `close()` uses with either `sclose()` (for sockets) or
  `curlx_close()` (for files).

- map `fileno`, `unlink`, `isatty` to their non-deprecated, underscored,
  versions on Windows.

- tool_dirhie: map `mkdir` to `_mkdir` on Windows.

- easy: use `_strdup()` on Windows, regardless of how `HAVE_STRDUP` is
  set.

- cmake: assume `HAVE_STRDUP` on Windows. To allow dropping a detection
  hack using `_CRT_NONSTDC_NO_DEPRECATE` with MSVC. Windows always has
  `_strdup()` which the code uses, but also needs `HAVE_STRDUP` defined
  to disable curl's own `strdup()` implementation.

- curl_setup.h: drop `_CRT_NONSTDC_NO_DEPRECATE` as no longer necessary.

Closes #20212
2026-01-20 23:19:54 +01:00
..
.checksrc build: stop overriding standard memory allocation functions 2025-11-28 10:44:26 +01:00
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt localtime: detect thread-safe alternatives and use them 2025-12-16 14:30:06 +01:00
dnsd.c tests/server: fix initialization on Windows Vista+ 2025-12-15 02:14:28 +01:00
first.c build: drop duplicate C includes 2026-01-14 00:55:05 +01:00
first.h tests/server: use CURL_PRINTF(), drop -Wformat-nonliteral workaround 2026-01-13 14:27:27 +01:00
getpart.c tests: replace strcpy() with curlx_strcopy() 2025-12-23 22:25:39 +01:00
Makefile.am localtime: detect thread-safe alternatives and use them 2025-12-16 14:30:06 +01:00
Makefile.inc curlx: curlx_strcopy() instead of strcpy() 2025-12-22 23:01:05 +01:00
mqttd.c build: drop duplicate C includes 2026-01-14 00:55:05 +01:00
resolve.c tests/server: fix initialization on Windows Vista+ 2025-12-15 02:14:28 +01:00
rtspd.c tests/server: fix initialization on Windows Vista+ 2025-12-15 02:14:28 +01:00
sockfilt.c build: globally suppress DJGPP warnings in FD_SET() 2026-01-13 23:17:10 +01:00
socksd.c build: drop duplicate C includes 2026-01-14 00:55:05 +01:00
sws.c build: globally suppress DJGPP warnings in FD_SET() 2026-01-13 23:17:10 +01:00
tftpd.c build: update to not need _CRT_NONSTDC_NO_DEPRECATE with MSVC 2026-01-20 23:19:54 +01:00
util.c build: update to not need _CRT_NONSTDC_NO_DEPRECATE with MSVC 2026-01-20 23:19:54 +01:00