mirror of https://github.com/mkerrisk/man-pages
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:
parent
18523cfc81
commit
047013ac3e
|
@ -53,6 +53,8 @@ socket \- create an endpoint for communication
|
||||||
.BR socket ()
|
.BR socket ()
|
||||||
creates an endpoint for communication and returns a file descriptor
|
creates an endpoint for communication and returns a file descriptor
|
||||||
that refers to that endpoint.
|
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
|
.PP
|
||||||
The
|
The
|
||||||
.I domain
|
.I domain
|
||||||
|
|
Loading…
Reference in New Issue