From 80978cba040183cbb40ee725c2f7cabf50f51406 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 22 Nov 2010 08:50:30 +0100 Subject: [PATCH] getuid.2: Add NOTES explaining 32-bit system calls added in Linux 2.4 Signed-off-by: Michael Kerrisk --- man2/getuid.2 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/man2/getuid.2 b/man2/getuid.2 index afa59d47f..89975ed22 100644 --- a/man2/getuid.2 +++ b/man2/getuid.2 @@ -23,7 +23,7 @@ .\" the source, must acknowledge the copyright and authors of this work. .\" .\" 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 getuid, geteuid \- get user identity .SH SYNOPSIS @@ -54,6 +54,22 @@ UNIX V7 introduced separate calls .BR getuid () and .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" .BR getresuid (2), .BR setreuid (2),