.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\"
-.\" 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>
-.\"
.\" 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.
.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
.\" 386BSD man pages
.\" Modified Sat Jul 24 18:43:46 1993 by Rik Faith (faith@cs.unc.edu)
-.TH PUTPWENT 3 2007-07-26 "GNU" "Linux Programmer's Manual"
-.SH ̾Á°
-putpwent \- ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¥¨¥ó¥È¥ê¤Î½ñ¤¹þ¤ß
-.SH ½ñ¼°
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH PUTPWENT 3 2007\-07\-26 GNU "Linux Programmer's Manual"
+.SH 名前
+putpwent \- パスワードファイルエントリの書き込み
+.SH 書式
.nf
-.B #include <stdio.h>
-.B #include <sys/types.h>
-.B #include <pwd.h>
+\fB#include <stdio.h>\fP
+\fB#include <sys/types.h>\fP
+\fB#include <pwd.h>\fP
.sp
-.BI "int putpwent(const struct passwd *" p ", FILE *" stream );
+\fBint putpwent(const struct passwd *\fP\fIp\fP\fB, 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 putpwent ():
-_SVID_SOURCE
-.SH ÀâÌÀ
-.BR putpwent ()
-´Ø¿ô¤Ï¡¢¹½Â¤ÂÎ \fIp\fP ¤«¤é¤Î¥Ñ¥¹¥ï¡¼¥É¥¨¥ó¥È¥ê¤ò
-\fIstream\fP ¤Ë·ë¤Ó¤Ä¤±¤é¤ì¤¿¥Õ¥¡¥¤¥ë¤Ë½ñ¤¹þ¤à¡£
-
+\fBputpwent\fP(): _SVID_SOURCE
+.SH 説明
+\fBputpwent\fP() 関数は、構造体 \fIp\fP からのパスワードエントリを \fIstream\fP に結びつけられたファイルに書き込む。
.PP
-\fIpasswd\fP ¹½Â¤ÂΤϡ¢\fI<pwd.h>\fP ¤Ç°Ê²¼¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë:
+\fIpasswd\fP 構造体は、\fI<pwd.h>\fP で以下のように定義されている:
.sp
.in +4n
.nf
struct passwd {
- char *pw_name; /* ¥æ¡¼¥¶Ì¾ */
- char *pw_passwd; /* ¥æ¡¼¥¶¤Î¥Ñ¥¹¥ï¡¼¥É */
- uid_t pw_uid; /* ¥æ¡¼¥¶ ID */
- gid_t pw_gid; /* ¥°¥ë¡¼¥× ID */
- char *pw_gecos; /* ËÜ̾ */
- char *pw_dir; /* ¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê */
- char *pw_shell; /* ¥·¥§¥ë¥×¥í¥°¥é¥à */
+ char *pw_name; /* ユーザ名 */
+ char *pw_passwd; /* ユーザのパスワード */
+ uid_t pw_uid; /* ã\83¦ã\83¼ã\82¶ ID */
+ gid_t pw_gid; /* グループ ID */
+ char *pw_gecos; /* 本名 */
+ char *pw_dir; /* ホームディレクトリ */
+ char *pw_shell; /* シェルプログラム */
};
.fi
.in
-.SH ÊÖ¤êÃÍ
-.BR putpwent ()
-´Ø¿ô¤Ï¡¢À®¸ù¤·¤¿¾ì¹ç¤Ï 0 ¤ò¡¢¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤Ï
-\-1 ¤òÊÖ¤¹¡£
-.SH ¥¨¥é¡¼
-.TP
-.B EINVAL
-̵¸ú¤Ê(NULL)°ú¿ô¤¬ÅϤµ¤ì¤¿¡£
-.SH ½àµò
+.SH 返り値
+\fBputpwent\fP() 関数は、成功した場合は 0 を、エラーが発生した場合は \-1 を返す。
+.SH エラー
+.TP
+\fBEINVAL\fP
+無効な(NULL)引数が渡された。
+.SH 準拠
SVr4.
-.SH ´ØÏ¢¹àÌÜ
-.BR endpwent (3),
-.BR fgetpwent (3),
-.BR getpw (3),
-.BR getpwent (3),
-.BR getpwnam (3),
-.BR getpwuid (3),
-.BR setpwent (3)
+.SH 関連項目
+\fBendpwent\fP(3), \fBfgetpwent\fP(3), \fBgetpw\fP(3), \fBgetpwent\fP(3),
+\fBgetpwnam\fP(3), \fBgetpwuid\fP(3), \fBsetpwent\fP(3)