shut down part of a full-duplex connection NAME shutdown - shut down part of a full-duplex connection LIBRARY Standard C library ( libc , -lc ) SY......) SYS_SEND send (2) SYS_RECV recv (2) SYS_SENDTO sendto (2) SYS_RECVFROM recvfrom (2) SYS_SHUTDOWN shutdown (2) SYS_SETSOCKOPT setsockopt (2) SYS_GETSOCKOPT getsockopt (2) SYS_S…...} if (connect(cfd, (struct sockaddr *) &addr, sizeof(addr)) == -1) { perror("connect()"); shutdown(cfd, SHUT_RDWR); close(cfd); return -1; } return cfd; } #define SHUT_FD1 do { …...r, errno is set to indicate the error. When a stream socket peer has performed an orderly shutdown, the return value will be 0 (the traditional "end-of-file" return). Datagram s…...r, errno is set to indicate the error. When a stream socket peer has performed an orderly shutdown, the return value will be 0 (the traditional "end-of-file" return). Datagram s…...r, errno is set to indicate the error. When a stream socket peer has performed an orderly shutdown, the return value will be 0 (the traditional "end-of-file" return). Datagram s…...(1), kexec_load (2), sync (2), bootparam (7), capabilities (7), ctrlaltdel (8), halt (8), shutdown (8)...elease of the POSIX.1 standard. SEE ALSO close_range (2), fcntl (2), fsync (2), open (2), shutdown (2), unlink (2), fclose (3)...ame (2), getsockopt (2), ioctl (2), listen (2), read (2), recv (2), select (2), send (2), shutdown (2), socketpair (2), write (2), getprotoent (3), address_families (7), ip (7),…...alf of connection. (This flag is especially useful for writing simple code to detect peer shutdown when using edge-triggered monitoring.) EPOLLPRI There is an exceptional condit…...3). SEE ALSO fcntl (2), getsockopt (2), recv (2), select (2), sendfile (2), sendmmsg (2), shutdown (2), socket (2), write (2), cmsg (3), ip (7), ipv6 (7), socket (7), tcp (7), u…...3). SEE ALSO fcntl (2), getsockopt (2), recv (2), select (2), sendfile (2), sendmmsg (2), shutdown (2), socket (2), write (2), cmsg (3), ip (7), ipv6 (7), socket (7), tcp (7), u…...3). SEE ALSO fcntl (2), getsockopt (2), recv (2), select (2), sendfile (2), sendmmsg (2), shutdown (2), socket (2), write (2), cmsg (3), ip (7), ipv6 (7), socket (7), tcp (7), u…...e notes on ipc (2) shmdt (2) 2.0 See notes on ipc (2) shmget (2) 2.0 See notes on ipc (2) shutdown (2) 2.0 See notes on socketcall (2) sigaction (2) 1.0 sigaltstack (2) 2.2 sign…