aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man2/socketpair.212
1 files changed, 11 insertions, 1 deletions
diff --git a/man2/socketpair.2 b/man2/socketpair.2
index 9eebae6230..cb0b0c1989 100644
--- a/man2/socketpair.2
+++ b/man2/socketpair.2
@@ -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.