0 -> SHUT_RD, 1 -> SHUT_WR, 2 -> SHUT_RDWR.

This commit is contained in:
kleink 1998-04-25 10:42:33 +00:00
parent 2af6faff8a
commit 1a2907e5b4
1 changed files with 12 additions and 9 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: shutdown.2,v 1.5 1995/02/27 12:37:11 cgd Exp $
.\" $NetBSD: shutdown.2,v 1.6 1998/04/25 10:42:33 kleink Exp $
.\"
.\" Copyright (c) 1983, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -50,15 +50,18 @@ call causes all or part of a full-duplex connection on
the socket associated with
.Fa s
to be shut down.
If
The
.Fa how
is 0, further receives will be disallowed.
If
.Fa how
is 1, further sends will be disallowed.
If
.Fa how
is 2, further sends and receives will be disallowed.
argument specifies which part of the connection will be shut down.
Permissible values are:
.Bl -tag -width SHUT_RDWRXX -offset indent
.It SHUT_RD
further receives will be disallowed.
.It SHUT_RW
further sends will be disallowed.
.It SHUT_RDWR
further sends and receives will be disallowed.
.El
.Sh DIAGNOSTICS
A 0 is returned if the call succeeds, -1 if it fails.
.Sh ERRORS