OSDN Git Service

(split) LDP man-pages の original/ を v3.32 に更新。
[linuxjm/LDP_man-pages.git] / original / man2 / setuid.2
index 1095c3a..0a1e1a1 100644 (file)
@@ -25,7 +25,7 @@
 .\"   <richard@greenend.org.uk>, aeb 970616.
 .\" Modified, 27 May 2004, Michael Kerrisk <mtk.manpages@gmail.com>
 .\"     Added notes on capability requirements
-.TH SETUID 2 2010-02-21 "Linux" "Linux Programmer's Manual"
+.TH SETUID 2 2010-11-22 "Linux" "Linux Programmer's Manual"
 .SH NAME
 setuid \- set user identity
 .SH SYNOPSIS
@@ -93,8 +93,7 @@ Not quite compatible with the 4.4BSD call, which
 sets all of the real, saved, and effective user IDs.
 .\" SVr4 documents an additional EINVAL error condition.
 .SH NOTES
-.SS Linux Notes
-Linux has the concept of file system user ID, normally equal to the
+Linux has the concept of the file system user ID, normally equal to the
 effective user ID.
 The
 .BR setuid ()
@@ -104,8 +103,18 @@ See
 .PP
 If
 .I uid
-is different from the old effective uid, the process will
+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),