]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
socket.2: socket() uses the lowest available file descriptor
authorMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 13 Sep 2017 12:36:49 +0000 (14:36 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 13 Sep 2017 13:45:09 +0000 (15:45 +0200)
Reported-by: Yubin Ruan <ablacktshirt@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/socket.2

index 5cc07fb485bff4fc03d3c8be328a9758eb4af359..dfba70ff6098538e8db8f5d74246f9730f9d112b 100644 (file)
@@ -53,6 +53,8 @@ socket \- create an endpoint for communication
 .BR socket ()
 creates an endpoint for communication and returns a file descriptor
 that refers to that endpoint.
+The file descriptor returned by a successful call will be
+the lowest-numbered file descriptor not currently open for the process.
 .PP
 The
 .I domain