diff options
author | kevlo <kevlo@FreeBSD.org> | 2012-11-23 10:14:54 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2012-11-23 10:14:54 +0000 |
commit | ec5aeeffd06a344918e75a6621a4dd36f5b1ccc5 (patch) | |
tree | 782899c4ce2b4bce00726743564530d331788869 /lib | |
parent | 83865012c398f4a2383590bd5caf7910fcd8931e (diff) | |
download | FreeBSD-src-ec5aeeffd06a344918e75a6621a4dd36f5b1ccc5.zip FreeBSD-src-ec5aeeffd06a344918e75a6621a4dd36f5b1ccc5.tar.gz |
Document that getpeername(2) and getsockname(2) can fail with EINVAL.
Reviewed by: glebius
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/getpeername.2 | 4 | ||||
-rw-r--r-- | lib/libc/sys/getsockname.2 | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/sys/getpeername.2 b/lib/libc/sys/getpeername.2 index 9037119..255c7a0 100644 --- a/lib/libc/sys/getpeername.2 +++ b/lib/libc/sys/getpeername.2 @@ -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 diff --git a/lib/libc/sys/getsockname.2 b/lib/libc/sys/getsockname.2 index f1537c7..1de0257 100644 --- a/lib/libc/sys/getsockname.2 +++ b/lib/libc/sys/getsockname.2 @@ -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 |