mirror of https://github.com/mkerrisk/man-pages
Remove text under EINVAL error: "This may change in the future:
see linux/unix/sock.c for details." This behaviour has been unchanged for a long time, and seems unlikely to change. Add EADDRINUSE to errors.
This commit is contained in:
parent
89cc227528
commit
5059acc358
16
man2/bind.2
16
man2/bind.2
|
@ -183,15 +183,17 @@ is set appropriately.
|
||||||
.B EACCES
|
.B EACCES
|
||||||
The address is protected, and the user is not the superuser.
|
The address is protected, and the user is not the superuser.
|
||||||
.TP
|
.TP
|
||||||
|
.B EADDRINUSE
|
||||||
|
The given address is already in use.
|
||||||
|
.TP
|
||||||
.B EBADF
|
.B EBADF
|
||||||
.I sockfd
|
.I sockfd
|
||||||
is not a valid descriptor.
|
is not a valid descriptor.
|
||||||
.TP
|
.TP
|
||||||
.B EINVAL
|
.B EINVAL
|
||||||
The socket is already bound to an address. This may change in the future:
|
The socket is already bound to an address.
|
||||||
see
|
.\" This may change in the future: see
|
||||||
.I linux/unix/sock.c
|
.\" .I linux/unix/sock.c for details.
|
||||||
for details.
|
|
||||||
.TP
|
.TP
|
||||||
.B ENOTSOCK
|
.B ENOTSOCK
|
||||||
Argument is a descriptor for a file, not a socket.
|
Argument is a descriptor for a file, not a socket.
|
||||||
|
@ -240,9 +242,9 @@ The transparent proxy options are not described.
|
||||||
.SH "CONFORMING TO"
|
.SH "CONFORMING TO"
|
||||||
SVr4, 4.4BSD (the
|
SVr4, 4.4BSD (the
|
||||||
.BR bind ()
|
.BR bind ()
|
||||||
function first appeared in 4.2BSD). SVr4 documents additional
|
function first appeared in 4.2BSD).
|
||||||
.BR EADDRNOTAVAIL ,
|
SVr4 documents additional
|
||||||
.BR EADDRINUSE ,
|
.BR EADDRNOTAVAIL
|
||||||
and
|
and
|
||||||
.B ENOSR
|
.B ENOSR
|
||||||
general error conditions, and
|
general error conditions, and
|
||||||
|
|
Loading…
Reference in New Issue