Module Name: src Committed By: wiz Date: Sun Apr 5 20:41:06 UTC 2015
Modified Files: src/lib/libc/sys: bind.2 Log Message: Sort errors. Bump date for previous. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/lib/libc/sys/bind.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/sys/bind.2 diff -u src/lib/libc/sys/bind.2:1.28 src/lib/libc/sys/bind.2:1.29 --- src/lib/libc/sys/bind.2:1.28 Sun Apr 5 20:33:45 2015 +++ src/lib/libc/sys/bind.2 Sun Apr 5 20:41:05 2015 @@ -1,4 +1,4 @@ -.\" $NetBSD: bind.2,v 1.28 2015/04/05 20:33:45 rtr Exp $ +.\" $NetBSD: bind.2,v 1.29 2015/04/05 20:41:05 wiz Exp $ .\" .\" Copyright (c) 1983, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" @(#)bind.2 8.1 (Berkeley) 6/4/93 .\" -.Dd August 30, 2005 +.Dd April 5, 2015 .Dt BIND 2 .Os .Sh NAME @@ -77,40 +77,43 @@ The .Fn bind call will fail if: .Bl -tag -width Er -.It Bq Er EBADF -.Fa s -is not a valid descriptor. -.It Bq Er ENOTSOCK -.Fa s -is not a socket. +.It Bq Er EACCES +The requested address is protected, and the current user +has inadequate permission to access it. +.It Bq Er EADDRINUSE +The specified address is already in use. .It Bq Er EADDRNOTAVAIL The specified address is not available from the local machine. .It Bq Er EAFNOSUPPORT Addresses in the specified address family cannot be used with this socket. -.It Bq Er EADDRINUSE -The specified address is already in use. -.It Bq Er EINVAL -The socket is already bound to an address. -.It Bq Er EINVAL -The family of the socket and that requested in -.Fa name-\*[Gt]sa_family -are not equivalent. -.It Bq Er EACCES -The requested address is protected, and the current user -has inadequate permission to access it. +.It Bq Er EBADF +.Fa s +is not a valid descriptor. .It Bq Er EFAULT The .Fa name parameter is not in a valid part of the user address space. +.It Bq Er EINVAL +The socket is already bound to an address; or +the family of the socket and that requested in +.Fa name-\*[Gt]sa_family +are not equivalent. +.It Bq Er ENOTSOCK +.Fa s +is not a socket. .El .Pp The following errors are specific to binding names in the .Ux domain. .Bl -tag -width Er -.It Bq Er ENOTDIR -A component of the path prefix is not a directory. +.It Bq Er EIO +An I/O error occurred while making the directory entry or allocating the inode. +.It Bq Er EISDIR +An empty pathname was specified. +.It Bq Er ELOOP +Too many symbolic links were encountered in translating the pathname. .It Bq Er ENAMETOOLONG A component of a pathname exceeded .Brq Dv NAME_MAX @@ -119,14 +122,10 @@ characters, or an entire path name excee characters. .It Bq Er ENOENT A prefix component of the path name does not exist. -.It Bq Er ELOOP -Too many symbolic links were encountered in translating the pathname. -.It Bq Er EIO -An I/O error occurred while making the directory entry or allocating the inode. +.It Bq Er ENOTDIR +A component of the path prefix is not a directory. .It Bq Er EROFS The name would reside on a read-only file system. -.It Bq Er EISDIR -An empty pathname was specified. .El .Sh SEE ALSO .Xr connect 2 ,