OSDN Git Service

906a09011716d01c69607bdbdbc12f0ed35cd7cd
[linuxjm/LDP_man-pages.git] / draft / man2 / getuid.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" Historical remark, aeb, 2004-06-05
26 .\"
27 .\" Japanese Version Copyright (c) 1997 SUTO, Mitsuaki
28 .\"         all rights reserved.
29 .\" Translated Thu Jun 26 20:37:44 JST 1997
30 .\"         by SUTO, Mitsuaki <suto@av.crl.sony.co.jp>
31 .\" Updated & Modified Sat Feb  5 19:49:39 JST 2005
32 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
33 .\"
34 .TH GETUID 2 1993-07-23 "Linux" "Linux Programmer's Manual"
35 .\"O .SH NAME
36 .SH 名前
37 .\"O getuid, geteuid \- get user identity
38 getuid, geteuid \- ユーザー ID を得る
39 .\"O .SH SYNOPSIS
40 .SH 書式
41 .B #include <unistd.h>
42 .br
43 .B #include <sys/types.h>
44 .sp
45 .B uid_t getuid(void);
46 .br
47 .B uid_t geteuid(void);
48 .\"O .SH DESCRIPTION
49 .SH 説明
50 .\"O .BR getuid ()
51 .\"O returns the real user ID of the calling process.
52 .BR getuid ()
53 は呼び出し元のプロセスの実ユーザー ID を返す。
54
55 .\"O .BR geteuid ()
56 .\"O returns the effective user ID of the calling process.
57 .BR geteuid ()
58 は呼び出し元のプロセスの実効ユーザー ID を返す。
59 .\"O .SH ERRORS
60 .SH エラー
61 .\"O These functions are always successful.
62 これらの関数は常に成功する。
63 .\"O .SH "CONFORMING TO"
64 .SH 準拠
65 POSIX.1-2001, 4.3BSD.
66 .\"O .SH NOTES
67 .\"O .SS History
68 .SH 注意
69 .SS 歴史
70 .\"O In UNIX V6 the
71 .\"O .BR getuid ()
72 .\"O call returned
73 .\"O .IR "(euid << 8) + uid" .
74 .\"O UNIX V7 introduced separate calls
75 .\"O .BR getuid ()
76 .\"O and
77 .\"O .BR geteuid ().
78 UNIX V6 では
79 .BR getuid ()
80 コールは
81 .I "(euid << 8) + uid"
82 を返していた。
83 UNIX V7 では
84 .BR getuid ()
85
86 .BR geteuid ()
87 という別々のコールが導入された。
88 .\"O .SH "SEE ALSO"
89 .SH 関連項目
90 .BR getresuid (2),
91 .BR setreuid (2),
92 .BR setuid (2),
93 .BR credentials (7)