4.4BSD/usr/share/man/cat2/shutdown.0

Compare this file to the similar file:
Show the results in this format:

SHUTDOWN(2)                 BSD Programmer's Manual                SHUTDOWN(2)

NNAAMMEE
     sshhuuttddoowwnn - shut down part of a full-duplex connection

SSYYNNOOPPSSIISS
     ##iinncclluuddee <<ssyyss//ssoocckkeett..hh>>

     _i_n_t
     sshhuuttddoowwnn(_i_n_t _s, _i_n_t _h_o_w);

DDEESSCCRRIIPPTTIIOONN
     The sshhuuttddoowwnn() call causes all or part of a full-duplex connection on the
     socket associated with _s to be shut down.  If _h_o_w is 0, further receives
     will be disallowed.  If _h_o_w is 1, further sends will be disallowed.  If
     _h_o_w is 2, further sends and receives will be disallowed.

DDIIAAGGNNOOSSTTIICCSS
     A 0 is returned if the call succeeds, -1 if it fails.

EERRRROORRSS
     The call succeeds unless:

     [EBADF]     _S is not a valid descriptor.

     [ENOTSOCK]  _S is a file, not a socket.

     [ENOTCONN]  The specified socket is not connected.

SSEEEE AALLSSOO
     connect(2),  socket(2)

HHIISSTTOORRYY
     The sshhuuttddoowwnn function call appeared in 4.2BSD.

4.2 Berkeley Distribution        June 4, 1993                                1