OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / draft / man3 / initgroups.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\" Modified 1993-07-24 by Rik Faith <faith@cs.unc.edu>
30 .\" Modified 2004-10-10 by aeb
31 .\"
32 .\"*******************************************************************
33 .\"
34 .\" This file was generated with po4a. Translate the source file.
35 .\"
36 .\"*******************************************************************
37 .\"
38 .\" Japanese Version Copyright (c) 1998
39 .\"             ISHIKAWA Mutsumi, all rights reserved.
40 .\" Translated 1998-05-23, ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
41 .\" Updated 2002-01-09, Kentaro Shirakata <argrath@ub32.org>
42 .\" Updated 2005-02-26, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
43 .\"
44 .TH INITGROUPS 3 2007\-07\-26 GNU "Linux Programmer's Manual"
45 .SH 名前
46 initgroups \- 追加のグループアクセスリストの初期化
47 .SH 書式
48 .nf
49 \fB#include <sys/types.h>\fP
50 \fB#include <grp.h>\fP
51 .sp
52 \fBint initgroups(const char *\fP\fIuser\fP\fB, gid_t \fP\fIgroup\fP\fB);\fP
53 .fi
54 .sp
55 .in -4n
56 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
57 .in
58 .sp
59 \fBinitgroups\fP(): _BSD_SOURCE
60 .SH 説明
61 \fBinitgroups\fP()  関数はグループデータベース \fI/etc/group\fP を読み 込んで、\fIuser\fP
62 が所属している全てのグループを使って、グループアク セスリストを初期化する。さらに、\fIgroup\fP に示されるグループもグルー
63 プアクセスリストに追加される。
64
65 \fIuser\fP 引数は NULL であってはならない。
66 .SH 返り値
67 \fBinitgroups\fP()  関数は、成功すると 0 を返す。 エラーの場合は \-1 を返し、 \fIerrno\fP を適切に設定する。
68 .SH エラー
69 .TP 
70 \fBENOMEM\fP
71 グループ情報構造体を配置するためのメモリーが不足している。
72 .TP 
73 \fBEPERM\fP
74 呼出しプロセスが十分な特権を持っていない。 この関数の裏で実行されるシステムコール \fBsetgroups\fP(2)  も参照のこと。
75 .SH ファイル
76 .nf
77 \fI/etc/group\fP                グループデータベースファイル
78 .fi
79 .SH 準拠
80 SVr4, 4.3BSD.
81 .SH 関連項目
82 \fBgetgroups\fP(2), \fBsetgroups\fP(2), \fBcredentials\fP(7)
83 .SH この文書について
84 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
85 である。プロジェクトの説明とバグ報告に関する情報は
86 http://www.kernel.org/doc/man\-pages/ に書かれている。