-
Notifications
You must be signed in to change notification settings - Fork 7.4k
doc: posix: mark putmsg as supported #68502
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
Conversation
@@ -509,7 +509,7 @@ _XOPEN_STREAMS | |||
getpmsg(), | |||
ioctl(),yes | |||
isastream(), | |||
putmsg(), | |||
putmsg(),yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct, putmsg was not fully implemented and we just provide an empty stub, can we clarify please, otherwise it is false advertisement, "yes" should be used only for fully implemented functions IMO, for empty stubs, lets use something else to make it clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes - good catch.
@moonlight83340 - can you please match what was done in the docs for other functions where ENOSYS is reported?
Also, in a second commit, it would be great of you could clean up any other ENOSYS functions that have similar entries in the docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in posix directory, I saw we still put the yes in the documentation even when there are ENOSYS 😓
Is there any other part of the documentation that should be modify ? after a quick search for ENOSYS functions and documentation files, I'm not seing others changes.
From here : #66975 (comment)
Maybe I should add something to precise that it is currently "undefined behaviour" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please copy the .rst source where it says
"(will fail with ENOSYS†)"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should I keep the yes with the "(will fail with ENOSYS†)" in the compliance documentation part ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct, putmsg was not fully implemented and we just provide an empty stub, can we clarify please, otherwise it is false advertisement, "yes" should be used only for fully implemented functions IMO, for empty stubs, lets use something else to make it clear.
Do you think modifications are okay ? 😅
3b9a7b3
to
39c5448
Compare
@@ -509,7 +509,7 @@ _XOPEN_STREAMS | |||
getpmsg(), | |||
ioctl(),yes | |||
isastream(), | |||
putmsg(), | |||
putmsg(),yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
putmsg(),yes | |
putmsg(), yes (will fail with ``ENOSYS``:ref:`†<posix_undefined_behaviour>`) |
@@ -109,7 +109,7 @@ POSIX System Interfaces | |||
_XOPEN_CRYPT, -1, | |||
_XOPEN_REALTIME, -1, | |||
_XOPEN_REALTIME_THREADS, -1, | |||
:ref:`_XOPEN_STREAMS<posix_option_xopen_streams>`, -1, :kconfig:option:`CONFIG_NET_SOCKETS` | |||
:ref:`_XOPEN_STREAMS<posix_option_xopen_streams>`, -1, :kconfig:option:`CONFIG_NET_SOCKETS` (will fail with ``ENOSYS``:ref:`†<posix_undefined_behaviour>`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once all prototypes for _XOPEN_STREAMS
are available (at the interface level so that an application can link), this can be changed to 200809L
instead of -1
. But the reference to CONFIG_NET_SOCKETS
is invalid, so please remove it.
:ref:`_XOPEN_STREAMS<posix_option_xopen_streams>`, -1, :kconfig:option:`CONFIG_NET_SOCKETS` (will fail with ``ENOSYS``:ref:`†<posix_undefined_behaviour>`) | |
:ref:`_XOPEN_STREAMS<posix_option_xopen_streams>`, -1, :ref:`†<posix_undefined_behaviour>` |
39c5448
to
5cf9fca
Compare
Also in lib/posix/options/sched.c , all the function are marks yes but no mention of enosys. Should it be the same as here ? Possibily have to modify the documentation of : |
@moonlight83340 - thanks I think the above two are all that are necessary, the 3rd PR looks like it does mention ENOSYS |
Should I do it in a different PR ? |
Could be good to pass the documentation precision before 3.6 is released, should I chnage the PR and add the others modifications or do anothers PR for the others documentation modification ? |
@moonlight83340 - one pr should be fine |
2247895
to
ad69500
Compare
Mark `putmsg()` as implemented but will fail with ``ENOSYS`` Was missing on the documentation before. signed-off-by: Gaetan Perrot <[email protected]>
Mark `sched_setparam()` , `sched_setscheduler()` and `sched_rr_get_interval()` have implemented but will fail with ``ENOSYS`` Were missing on the documentation before. signed-off-by: Gaetan Perrot <[email protected]>
ad69500
to
5ca8105
Compare
I should change the PR name for something else, I think.. |
putmsg()
is missing in the documentation.Has been discuss here #67711