OSDN Git Service

(split) LDP v3.30, v3.31 の定型的な変更内容を反映。
[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)