Skip to content

Conversation

cfriedt
Copy link
Member

@cfriedt cfriedt commented Oct 12, 2025

Previously, time_t was only checked in some C libraries to be greater than or equal to a 64-bit integer and it was skipped in other C libraries.

The C standard still does not make this guarantee, and other code within Zephyr already has been changed to accomodate both 32-bit time_t and 64-bit time_t.

There really is no point in having this test, since it is inconsistent at best.

Until Zephyr changes to a 64-bit time_t (e.g. time64_t), then there is no guarantee of safety against the Y2038 problem.

Previously, `time_t` was only checked in some C libraries to be greater
than or equal to a 64-bit integer and it was skipped in other C libraries.

The C standard still does not make this guarantee, and other code within
Zephyr already has been changed to accomodate both 32-bit `time_t` and
64-bit `time_t`.

There really is no point in having this test, since it is inconsistent
at best.

Until Zephyr changes to a 64-bit `time_t` (e.g. `time64_t`), then there
is no guarantee of safety against the Y2038 problem.

Signed-off-by: Chris Friedt <[email protected]>
@cfriedt cfriedt force-pushed the remove-libc-common-time-t-check branch 2 times, most recently from 0e0f8e3 to 983e934 Compare October 12, 2025 16:46
@cfriedt cfriedt marked this pull request as ready for review October 12, 2025 16:47
@zephyrbot zephyrbot added area: Tests Issues related to a particular existing or missing test area: C Library C Standard Library labels Oct 12, 2025
Copy link

@jhedberg jhedberg merged commit 84f0ca3 into zephyrproject-rtos:main Oct 15, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: C Library C Standard Library area: Tests Issues related to a particular existing or missing test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants