send.2: ERRORS: Add EAGAIN for ephemeral port range exhaustion

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-04-26 15:14:29 +02:00
parent cbe3d857bd
commit 16f7b04c23
1 changed files with 13 additions and 0 deletions

View File

@ -321,6 +321,19 @@ POSIX.1-2001 allows either error to be returned for this case,
and does not require these constants to have the same value,
so a portable application should check for both possibilities.
.TP
.B EAGAIN
(Internet domain datagram sockets)
The socket referred to by
.I sockfd
had not previously been bound to an address and,
upon attempting to bind it to an ephemeral port,
it was determined that all port numbers in the ephemeral port range
are currently in use.
See the discussion of
.I /proc/sys/net/ipv4/ip_local_port_range
in
.BR ip (7).
.TP
.B EBADF
An invalid descriptor was specified.
.TP