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
cbprintf_complete.c lib: os: cbprintf_complete: add missing break statement 2025-06-18 17:48:03 -04:00
cbprintf_nano.c
cbprintf_packaged.c
cbprintf.c
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
Kconfig
Kconfig.cbprintf
mpsc_pbuf.c
mutex.c
p4wq.c
poweroff.c
printk.c
reboot.c
sem.c
spsc_pbuf.c
thread_entry.c
user_work.c