OSDN Git Service

Translation snapshot of stdio of 3.76
[linuxjm/LDP_man-pages.git] / draft / man2 / getuid.2
index 0fe783d..db4d9dc 100644 (file)
@@ -1,7 +1,6 @@
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
@@ -9,7 +8,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
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\" Historical remark, aeb, 2004-06-05
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 1997 SUTO, Mitsuaki
 .\"         all rights reserved.
 .\"         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>
+.\" Updated 2012-04-30, Akihiro MOTOKI <amotoki@gmail.com>
 .\"
-.TH GETUID 2 1993-07-23 "Linux" "Linux Programmer's Manual"
-.\"O .SH NAME
-.SH Ì¾Á°
-.\"O getuid, geteuid \- get user identity
-getuid, geteuid \- ¥æ¡¼¥¶¡¼ ID ¤òÆÀ¤ë
-.\"O .SH SYNOPSIS
-.SH ½ñ¼°
-.B #include <unistd.h>
+.TH GETUID 2 2010\-11\-22 Linux "Linux Programmer's Manual"
+.SH 名前
+getuid, geteuid \- ユーザー ID を得る
+.SH 書式
+\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);
-.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
-.\"O .BR getuid ()
-.\"O returns the real user ID of the calling process.
-.BR getuid ()
-¤Ï¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤Î¼Â¥æ¡¼¥¶¡¼ ID ¤òÊÖ¤¹¡£
+\fBuid_t geteuid(void);\fP
+.SH 説明
+\fBgetuid\fP()  は呼び出し元のプロセスの実ユーザー ID を返す。
+
+\fBgeteuid\fP()  は呼び出し元のプロセスの実効ユーザー ID を返す。
+.SH エラー
+これらの関数は常に成功する。
+.SH 準拠
+POSIX.1\-2001, 4.3BSD.
+.SH 注意
+.SS 歴史
+UNIX\ V6 では \fBgetuid\fP()  コールは \fI(euid << 8) + uid\fP を返していた。 UNIX\ V7
+では \fBgetuid\fP()  と \fBgeteuid\fP()  という別々のコールが導入された。
 
-.\"O .BR geteuid ()
-.\"O returns the effective user ID of the calling process.
-.BR geteuid ()
-¤Ï¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤Î¼Â¸ú¥æ¡¼¥¶¡¼ ID ¤òÊÖ¤¹¡£
-.\"O .SH ERRORS
-.SH ¥¨¥é¡¼
-.\"O These functions are always successful.
-¤³¤ì¤é¤Î´Ø¿ô¤Ï¾ï¤ËÀ®¸ù¤¹¤ë¡£
-.\"O .SH "CONFORMING TO"
-.SH ½àµò
-POSIX.1-2001, 4.3BSD.
-.\"O .SH NOTES
-.\"O .SS History
-.SH Ãí°Õ
-.SS Îò»Ë
-.\"O In Unix V6 the
-.\"O .BR getuid ()
-.\"O call returned
-.\"O .IR "(euid << 8) + uid" .
-.\"O Unix V7 introduced separate calls
-.\"O .BR getuid ()
-.\"O and
-.\"O .BR geteuid ().
-Unix V6 ¤Ç¤Ï
-.BR getuid ()
-¥³¡¼¥ë¤Ï
-.I "(euid << 8) + uid"
-¤òÊÖ¤·¤Æ¤¤¤¿¡£
-Unix V7 ¤Ç¤Ï
-.BR getuid ()
-¤È
-.BR geteuid ()
-¤È¤¤¤¦ÊÌ¡¹¤Î¥³¡¼¥ë¤¬Æ³Æþ¤µ¤ì¤¿¡£
-.\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
-.BR getresuid (2),
-.BR setreuid (2),
-.BR setuid (2),
-.BR credentials (7)
+元々の Linux の \fBgetuid\fP() と \fBgeteuid\fP() システムコールは
+16 ビットのグループ ID だけに対応していた。
+その後、Linux 2.4 で、32 ビットの ID に対応した
+\fBgetuid32\fP() と \fBgeteuid32\fP() が追加された。
+glibc の \fBgetuid\fP() と \fBgeteuid\fP() のラッパー関数は
+カーネルバージョンによるこの違いを吸収している。
+.SH 関連項目
+\fBgetresuid\fP(2), \fBsetreuid\fP(2), \fBsetuid\fP(2), \fBcredentials\fP(7)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.76 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。