OSDN Git Service

9aa6aa2b28b78b170a0049e772699eb29a40668a
[linuxjm/LDP_man-pages.git] / draft / man3 / putgrent.3
1 .\" Copyright 2003 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
3 .\"
4 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
5 .\"         all rights reserved.
6 .\" Translated Sat Aug 28 14:07:20 JST 2004
7 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
8 .\"
9 .TH PUTGRENT 3 2003-09-09 "GNU" "Linux Programmer's Manual"
10 .\"O .SH NAME
11 .SH 名前
12 .\"O putgrent \- write a group database entry to a file
13 putgrent \- グループデータベースエントリをファイルに書き込む
14 .\"O .SH SYNOPSIS
15 .SH 書式
16 .\"O .BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
17 .BR "#define _GNU_SOURCE" "         /* feature_test_macros(7) 参照 */"
18 .br
19 .B #include <grp.h>
20 .sp
21 .BI "int putgrent(const struct group *" grp ", FILE *" fp );
22 .\"O .SH DESCRIPTION
23 .SH 説明
24 .\"O The
25 .\"O .BR putgrent ()
26 .\"O function is the counterpart for
27 .\"O .BR fgetgrent (3).
28 .BR putgrent ()
29 関数は
30 .BR fgetgrent (3)
31 の逆である。
32 .\"O The function writes the content of the provided \fIstruct group\fP into the
33 .\"O file pointed to by
34 .\"O .IR fp .
35 この関数は与えられた \fIstruct group\fP を
36 .I fp
37 で指されるファイルに書き込む。
38 .\"O The list of group members must be NULL-terminated or NULL-initialized.
39 グループメンバのリストは、NULL で終端されるか、
40 NULL で初期化されなければならない。
41 .sp
42 .\"O The \fIstruct group\fP is defined as follows:
43 \fIstruct group\fP は以下のように定義される:
44 .sp
45 .in +4n
46 .nf
47 struct group {
48 .\"O     char   *gr_name;      /* group name */
49 .\"O     char   *gr_passwd;    /* group password */
50 .\"O     gid_t   gr_gid;       /* group ID */
51 .\"O     char  **gr_mem;       /* group members */
52     char   *gr_name;      /* グループ名 */
53     char   *gr_passwd;    /* グループパスワード */
54     gid_t   gr_gid;       /* グループ ID */
55     char  **gr_mem;       /* グループメンバ */
56 };
57 .fi
58 .in
59 .\"O .SH "RETURN VALUE"
60 .SH 返り値
61 .\"O The function returns zero on success, and a nonzero value on error.
62 この関数は、成功した場合は 0 を返し、エラーの場合は 0 以外の値を返す。
63 .\"O .SH "CONFORMING TO"
64 .SH 準拠
65 .\"O This function is a GNU extension.
66 この関数は GNU による拡張である。
67 .\"O .SH "SEE ALSO"
68 .SH 関連項目
69 .BR fgetgrent (3),
70 .BR getgrent (3),
71 .BR group (5)