1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
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.
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.
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
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" References consulted:
26 .\" Linux libc source code
27 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
29 .\" Modified 1993-07-24 by Rik Faith <faith@cs.unc.edu>
30 .\" Modified 2004-10-10 by aeb
32 .\"*******************************************************************
34 .\" This file was generated with po4a. Translate the source file.
36 .\"*******************************************************************
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>
44 .TH INITGROUPS 3 2007\-07\-26 GNU "Linux Programmer's Manual"
46 initgroups \- 追加のグループアクセスリストの初期化
49 \fB#include <sys/types.h>\fP
50 \fB#include <grp.h>\fP
52 \fBint initgroups(const char *\fP\fIuser\fP\fB, gid_t \fP\fIgroup\fP\fB);\fP
56 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7) 参照):
59 \fBinitgroups\fP(): _BSD_SOURCE
61 \fBinitgroups\fP() 関数はグループデータベース \fI/etc/group\fP を読み 込んで、\fIuser\fP
62 が所属している全てのグループを使って、グループアク セスリストを初期化する。さらに、\fIgroup\fP に示されるグループもグルー
65 \fIuser\fP 引数は NULL であってはならない。
67 \fBinitgroups\fP() 関数は、成功すると 0 を返す。 エラーの場合は \-1 を返し、 \fIerrno\fP を適切に設定する。
71 グループ情報構造体を配置するためのメモリが不足している。
74 呼出しプロセスが十分な特権を持っていない。 この関数の裏で実行されるシステムコール \fBsetgroups\fP(2) も参照のこと。
77 \fI/etc/group\fP グループデータベースファイル
82 \fBgetgroups\fP(2), \fBsetgroups\fP(2), \fBcredentials\fP(7)
84 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.65 の一部
85 である。プロジェクトの説明とバグ報告に関する情報は
86 http://www.kernel.org/doc/man\-pages/ に書かれている。