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
|
||||
The address is protected, and the user is not the superuser.
|
||||
.TP
|
||||
.B EADDRINUSE
|
||||
The given address is already in use.
|
||||
.TP
|
||||
.B EBADF
|
||||
.I sockfd
|
||||
is not a valid descriptor.
|
||||
.TP
|
||||
.B EINVAL
|
||||
The socket is already bound to an address. This may change in the future:
|
||||
see
|
||||
.I linux/unix/sock.c
|
||||
for details.
|
||||
The socket is already bound to an address.
|
||||
.\" This may change in the future: see
|
||||
.\" .I linux/unix/sock.c for details.
|
||||
.TP
|
||||
.B ENOTSOCK
|
||||
Argument is a descriptor for a file, not a socket.
|
||||
|
@ -240,9 +242,9 @@ The transparent proxy options are not described.
|
|||
.SH "CONFORMING TO"
|
||||
SVr4, 4.4BSD (the
|
||||
.BR bind ()
|
||||
function first appeared in 4.2BSD). SVr4 documents additional
|
||||
.BR EADDRNOTAVAIL ,
|
||||
.BR EADDRINUSE ,
|
||||
function first appeared in 4.2BSD).
|
||||
SVr4 documents additional
|
||||
.BR EADDRNOTAVAIL
|
||||
and
|
||||
.B ENOSR
|
||||
general error conditions, and
|
||||
|
|
Loading…
Reference in New Issue