diff options
author | Sergey Kandaurov <pluknet@FreeBSD.org> | 2014-06-26 10:21:00 +0000 |
---|---|---|
committer | Sergey Kandaurov <pluknet@FreeBSD.org> | 2014-06-26 10:21:00 +0000 |
commit | 521aa90cb89bdf55509f01535ab2466023643266 (patch) | |
tree | a9ff9712a190245d93cbceaead23cbc64218f864 /lib | |
parent | f82388fd84fc79bed41d551815dd2ed17f23b24f (diff) | |
download | src-521aa90cb89bdf55509f01535ab2466023643266.tar.gz src-521aa90cb89bdf55509f01535ab2466023643266.zip |
Document EINVAL as per POSIX.
This also follows r124335-r124336, r225827.
PR: 191382
MFC after: 1 week
Sponsored by: Nginx, Inc.
Notes
Notes:
svn path=/head/; revision=267909
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/bind.2 | 6 | ||||
-rw-r--r-- | lib/libc/sys/connect.2 | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lib/libc/sys/bind.2 b/lib/libc/sys/bind.2 index 896b0053cad2..c0f84110ab06 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 ac019e829c37..8ed3f12bc8a2 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 |