From f2e5c70eca6cc384cf7727ab87b978dcc0b77fa4 Mon Sep 17 00:00:00 2001 From: wollman Date: Sat, 12 Sep 1998 21:38:30 +0000 Subject: [PATCH] Document the fact that shutdown(2) is expected to comply with Posix.1g, when it happens. --- lib/libc/sys/shutdown.2 | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/lib/libc/sys/shutdown.2 b/lib/libc/sys/shutdown.2 index b83763f566c5..99709a5437a8 100644 --- a/lib/libc/sys/shutdown.2 +++ b/lib/libc/sys/shutdown.2 @@ -51,13 +51,19 @@ the socket associated with to be shut down. If .Fa how -is 0, further receives will be disallowed. +is +.No Dv SHUT_RD Pq 0 , +further receives will be disallowed. If .Fa how -is 1, further sends will be disallowed. +is +.No Dv SHUT_WR Pq 1 , +further sends will be disallowed. If .Fa how -is 2, further sends and receives will be disallowed. +is +.No Dv SHUT_RDWR Pq 2 , +further sends and receives will be disallowed. .Sh RETURN VALUES A 0 is returned if the call succeeds, -1 if it fails. .Sh ERRORS @@ -75,8 +81,19 @@ The specified socket is not connected. .Sh SEE ALSO .Xr connect 2 , .Xr socket 2 +.Sh STANDARDS +The +.Fn shutdown +function is expected to comply with +.St -p1003.1g , +when finalized. .Sh HISTORY The .Fn shutdown function call appeared in .Bx 4.2 . +The +.Dv SHUT_ +constants appeared in +.St -p1003.1g . +