build: use native file open flags in Windows-specific code

To comply with official documentation. Also to make code compile with
`NO_OLDNAMES` (mingw-w64) or `_CRT_DECLARE_NONSTDC_NAMES=0` (MSVC) set.

Ref: #15652

Closes #20516
This commit is contained in:
Viktor Szakats 2026-02-04 14:32:11 +01:00
parent 94349aa932
commit 462244447e
No known key found for this signature in database
6 changed files with 10 additions and 8 deletions

View file

@ -11,7 +11,7 @@ extend-ignore-identifiers-re = [
"^0x[0-9a-fA-F]+FUL$", # unsigned long hex literals ending with 'F'
"^(eyeballers|HELO_smtp|Januar|optin|passin|perfec|SMTP_HELO)$",
"^(clen|req_clen|smtp_perform_helo|smtp_state_helo_resp|Tru64|_stati64)$",
"(ccontains|controllen|secur32)",
"(_ccontains|_controllen|O_WRONLY|secur32)",
"proxys", # this should be limited to tests/http/*. Short for secure proxy.
]