1 .\" Copyright 2003 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
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>
9 .TH PUTGRENT 3 2003-09-09 "GNU" "Linux Programmer's Manual"
12 .\"O putgrent \- write a group database entry to a file
13 putgrent \- ¥°¥ë¡¼¥×¥Ç¡¼¥¿¥Ù¡¼¥¹¥¨¥ó¥È¥ê¤ò¥Õ¥¡¥¤¥ë¤Ë½ñ¤¹þ¤à
16 .\"O .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
17 .BR "#define _GNU_SOURCE" " /* feature_test_macros(7) »²¾È */"
21 .BI "int putgrent(const struct group *" grp ", FILE *" fp );
26 .\"O function is the counterpart for
27 .\"O .BR fgetgrent (3).
32 .\"O The function writes the content of the provided \fIstruct group\fP into the
33 .\"O file pointed to by
35 ¤³¤Î´Ø¿ô¤ÏÍ¿¤¨¤é¤ì¤¿ \fIstruct group\fP ¤ò
37 ¤Ç»Ø¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤Ë½ñ¤¹þ¤à¡£
38 .\"O The list of group members must be NULL-terminated or NULL-initialized.
39 ¥°¥ë¡¼¥×¥á¥ó¥Ð¤Î¥ê¥¹¥È¤Ï¡¢NULL ¤Ç½ªÃ¼¤µ¤ì¤ë¤«¡¢
40 NULL ¤Ç½é´ü²½¤µ¤ì¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
42 .\"O The \fIstruct group\fP is defined as follows:
43 \fIstruct group\fP ¤Ï°Ê²¼¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤ë:
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; /* ¥°¥ë¡¼¥×¥á¥ó¥Ð */
59 .\"O .SH "RETURN VALUE"
61 .\"O The function returns zero on success, and a nonzero value on error.
62 ¤³¤Î´Ø¿ô¤Ï¡¢À®¸ù¤·¤¿¾ì¹ç¤Ï 0 ¤òÊÖ¤·¡¢¥¨¥é¡¼¤Î¾ì¹ç¤Ï 0 °Ê³°¤ÎÃͤòÊÖ¤¹¡£
63 .\"O .SH "CONFORMING TO"
65 .\"O This function is a GNU extension.
66 ¤³¤Î´Ø¿ô¤Ï GNU ¤Ë¤è¤ë³ÈÄ¥¤Ç¤¢¤ë¡£