OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man3 / fgetgrent.3
index 7945bbc..881e08c 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\" References consulted:
 .\"     Linux libc source code
 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
 .\"     386BSD man pages
 .\" Modified Sat Jul 24 19:38:44 1993 by Rik Faith (faith@cs.unc.edu)
+.\"*******************************************************************
 .\"
-.\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
-.\"    all rights reserved.
-.\" Translated 1997-12-19, HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
-.\" Updated 2008-08-01, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
+.\" This file was generated with po4a. Translate the source file.
 .\"
-.TH FGETGRENT 3  2008-07-10 "GNU" "Linux Programmer's Manual"
-.SH Ì¾Á°
-fgetgrent \- ¥°¥ë¡¼¥×¥Õ¥¡¥¤¥ë¥¨¥ó¥È¥ê¤Î¼è¤ê½Ð¤·
-.SH ½ñ¼°
+.\"*******************************************************************
+.TH FGETGRENT 3 2008\-07\-10 GNU "Linux Programmer's Manual"
+.SH 名前
+fgetgrent \- グループファイルエントリの取り出し
+.SH 書式
 .nf
-.B #include <stdio.h>
-.B #include <sys/types.h>
-.B #include <grp.h>
+\fB#include <stdio.h>\fP
+\fB#include <sys/types.h>\fP
+\fB#include <grp.h>\fP
 .sp
-.BI "struct group *fgetgrent(FILE *" stream );
+\fBstruct group *fgetgrent(FILE *\fP\fIstream\fP\fB);\fP
 .fi
 .sp
 .in -4n
-glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
-.RB ( feature_test_macros (7)
-»²¾È):
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
 .in
 .sp
-.BR fgetgrent ():
-_SVID_SOURCE
-.SH ÀâÌÀ
-.BR fgetgrent ()
-´Ø¿ô¤Ï¡¢
-.I stream
-¤Ç»²¾È¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤«¤é¼è¤ê½Ð¤·¤¿¥°¥ë¡¼¥×¾ðÊó
-¤ò´Þ¤à¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤òÊÖ¤¹¡£ºÇ½é¤Ë¸Æ¤Ó½Ð¤µ¤ì¤¿»þ¤Ï
-ºÇ½é¤Î¥¨¥ó¥È¥ê¤òÊÖ¤·¡¢¤½¤ì°Ê¹ß¤Ï¡¢¼¡¤Î¥¨¥ó¥È¥ê¤òÊÖ¤¹¡£
-.I stream
-¤Ç»²¾È¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤Ï¡¢
-.I /etc/group
-¤ÈƱ¤¸·Á¼°¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤
-.RB ( group (5)
-»²¾È)¡£
+\fBfgetgrent\fP(): _SVID_SOURCE
+.SH 説明
+\fBfgetgrent\fP()  関数は、 \fIstream\fP で参照されるファイルから取り出したグループ情報
+を含む構造体へのポインタを返す。最初に呼び出された時は 最初のエントリを返し、それ以降は、次のエントリを返す。 \fIstream\fP
+で参照されるファイルは、 \fI/etc/group\fP と同じ形式でなければならない (\fBgroup\fP(5)  参照)。
 .PP
-\fIgroup\fP ¹½Â¤ÂΤϡ¢\fI<grp.h>\fP ¤Ç°Ê²¼¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë:
+\fIgroup\fP 構造体は \fI<grp.h>\fP で以下のように定義されている:
 .sp
 .in +4n
 .nf
 struct group {
-    char   *gr_name;        /* ¥°¥ë¡¼¥×̾ */
-    char   *gr_passwd;      /* ¥°¥ë¡¼¥×¤Î¥Ñ¥¹¥ï¡¼¥É */
-    gid_t   gr_gid;         /* ¥°¥ë¡¼¥× ID */
-    char  **gr_mem;         /* ¥°¥ë¡¼¥×¤Î¥á¥ó¥Ð */
+    char   *gr_name;        /* グループ名 */
+    char   *gr_passwd;      /* グループのパスワード */
+    gid_t   gr_gid;         /* グループ ID */
+    char  **gr_mem;         /* グループのメンバ */
 };
 .fi
 .in
-.SH ÊÖ¤êÃÍ
-.BR fgetgrent ()
-´Ø¿ô¤Ï
-.I group
-¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤òÊÖ¤¹¡£
-¤³¤ì°Ê¾å¥¨¥ó¥È¥ê¤¬Ìµ¤¤¤«¡¢¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤Ï NULL ¤òÊÖ¤¹¡£
-.SH ¥¨¥é¡¼
-.TP
-.B ENOMEM
-.I group
-¹½Â¤ÂΤò³ä¤êÅö¤Æ¤ë¤¿¤á¤Î¥á¥â¥ê¤¬ÉÔ½½Ê¬¡£
-.SH ½àµò
+.SH 返り値
+\fBfgetgrent\fP()  関数は \fIgroup\fP 構造体へのポインタを返す。 これ以上エントリが無いか、エラーが発生した場合は NULL
+を返す。
+.SH エラー
+.TP 
+\fBENOMEM\fP
+\fIgroup\fP 構造体を割り当てるためのメモリが不十分。
+.SH 準拠
 SVr4.
-.SH ´ØÏ¢¹àÌÜ
-.BR endgrent (3),
-.BR fgetgrent_r (3),
-.BR fopen (3),
-.BR getgrent (3),
-.BR getgrgid (3),
-.BR getgrnam (3),
-.BR putgrent (3),
-.BR setgrent (3),
-.BR group (5)
+.SH 関連項目
+\fBendgrent\fP(3), \fBfgetgrent_r\fP(3), \fBfopen\fP(3), \fBgetgrent\fP(3),
+\fBgetgrgid\fP(3), \fBgetgrnam\fP(3), \fBputgrent\fP(3), \fBsetgrent\fP(3), \fBgroup\fP(5)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。