elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elkscmd
/
man
/
man2
/
shutdown.2
File editor
.TH SHUTDOWN 2 .SH NAME shutdown \- shuts down a socket for reading, writing, or both .SH SYNOPSIS .ft B #include <sys/socket.h> int shutdown(int \fIsd\fP, int \fIhow\fP); .br .ft P .SH DESCRIPTION shutdown() shuts down the socket \fIsd\fP for reading, writing, or both reading and writing by setting \fIhow\fP to SHUT_RD, SHUT_WR, or SHUT_RDWR. .SH RETURN VALUES On success, this function returns 0. On error, -1 is returned and \fIerrno\fP is set. .SH ERRORS .TP 15 [EINVAL] \fIhow\fP must be SHUT_RD, SHUT_WR, or SHUT_RDWR. .TP 15 [ENOTCONN] \fIsd\fP must be a connected socket. .TP 15 [ENOSYS] attempted to shutdown the read side of a TCP socket, or the type of socket is not supported. .SH SEE ALSO .BR socket (2), .BR socketpair (2)
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history