lib: posix: add stubs for thread-safe grp & pwd functions

Create stubs for getpwnam_r, getpwuid_r, getgrgid_r
& getgrnam_r.

These functions are in the _POSIX_THREAD_SAFE_FUNCTIONS
option group.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
Yong Cong Sin 2024-06-14 17:18:22 +08:00 committed by Carles Cufí
commit 2ccfe8202d
8 changed files with 187 additions and 4 deletions

View file

@ -988,10 +988,10 @@ Enable this option with :kconfig:option:`CONFIG_POSIX_THREAD_SAFE_FUNCTIONS`.
funlockfile(),
getc_unlocked(),
getchar_unlocked(),
getgrgid_r(),
getgrnam_r(),
getpwnam_r(),
getpwuid_r(),
getgrgid_r(),yes :ref:`†<posix_undefined_behaviour>`
getgrnam_r(),yes :ref:`†<posix_undefined_behaviour>`
getpwnam_r(),yes :ref:`†<posix_undefined_behaviour>`
getpwuid_r(),yes :ref:`†<posix_undefined_behaviour>`
gmtime_r(), yes
localtime_r(),
putc_unlocked(),