Date: Fri, 23 Nov 2012 10:14:54 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r243439 - head/lib/libc/sys Message-ID: <201211231014.qANAEsS6090137@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211231014.qANAEsS6090137>