zephyr/lib/os
Mohamed Moawad 4b90816982 posix: Map CLOCK_REALTIME and CLOCK_MONOTONIC to Zephyr clock IDs
Some toolchains may define CLOCK_REALTIME and
CLOCK_MONOTONIC in their libc headers
with values that differ from Zephyr's internal
SYS_CLOCK_REALTIME and SYS_CLOCK_MONOTONIC.

To ensure consistent behavior across all boards and
toolchains, Introduce a helper function to map
CLOCK_REALTIME and CLOCK_MONOTONIC to Zephyr's internal
clock IDs (SYS_CLOCK_REALTIME and SYS_CLOCK_MONOTONIC).

This prevents mismatched clock IDs being passed to
the kernel, avoiding invalid clockid errors when using
functions like clock_gettime().

Signed-off-by: Mohamed Moawad <moawad@synopsys.com>
2025-07-19 13:43:21 -04:00
..
zvfs lib: os: zvfs: select: Fix warning about bitshifting signed value 2025-07-04 13:16:32 -05:00
assert.c llext: export some symbols 2023-12-01 10:08:12 -05:00
cbprintf_complete.c lib: os: cbprintf_complete: add missing break statement 2025-06-18 17:48:03 -04:00
cbprintf_nano.c ARCMWDT: Fix cbprintf issue with omitted function prototype 2024-06-28 07:21:11 -04:00
cbprintf_packaged.c lib: os: cbprintf_packaged: Fix cbprintf_package_convert 2024-11-01 09:56:03 -05:00
cbprintf.c lib: migrate includes to <zephyr/...> 2022-05-06 19:58:09 +02:00
clock.c posix: Map CLOCK_REALTIME and CLOCK_MONOTONIC to Zephyr clock IDs 2025-07-19 13:43:21 -04:00
CMakeLists.txt sys: clock: additional sys_clock api calls 2025-06-24 14:18:52 +02:00
fdtable.c lib/os/fdtable: Remove ifdef on NATIVE_POSIX 2025-03-12 02:27:36 +01:00
Kconfig p4wq: Add Kconfig to perform early init on threads 2025-02-18 05:32:58 +01:00
Kconfig.cbprintf libc/picolibc: Support 'long long' and 'minimal' printf variants 2023-11-20 06:07:58 -05:00
mpsc_pbuf.c lib: os: mpsc_pbuf: take spinlock in utilization getters 2025-02-18 13:30:29 +01:00
mutex.c coding guidelines: comply with MISRA Rule 12.1. 2024-06-13 20:28:23 -04:00
p4wq.c p4wq: Add Kconfig to perform early init on threads 2025-02-18 05:32:58 +01:00
poweroff.c lib: os: add support for system power off 2023-08-04 16:59:36 +02:00
printk.c lib: os: Fix function signature of str_out 2025-06-18 17:45:06 -04:00
reboot.c lib: os: reboot: dump coverage info on sys_reboot 2024-06-15 04:39:53 -04:00
sem.c coding guidelines: comply with MISRA Rule 12.1. 2024-06-13 20:28:23 -04:00
spsc_pbuf.c spsc_pbuf: fix cache invalidation in spsc_pbuf_free 2024-02-01 13:10:28 -06:00
thread_entry.c arch: kernel: lib: toolchain: Standardize TLS keyword 2024-09-23 10:01:48 +02:00
user_work.c