From dd09a14ed53943c3b40c0cf9d79f715974b2c289 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 22 Nov 2010 08:49:59 +0100 Subject: [PATCH] setuid.2: Add NOTES explaining 32-bit system calls added in Linux 2.4 --- man2/setuid.2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/man2/setuid.2 b/man2/setuid.2 index 2ac27c6c1..d9a269791 100644 --- a/man2/setuid.2 +++ b/man2/setuid.2 @@ -105,6 +105,16 @@ If .I uid is different from the old effective UID, the process will be forbidden from leaving core dumps. + +The original Linux +.BR setuid () +system call supported only 16-bit user IDs. +Subsequently, Linux 2.4 added +.BR setuid32 () +supporting 32-bit IDs. +The glibc +.BR setuid () +wrapper function transparently deals with the variation across kernel versions. .SH "SEE ALSO" .BR getuid (2), .BR seteuid (2),