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: options: add kconfig for xsi option groups #79816

Open
1 task
cfriedt opened this issue Oct 14, 2024 · 0 comments
Open
1 task

posix: options: add kconfig for xsi option groups #79816

cfriedt opened this issue Oct 14, 2024 · 0 comments
Assignees
Labels
area: POSIX POSIX API Library Enhancement Changes/Updates/Additions to existing features

Comments

@cfriedt
Copy link
Member

cfriedt commented Oct 14, 2024

IIs your enhancement proposal related to a problem? Please describe.

Not a problem per se, but just a missing set of Kconfig options for POSIX Option Groups.

Specifically, the XSI Option Groups are not listed in Subprofiling Considerations. As a result, Zephyr does not have proper Kconfig options representing these standard Option Groups.

Encountered in the process of breaking-down #79454

Describe the solution you'd like

  • Define Kconfig options for the following XSI Option Groups (-> Options)
    • (CONFIG)_XSI_CRYPT -> _XOPEN_CRYPT
    • (CONFIG)_XSI_REALTIME -> _XOPEN_REALTIME
    • (CONFIG)_XSI_ADVANCED_REALTIME -> _XOPEN_ADVANCED_REALTIME
    • (CONFIG)_XSI_REALTIME_THREADS -> _XOPEN_REALTIME_THREADS
    • (CONFIG)_XSI_ADVANCED_REALTIME_THREADS -> _XOPEN_ADVANCED_REALTIME_THREADS

The implementation should follow the existing and recent conventions added for other POSIX Option Groups - e.g. declaring constants conditionally in include/zephyr/posix/sys/sysconf.h and include/zephyr/posix/posix_features.h.

Note

Zephyr currently targets the 200809L POSIX standard, even though the latest is the 202405L standard.

Note

Since some of the XSI Option Groups mainly augment existing POSIX functionality, they might just create Kconfig definitions that select other Kconfig options.

Describe alternatives you've considered

Not creating Kconfig options for these Option Groups, although, I think that is less than ideal because it would be best to be consistent.

Additional context

@cfriedt cfriedt added Enhancement Changes/Updates/Additions to existing features area: POSIX POSIX API Library labels Oct 14, 2024
@cfriedt cfriedt added the Good first issue Good for a first time contributor to take label Oct 14, 2024
@cfriedt cfriedt assigned ycsin and unassigned cfriedt Jan 7, 2025
@cfriedt cfriedt removed the Good first issue Good for a first time contributor to take label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: POSIX POSIX API Library Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

No branches or pull requests

2 participants