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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to