Skip to content

posix: implement getmsg() #66975

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

Closed
Tracked by #51211
ycsin opened this issue Dec 24, 2023 · 3 comments · Fixed by #68516
Closed
Tracked by #51211

posix: implement getmsg() #66975

ycsin opened this issue Dec 24, 2023 · 3 comments · Fixed by #68516
Assignees
Labels
area: POSIX POSIX API Library Enhancement Changes/Updates/Additions to existing features Good first issue Good for a first time contributor to take

Comments

@ycsin
Copy link
Member

ycsin commented Dec 24, 2023

This is part of the See POSIX Roadmap for LTSv3 (RFC #51211).

getmsg() is required as part of _XOPEN_STREAMS Option Group.

For more information, please refer to https://pubs.opengroup.org/onlinepubs/9699919799/functions/getmsg.html

@ycsin ycsin added Feature Request A request for a new feature Good first issue Good for a first time contributor to take area: POSIX POSIX API Library labels Dec 24, 2023
@Sh0g0-1758
Copy link

hey @ycsin, I am new to Zephyr and would like to tackle this issue. I have been looking into the docs of Zephyr and will start hacking as soon as you assign me this issue.

@Sh0g0-1758
Copy link

@cfriedt @ycsin, can someone please assign me the issue and also point me towards some resources.

@cfriedt
Copy link
Member

cfriedt commented Jan 17, 2024

@Sh0g0-1758 - for the POSIX STREAMS API, I think we'll basically follow Linux' lead. It's very rarely used in practice, so it will be unimplemented.

That basically means:

  • 1st commit: create a stub function that will return -1 and -ENOSYS. Add Konfig / CMake as appropriate
  • 2nd commit: update the "header test" to ensure that an application can link with the function
  • 3rd commit: update the docs, mark it as "supported" in that an application will link, but also add a link back to the "undefined behaviour" blob (with the obelisk symbol)

That should allow you to play around enough to figure out how to add new code in Zephyr, run and maybe debug Zephyr tests with west, run testsuites with twister, and maybe how to build Zephyr docs.

If you have any questions, please feel free to ask in the #posix channel on Zephyr's Discord.

Good luck, and thanks for your help 👍

@nashif nashif added Enhancement Changes/Updates/Additions to existing features and removed Feature Request A request for a new feature labels Jan 19, 2024
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 Good first issue Good for a first time contributor to take
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants