OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / man2 / getuid.2
index 3284161..3216f1a 100644 (file)
@@ -9,7 +9,7 @@
 .\" Permission is granted to copy and distribute modified versions of this
 .\" manual under the conditions for verbatim copying, provided that the
 .\" entire resulting derived work is distributed under the terms of a
-.\" permission notice identical to this one
+.\" permission notice identical to this one.
 .\"
 .\" Since the Linux kernel and libraries are constantly changing, this
 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
 .\" the source, must acknowledge the copyright and authors of this work.
 .\"
 .\" Historical remark, aeb, 2004-06-05
+.\"*******************************************************************
 .\"
-.\" Japanese Version Copyright (c) 1997 SUTO, Mitsuaki
-.\"         all rights reserved.
-.\" Translated Thu Jun 26 20:37:44 JST 1997
-.\"         by SUTO, Mitsuaki <suto@av.crl.sony.co.jp>
-.\" Updated & Modified Sat Feb  5 19:49:39 JST 2005
-.\"         by Yuichi SATO <ysato444@yahoo.co.jp>
+.\" This file was generated with po4a. Translate the source file.
 .\"
-.TH GETUID 2 1993-07-23 "Linux" "Linux Programmer's Manual"
+.\"*******************************************************************
+.TH GETUID 2 2010\-11\-22 Linux "Linux Programmer's Manual"
 .SH 名前
 getuid, geteuid \- ユーザー ID を得る
 .SH 書式
-.B #include <unistd.h>
+\fB#include <unistd.h>\fP
 .br
-.B #include <sys/types.h>
+\fB#include <sys/types.h>\fP
 .sp
-.B uid_t getuid(void);
+\fBuid_t getuid(void);\fP
 .br
-.B uid_t geteuid(void);
+\fBuid_t geteuid(void);\fP
 .SH 説明
-.BR getuid ()
-は呼び出し元のプロセスの実ユーザー ID を返す。
+\fBgetuid\fP()  は呼び出し元のプロセスの実ユーザー ID を返す。
 
-.BR geteuid ()
-は呼び出し元のプロセスの実効ユーザー ID を返す。
+\fBgeteuid\fP()  は呼び出し元のプロセスの実効ユーザー ID を返す。
 .SH エラー
 これらの関数は常に成功する。
 .SH 準拠
-POSIX.1-2001, 4.3BSD.
+POSIX.1\-2001, 4.3BSD.
 .SH 注意
 .SS 歴史
-UNIX V6 では
-.BR getuid ()
-コールは
-.I "(euid << 8) + uid"
-を返していた。
-UNIX V7 では
-.BR getuid ()
-と
-.BR geteuid ()
-という別々のコールが導入された。
+UNIX V6 では \fBgetuid\fP()  コールは \fI(euid << 8) + uid\fP を返していた。 UNIX V7 では
+\fBgetuid\fP()  と \fBgeteuid\fP()  という別々のコールが導入された。
+.SH 注意
+元々の Linux の \fBgetuid\fP() と \fBgeteuid\fP() システムコールは
+16 ビットのグループ ID だけに対応していた。
+その後、Linux 2.4 で、32 ビットの ID に対応した
+\fBgetuid32\fP() と \fBgeteuid32\fP() が追加された。
+glibc の \fBgetuid\fP() と \fBgeteuid\fP() のラッパー関数は
+カーネルバージョンによるこの違いを吸収している。
 .SH 関連項目
-.BR getresuid (2),
-.BR setreuid (2),
-.BR setuid (2),
-.BR credentials (7)
+\fBgetresuid\fP(2), \fBsetreuid\fP(2), \fBsetuid\fP(2), \fBcredentials\fP(7)