Annotated edit history of
shutdown(2) version 1, including all changes.
View license author blame.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
SHUTDOWN |
| |
|
2 |
!!!SHUTDOWN |
| |
|
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
RETURN VALUE |
| |
|
7 |
ERRORS |
| |
|
8 |
CONFORMING TO |
| |
|
9 |
BUGS |
| |
|
10 |
SEE ALSO |
| |
|
11 |
---- |
| |
|
12 |
!!NAME |
| |
|
13 |
|
| |
|
14 |
|
| |
|
15 |
shutdown - shut down part of a full-duplex connection |
| |
|
16 |
!!SYNOPSIS |
| |
|
17 |
|
| |
|
18 |
|
| |
|
19 |
__#include __ |
| |
|
20 |
|
| |
|
21 |
|
| |
|
22 |
__int shutdown(int__ ''s''__, int__ |
| |
|
23 |
''how''__);__ |
| |
|
24 |
!!DESCRIPTION |
| |
|
25 |
|
| |
|
26 |
|
| |
|
27 |
The __shutdown__ call causes all or part of a full-duplex |
| |
|
28 |
connection on the socket associated with ''s'' to be shut |
| |
|
29 |
down. If ''how'' is 0, further receives will be |
| |
|
30 |
disallowed. If ''how'' is 1, further sends will be |
| |
|
31 |
disallowed. If ''how'' is 2, further sends and receives |
| |
|
32 |
will be disallowed. |
| |
|
33 |
!!RETURN VALUE |
| |
|
34 |
|
| |
|
35 |
|
| |
|
36 |
On success, zero is returned. On error, -1 is returned, and |
| |
|
37 |
''errno'' is set appropriately. |
| |
|
38 |
!!ERRORS |
| |
|
39 |
|
| |
|
40 |
|
| |
|
41 |
__EBADF__ |
| |
|
42 |
|
| |
|
43 |
|
| |
|
44 |
''s'' is not a valid descriptor. |
| |
|
45 |
|
| |
|
46 |
|
| |
|
47 |
__ENOTSOCK__ |
| |
|
48 |
|
| |
|
49 |
|
| |
|
50 |
''s'' is a file, not a socket. |
| |
|
51 |
|
| |
|
52 |
|
| |
|
53 |
__ENOTCONN__ |
| |
|
54 |
|
| |
|
55 |
|
| |
|
56 |
The specified socket is not connected. |
| |
|
57 |
!!CONFORMING TO |
| |
|
58 |
|
| |
|
59 |
|
| |
|
60 |
4.4BSD (the __shutdown__ function call first appeared in |
| |
|
61 |
4.2BSD). |
| |
|
62 |
!!BUGS |
| |
|
63 |
|
| |
|
64 |
|
| |
|
65 |
The numerical ''how'' flags should be replaced by the |
| |
|
66 |
Single Unix-mandated __SHUT_RD__, __SHUT_WR__, and |
| |
|
67 |
__SHUT_RDWR__ flags. |
| |
|
68 |
!!SEE ALSO |
| |
|
69 |
|
| |
|
70 |
|
| |
|
71 |
connect(2), socket(2) |
| |
|
72 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.