OSDN Git Service

(split) LDP: Update release from the latest PO files
[linuxjm/LDP_man-pages.git] / release / man3 / fgetpwent.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\"
30 .\" Modified Sat Jul 24 19:37:37 1993 by Rik Faith (faith@cs.unc.edu)
31 .\" Modified Mon May 27 22:40:48 1996 by Martin Schulze (joey@linux.de)
32 .\"
33 .\"*******************************************************************
34 .\"
35 .\" This file was generated with po4a. Translate the source file.
36 .\"
37 .\"*******************************************************************
38 .TH FGETPWENT 3 2008\-07\-10 GNU "Linux Programmer's Manual"
39 .SH 名前
40 fgetpwent \- パスワードファイルエントリの取り出し
41 .SH 書式
42 .nf
43 \fB#include <stdio.h>\fP
44 \fB#include <sys/types.h>\fP
45 \fB#include <pwd.h>\fP
46 .sp
47 \fBstruct passwd *fgetpwent(FILE *\fP\fIstream\fP\fB);\fP
48 .fi
49 .sp
50 .in -4n
51 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
52 .in
53 .sp
54 \fBfgetpwent\fP(): _SVID_SOURCE
55 .SH 説明
56 \fBfgetpwent\fP()  関数は、\fIstream\fP から得られた行を分解したフィールド を含む構造体へのポインタを返す。
57 最初に呼び出された時には最初のエントリを返し、それ以降は 次のエントリを返す。 \fIstream\fP で参照されるファイルは \fI/etc/passwd\fP
58 と同じ形式でなければならない (\fBpasswd\fP(5)  参照)。
59 .PP
60 \fIpasswd\fP 構造体は、\fI<pwd.h>\fP で以下のように定義されている:
61 .sp
62 .in +4n
63 .nf
64 struct passwd {
65     char   *pw_name;       /* ユーザ名 */
66     char   *pw_passwd;     /* ユーザのパスワード */
67     uid_t   pw_uid;        /* ユーザ ID */
68     gid_t   pw_gid;        /* グループ ID */
69     char   *pw_gecos;      /* 実名 */
70     char   *pw_dir;        /* ホームディレクトリ */
71     char   *pw_shell;      /* シェルプログラム */
72 };
73 .fi
74 .in
75 .SH 返り値
76 \fBfgetpwent\fP()  関数は、 \fIpasswd\fP 構造体へのポインタを返す。 これ以上エントリが無いか、エラーが発生した場合は NULL
77 を返す。
78 .SH エラー
79 .TP 
80 \fBENOMEM\fP
81 \fIpasswd\fP 構造体に割り当てるメモリが十分なかった。
82 .SH ファイル
83 .TP 
84 \fI/etc/passwd\fP
85 パスワードデータベースファイル
86 .SH 準拠
87 SVr4.
88 .SH 関連項目
89 \fBendpwent\fP(3), \fBfgetpwent_r\fP(3), \fBfopen\fP(3), \fBgetpw\fP(3), \fBgetpwent\fP(3),
90 \fBgetpwnam\fP(3), \fBgetpwuid\fP(3), \fBputpwent\fP(3), \fBsetpwent\fP(3), \fBpasswd\fP(5)
91 .SH この文書について
92 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.51 の一部
93 である。プロジェクトの説明とバグ報告に関する情報は
94 http://www.kernel.org/doc/man\-pages/ に書かれている。