Skip to content

Commit

Permalink
docs: posix: option groups: add _POSIX_THREAD_SAFE_FUNCTIONS
Browse files Browse the repository at this point in the history
The _POSIX_THREAD_SAFE_FUNCTIONS option was mentioned in
aep/index.rst but not expanded.

Signed-off-by: Christopher Friedt <[email protected]>
  • Loading branch information
cfriedt authored and fabiobaltieri committed Jan 10, 2024
1 parent ce42bf3 commit 5bbec7a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/services/portability/posix/conformance/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ POSIX System Interfaces
_POSIX_REALTIME_SIGNALS, -1, :ref:`†<posix_undefined_behaviour>`
:ref:`_POSIX_SEMAPHORES<posix_option_group_semaphores>`, 200809L, :kconfig:option:`CONFIG_PTHREAD_IPC`
:ref:`_POSIX_SPIN_LOCKS<posix_option_group_spin_locks>`, 200809L, :kconfig:option:`CONFIG_PTHREAD_SPINLOCK`
_POSIX_THREAD_SAFE_FUNCTIONS, 200809L,
:ref:`_POSIX_THREAD_SAFE_FUNCTIONS<posix_thread_safe_functions>`, -1,
:ref:`_POSIX_THREADS<posix_option_group_threads_base>`, -1, :kconfig:option:`CONFIG_PTHREAD_IPC`
:ref:`_POSIX_TIMEOUTS<posix_option_timeouts>`, 200809L, :kconfig:option:`CONFIG_PTHREAD_IPC`
:ref:`_POSIX_TIMERS<posix_option_group_timers>`, 200809L, :kconfig:option:`CONFIG_POSIX_CLOCK`
Expand Down
29 changes: 29 additions & 0 deletions doc/services/portability/posix/option_groups/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,35 @@ _POSIX_THREAD_PRIORITY_SCHEDULING
pthread_setschedparam(),yes
pthread_setschedprio(),yes

.. _posix_thread_safe_functions:

_POSIX_THREAD_SAFE_FUNCTIONS
++++++++++++++++++++++++++++

.. csv-table:: _POSIX_THREAD_SAFE_FUNCTIONS
:header: API, Supported
:widths: 50,10

asctime_r(),
ctime_r(),
flockfile(),
ftrylockfile(),
funlockfile(),
getc_unlocked(), yes
getchar_unlocked(), yes
getgrgid_r(),
getgrnam_r(),
getpwnam_r(),
getpwuid_r(),
gmtime_r(), yes
localtime_r(),
putc_unlocked(), yes
putchar_unlocked(), yes
rand_r(), yes
readdir_r(),
strerror_r(), yes
strtok_r(), yes

.. _posix_option_timeouts:

_POSIX_TIMEOUTS
Expand Down

0 comments on commit 5bbec7a

Please sign in to comment.