aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2010-11-22 08:50:57 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2010-11-22 08:52:48 +0100
commitea03a3acf03288a92b2d749c407e1371f1ed27ef (patch)
tree73e9ec631b8aeafa8c0645652bc92b529c2ad0d4
parentae67a2cdf3ee4e77774704370dec6f10a92e49c9 (diff)
downloadman-pages-ea03a3acf03288a92b2d749c407e1371f1ed27ef.tar.gz
setresuid.2: Add NOTES explaining 32-bit system calls added in Linux 2.4
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/setresuid.216
1 files changed, 16 insertions, 0 deletions
diff --git a/man2/setresuid.2 b/man2/setresuid.2
index 0eb936c533..d93240e1bc 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 <unistd.h> .
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),