]> git.ipfire.org Git - thirdparty/man-pages.git/commit
open.2: Document ENXIO for sockets
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Sun, 13 May 2018 13:21:40 +0000 (15:21 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 31 May 2018 19:34:32 +0000 (21:34 +0200)
commit71b12d0a5743f7e061bdf068fb62512468239367
treedde20f34dac74fb94f537d759d3c82e014adcb30
parent946bdf7207c54a8d016f3d0e69dd3d7687a5757c
open.2: Document ENXIO for sockets

Linux returns ENXIO when attempting to open() a UNIX domain socket.
Kernel-wise, I believe this happens in fs/inode.c [1], where a constant
`no_open` function returning -ENXIO is registered as the default open()
handler for inodes in inode_init_always(), and is not specialized in
nit_special_inode() as it is for other types.

Seen in the systemd v238 source code [2].

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/fs/inode.c?h=v4.16
[2]: https://github.com/systemd/systemd/blob/v238/src/core/execute.c#L412

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/open.2