summaryrefslogtreecommitdiff
path: root/lib/libc/sys/shutdown.2
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-15 19:57:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-15 19:57:52 +0000
commit577fcf2f377a44687e83b286ee88e4cbf5943fde (patch)
treecd63e36c36aa69c915cf334cf00eb49ca87209d4 /lib/libc/sys/shutdown.2
parentf7f2b7d1eead7023651e706ae944fb123704a8ff (diff)
for shutdown(2), if "how" is not 0-2, return EINVAL
Diffstat (limited to 'lib/libc/sys/shutdown.2')
-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.