diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-06-29 00:36:07 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-06-29 00:36:07 +0000 |
commit | 428404334783f465048a00f68ecf9680a2815671 (patch) | |
tree | 4317e68ff6f63bad522df7518130c18a058b0a64 /lib/libc/sys/accept.2 | |
parent | 708cc0ef29c46ab26bc8424299cf991bfa93b019 (diff) |
accept(2) will set errno to EINVAL if the socket is not listen(2)'ing
Diffstat (limited to 'lib/libc/sys/accept.2')
-rw-r--r-- | lib/libc/sys/accept.2 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/sys/accept.2 b/lib/libc/sys/accept.2 index d28b6df83b7..f600ef7d897 100644 --- a/lib/libc/sys/accept.2 +++ b/lib/libc/sys/accept.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: accept.2,v 1.6 1999/05/23 14:10:57 aaron Exp $ +.\" $OpenBSD: accept.2,v 1.7 1999/06/29 00:36:06 aaron Exp $ .\" $NetBSD: accept.2,v 1.7 1996/01/31 20:14:42 mycroft Exp $ .\" .\" Copyright (c) 1983, 1990, 1991, 1993 @@ -147,6 +147,10 @@ The descriptor references a file, not a socket. .It Bq Er EOPNOTSUPP The referenced socket is not of type .Dv SOCK_STREAM . +.It Bq Er EINVAL +The referenced socket is not listening for connections (that is, +.Xr listen 2 +has not yet been called). .It Bq Er EFAULT The .Fa addr |