Skip to content

Conversation

yashi
Copy link
Contributor

@yashi yashi commented Oct 6, 2025

Commit 5cbb2a4 ("posix: switch to using posix_time.h and posix_signal.h") removed <zephyr/posix/time.h> and <zephyr/posix/signal.h> in favor of standard <time.h> and <signal.h>. However, this was a hard cut-over. Users including the old headers now encounter build errors without guidance on how to resolve them.

Reintroduce <zephyr/posix/time.h> and <zephyr/posix/signal.h> as stubs that emit compile-time warnings and include their corresponding standard headers. This helps users migrate smoothly by providing actionable diagnostics.

ref)

Commit 5cbb2a4 ("posix: switch to using posix_time.h and
posix_signal.h") removed <zephyr/posix/time.h> and <zephyr/posix/signal.h>
in favor of standard <time.h> and <signal.h>.  However, this was a hard
cut-over. Users including the old headers now encounter build errors
without guidance on how to resolve them.

Reintroduce <zephyr/posix/time.h> and <zephyr/posix/signal.h> as stubs
that emit compile-time warnings and include their corresponding standard
headers. This helps users migrate smoothly by providing actionable
diagnostics.

Signed-off-by: Yasushi SHOJI <[email protected]>
@zephyrbot zephyrbot added the area: POSIX POSIX API Library label Oct 6, 2025
@zephyrbot zephyrbot requested review from cfriedt and ycsin October 6, 2025 04:11
Copy link

sonarqubecloud bot commented Oct 6, 2025

@yashi
Copy link
Contributor Author

yashi commented Oct 6, 2025

CI failures: Twister treats all warnings as erros.

@cfriedt
Copy link
Member

cfriedt commented Oct 6, 2025

without guidance on how to resolve them

See
#96999

I believe we may have a "deprecated header" macro, so that might be better in this case.

Personally, I would prefer to just stick with notes in the migration guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: POSIX POSIX API Library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants