_POSIX_THREAD_SAFE_FUNCTIONS

Impl
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.

_POSIX_THREAD_SAFE_FUNCTIONS

API

Supported

asctime_r()

yes

ctime_r()

yes

flockfile()

yes

ftrylockfile()

yes

funlockfile()

yes

getc_unlocked()

yes

getchar_unlocked()

yes

getgrgid_r()

yes

getgrnam_r()

yes

getpwnam_r()

yes

getpwuid_r()

yes

gmtime_r()

yes

localtime_r()

yes

putc_unlocked()

yes

putchar_unlocked()

yes

rand_r()

yes

readdir_r()

yes

strerror_r()

yes

strtok_r()

yes

_POSIX_THREAD_SAFE_FUNCTIONS

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.