From 0d8378f52b85502c1b4affb9e3171b87840a9008 Mon Sep 17 00:00:00 2001 From: pluknet Date: Thu, 3 Jul 2014 17:35:01 +0000 Subject: MFC r267909: Document EINVAL. PR: 191382 --- lib/libc/sys/bind.2 | 6 +++++- lib/libc/sys/connect.2 | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/sys/bind.2 b/lib/libc/sys/bind.2 index 896b005..c0f8411 100644 --- a/lib/libc/sys/bind.2 +++ b/lib/libc/sys/bind.2 @@ -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 diff --git a/lib/libc/sys/connect.2 b/lib/libc/sys/connect.2 index ac019e8..8ed3f12 100644 --- a/lib/libc/sys/connect.2 +++ b/lib/libc/sys/connect.2 @@ -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 -- cgit v1.1