diff options
author | Joel Sherrill <joel@rtems.org> | 2022-08-01 17:12:21 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2022-08-10 14:15:46 -0500 |
commit | 4b04589b097896795648de38b1e9bbc7570d9696 (patch) | |
tree | 9cc6d2365137826193ca6fd8f96fc0ce3417ed27 /cpukit/include/rtems/posix | |
parent | rtems/malloc.h: Add API level Doxygen group (diff) | |
download | rtems-4b04589b097896795648de38b1e9bbc7570d9696.tar.bz2 |
Add support for CONFIGURE_POSIX_TIMERS_FACE_BEHAVIOR
This adds the configure option CONFIGURE_POSIX_TIMERS_FACE_BEHAVIOR
which allows the application to choose whether to have the POSIX
timer_create() function follow the behavior defined by POSIX or
the FACE Technical Standard.
Updates #4691.
Diffstat (limited to 'cpukit/include/rtems/posix')
-rw-r--r-- | cpukit/include/rtems/posix/timer.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cpukit/include/rtems/posix/timer.h b/cpukit/include/rtems/posix/timer.h index 05a6f36eab..86b45ba05d 100644 --- a/cpukit/include/rtems/posix/timer.h +++ b/cpukit/include/rtems/posix/timer.h @@ -94,6 +94,24 @@ extern Objects_Information _POSIX_Timer_Information; NULL \ ) +/** + * @brief Follow POSIX or FACE Technical Standard on timer_create + * + * POSIX allows for the creation of timers based on CLOCK_REALTIME. + * This is viewed as a safety issue by the FACE Technical Standard + * and required to return an error. These are conflicting behaviors. + * This method is instanced by configuration when FACE conformant + * behavior is desired by the application. + * + * @param[in] clock_id is the clock ID to validate + * + * @return 0 if @a clock_id is allowed for use. Otherwise an errno value. + */ +int _POSIX_Timer_Is_allowed( + clockid_t clock_id +); + + /** @} */ #ifdef __cplusplus |