* [Bug 217821] New: document that Linux' open(2) uses ENXIO in case of sockets, while POSIX mandates EOPNOTSUPP
@ 2023-08-25 1:07 bugzilla-daemon
2023-08-25 10:19 ` Alejandro Colomar
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: bugzilla-daemon @ 2023-08-25 1:07 UTC (permalink / raw)
To: linux-man
https://bugzilla.kernel.org/show_bug.cgi?id=217821
Bug ID: 217821
Summary: document that Linux' open(2) uses ENXIO in case of
sockets, while POSIX mandates EOPNOTSUPP
Product: Documentation
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: enhancement
Priority: P3
Component: man-pages
Assignee: documentation_man-pages@kernel-bugs.osdl.org
Reporter: calestyo@scientia.org
Regression: No
Hey.
It seems that under Linux, when using a socket file with the open(2) family of
functions, the error is:
> ENXIO The file is a UNIX domain socket.
OTOH, POSIX specifies[0]:
> [EOPNOTSUPP]
> The path argument names a socket.
Maybe it makes sense to document that? Possibly right at the ENXIO descripton
and even additionally in the STANDARDS section?
I could write a patch if you tell me which you like.
Cheers,
Chris.
[0] https://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Bug 217821] New: document that Linux' open(2) uses ENXIO in case of sockets, while POSIX mandates EOPNOTSUPP
2023-08-25 1:07 [Bug 217821] New: document that Linux' open(2) uses ENXIO in case of sockets, while POSIX mandates EOPNOTSUPP bugzilla-daemon
@ 2023-08-25 10:19 ` Alejandro Colomar
2023-08-25 10:19 ` [Bug 217821] " bugzilla-daemon
2023-08-25 20:30 ` bugzilla-daemon
2 siblings, 0 replies; 4+ messages in thread
From: Alejandro Colomar @ 2023-08-25 10:19 UTC (permalink / raw)
To: bugzilla-daemon, linux-man
Hi Chris,
On 2023-08-25 03:07, bugzilla-daemon@kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=217821
>
> Bug ID: 217821
> Summary: document that Linux' open(2) uses ENXIO in case of
> sockets, while POSIX mandates EOPNOTSUPP
> Product: Documentation
> Version: unspecified
> Hardware: All
> OS: Linux
> Status: NEW
> Severity: enhancement
> Priority: P3
> Component: man-pages
> Assignee: documentation_man-pages@kernel-bugs.osdl.org
> Reporter: calestyo@scientia.org
> Regression: No
>
> Hey.
>
> It seems that under Linux, when using a socket file with the open(2) family of
> functions, the error is:
>> ENXIO The file is a UNIX domain socket.
>
> OTOH, POSIX specifies[0]:
>> [EOPNOTSUPP]
>> The path argument names a socket.
>
>
> Maybe it makes sense to document that? Possibly right at the ENXIO descripton
> and even additionally in the STANDARDS section?
>
> I could write a patch if you tell me which you like.
Sure. Please check the ./CONTRIBUTING file in the repository.
Cheers,
Alex
--
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 217821] document that Linux' open(2) uses ENXIO in case of sockets, while POSIX mandates EOPNOTSUPP
2023-08-25 1:07 [Bug 217821] New: document that Linux' open(2) uses ENXIO in case of sockets, while POSIX mandates EOPNOTSUPP bugzilla-daemon
2023-08-25 10:19 ` Alejandro Colomar
@ 2023-08-25 10:19 ` bugzilla-daemon
2023-08-25 20:30 ` bugzilla-daemon
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2023-08-25 10:19 UTC (permalink / raw)
To: linux-man
https://bugzilla.kernel.org/show_bug.cgi?id=217821
--- Comment #1 from Alejandro Colomar (colomar.6.4.3@gmail.com) ---
Hi Chris,
On 2023-08-25 03:07, bugzilla-daemon@kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=217821
>
> Bug ID: 217821
> Summary: document that Linux' open(2) uses ENXIO in case of
> sockets, while POSIX mandates EOPNOTSUPP
> Product: Documentation
> Version: unspecified
> Hardware: All
> OS: Linux
> Status: NEW
> Severity: enhancement
> Priority: P3
> Component: man-pages
> Assignee: documentation_man-pages@kernel-bugs.osdl.org
> Reporter: calestyo@scientia.org
> Regression: No
>
> Hey.
>
> It seems that under Linux, when using a socket file with the open(2) family
> of
> functions, the error is:
>> ENXIO The file is a UNIX domain socket.
>
> OTOH, POSIX specifies[0]:
>> [EOPNOTSUPP]
>> The path argument names a socket.
>
>
> Maybe it makes sense to document that? Possibly right at the ENXIO descripton
> and even additionally in the STANDARDS section?
>
> I could write a patch if you tell me which you like.
Sure. Please check the ./CONTRIBUTING file in the repository.
Cheers,
Alex
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 217821] document that Linux' open(2) uses ENXIO in case of sockets, while POSIX mandates EOPNOTSUPP
2023-08-25 1:07 [Bug 217821] New: document that Linux' open(2) uses ENXIO in case of sockets, while POSIX mandates EOPNOTSUPP bugzilla-daemon
2023-08-25 10:19 ` Alejandro Colomar
2023-08-25 10:19 ` [Bug 217821] " bugzilla-daemon
@ 2023-08-25 20:30 ` bugzilla-daemon
2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2023-08-25 20:30 UTC (permalink / raw)
To: linux-man
https://bugzilla.kernel.org/show_bug.cgi?id=217821
--- Comment #2 from Christoph Anton Mitterer (calestyo@scientia.org) ---
Patch posted at:
https://lore.kernel.org/linux-man/979345cf576e86c42743ea48d797484fc41f8bf7.camel@scientia.org/T/#u
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-08-25 20:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-25 1:07 [Bug 217821] New: document that Linux' open(2) uses ENXIO in case of sockets, while POSIX mandates EOPNOTSUPP bugzilla-daemon
2023-08-25 10:19 ` Alejandro Colomar
2023-08-25 10:19 ` [Bug 217821] " bugzilla-daemon
2023-08-25 20:30 ` bugzilla-daemon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).