man/man3/errno.3: clarify ENOTSUP and EOPNOTSUPP
PATCH 1/1 man/man3/errno.3: clarify ENOTSUP and EOPNOTSUPP
As revealed by Christian Brauner recently
( https://lore.kernel.org/all/20260527-fotowettbewerb-abwinken-einfach-83db3411945b@brauner/ ), EOPNOTSUPP is widely used on Linux to mean "Operation not supported",
as opposed to "Operation not supported on socket".
Also, as seen in POSIX issue 8:
https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/errno.h.html
POSIX doesn't require ENOTSUP and EOPNOTSUPP to be distinct, so let's update that, too.
--- man/man3/errno.3 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
man/man3/errno.3 +4 -3
@@ -477,13 +477,14 @@ Name not unique on network. No such device or address (POSIX.1-2001). .TP .B EOPNOTSUPP -Operation not supported on socket (POSIX.1-2001). +Operation not supported (POSIX.1-2001). +According to POSIX.1 this is "Operation not supported on socket", +but on Linux it effectively means just "Operation not supported". .IP .RB ( ENOTSUP and .B EOPNOTSUPP -have the same value on Linux, but -according to POSIX.1 these error values should be distinct.) +have the same value on Linux.) .TP .B EOVERFLOW Value too large to be stored in data type (POSIX.1-2001).
base-commit: 9a4bfd0e50745c2649b6291db40b58e37c9c1c6b
Signature · 1 line
2.47.3
Hi Askar,
Quoted 11 lines · Askar Safin
As revealed by Christian Brauner recently
( https://lore.kernel.org/all/20260527-fotowettbewerb-abwinken-einfach-83db3411945b@brauner/ ), EOPNOTSUPP is widely used on Linux to mean "Operation not supported",
as opposed to "Operation not supported on socket".Also, as seen in POSIX issue 8:
https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/errno.h.html
POSIX doesn't require ENOTSUP and EOPNOTSUPP to be distinct, so let's update that, too.Signed-off-by Askar Safin <[email protected]>
I've applied the patch; thanks!
Have a lovely night!
Alex
Quoted 31 lines
--- man/man3/errno.3 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)man/man3/errno.3 +4
-3@@ -477,13 +477,14 @@ Name not unique on network. No such device or address (POSIX.1-2001). .TP .B EOPNOTSUPP -Operation not supported on socket (POSIX.1-2001). +Operation not supported (POSIX.1-2001). +According to POSIX.1 this is "Operation not supported on socket", +but on Linux it effectively means just "Operation not supported". .IP .RB ( ENOTSUP and .B EOPNOTSUPP -have the same value on Linux, but -according to POSIX.1 these error values should be distinct.) +have the same value on Linux.) .TP .B EOVERFLOW Value too large to be stored in data type (POSIX.1-2001).base-commit:
9a4bfd0e50745c2649b6291db40b58e37c9c1c6bSignature · 1 line
2.47.3
Signature · 1 line
<https://www.alejandro-colomar.es>