svn commit: r243439 - head/lib/libc/sys

Kevin Lo kevlo at FreeBSD.org
Fri Nov 23 10:14:55 UTC 2012


Author: kevlo
Date: Fri Nov 23 10:14:54 2012
New Revision: 243439
URL: http://svnweb.freebsd.org/changeset/base/243439

Log:
  Document that getpeername(2) and getsockname(2) can fail with EINVAL.
  
  Reviewed by:	glebius

Modified:
  head/lib/libc/sys/getpeername.2
  head/lib/libc/sys/getsockname.2

Modified: head/lib/libc/sys/getpeername.2
==============================================================================
--- head/lib/libc/sys/getpeername.2	Fri Nov 23 08:47:57 2012	(r243438)
+++ head/lib/libc/sys/getpeername.2	Fri Nov 23 10:14:54 2012	(r243439)
@@ -67,6 +67,10 @@ The argument
 is not a valid descriptor.
 .It Bq Er ECONNRESET
 The connection has been reset by the peer.
+.It Bq Er EINVAL
+The value of the
+.Fa namelen
+argument is not valid.
 .It Bq Er ENOTSOCK
 The argument
 .Fa s

Modified: head/lib/libc/sys/getsockname.2
==============================================================================
--- head/lib/libc/sys/getsockname.2	Fri Nov 23 08:47:57 2012	(r243438)
+++ head/lib/libc/sys/getsockname.2	Fri Nov 23 10:14:54 2012	(r243439)
@@ -66,6 +66,10 @@ The argument
 is not a valid descriptor.
 .It Bq Er ECONNRESET
 The connection has been reset by the peer.
+.It Bq Er EINVAL
+The value of the
+.Fa namelen
+argument is not valid.
 .It Bq Er ENOTSOCK
 The argument
 .Fa s


More information about the svn-src-all mailing list