.\" 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
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
-.TH PUTPWENT 3 2007\-07\-26 GNU "Linux Programmer's Manual"
+.\"
+.\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
+.\" all rights reserved.
+.\" Translated Thu Dec 18 17:43:46 JST 1997
+.\" by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
+.\"
+.TH PUTPWENT 3 2013\-04\-19 GNU "Linux Programmer's Manual"
.SH 名前
-putpwent \- パスワードファイルエントリの書き込み
+putpwent \- ã\83\91ã\82¹ã\83¯ã\83¼ã\83\89ã\83\95ã\82¡ã\82¤ã\83«ã\82¨ã\83³ã\83\88ã\83ªã\83¼ã\81®æ\9b¸ã\81\8dè¾¼ã\81¿
.SH 書式
.nf
\fB#include <stdio.h>\fP
.sp
\fBputpwent\fP(): _SVID_SOURCE
.SH 説明
-\fBputpwent\fP() 関数は、構造体 \fIp\fP からのパスワードエントリを \fIstream\fP に結びつけられたファイルに書き込む。
+\fBputpwent\fP() é\96¢æ\95°ã\81¯ã\80\81æ§\8bé\80 ä½\93 \fIp\fP ã\81\8bã\82\89ã\81®ã\83\91ã\82¹ã\83¯ã\83¼ã\83\89ã\82¨ã\83³ã\83\88ã\83ªã\83¼ã\82\92 \fIstream\fP ã\81«çµ\90ã\81³ã\81¤ã\81\91ã\82\89ã\82\8cã\81\9fã\83\95ã\82¡ã\82¤ã\83«ã\81«æ\9b¸ã\81\8dè¾¼ã\82\80ã\80\82
.PP
\fIpasswd\fP 構造体は、\fI<pwd.h>\fP で以下のように定義されている:
.sp
.in +4n
.nf
struct passwd {
- char *pw_name; /* ユーザ名 */
- char *pw_passwd; /* ユーザのパスワード */
- uid_t pw_uid; /* ユーザ ID */
+ char *pw_name; /* ユーザー名 */
+ char *pw_passwd; /* ã\83¦ã\83¼ã\82¶ã\83¼ã\81®ã\83\91ã\82¹ã\83¯ã\83¼ã\83\89 */
+ uid_t pw_uid; /* ユーザー ID */
gid_t pw_gid; /* グループ ID */
char *pw_gecos; /* 本名 */
char *pw_dir; /* ホームディレクトリ */
.fi
.in
.SH 返り値
-\fBputpwent\fP() 関数は、成功した場合は 0 を、エラーが発生した場合は \-1 を返す。
+\fBputpwent\fP() 関数は、成功した場合 0 を返す。 エラーが発生した場合 \-1 を返し、 \fIerrno\fPに原因を示す値が設定される。
.SH エラー
.TP
\fBEINVAL\fP
.SH 関連項目
\fBendpwent\fP(3), \fBfgetpwent\fP(3), \fBgetpw\fP(3), \fBgetpwent\fP(3),
\fBgetpwnam\fP(3), \fBgetpwuid\fP(3), \fBsetpwent\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.78 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。