Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jun 2014 10:21:00 +0000 (UTC)
From:      Sergey Kandaurov <pluknet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267909 - head/lib/libc/sys
Message-ID:  <201406261021.s5QAL0dN004204@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pluknet
Date: Thu Jun 26 10:21:00 2014
New Revision: 267909
URL: http://svnweb.freebsd.org/changeset/base/267909

Log:
  Document EINVAL as per POSIX.
  
  This also follows r124335-r124336, r225827.
  
  PR:		191382
  MFC after:	1 week
  Sponsored by:	Nginx, Inc.

Modified:
  head/lib/libc/sys/bind.2
  head/lib/libc/sys/connect.2

Modified: head/lib/libc/sys/bind.2
==============================================================================
--- head/lib/libc/sys/bind.2	Thu Jun 26 10:13:11 2014	(r267908)
+++ head/lib/libc/sys/bind.2	Thu Jun 26 10:21:00 2014	(r267909)
@@ -28,7 +28,7 @@
 .\"     @(#)bind.2	8.1 (Berkeley) 6/4/93
 .\" $FreeBSD$
 .\"
-.Dd June 4, 1993
+.Dd June 26, 2014
 .Dt BIND 2
 .Os
 .Sh NAME
@@ -85,6 +85,10 @@ is not a valid descriptor.
 .It Bq Er EINVAL
 The socket is already bound to an address, and the protocol does not support
 binding to a new address; or the socket has been shut down.
+.It Bq Er EINVAL
+The
+.Fa addrlen
+argument is not a valid length for the address family.
 .It Bq Er ENOTSOCK
 The
 .Fa s

Modified: head/lib/libc/sys/connect.2
==============================================================================
--- head/lib/libc/sys/connect.2	Thu Jun 26 10:13:11 2014	(r267908)
+++ head/lib/libc/sys/connect.2	Thu Jun 26 10:21:00 2014	(r267909)
@@ -28,7 +28,7 @@
 .\"     @(#)connect.2	8.1 (Berkeley) 6/4/93
 .\" $FreeBSD$
 .\"
-.Dd September 5, 2010
+.Dd June 26, 2014
 .Dt CONNECT 2
 .Os
 .Sh NAME
@@ -80,6 +80,10 @@ The
 .Fa s
 argument
 is not a valid descriptor.
+.It Bq Er EINVAL
+The
+.Fa namelen
+argument is not a valid length for the address family.
 .It Bq Er ENOTSOCK
 The
 .Fa s



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406261021.s5QAL0dN004204>