zephyr/lib/os
Chris Friedt 9e5e294ea4 lib: os: clock: fix for CID 529870
Fix for CID 529870, where Coverity found an issue where `timespec.tv_sec`
is never greater than `UINT64_MAX / NSEC_PER_SEC` (18446744073).

This is naturally true when `time_t` is only 32-bit, which is actually
never the case for any Zephyr platform aside from `native_sim/native/32`.

When `time_t` is a signed 64-bit value, at some point in the future, but
maybe not in our lifetimes, `timespec.tv_sec` could exceed 18446744073,
since `INT64_MAX > UINT64_MAX / NSEC_PER_SEC`.

We should not see coverity issues errors like this in the future, once we
have a consistent `time_t` representation across all Zephyr platforms.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-07-11 08:21:46 -10: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 lib: os: cbprintf_packaged: Fix cbprintf_package_convert 2024-11-01 09:56:03 -05:00
cbprintf.c
clock.c lib: os: clock: fix for CID 529870 2025-07-11 08:21:46 -10: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
mpsc_pbuf.c lib: os: mpsc_pbuf: take spinlock in utilization getters 2025-02-18 13:30:29 +01:00
mutex.c
p4wq.c p4wq: Add Kconfig to perform early init on threads 2025-02-18 05:32:58 +01:00
poweroff.c
printk.c lib: os: Fix function signature of str_out 2025-06-18 17:45:06 -04:00
reboot.c
sem.c
spsc_pbuf.c
thread_entry.c arch: kernel: lib: toolchain: Standardize TLS keyword 2024-09-23 10:01:48 +02:00
user_work.c