1 .\" Copyright 2003 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
4 .\"*******************************************************************
6 .\" This file was generated with po4a. Translate the source file.
8 .\"*******************************************************************
9 .TH PUTGRENT 3 2003\-09\-09 GNU "Linux Programmer's Manual"
11 putgrent \- グループデータベースエントリをファイルに書き込む
13 \fB#define _GNU_SOURCE\fP /* feature_test_macros(7) 参照 */
15 \fB#include <grp.h>\fP
17 \fBint putgrent(const struct group *\fP\fIgrp\fP\fB, FILE *\fP\fIfp\fP\fB);\fP
19 \fBputgrent\fP() 関数は \fBfgetgrent\fP(3) の逆である。 この関数は与えられた \fIstruct group\fP を
20 \fIfp\fP で指されるファイルに書き込む。 グループメンバのリストは、NULL で終端されるか、 NULL で初期化されなければならない。
22 \fIstruct group\fP は以下のように定義される:
27 char *gr_name; /* グループ名 */
28 char *gr_passwd; /* グループパスワード */
29 gid_t gr_gid; /* グループ ID */
30 char **gr_mem; /* グループメンバ */
35 この関数は、成功した場合は 0 を返し、エラーの場合は 0 以外の値を返す。
39 \fBfgetgrent\fP(3), \fBgetgrent\fP(3), \fBgroup\fP(5)
41 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.41 の一部
42 である。プロジェクトの説明とバグ報告に関する情報は
43 http://www.kernel.org/doc/man\-pages/ に書かれている。