mirror of
https://github.com/curl/curl.git
synced 2026-08-25 17:53:43 +03:00
build: tidy up curl-specific fstat calls and stat struct type
To avoid redefining the `fstat` system symbol, and to clarify `struct_stat` is a curl symbol. - introduce `curlx_fstat()` macro and use it. - rename `struct_stat` to `curl_struct_stat`. Also: - tests: replace direct `curlx_win32_stat()` call with `curlx_stat()`. - checksrc: disallow direct `_fstati64` and `fstat()` calls, except in examples. Closes #20496
This commit is contained in:
parent
9630593650
commit
a84b041281
22 changed files with 53 additions and 50 deletions
|
|
@ -11,6 +11,7 @@ allowfunc fdopen
|
|||
allowfunc fopen
|
||||
allowfunc fprintf
|
||||
allowfunc free
|
||||
allowfunc fstat
|
||||
allowfunc gmtime
|
||||
allowfunc localtime
|
||||
allowfunc malloc
|
||||
|
|
|
|||
|
|
@ -332,6 +332,7 @@ makes us write better code.
|
|||
This is the full list of functions generally banned.
|
||||
|
||||
_access
|
||||
_fstati64
|
||||
_lseeki64
|
||||
_mbscat
|
||||
_mbsncat
|
||||
|
|
@ -365,6 +366,7 @@ This is the full list of functions generally banned.
|
|||
free
|
||||
freeaddrinfo
|
||||
freopen
|
||||
fstat
|
||||
getaddrinfo
|
||||
gets
|
||||
gmtime
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue