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

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2010-11-22 08:50:57 +01:00
parent ae67a2cdf3
commit ea03a3acf0
1 changed files with 16 additions and 0 deletions

View File

@ -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),