SHUTDOWN(3C) Standard C Library Functions SHUTDOWN(3C) NNAAMMEE sshhuuttddoowwnn - shut down part of a full-duplex connection LLIIBBRRAARRYY Standard C Library (libc, -lc) SSYYNNOOPPSSIISS ##iinncclluuddee <> _i_n_t sshhuuttddoowwnn(_i_n_t _s, _i_n_t _h_o_w); DDEESSCCRRIIPPTTIIOONN The sshhuuttddoowwnn() call shuts down all or part of a full-duplex connection on the socket associated with _s. If _h_o_w is SHUT_RD, further receives are disallowed. If _h_o_w is SHUT_WR, further sends are disallowed. If _h_o_w is SHUT_RDWR, further sends and receives are disallowed. The _h_o_w values should be defined constants. RREETTUURRNN VVAALLUUEESS 0 is returned if the call succeeds. -1 is returned if the call fails. EERRRROORRSS The call succeeds unless one of the following conditions exists: [EBADF] The _s value is not a valid file descriptor. [ENOMEM] Insufficient user memory is available for the operation to complete. [ENOSR] Insufficient STREAMS resources are available for the operation to complete. [ENOTCONN] The specified socket is not connected. [ENOTSOCK] The _s value is not a socket. MMTT--LLEEVVEELL SSaaffee SSEEEE AALLSSOO connect(3C), socket(3C), socket.h(3HEAD), attributes(5) illumos August 2, 2018 illumos