socket.2: socket() uses the lowest available file descriptor

Reported-by: Yubin Ruan <ablacktshirt@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-09-13 14:36:49 +02:00
parent 18523cfc81
commit 047013ac3e
1 changed files with 2 additions and 0 deletions

View 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