curl-curl/tests/server
Viktor Szakats cdfc8dc7ad
build: tidy up and simplify setmode() detection and use
- move macro to `curl_setup.h` (from curlx), and rename.
  It's required by src, test servers, libtests. Also used by unit/tunit,
  (which is fixable but this patch doesn't touch it.)
- special-case it for Windows/Cygwin/MS-DOS.
- build: drop `setmode()`/`_setmode()` detection.
  This also avoids detecting the different `setmode()` on BSDs,
  and a lot of complexity and overhead.
- use `CURL_O_BINARY`.

Follow-up to 250d613763 #15787
Follow-up to 5e70566094 #15169

Closes #20539
2026-02-08 15:47:47 +01:00
..
.checksrc build: tidy up and dedupe strdup functions 2026-02-03 14:02:30 +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 tidy-up: move literals to right-side of if expressions (where missing) 2026-02-07 16:41:51 +01:00
first.c build: use more const 2026-02-02 12:32:49 +01:00
first.h build: tidy up and dedupe strdup functions 2026-02-03 14:02:30 +01:00
getpart.c build: use more const 2026-02-02 12:32:49 +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: tidy up and simplify setmode() detection and use 2026-02-08 15:47:47 +01:00
resolve.c build: use more const 2026-02-02 12:32:49 +01:00
rtspd.c tidy-up: move literals to right-side of if expressions (where missing) 2026-02-07 16:41:51 +01:00
sockfilt.c build: tidy up and simplify setmode() detection and use 2026-02-08 15:47:47 +01:00
socksd.c build: tidy up and simplify setmode() detection and use 2026-02-08 15:47:47 +01:00
sws.c sws: prevent "connection monitor" to say disconnect twice 2026-02-07 22:16:53 +01:00
tftpd.c tidy-up: move literals to right-side of if expressions (where missing) 2026-02-07 16:41:51 +01:00
util.c tidy-up: move literals to right-side of if expressions (where missing) 2026-02-07 16:41:51 +01:00