errno.3: ENODATA is an XSI STREAMS extension
PATCH 1/1 errno.3: ENODATA is an XSI STREAMS extension
--- man3/errno.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
man3/errno.3 +2 -1
@@ -403,7 +403,8 @@ No buffer space available (POSIX.1 (XSI STREAMS option)). .\" ENOCSI is defined but appears to be unused. .TP .B ENODATA -No message is available on the STREAM head read queue (POSIX.1-2001). +No message is available on the STREAM head read queue +(POSIX.1-2001 (XSI STREAMS option). .TP .B ENODEV No such device (POSIX.1-2001).
Signature · 1 line
2.30.1
* Alejandro Colomar <[email protected]>, 2021-03-20, 00:57:
man3/errno.3 No buffer space available (POSIX.1 (XSI STREAMS option)). · line 407
Quoted 3 lines
man3/errno.3 +2
-1-No message is available on the STREAM head read queue (POSIX.1-2001). +No message is available on the STREAM head read queue +(POSIX.1-2001 (XSI STREAMS option).
The parentheses are unbalanced.
Signature · 1 line
Jakub Wilk
Quoted 6 lines · Jakub Wilk
* Alejandro Colomar <[email protected]>, 2021-03-20, 00:57:
man3/errno.3 No buffer space available (POSIX.1 (XSI STREAMS option)). · line 407
Quoted 3 lines
man3/errno.3 +2
-1-No message is available on the STREAM head read queue (POSIX.1-2001). +No message is available on the STREAM head read queue +(POSIX.1-2001 (XSI STREAMS option).The parentheses are unbalanced.
D'oh!
Thanks,
Alex
Signature · 3 lines
Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/
PATCH v2 1/1 errno.3: ENODATA is an XSI STREAMS extension
--- man3/errno.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
man3/errno.3 +2 -1
@@ -403,7 +403,8 @@ No buffer space available (POSIX.1 (XSI STREAMS option)). .\" ENOCSI is defined but appears to be unused. .TP .B ENODATA -No message is available on the STREAM head read queue (POSIX.1-2001). +No message is available on the STREAM head read queue +(POSIX.1-2001 (XSI STREAMS option)). .TP .B ENODEV No such device (POSIX.1-2001).
Signature · 1 line
2.30.1
* Alejandro Colomar:
Quoted 11 lines
Reported-by Mark Kettenis <[email protected]>Signed-off-by Alejandro Colomar <[email protected]>--- man3/errno.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)man3/errno.3 +0
-0
man3/errno.3 No buffer space available (POSIX.1 (XSI STREAMS option)). · line 410
Quoted 9 lines
man3/errno.3 +2
-1@@ -403,7 +403,8 @@ No buffer space available (POSIX.1 (XSI STREAMS option)). .\" ENOCSI is defined but appears to be unused. .TP .B ENODATA -No message is available on the STREAM head read queue (POSIX.1-2001). +No message is available on the STREAM head read queue +(POSIX.1-2001 (XSI STREAMS option)). .TP .B ENODEV No such device (POSIX.1-2001).
Would it make sense to mention that this error code is reused for extended attributes?
Hi Florian,
Quoted 4 lines · Florian Weimer
Would it make sense to mention that this error code is reused for extended attributes?
Hmm, I think so. In fact, AFAICS in the man-pages, it is only used for that:
[
$ grep -rn ENODATA man? man2/setxattr.2:124:.B ENODATA man2/setxattr.2:129:.\" .BR ENODATA man2/getxattr.2:118:.B ENODATA man2/getxattr.2:123:.\" .BR ENODATA man2/removexattr.2:85:.B ENODATA man2/removexattr.2:89:.\" .BR ENODATA man3/errno.3:405:.B ENODATA ]
Proposal:
[
ENODATA
The named attribute does not exist, or the process has no access to this attribute.
In POSIX.1-2001 (XSI STREAMS option), this error was described as "No message is available on the STREAM head read queue".
]
What do you think about it?
Thanks,
Alex
Signature · 3 lines
Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/
* Alejandro Colomar:
Quoted 7 lines
Proposal:
[
ENODATA
The named attribute does not exist, or the process has no access to this attribute.
Quoted 7 lines
In POSIX.1-2001 (XSI STREAMS option), this error was described as "No message is available on the STREAM head read queue".
]
What do you think about it?
Please reference xattr(7), so that it's clear what kind of attributes are meant here.
PATCH v3 1/1 errno.3: Fix ENODATA text
ENODATA is an XSI STREAMS extension (not base POSIX).
Linux reused the name for extended attributes.
The current manual pages don't use ENODATA with its POSIX meaning, so use the xattr(7) specific text, and leave the POSIX meaning for a secondary paragraph.
--- man3/errno.3 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
man3/errno.3 +7 -1
@@ -403,7 +403,13 @@ No buffer space available (POSIX.1 (XSI STREAMS option)). .\" ENOCSI is defined but appears to be unused. .TP .B ENODATA -No message is available on the STREAM head read queue (POSIX.1-2001). +The named attribute does not exist, +or the process has no access to this attribute; see +.BR xattr (7). +.IP +In POSIX.1-2001 (XSI STREAMS option), +this error was described as +"No message is available on the STREAM head read queue". .TP .B ENODEV No such device (POSIX.1-2001).
Signature · 1 line
2.30.1
Re: [PATCH v3] errno.3: Fix ENODATA text
Hi Alex,
Quoted 6 lines · Alejandro Colomar
ENODATA is an XSI STREAMS extension (not base POSIX).
Linux reused the name for extended attributes.
The current manual pages don't use ENODATA with its POSIX meaning, so use the xattr(7) specific text, and leave the POSIX meaning for a secondary paragraph.
Thanks. Nice work on improving the patch!
Cheers,
Michael
Quoted 28 lines
Reported-by Mark Kettenis <[email protected]>Reported-by Florian Weimer <[email protected]>Signed-off-by Alejandro Colomar <[email protected]>--- man3/errno.3 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)man3/errno.3 +7
-1@@ -403,7 +403,13 @@ No buffer space available (POSIX.1 (XSI STREAMS option)). .\" ENOCSI is defined but appears to be unused. .TP .B ENODATA -No message is available on the STREAM head read queue (POSIX.1-2001). +The named attribute does not exist, +or the process has no access to this attribute; see +.BR xattr (7). +.IP +In POSIX.1-2001 (XSI STREAMS option), +this error was described as +"No message is available on the STREAM head read queue". .TP .B ENODEV No such device (POSIX.1-2001).
Signature · 3 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/
Re: [PATCH v3] errno.3: Fix ENODATA text
Quoted 11 lines · Michael Kerrisk (man-pages)
Hi Alex,
Quoted 6 lines · Alejandro Colomar
ENODATA is an XSI STREAMS extension (not base POSIX).
Linux reused the name for extended attributes.
The current manual pages don't use ENODATA with its POSIX meaning, so use the xattr(7) specific text, and leave the POSIX meaning for a secondary paragraph.Thanks. Nice work on improving the patch!
Sorry -- and I meant to say: Patch applied.
Cheers,
Michael
Signature · 3 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/