Annotation of cci/usr/src/man/man2/shutdown.2, revision 1.1.1.2

1.1       root        1: .TH SHUTDOWN 2 "27 July 1983"
                      2: .UC 4
                      3: .SH NAME
                      4: shutdown \- shut down part of a full-duplex connection
                      5: .SH SYNOPSIS
                      6: .nf
                      7: .ft B
                      8: shutdown(s, how)
                      9: int s, how;
                     10: .fi
                     11: .SH DESCRIPTION
                     12: The
                     13: .I shutdown
                     14: call causes all or part of a full-duplex connection on
                     15: the socket associated with
                     16: .I s
                     17: to be shut down.
1.1.1.2 ! root       18: If \fIhow\fP is 0, then further receives are disallowed.
        !            19: If \fIhow\fP is 1, then further sends are disallowed.
        !            20: If \fIhow\fP is 2, then further sends and receives are disallowed.
1.1       root       21: .SH DIAGNOSTICS
                     22: A 0 is returned if the call succeeds, \-1 if it fails.
                     23: .SH ERRORS
                     24: The call succeeds unless:
                     25: .TP 15
                     26: [EBADF]
                     27: .I S
                     28: is not a valid descriptor.
                     29: .TP 15
                     30: [ENOTSOCK]
                     31: .I S
                     32: is a file, not a socket.
                     33: .TP 15
                     34: [ENOTCONN]
                     35: The specified socket is not connected.
                     36: .SH "SEE ALSO"
                     37: connect(2), socket(2)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.