From 6cf401e386f1feb2b9ae66063a5a524501ac3f74 Mon Sep 17 00:00:00 2001 From: Christopher Friedt Date: Fri, 6 Oct 2023 20:30:20 -0400 Subject: [PATCH] doc: posix: add posix timers and clock selection Update the POSIX API documentation with details on POSIX_TIMERS and POSIX_CLOCK_SELECTION. (cherry picked from commit b0a3736efff5fe142555f5f706a62e39433782f9) Original-Signed-off-by: Christopher Friedt GitOrigin-RevId: b0a3736efff5fe142555f5f706a62e39433782f9 Change-Id: Idb8e0baa5dcaa619c6803d0d741cf26b928b8f7b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/4921896 Reviewed-by: Keith Short Commit-Queue: Keith Short Tested-by: Keith Short Tested-by: ChromeOS Prod (Robot) --- doc/services/portability/posix.rst | 34 +++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/doc/services/portability/posix.rst b/doc/services/portability/posix.rst index 38be76f9118..392147594c8 100644 --- a/doc/services/portability/posix.rst +++ b/doc/services/portability/posix.rst @@ -85,11 +85,11 @@ Zephyr. :widths: 50,10 _POSIX_BARRIERS,yes - _POSIX_CLOCK_SELECTION, + _POSIX_CLOCK_SELECTION,yes _POSIX_FSYNC, _POSIX_MEMLOCK, _POSIX_MEMLOCK_RANGE, - _POSIX_MONOTONIC_CLOCK, + _POSIX_MONOTONIC_CLOCK,yes _POSIX_NO_TRUNC, _POSIX_REALTIME_SIGNALS, _POSIX_SEMAPHORES,yes @@ -104,7 +104,7 @@ Zephyr. _POSIX_THREAD_PRIORITY_SCHEDULING,yes _POSIX_THREAD_SPORADIC_SERVER, _POSIX_TIMEOUTS, - _POSIX_TIMERS, + _POSIX_TIMERS,yes _POSIX2_C_DEV, _POSIX2_SW_DEV, @@ -453,3 +453,31 @@ POSIX_DEVICE_IO vprintf(),yes vscanf(), write(),yes + +POSIX_TIMERS +++++++++++++ + +.. csv-table:: POSIX_TIMERS + :header: API, Supported + :widths: 50,10 + + clock_getres(), + clock_gettime(),yes + clock_settime(),yes + nanosleep(),yes + timer_create(),yes + timer_delete(),yes + timer_gettime(),yes + timer_getoverrun(),yes + timer_settime(),yes + +POSIX_CLOCK_SELECTION ++++++++++++++++++++++ + +.. csv-table:: POSIX_CLOCK_SELECTION + :header: API, Supported + :widths: 50,10 + + pthread_condattr_getclock(),yes + pthread_condattr_setclock(),yes + clock_nanosleep(),yes