OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / original / man2 / bind.2
index bb98ddc..134da2d 100644 (file)
@@ -65,7 +65,7 @@
 .\" $Id: bind.2,v 1.3 1999/04/23 19:56:07 freitag Exp $
 .\" Modified 2004-06-23 by Michael Kerrisk <mtk.manpages@gmail.com>
 .\"
-.TH BIND 2 2007-12-28 "Linux" "Linux Programmer's Manual"
+.TH BIND 2 2014-08-19 "Linux" "Linux Programmer's Manual"
 .SH NAME
 bind \- bind a name to a socket
 .SH SYNOPSIS
@@ -163,6 +163,17 @@ The address is protected, and the user is not the superuser.
 .B EADDRINUSE
 The given address is already in use.
 .TP
+.B EADDRINUSE
+(Internet domain sockets)
+The port number was specified as zero in the socket address structure,
+but, upon attempting to bind 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
+.BR ip (7).
+.TP
+.TP
 .B EBADF
 .I sockfd
 is not a valid descriptor.
@@ -172,6 +183,12 @@ The socket is already bound to an address.
 .\" This may change in the future: see
 .\" .I linux/unix/sock.c for details.
 .TP
+.B EINVAL
+.I addrlen
+is wrong, or
+.I addr
+is not a valid address for this socket's domain.
+.TP
 .B ENOTSOCK
 .I sockfd
 is a descriptor for a file, not a socket.
@@ -193,13 +210,6 @@ address was not local.
 .I addr
 points outside the user's accessible address space.
 .TP
-.B EINVAL
-The
-.I addrlen
-is wrong, or the socket was not in the
-.B AF_UNIX
-family.
-.TP
 .B ELOOP
 Too many symbolic links were encountered in resolving
 .IR addr .
@@ -218,7 +228,7 @@ Insufficient kernel memory was available.
 A component of the path prefix is not a directory.
 .TP
 .B EROFS
-The socket inode would reside on a read-only file system.
+The socket inode would reside on a read-only filesystem.
 .SH CONFORMING TO
 SVr4, 4.4BSD, POSIX.1-2001
 .RB ( bind ()
@@ -250,7 +260,7 @@ See also
 .BR accept (2).
 .SH BUGS
 The transparent proxy options are not described.
-.\" FIXME What *are* transparent proxy options?
+.\" FIXME Document transparent proxy options
 .SH EXAMPLE
 An example of the use of
 .BR bind ()
@@ -329,3 +339,12 @@ main(int argc, char *argv[])
 .BR path_resolution (7),
 .BR socket (7),
 .BR unix (7)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.