diff options
author | 1997-11-16 19:57:39 +0000 | |
---|---|---|
committer | 1997-11-16 19:57:39 +0000 | |
commit | a18852f52b906dddc68e2c2e7c0b3c1f621428bb (patch) | |
tree | 2cb67cebfff788c16668b6607af05d86fa78b3dd /lib | |
parent | report correct filename in error msg; netbsd (diff) | |
download | wireguard-openbsd-a18852f52b906dddc68e2c2e7c0b3c1f621428bb.tar.xz wireguard-openbsd-a18852f52b906dddc68e2c2e7c0b3c1f621428bb.zip |
add SHUT_* values as defined by XPG4.2
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/shutdown.2 | 24 |
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 . + |