mirror of https://github.com/mkerrisk/man-pages
socketpair.2: Refer to socket(2) for SOCK_CLOEXEC and SOCK_NONBLOCK
Refer the reader to socket(2) for a description of the SOCK_CLOEXEC and SOCK_NONBLOCK flags, which are supported by socketpair() since Linux 2.6.27. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
af14d9f842
commit
0cc9687dad
|
@ -35,8 +35,9 @@
|
|||
.\" Modified 1996-10-22 by Eric S. Raymond <esr@thyrsus.com>
|
||||
.\" Modified 2002-07-22 by Michael Kerrisk <mtk.manpages@gmail.com>
|
||||
.\" Modified 2004-06-17 by Michael Kerrisk <mtk.manpages@gmail.com>
|
||||
.\" 2008-10-11, mtk: Add description of SOCK_NONBLOCK and SOCK_CLOEXEC
|
||||
.\"
|
||||
.TH SOCKETPAIR 2 2008-08-20 "Linux" "Linux Programmer's Manual"
|
||||
.TH SOCKETPAIR 2 2008-10-11 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
socketpair \- create a pair of connected sockets
|
||||
.SH SYNOPSIS
|
||||
|
@ -104,6 +105,15 @@ On Linux, the only supported domain for this call is
|
|||
.BR AF_LOCAL ).
|
||||
(Most implementations have the same restriction.)
|
||||
|
||||
Since Linux 2.6.27,
|
||||
.BR socketpair ()
|
||||
supports the
|
||||
.BR SOCK_NONBLOCK
|
||||
and
|
||||
.BR SOCK_CLOEXEC
|
||||
flags described in
|
||||
.BR socket (2).
|
||||
|
||||
POSIX.1-2001 does not require the inclusion of
|
||||
.IR <sys/types.h> ,
|
||||
and this header file is not required on Linux.
|
||||
|
|
Loading…
Reference in New Issue