_POSIX_THREAD_SAFE_FUNCTIONS
100
Impl
87
Cov
In Zephyr, _POSIX_THREAD_SAFE_FUNCTIONS is defined when any of
CONFIG_POSIX_C_LANG_SUPPORT_R,
CONFIG_POSIX_FILE_SYSTEM_R,
CONFIG_POSIX_FILE_LOCKING, or
CONFIG_POSIX_SYSTEM_DATABASE_R is enabled.
API |
Supported |
|---|---|
yes |
|
yes |
|
yes |
|
yes |
|
yes |
|
yes |
|
yes |
|
yes |
|
yes |
|
yes |
|
yes |
|
yes |
|
yes |
|
yes |
|
yes |
|
yes |
|
yes |
|
|
yes |
yes |
Note
_POSIX_THREAD_SAFE_FUNCTIONS is advertised when any one of the Kconfig
options above is enabled, even when the others are not. For example, an
application that enables only CONFIG_POSIX_C_LANG_SUPPORT_R
sees the macro defined while readdir_r() (from
POSIX_FILE_SYSTEM_R) and
flockfile() (from
CONFIG_POSIX_FILE_LOCKING) are unavailable. Strictly
conformant applications should enable all four Kconfig options.