From 1345acc56545183744116bd781611eb5d5487f9f Mon Sep 17 00:00:00 2001 From: keramida Date: Wed, 4 May 2005 11:09:26 +0000 Subject: 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 PR: docs/80587 --- lib/libc/sys/accept.2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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 -- cgit v1.1