curl/tests/server
Viktor Szakats ee97c2a96a
tests/server: use curlx file open/close functions
Replace:
- `open()` with `curlx_open()` (1 call).
- `fopen()` with `curlx_fopen()`.
- `fclose()` with `curlx_fclose()`.

To centralize interacting with the CRT in preparation for using "safe"
alternatives on Windows. This also adds long-filename and Unicode
support for these operations on Windows.

Keep using `open()` in the signal handler to avoid any issues with
calling code not allowed in signal handlers.

Cherry-picked from #19643
Closes #19679
2025-11-25 01:46:06 +01:00
..
.checksrc tests/server: use curlx file open/close functions 2025-11-25 01:46:06 +01:00
.gitignore tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
CMakeLists.txt build: tidy up compiler definition for tests 2025-07-28 12:43:01 +02:00
dnsd.c tests/server: use curlx file open/close functions 2025-11-25 01:46:06 +01:00
first.c tests: make individual test sources compile cleanly 2025-06-22 15:58:15 +02:00
first.h badwords: fix issues found in tests 2025-11-17 13:30:35 +01:00
getpart.c badwords: fix issues found in tests 2025-11-17 13:30:35 +01:00
Makefile.am build: tidy up compiler definition for tests 2025-07-28 12:43:01 +02:00
Makefile.inc tests/server: drop pointless memory allocation overrides 2025-10-08 12:53:49 +02:00
mqttd.c tests/server: use curlx file open/close functions 2025-11-25 01:46:06 +01:00
resolve.c badwords: fix issues found in tests 2025-11-17 13:30:35 +01:00
rtspd.c tests/server: use curlx file open/close functions 2025-11-25 01:46:06 +01:00
sockfilt.c badwords: add more contractions, fix fallouts 2025-11-17 19:29:15 +01:00
socksd.c tests/server: use curlx file open/close functions 2025-11-25 01:46:06 +01:00
sws.c tests/server: use curlx file open/close functions 2025-11-25 01:46:06 +01:00
tftpd.c tests/server: use curlx file open/close functions 2025-11-25 01:46:06 +01:00
util.c tests/server: use curlx file open/close functions 2025-11-25 01:46:06 +01:00