Skip to contentSkip to conversation

errno.3: ENODATA is an XSI STREAMS extension

PATCH Superseded Alejandro Colomar 4 participants 10 messages Mar 20, 2021 – Apr 4, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

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
index fe9b7f715..48e3e63f3 100644
@@ -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
#1 lore raw

* 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
#2 lore raw
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/
#3 lore raw

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
index fe9b7f715..48e3e63f3 100644
@@ -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
#4 lore raw

* Alejandro Colomar:

Quoted 11 lines
---
 man3/errno.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
man3/errno.3 +0 -0
index fe9b7f715..48e3e63f3 100644

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?

#5 lore raw

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/
#6 lore raw

* 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.

#7 lore raw

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
index fe9b7f715..eeb885823 100644
@@ -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
#8 lore raw

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
---
 man3/errno.3 | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
man3/errno.3 +7 -1
index fe9b7f715..eeb885823 100644
@@ -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/
#9 lore raw

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/