]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man2/shutdown.2
copy_file_range.2: tfix
[thirdparty/man-pages.git] / man2 / shutdown.2
index 6d56c82e4149a4cd9576d29088c358068d4782ee..9c85fa1fa12a9f244d87b713492944002fd4a70c 100644 (file)
 .\" Modified Tue Oct 22 22:04:51 1996 by Eric S. Raymond <esr@thyrsus.com>
 .\" Modified 1998 by Andi Kleen
 .\"
-.TH SHUTDOWN 2 2015-08-08 "Linux" "Linux Programmer's Manual"
+.TH SHUTDOWN 2 2018-04-30 "Linux" "Linux Programmer's Manual"
 .SH NAME
 shutdown \- shut down part of a full-duplex connection
 .SH SYNOPSIS
 .B #include <sys/socket.h>
-.sp
+.PP
 .BI "int shutdown(int " sockfd ", int " how );
 .SH DESCRIPTION
 The
@@ -75,7 +75,7 @@ is set appropriately.
 .TP
 .B EBADF
 .I sockfd
-is not a valid descriptor.
+is not a valid file descriptor.
 .TP
 .B EINVAL
 An invalid value was specified in
@@ -86,8 +86,9 @@ An invalid value was specified in
 The specified socket is not connected.
 .TP
 .B ENOTSOCK
+The file descriptor
 .I sockfd
-is a file, not a socket.
+does not refer to a socket.
 .SH CONFORMING TO
 POSIX.1-2001, POSIX.1-2008, 4.4BSD
 .RB ( shutdown ()
@@ -113,6 +114,7 @@ This problem was fixed for UNIX domain sockets
 .\" and for DECnet sockets in commit 46b66d7077b89fb4917ceef19b3f7dd86055c94a
 in Linux 3.7.
 .SH SEE ALSO
+.BR close (2),
 .BR connect (2),
 .BR socket (2),
 .BR socket (7)