summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>1999-06-29 00:36:06 +0000
committeraaron <aaron@openbsd.org>1999-06-29 00:36:06 +0000
commit8559235b20e752ece4f629f5ba5bcd03aa2160ea (patch)
treec529a07f797bcd7c2836482a3a3d34555f16dd8d
parenttypo; failed with WDDEBUG set (diff)
downloadwireguard-openbsd-8559235b20e752ece4f629f5ba5bcd03aa2160ea.tar.xz
wireguard-openbsd-8559235b20e752ece4f629f5ba5bcd03aa2160ea.zip
accept(2) will set errno to EINVAL if the socket is not listen(2)'ing
-rw-r--r--lib/libc/sys/accept.26
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