This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 202e10ca071bd3c2cd97fcc30c4ad83cf44b86b2 Author: Marco Casaroli <[email protected]> AuthorDate: Tue Oct 20 20:55:19 2026 +0200 Documentation/standards: Name the options that POSIX option macros need. _POSIX_SEMAPHORES, _POSIX_SHARED_MEMORY_OBJECTS, _POSIX_MAPPED_FILES, _POSIX_THREAD_PROCESS_SHARED and the CPU-time options are now -1 when the configuration does not have the functions. Give the Kconfig options in the remarks. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- Documentation/standards/posix.rst | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Documentation/standards/posix.rst b/Documentation/standards/posix.rst index 334a1cba374..e7c1f902466 100644 --- a/Documentation/standards/posix.rst +++ b/Documentation/standards/posix.rst @@ -61,9 +61,9 @@ POSIX.1 Option Requirements: +-------------------------------------------------+-------------+----------------------------------+ |`_POSIX_REALTIME_SIGNALS`_ | 201712L | | +-------------------------------------------------+-------------+----------------------------------+ -|`_POSIX_SEMAPHORES`_ | 201712L | | +|`_POSIX_SEMAPHORES`_ | 201712L | ``CONFIG_FS_NAMED_SEMAPHORES`` | +-------------------------------------------------+-------------+----------------------------------+ -|`_POSIX_SHARED_MEMORY_OBJECTS`_ | 201712L | | +|`_POSIX_SHARED_MEMORY_OBJECTS`_ | 201712L | ``CONFIG_FS_SHMFS`` | +-------------------------------------------------+-------------+----------------------------------+ |`_POSIX_SYNCHRONIZED_IO`_ | Yes | | +-------------------------------------------------+-------------+----------------------------------+ @@ -71,7 +71,7 @@ POSIX.1 Option Requirements: +-------------------------------------------------+-------------+----------------------------------+ |`_POSIX_THREAD_ATTR_STACKSIZE`_ | Yes | | +-------------------------------------------------+-------------+----------------------------------+ -|`_POSIX_THREAD_CPUTIME`_ | 201712L | | +|`_POSIX_THREAD_CPUTIME`_ | 201712L | ``CONFIG_SCHED_CRITMONITOR`` | +-------------------------------------------------+-------------+----------------------------------+ |`_POSIX_THREAD_PRIO_INHERIT`_ | Yes | ``CONFIG_PRIORITY_INHERITANCE`` | +-------------------------------------------------+-------------+----------------------------------+ @@ -132,7 +132,7 @@ POSIX.1 Option Requirements +------------------------------------+---------+----------------------------+ | Symbol | Support | Remarks | +====================================+=========+============================+ -| `_POSIX_MAPPED_FILES`_ | 201712L | | +| `_POSIX_MAPPED_FILES`_ | 201712L | ``CONFIG_FS_RAMMAP`` | +------------------------------------+---------+----------------------------+ | `_POSIX_MESSAGE_PASSING`_ | Yes | ``!CONFIG_DISABLE_MQUEUE`` | +------------------------------------+---------+----------------------------+ @@ -176,7 +176,7 @@ POSIX.1 Option Requirements +=================================+=============+===========================+ | `_POSIX_ASYNCHRONOUS_IO`_ | 201712L | ``CONFIG_FS_AIO`` | +---------------------------------+-------------+---------------------------+ -| `_POSIX_CPUTIME`_ | 201712L | | +| `_POSIX_CPUTIME`_ | 201712L | [#fn9b]_ | +---------------------------------+-------------+---------------------------+ | `_POSIX_MEMORY_PROTECTION`_ | Yes [#fn9]_ | | +---------------------------------+-------------+---------------------------+ @@ -190,13 +190,16 @@ POSIX.1 Option Requirements +---------------------------------+-------------+---------------------------+ | `_POSIX_SPORADIC_SERVER`_ | Yes | ``CONFIG_SCHED_SPORADIC`` | +---------------------------------+-------------+---------------------------+ -| `_POSIX_THREAD_PROCESS_SHARED`_ | 201712L | | +| `_POSIX_THREAD_PROCESS_SHARED`_ | 201712L | [#fn9a]_ | +---------------------------------+-------------+---------------------------+ .. [#fn9] ``mprotect()`` changes the page permissions only with ``CONFIG_ARCH_ADDRENV`` on arm64 and RISC-V. On other targets it checks the arguments and changes nothing, which is sufficient for devices without MMU. +.. [#fn9a] A kernel build needs shared memory: ``CONFIG_FS_SHMFS`` or + ``CONFIG_MM_SHM``. +.. [#fn9b] ``CONFIG_SCHED_CRITMONITOR`` (CPU-time accounting). POSIX PSE54 - Multipurpose --------------------------
