summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-11-15 19:57:49 +0000
committerderaadt <deraadt@openbsd.org>1997-11-15 19:57:49 +0000
commit7aa8180a9faefd8bede4f09f62e9b2538ca523fb (patch)
treed10a4627c17b60e66ef418d94c5de3adc08649e9 /lib
parentfix memory management errors (diff)
downloadwireguard-openbsd-7aa8180a9faefd8bede4f09f62e9b2538ca523fb.tar.xz
wireguard-openbsd-7aa8180a9faefd8bede4f09f62e9b2538ca523fb.zip
for shutdown(2), if "how" is not 0-2, return EINVAL
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/shutdown.23
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/sys/shutdown.2 b/lib/libc/sys/shutdown.2
index 927e3bdf329..9a9b2351b3f 100644
--- a/lib/libc/sys/shutdown.2
+++ b/lib/libc/sys/shutdown.2
@@ -64,6 +64,9 @@ A 0 is returned if the call succeeds, -1 if it fails.
.Sh ERRORS
The call succeeds unless:
.Bl -tag -width Er
+.It Bq Er EINVAL
+.Fa how
+is not in the valid range of 0 - 2.
.It Bq Er EBADF
.Fa S
is not a valid descriptor.