getresuid.2: Add NOTES explaining 32-bit system calls added in Linux 2.4

This commit is contained in:
Michael Kerrisk 2010-11-22 08:49:30 +01:00
parent 7c36affc19
commit 62eaf126c7
1 changed files with 17 additions and 1 deletions

View File

@ -24,7 +24,7 @@
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Modified, 2003-05-26, Michael Kerrisk, <mtk.manpages@gmail.com>
.TH GETRESUID 2 2007-12-28 "Linux" "Linux Programmer's Manual"
.TH GETRESUID 2 2010-11-22 "Linux" "Linux Programmer's Manual"
.SH NAME
getresuid, getresgid \- get real, effective and saved user/group IDs
.SH SYNOPSIS
@ -66,6 +66,22 @@ is defined.
.SH "CONFORMING TO"
These calls are nonstandard;
they also appear on HP-UX and some of the BSDs.
.SH NOTES
The original Linux
.BR getresuid ()
and
.BR getresgid ()
system calls supported only 16-bit user and group IDs.
Subsequently, Linux 2.4 added
.BR getresuid32 ()
and
.BR getresgid32 (),
supporting 32-bit IDs.
The glibc
.BR getresuid ()
and
.BR getresgid ()
wrapper functions transparently deal with the variations across kernel versions.
.SH "SEE ALSO"
.BR getuid (2),
.BR setresuid (2),