0 -> SHUT_RD, 1 -> SHUT_WR, 2 -> SHUT_RDWR.
This commit is contained in:
parent
2af6faff8a
commit
1a2907e5b4
|
@ -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
|
.\" Copyright (c) 1983, 1991, 1993
|
||||||
.\" The Regents of the University of California. All rights reserved.
|
.\" 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
|
the socket associated with
|
||||||
.Fa s
|
.Fa s
|
||||||
to be shut down.
|
to be shut down.
|
||||||
If
|
The
|
||||||
.Fa how
|
.Fa how
|
||||||
is 0, further receives will be disallowed.
|
argument specifies which part of the connection will be shut down.
|
||||||
If
|
Permissible values are:
|
||||||
.Fa how
|
.Bl -tag -width SHUT_RDWRXX -offset indent
|
||||||
is 1, further sends will be disallowed.
|
.It SHUT_RD
|
||||||
If
|
further receives will be disallowed.
|
||||||
.Fa how
|
.It SHUT_RW
|
||||||
is 2, further sends and receives will be disallowed.
|
further sends will be disallowed.
|
||||||
|
.It SHUT_RDWR
|
||||||
|
further sends and receives will be disallowed.
|
||||||
|
.El
|
||||||
.Sh DIAGNOSTICS
|
.Sh DIAGNOSTICS
|
||||||
A 0 is returned if the call succeeds, -1 if it fails.
|
A 0 is returned if the call succeeds, -1 if it fails.
|
||||||
.Sh ERRORS
|
.Sh ERRORS
|
||||||
|
|
Loading…
Reference in New Issue