OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / release / man3 / putpwent.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 .\" Modified Sat Jul 24 18:43:46 1993 by Rik Faith (faith@cs.unc.edu)
30 .\"*******************************************************************
31 .\"
32 .\" This file was generated with po4a. Translate the source file.
33 .\"
34 .\"*******************************************************************
35 .TH PUTPWENT 3 2013\-04\-19 GNU "Linux Programmer's Manual"
36 .SH 名前
37 putpwent \- パスワードファイルエントリの書き込み
38 .SH 書式
39 .nf
40 \fB#include <stdio.h>\fP
41 \fB#include <sys/types.h>\fP
42 \fB#include <pwd.h>\fP
43 .sp
44 \fBint putpwent(const struct passwd *\fP\fIp\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
45 .fi
46 .sp
47 .in -4n
48 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
49 .in
50 .sp
51 \fBputpwent\fP(): _SVID_SOURCE
52 .SH 説明
53 \fBputpwent\fP()  関数は、構造体 \fIp\fP からのパスワードエントリを \fIstream\fP に結びつけられたファイルに書き込む。
54 .PP
55 \fIpasswd\fP 構造体は、\fI<pwd.h>\fP で以下のように定義されている:
56 .sp
57 .in +4n
58 .nf
59 struct passwd {
60     char    *pw_name;        /* ユーザ名 */
61     char    *pw_passwd;      /* ユーザのパスワード */
62     uid_t    pw_uid;         /* ユーザ ID */
63     gid_t    pw_gid;         /* グループ ID */
64     char    *pw_gecos;       /* 本名 */
65     char    *pw_dir;         /* ホームディレクトリ */
66     char    *pw_shell;       /* シェルプログラム */
67 };
68 .fi
69 .in
70 .SH 返り値
71 \fBputpwent\fP() 関数は、成功した場合 0 を返す。 エラーが発生した場合 \-1 を返し、 \fIerrno\fPに原因を示す値が設定される。
72 .SH エラー
73 .TP 
74 \fBEINVAL\fP
75 無効な(NULL)引数が渡された。
76 .SH 準拠
77 SVr4.
78 .SH 関連項目
79 \fBendpwent\fP(3), \fBfgetpwent\fP(3), \fBgetpw\fP(3), \fBgetpwent\fP(3),
80 \fBgetpwnam\fP(3), \fBgetpwuid\fP(3), \fBsetpwent\fP(3)
81 .SH この文書について
82 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
83 である。プロジェクトの説明とバグ報告に関する情報は
84 http://www.kernel.org/doc/man\-pages/ に書かれている。