From ea03a3acf03288a92b2d749c407e1371f1ed27ef Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 22 Nov 2010 08:50:57 +0100 Subject: [PATCH] setresuid.2: Add NOTES explaining 32-bit system calls added in Linux 2.4 Signed-off-by: Michael Kerrisk --- man2/setresuid.2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/man2/setresuid.2 b/man2/setresuid.2 index 0eb936c53..d93240e1b 100644 --- a/man2/setresuid.2 +++ b/man2/setresuid.2 @@ -87,6 +87,22 @@ they also appear on HP-UX and some of the BSDs. Under HP-UX and FreeBSD, the prototype is found in .IR . Under Linux the prototype is provided by glibc since version 2.3.2. + +The original Linux +.BR setresuid () +and +.BR setresgid () +system calls supported only 16-bit user and group IDs. +Subsequently, Linux 2.4 added +.BR setresuid32 () +and +.BR setresgid32 (), +supporting 32-bit IDs. +The glibc +.BR setresuid () +and +.BR setresgid () +wrapper functions transparently deal with the variations across kernel versions. .SH "SEE ALSO" .BR getresuid (2), .BR getuid (2),