Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

posix: add stubs for signal.h functions that need process support #76327

Merged
merged 4 commits into from
Aug 23, 2024

Conversation

cfriedt
Copy link
Member

@cfriedt cfriedt commented Jul 26, 2024

This is a resubmission of #74436.

There seems to have been an oversight in #75244 in that these commits (belonging neither to #73978 nor #74096) were reverted. No justification was made for PR #74436 to be reverted, so presumably it was an accident.

Indeed, all testing passed with this PR in main as well as against the v3.7.0 tag. Also ran through CI successfully with the expanded testing in #76377.


Since Zephyr itself does not currently support processes, but conformant applications should still be able to link, add stubs for the remaining POSIX functions in the POSIX_SIGNALS Option Group.

The POSIX_SIGNALS Option Group is required for PSE51, PSE52, PSE53, PSE54, and likely many other POSIX Subprofiles.

Doc Preview

Fixes #59925
Fixes #59933
Fixes #66923
Fixes #66924
Fixes #66925
Fixes #66929
Fixes #66930

@cfriedt cfriedt force-pushed the posix-signals-stubs branch 5 times, most recently from dc56ff3 to 3453432 Compare July 27, 2024 02:57
@cfriedt cfriedt requested a review from ycsin July 27, 2024 15:11
@cfriedt cfriedt force-pushed the posix-signals-stubs branch 6 times, most recently from f313cd3 to 14dda60 Compare July 31, 2024 09:18
@cfriedt
Copy link
Member Author

cfriedt commented Aug 1, 2024

Rebased a bunch of times while CI was having issues.

@cfriedt cfriedt marked this pull request as ready for review August 1, 2024 10:19
@zephyrbot zephyrbot added area: C Library C Standard Library area: POSIX POSIX API Library labels Aug 1, 2024
ycsin
ycsin previously approved these changes Aug 3, 2024
@cfriedt
Copy link
Member Author

cfriedt commented Aug 3, 2024

@ceolin - feel like a re-review? This is mostly the same as the previous PR, just rebased.

@cfriedt cfriedt removed the area: C Library C Standard Library label Aug 6, 2024
@cfriedt cfriedt assigned ycsin and unassigned stephanosio Aug 6, 2024
ceolin
ceolin previously approved these changes Aug 6, 2024
@cfriedt cfriedt dismissed stale reviews from ceolin and ycsin via 5656515 August 14, 2024 21:35
@cfriedt cfriedt force-pushed the posix-signals-stubs branch from 14dda60 to 5656515 Compare August 14, 2024 21:35
ycsin
ycsin previously approved these changes Aug 15, 2024
@cfriedt
Copy link
Member Author

cfriedt commented Aug 15, 2024

This PR now includes a commit from #77104, to mitigate false-positive Coding Guideline checks. That PR should preferably be merged before this.

@nashif
Copy link
Member

nashif commented Aug 15, 2024

This PR now includes a commit from #77104, to mitigate false-positive Coding Guideline checks. That PR should preferably be merged before this

adding DNM until #77104 is reviewed and merged.

@nashif nashif added the DNM This PR should not be merged (Do Not Merge) label Aug 15, 2024
Chris Friedt added 4 commits August 20, 2024 07:24
Newlib requires an alias for the getpid() function. There was
a Kconfig already present for doing so, but the actual alias
was missing.

So this is technically a bugfix.

Signed-off-by: Chris Friedt <[email protected]>
Since Zephyr itself does not currently support processes, but
conformant applications should still be able to link, add stubs
for the remaining POSIX functions in the POSIX_SIGNALS Option
Group.

The POSIX_SIGNALS Option Group is required for PSE51, PSE52,
PSE53, PSE54, and likely many other POSIX Subprofiles.

Signed-off-by: Chris Friedt <[email protected]>
Add tests for the presence of items in the POSIX SIGNALS Option
Group.

Signed-off-by: Chris Friedt <[email protected]>
Mark the POSIX_SIGNALS Option Group as supported to the extent
possible under Zephyr, as Zephyr does not yet support processes.

Signed-off-by: Chris Friedt <[email protected]>
@cfriedt cfriedt force-pushed the posix-signals-stubs branch from f5d27a4 to 3136e42 Compare August 20, 2024 11:25
@cfriedt cfriedt removed the DNM This PR should not be merged (Do Not Merge) label Aug 20, 2024
@cfriedt
Copy link
Member Author

cfriedt commented Aug 20, 2024

ping @ycsin, @ceolin

@cfriedt cfriedt merged commit db44b13 into zephyrproject-rtos:main Aug 23, 2024
23 of 24 checks passed
@cfriedt cfriedt deleted the posix-signals-stubs branch August 28, 2024 22:26
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: Coding Guidelines Coding guidelines and style area: Continuous Integration area: POSIX POSIX API Library
Projects
None yet
6 participants