summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkeramida <keramida@FreeBSD.org>2005-05-04 11:09:26 +0000
committerkeramida <keramida@FreeBSD.org>2005-05-04 11:09:26 +0000
commit1345acc56545183744116bd781611eb5d5487f9f (patch)
tree1dd02f9bde20018b5c4130aba4045732c704634c /lib
parent2197ab2d9342ec86dee8d80f036f78a3fced3ff7 (diff)
downloadFreeBSD-src-1345acc56545183744116bd781611eb5d5487f9f.zip
FreeBSD-src-1345acc56545183744116bd781611eb5d5487f9f.tar.gz
Document the fact that accept(2) may return EINVAL when addrlen is
negative (in addition to returning EINVAL when called on a descriptor that is not a socket). Submitted by: Arne H Juul <arnej@europe.yahoo-inc.com> PR: docs/80587
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/accept.24
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/sys/accept.2 b/lib/libc/sys/accept.2
index 5b844c6..800d9a2 100644
--- a/lib/libc/sys/accept.2
+++ b/lib/libc/sys/accept.2
@@ -154,6 +154,10 @@ The descriptor references a file, not a socket.
.It Bq Er EINVAL
.Xr listen 2
has not been called on the socket descriptor.
+.It Bq Er EINVAL
+The
+.Fa addrlen
+argument is negative.
.It Bq Er EFAULT
The
.Fa addr
OpenPOWER on IntegriCloud