setreuid.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:52 +01:00
parent 6dc1520bfb
commit ee3b2c7697
1 changed files with 17 additions and 1 deletions

View File

@ -40,7 +40,7 @@
.\" 2004-07-04 by aeb .\" 2004-07-04 by aeb
.\" 2004-05-27 by Michael Kerrisk .\" 2004-05-27 by Michael Kerrisk
.\" .\"
.TH SETREUID 2 2010-09-20 "Linux" "Linux Programmer's Manual" .TH SETREUID 2 2010-11-22 "Linux" "Linux Programmer's Manual"
.SH NAME .SH NAME
setreuid, setregid \- set real and/or effective user or group ID setreuid, setregid \- set real and/or effective user or group ID
.SH SYNOPSIS .SH SYNOPSIS
@ -138,6 +138,22 @@ across implementations.
POSIX.1 makes no specification about the effect of these calls POSIX.1 makes no specification about the effect of these calls
on the saved set-user-ID and saved set-group-ID. on the saved set-user-ID and saved set-group-ID.
The original Linux
.BR setreuid ()
and
.BR setregid ()
system calls supported only 16-bit user and group IDs.
Subsequently, Linux 2.4 added
.BR setreuid32 ()
and
.BR setregid32 (),
supporting 32-bit IDs.
The glibc
.BR setreuid ()
and
.BR setregid ()
wrapper functions transparently deal with the variations across kernel versions.
.SH "SEE ALSO" .SH "SEE ALSO"
.BR getgid (2), .BR getgid (2),
.BR getuid (2), .BR getuid (2),