mirror of https://github.com/mkerrisk/man-pages
setreuid.2: Add NOTES explaining 32-bit system calls added in Linux 2.4
This commit is contained in:
parent
6dc1520bfb
commit
ee3b2c7697
|
@ -40,7 +40,7 @@
|
|||
.\" 2004-07-04 by aeb
|
||||
.\" 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
|
||||
setreuid, setregid \- set real and/or effective user or group ID
|
||||
.SH SYNOPSIS
|
||||
|
@ -138,6 +138,22 @@ across implementations.
|
|||
|
||||
POSIX.1 makes no specification about the effect of these calls
|
||||
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"
|
||||
.BR getgid (2),
|
||||
.BR getuid (2),
|
||||
|
|
Loading…
Reference in New Issue