Document the fact that shutdown(2) is expected to comply with Posix.1g,

when it happens.
This commit is contained in:
wollman 1998-09-12 21:38:30 +00:00
parent 06c50449fd
commit 9aee196299

View File

@ -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 .