From 23a05d28b6c9c8be2cf9dff52c8193302e40d017 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 16 Jun 2010 23:46:02 +0200 Subject: [PATCH] fcntl.2: Note that glibc 2.11 papers over the kernel F_GETOWN bug Since version 2.11, glibc works around the kernel limitation for process groups IDs < 4096 by implementing F_GETOWN via F_GETOWN_EX. Signed-off-by: Michael Kerrisk --- man2/fcntl.2 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/man2/fcntl.2 b/man2/fcntl.2 index c51b705c3..7a7f06fec 100644 --- a/man2/fcntl.2 +++ b/man2/fcntl.2 @@ -56,7 +56,7 @@ .\" Note obsolete F_SETOWN behavior with threads. .\" Document F_SETOWN_EX and F_GETOWN_EX .\" -.TH FCNTL 2 2009-10-17 "Linux" "Linux Programmer's Manual" +.TH FCNTL 2 2010-06-17 "Linux" "Linux Programmer's Manual" .SH NAME fcntl \- manipulate file descriptor .SH SYNOPSIS @@ -1159,14 +1159,18 @@ will be \-1, and .I errno will contain the (positive) process group ID. The Linux-specific -.BR F_SETOWN_EX -and .BR F_GETOWN_EX -operations avoid this problem. +operation avoids this problem. .\" mtk, Dec 04: some limited testing on alpha and ia64 seems to .\" indicate that ANY negative PGID value will cause F_GETOWN .\" to misinterpret the return as an error. Some other architectures .\" seem to have the same range check as i386. +Since glibc version 2.11, glibc makes the kernel +.B F_GETOWN +problem invisible by implementing +.B F_GETOWN +using +.BR F_GETOWN_EX . In Linux 2.4 and earlier, there is bug that can occur when an unprivileged process uses