curl-curl/docs/examples/.checksrc
Viktor Szakats a84b041281
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
2026-02-02 18:57:13 +01:00

37 lines
695 B
Plaintext

# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl
allowfunc atoi
allowfunc atol
allowfunc calloc
allowfunc close
allowfunc fclose
allowfunc fdopen
allowfunc fopen
allowfunc fprintf
allowfunc free
allowfunc fstat
allowfunc gmtime
allowfunc localtime
allowfunc malloc
allowfunc open
allowfunc printf
allowfunc realloc
allowfunc snprintf
allowfunc socket
allowfunc sscanf
allowfunc strdup
allowfunc strerror
allowfunc vsnprintf
# Use of curl printf functions is discouraged
banfunc curl_maprintf
banfunc curl_mfprintf
banfunc curl_mprintf
banfunc curl_msnprintf
banfunc curl_mvaprintf
banfunc curl_mvfprintf
banfunc curl_mvprintf
banfunc curl_mvsnprintf