getuid.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:30 +01:00
parent dd09a14ed5
commit 80978cba04
1 changed files with 17 additions and 1 deletions

View File

@ -23,7 +23,7 @@
.\" the source, must acknowledge the copyright and authors of this work. .\" the source, must acknowledge the copyright and authors of this work.
.\" .\"
.\" Historical remark, aeb, 2004-06-05 .\" Historical remark, aeb, 2004-06-05
.TH GETUID 2 1993-07-23 "Linux" "Linux Programmer's Manual" .TH GETUID 2 2010-11-22 "Linux" "Linux Programmer's Manual"
.SH NAME .SH NAME
getuid, geteuid \- get user identity getuid, geteuid \- get user identity
.SH SYNOPSIS .SH SYNOPSIS
@ -54,6 +54,22 @@ UNIX V7 introduced separate calls
.BR getuid () .BR getuid ()
and and
.BR geteuid (). .BR geteuid ().
.SH NOTES
The original Linux
.BR getuid ()
and
.BR geteuid ()
system calls supported only 16-bit user IDs.
Subsequently, Linux 2.4 added
.BR getuid32 ()
and
.BR geteuid32 (),
supporting 32-bit IDs.
The glibc
.BR getuid ()
and
.BR geteuid ()
wrapper functions transparently deal with the variations across kernel versions.
.SH "SEE ALSO" .SH "SEE ALSO"
.BR getresuid (2), .BR getresuid (2),
.BR setreuid (2), .BR setreuid (2),