OSDN Git Service

0fa808306a6776845853346034c771bfec0e9ab0
[linuxjm/LDP_man-pages.git] / release / 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 .SH Ì¾Á°
36 getuid, geteuid \- ¥æ¡¼¥¶¡¼ ID ¤òÆÀ¤ë
37 .SH ½ñ¼°
38 .B #include <unistd.h>
39 .br
40 .B #include <sys/types.h>
41 .sp
42 .B uid_t getuid(void);
43 .br
44 .B uid_t geteuid(void);
45 .SH ÀâÌÀ
46 .BR getuid ()
47 ¤Ï¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤Î¼Â¥æ¡¼¥¶¡¼ ID ¤òÊÖ¤¹¡£
48
49 .BR geteuid ()
50 ¤Ï¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤Î¼Â¸ú¥æ¡¼¥¶¡¼ ID ¤òÊÖ¤¹¡£
51 .SH ¥¨¥é¡¼
52 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¾ï¤ËÀ®¸ù¤¹¤ë¡£
53 .SH ½àµò
54 POSIX.1-2001, 4.3BSD.
55 .SH Ãí°Õ
56 .SS Îò»Ë
57 Unix V6 ¤Ç¤Ï
58 .BR getuid ()
59 ¥³¡¼¥ë¤Ï
60 .I "(euid << 8) + uid"
61 ¤òÊÖ¤·¤Æ¤¤¤¿¡£
62 Unix V7 ¤Ç¤Ï
63 .BR getuid ()
64 ¤È
65 .BR geteuid ()
66 ¤È¤¤¤¦ÊÌ¡¹¤Î¥³¡¼¥ë¤¬Æ³Æþ¤µ¤ì¤¿¡£
67 .SH ´ØÏ¢¹àÌÜ
68 .BR getresuid (2),
69 .BR setreuid (2),
70 .BR setuid (2),
71 .BR credentials (7)