From 0cc9687dad3d8bcac5809f95edb0511604db02a3 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 11 Oct 2008 07:47:36 +0200 Subject: [PATCH] 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 --- man2/socketpair.2 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/man2/socketpair.2 b/man2/socketpair.2 index 9eebae623..cb0b0c198 100644 --- a/man2/socketpair.2 +++ b/man2/socketpair.2 @@ -35,8 +35,9 @@ .\" Modified 1996-10-22 by Eric S. Raymond .\" Modified 2002-07-22 by Michael Kerrisk .\" Modified 2004-06-17 by Michael Kerrisk +.\" 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 , and this header file is not required on Linux.