summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-16 19:57:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-16 19:57:43 +0000
commitdb7f6e1950553486166ee640f623df0d471db141 (patch)
treeb0420a393312b9c83df231d9e7bf9bc475162382 /lib/libc
parente6213d116cc041117839192bff0cc7a61ad2b910 (diff)
add SHUT_* values as defined by XPG4.2
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/shutdown.224
1 files changed, 20 insertions, 4 deletions
diff --git a/lib/libc/sys/shutdown.2 b/lib/libc/sys/shutdown.2
index 9a9b2351b3f..ad75a0735dc 100644
--- a/lib/libc/sys/shutdown.2
+++ b/lib/libc/sys/shutdown.2
@@ -52,13 +52,19 @@ the socket associated with
to be shut down.
If
.Fa how
-is 0, further receives will be disallowed.
+is
+.Ar SHUT_RD ,
+further receives will be disallowed.
If
.Fa how
-is 1, further sends will be disallowed.
+is
+.Ar SHUT_WR ,
+further sends will be disallowed.
If
.Fa how
-is 2, further sends and receives will be disallowed.
+is
+.Ar SHUT_RDWR ,
+further sends and receives will be disallowed.
.Sh DIAGNOSTICS
A 0 is returned if the call succeeds, -1 if it fails.
.Sh ERRORS
@@ -66,7 +72,11 @@ The call succeeds unless:
.Bl -tag -width Er
.It Bq Er EINVAL
.Fa how
-is not in the valid range of 0 - 2.
+is not
+.Ar SHUT_RD ,
+.Ar SHUT_WR ,
+or
+.Ar SHUT_RDWR .
.It Bq Er EBADF
.Fa S
is not a valid descriptor.
@@ -84,3 +94,9 @@ The
.Fn shutdown
function call appeared in
.Bx 4.2 .
+The
+.Fa how
+arguments used to be simply 0, 1, and 2, but now have named values
+as specified by
+.St -xpg4 .
+