OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man3 / initgroups.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified 1993-07-24 by Rik Faith <faith@cs.unc.edu>
28 .\" Modified 2004-10-10 by aeb
29 .\"
30 .\" Japanese Version Copyright (c) 1998
31 .\"             ISHIKAWA Mutsumi, all rights reserved.
32 .\" Translated 1998-05-23, ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
33 .\" Updated 2002-01-09, Kentaro Shirakata <argrath@ub32.org>
34 .\" Updated 2005-02-26, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
35 .\"
36 .TH INITGROUPS 3  2007-07-26 "GNU" "Linux Programmer's Manual"
37 .SH Ì¾Á°
38 initgroups \- ÄɲäΥ°¥ë¡¼¥×¥¢¥¯¥»¥¹¥ê¥¹¥È¤Î½é´ü²½
39 .SH ½ñ¼°
40 .nf
41 .B #include <sys/types.h>
42 .B #include <grp.h>
43 .sp
44 .BI "int initgroups(const char *" user ", gid_t " group );
45 .fi
46 .sp
47 .in -4n
48 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
49 .RB ( feature_test_macros (7)
50 »²¾È):
51 .in
52 .sp
53 .BR initgroups ():
54 _BSD_SOURCE
55 .SH ÀâÌÀ
56 .BR initgroups ()
57 ´Ø¿ô¤Ï¥°¥ë¡¼¥×¥Ç¡¼¥¿¥Ù¡¼¥¹ \fI/etc/group\fP ¤òÆɤß
58 ¹þ¤ó¤Ç¡¢\fIuser\fP ¤¬½ê°¤·¤Æ¤¤¤ëÁ´¤Æ¤Î¥°¥ë¡¼¥×¤ò»È¤Ã¤Æ¡¢¥°¥ë¡¼¥×¥¢¥¯
59 ¥»¥¹¥ê¥¹¥È¤ò½é´ü²½¤¹¤ë¡£¤µ¤é¤Ë¡¢\fIgroup\fP ¤Ë¼¨¤µ¤ì¤ë¥°¥ë¡¼¥×¤â¥°¥ë¡¼
60 ¥×¥¢¥¯¥»¥¹¥ê¥¹¥È¤ËÄɲ䵤ì¤ë¡£
61
62 .I user
63 °ú¿ô¤Ï NULL ¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
64 .SH ÊÖ¤êÃÍ
65 .BR initgroups ()
66 ´Ø¿ô¤Ï¡¢À®¸ù¤¹¤ë¤È 0 ¤òÊÖ¤¹¡£
67 ¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤òÊÖ¤·¡¢
68 .I errno
69 ¤òŬÀÚ¤ËÀßÄꤹ¤ë¡£
70 .SH ¥¨¥é¡¼
71 .TP
72 .B ENOMEM
73 ¥°¥ë¡¼¥×¾ðÊó¹½Â¤ÂΤòÇÛÃÖ¤¹¤ë¤¿¤á¤Î¥á¥â¥ê¤¬ÉÔ­¤·¤Æ¤¤¤ë¡£
74 .TP
75 .B EPERM
76 ¸Æ½Ð¤·¥×¥í¥»¥¹¤¬½½Ê¬¤ÊÆø¢¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¡£
77 ¤³¤Î´Ø¿ô¤Î΢¤Ç¼Â¹Ô¤µ¤ì¤ë¥·¥¹¥Æ¥à¥³¡¼¥ë
78 .BR setgroups (2)
79 ¤â»²¾È¤Î¤³¤È¡£
80 .SH ¥Õ¥¡¥¤¥ë
81 .nf
82 \fI/etc/group\fP                ¥°¥ë¡¼¥×¥Ç¡¼¥¿¥Ù¡¼¥¹¥Õ¥¡¥¤¥ë
83 .fi
84 .SH ½àµò
85 SVr4, 4.3BSD.
86 .SH ´ØÏ¢¹àÌÜ
87 .BR getgroups (2),
88 .BR setgroups (2),
89 .BR credentials (7)