From 24ec631f42d0ab6fd90c9745051663a6a366a9c1 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 10 Oct 2008 14:01:50 +0200 Subject: [PATCH] open.2: minor: Fix O_CLOEXEC wording re fcntl() calls The current wording suggests that only a single fcntl() operation is needed to set the FD_CLOEXEC flag, when "proper" usage would be fcntl(F_GETFD) + fcntl(F_SETFD) to get the flags and then update them. So change the wording to indicate that more than one fcntl() operation is required. Signed-off-by: Michael Kerrisk --- man2/open.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man2/open.2 b/man2/open.2 index 6d1a3b0a4..15d92e250 100644 --- a/man2/open.2 +++ b/man2/open.2 @@ -158,10 +158,10 @@ for further details. .TP .BR O_CLOEXEC " (Since Linux 2.6.23)" Enable the close-on-exec flag for the new file descriptor. -Specifying this flag permits a program to avoid an additional +Specifying this flag permits a program to avoid additional .BR fcntl (2) .B F_SETFD -operation to set the +operations to set the .B FD_CLOEXEC flag. Additionally,