mirror of https://github.com/mkerrisk/man-pages
accept.2, bind.2, connect.2, getpeername.2, getsockname.2, getsockopt.2, listen.2, recv.2, send.2, shutdown.2: ERRORS: standardize error text for ENOTSOCK error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
ea1127509f
commit
deedfd97fe
|
@ -260,7 +260,9 @@ This often means that the memory allocation is limited by the socket buffer
|
||||||
limits, not by the system memory.
|
limits, not by the system memory.
|
||||||
.TP
|
.TP
|
||||||
.B ENOTSOCK
|
.B ENOTSOCK
|
||||||
The descriptor references a file, not a socket.
|
The file descriptor
|
||||||
|
.I sockfd
|
||||||
|
does not refer to a socket.
|
||||||
.TP
|
.TP
|
||||||
.B EOPNOTSUPP
|
.B EOPNOTSUPP
|
||||||
The referenced socket is not of type
|
The referenced socket is not of type
|
||||||
|
|
|
@ -190,8 +190,9 @@ is wrong, or
|
||||||
is not a valid address for this socket's domain.
|
is not a valid address for this socket's domain.
|
||||||
.TP
|
.TP
|
||||||
.B ENOTSOCK
|
.B ENOTSOCK
|
||||||
|
The file descriptor
|
||||||
.I sockfd
|
.I sockfd
|
||||||
is a descriptor for a file, not a socket.
|
does not refer to a socket.
|
||||||
.PP
|
.PP
|
||||||
The following errors are specific to UNIX domain
|
The following errors are specific to UNIX domain
|
||||||
.RB ( AF_UNIX )
|
.RB ( AF_UNIX )
|
||||||
|
|
|
@ -221,7 +221,9 @@ The socket is already connected.
|
||||||
Network is unreachable.
|
Network is unreachable.
|
||||||
.TP
|
.TP
|
||||||
.B ENOTSOCK
|
.B ENOTSOCK
|
||||||
The file descriptor is not associated with a socket.
|
The file descriptor
|
||||||
|
.I sockfd
|
||||||
|
does not refer to a socket.
|
||||||
.TP
|
.TP
|
||||||
.B EPROTOTYPE
|
.B EPROTOTYPE
|
||||||
The socket type does not support the requested communications protocol.
|
The socket type does not support the requested communications protocol.
|
||||||
|
|
|
@ -95,9 +95,9 @@ to perform the operation.
|
||||||
The socket is not connected.
|
The socket is not connected.
|
||||||
.TP
|
.TP
|
||||||
.B ENOTSOCK
|
.B ENOTSOCK
|
||||||
The argument
|
The file descriptor
|
||||||
.I sockfd
|
.I sockfd
|
||||||
is a file, not a socket.
|
does not refer to a socket.
|
||||||
.SH CONFORMING TO
|
.SH CONFORMING TO
|
||||||
POSIX.1-2001, POSIX.1-2008, SVr4, 4.4BSD
|
POSIX.1-2001, POSIX.1-2008, SVr4, 4.4BSD
|
||||||
.RB ( getpeername ()
|
.RB ( getpeername ()
|
||||||
|
|
|
@ -91,9 +91,9 @@ Insufficient resources were available in the system
|
||||||
to perform the operation.
|
to perform the operation.
|
||||||
.TP
|
.TP
|
||||||
.B ENOTSOCK
|
.B ENOTSOCK
|
||||||
The argument
|
The file descriptor
|
||||||
.I sockfd
|
.I sockfd
|
||||||
is a file, not a socket.
|
does not refer to a socket.
|
||||||
.SH CONFORMING TO
|
.SH CONFORMING TO
|
||||||
POSIX.1-2001, POSIX.1-2008, SVr4, 4.4BSD
|
POSIX.1-2001, POSIX.1-2008, SVr4, 4.4BSD
|
||||||
.RB ( getsockname ()
|
.RB ( getsockname ()
|
||||||
|
|
|
@ -169,9 +169,9 @@ option described in
|
||||||
The option is unknown at the level indicated.
|
The option is unknown at the level indicated.
|
||||||
.TP
|
.TP
|
||||||
.B ENOTSOCK
|
.B ENOTSOCK
|
||||||
The argument
|
The file descriptor
|
||||||
.I sockfd
|
.I sockfd
|
||||||
is a file, not a socket.
|
does not refer to a socket.
|
||||||
.SH CONFORMING TO
|
.SH CONFORMING TO
|
||||||
POSIX.1-2001, POSIX.1-2008,
|
POSIX.1-2001, POSIX.1-2008,
|
||||||
SVr4, 4.4BSD (these system calls first appeared in 4.2BSD).
|
SVr4, 4.4BSD (these system calls first appeared in 4.2BSD).
|
||||||
|
|
|
@ -108,9 +108,9 @@ The argument
|
||||||
is not a valid descriptor.
|
is not a valid descriptor.
|
||||||
.TP
|
.TP
|
||||||
.B ENOTSOCK
|
.B ENOTSOCK
|
||||||
The argument
|
The file descriptor
|
||||||
.I sockfd
|
.I sockfd
|
||||||
is not a socket.
|
does not refer to a socket.
|
||||||
.TP
|
.TP
|
||||||
.B EOPNOTSUPP
|
.B EOPNOTSUPP
|
||||||
The socket is not of a type that supports the
|
The socket is not of a type that supports the
|
||||||
|
|
|
@ -479,7 +479,7 @@ and
|
||||||
.BR accept (2)).
|
.BR accept (2)).
|
||||||
.TP
|
.TP
|
||||||
.B ENOTSOCK
|
.B ENOTSOCK
|
||||||
The argument
|
The file descriptor
|
||||||
.I sockfd
|
.I sockfd
|
||||||
does not refer to a socket.
|
does not refer to a socket.
|
||||||
.SH CONFORMING TO
|
.SH CONFORMING TO
|
||||||
|
|
|
@ -399,9 +399,9 @@ No memory available.
|
||||||
The socket is not connected, and no target has been given.
|
The socket is not connected, and no target has been given.
|
||||||
.TP
|
.TP
|
||||||
.B ENOTSOCK
|
.B ENOTSOCK
|
||||||
The argument
|
The file descriptor
|
||||||
.I sockfd
|
.I sockfd
|
||||||
is not a socket.
|
does not refer to a socket.
|
||||||
.TP
|
.TP
|
||||||
.B EOPNOTSUPP
|
.B EOPNOTSUPP
|
||||||
Some bit in the
|
Some bit in the
|
||||||
|
|
|
@ -86,8 +86,9 @@ An invalid value was specified in
|
||||||
The specified socket is not connected.
|
The specified socket is not connected.
|
||||||
.TP
|
.TP
|
||||||
.B ENOTSOCK
|
.B ENOTSOCK
|
||||||
|
The file descriptor
|
||||||
.I sockfd
|
.I sockfd
|
||||||
is a file, not a socket.
|
does not refer to a socket.
|
||||||
.SH CONFORMING TO
|
.SH CONFORMING TO
|
||||||
POSIX.1-2001, POSIX.1-2008, 4.4BSD
|
POSIX.1-2001, POSIX.1-2008, 4.4BSD
|
||||||
.RB ( shutdown ()
|
.RB ( shutdown ()
|
||||||
|
|
Loading…
Reference in New Issue