OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / getpw.3
index f09cff4..9fdfe6e 100644 (file)
 .\" Modified Sat Jul 24 19:23:25 1993 by Rik Faith (faith@cs.unc.edu)
 .\" Modified Mon May 27 21:37:47 1996 by Martin Schulze (joey@linux.de)
 .\"
-.\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
-.\"    all rights reserved.
-.\" Translated 1997-12-19, HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
-.\" Modified 1999-12-08, Kentaro Shirakata <argrath@yo.rim.or.jp>
-.\" Modified 2005-09-04, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
-.\" Modified 2008-07-23, Kentaro Shirakata <argrath@ub32.org>
+.\"*******************************************************************
 .\"
-.TH GETPW 3 2010-10-21 "GNU" "Linux Programmer's Manual"
-.\"O .SH NAME
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH GETPW 3 2010\-10\-21 GNU "Linux Programmer's Manual"
 .SH 名前
-.\"O getpw \- Re-construct password line entry
 getpw \- パスワード行エントリを取得する
-.\"O .SH SYNOPSIS
 .SH 書式
 .nf
-.\"O .BR "#define _GNU_SOURCE" "             /* See feature_test_macros(7) */"
-.BR "#define _GNU_SOURCE" "             /* feature_test_macros(7) 参照 */"
-.B #include <sys/types.h>
-.B #include <pwd.h>
+\fB#define _GNU_SOURCE\fP             /* feature_test_macros(7) 参照 */
+\fB#include <sys/types.h>\fP
+\fB#include <pwd.h>\fP
 .sp
-.BI "int getpw(uid_t " uid ", char *" buf );
+\fBint getpw(uid_t \fP\fIuid\fP\fB, char *\fP\fIbuf\fP\fB);\fP
 .fi
-.\"O .SH DESCRIPTION
 .SH 説明
-.\"O The
-.\"O .BR getpw ()
-.\"O function reconstructs the password line entry for
-.\"O the given user ID \fIuid\fP in the buffer \fIbuf\fP.
-.\"O The returned buffer contains a line of format
-.BR getpw ()
-関数は、バッファ \fIbuf\fP に指定ユーザ ID  \fIuid\fP の
-パスワード行エントリを取得する。
+\fBgetpw\fP()  関数は、バッファ \fIbuf\fP に指定ユーザ ID \fIuid\fP の パスワード行エントリを取得する。
 返されるバッファは、以下の形式の行を含む。
 .sp
-.in +4n
-.B name:passwd:uid:gid:gecos:dir:shell
-.in
+.RS
+\fBname:passwd:uid:gid:gecos:dir:shell\fP
+.RE
 .PP
-.\"O The \fIpasswd\fP structure is defined in \fI<pwd.h>\fP as follows:
-\fIpasswd\fP 構造体は \fI<pwd.h>\fP で以下のように定義されている:
+\fIpasswd\fP 構造体は、\fI<pwd.h>\fP で以下のように定義されている:
 .sp
 .in +4n
 .nf
 struct passwd {
-    char   *pw_name;       /* username */
-    char   *pw_passwd;     /* user password */
-    uid_t   pw_uid;        /* user ID */
-    gid_t   pw_gid;        /* group ID */
-    char   *pw_gecos;      /* user information */
-    char   *pw_dir;        /* home directory */
-    char   *pw_shell;      /* shell program */
+    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;      /* シェルプログラム */
 };
 .fi
 .in
 .PP
-.\"O For more information about the fields of this structure, see
-.\"O .BR passwd (5).
-この構造体のフィールドの詳細は
-.BR passwd (5)
-を参照のこと。
-.\"O .SH "RETURN VALUE"
+この構造体のフィールドの詳細は \fBpasswd\fP(5)  を参照のこと。
 .SH 返り値
-.\"O The
-.\"O .BR getpw ()
-.\"O function returns 0 on success; on error, it returns \-1, and
-.\"O .I errno
-.\"O is set to indicate the error.
-.BR getpw ()
-関数は、成功した場合 0 を返す; エラーが発生した場合 \-1 を返し、エラーを
-示すために
-.I error
-がセットされる。
-.\"O .SH ERRORS
+\fBgetpw\fP()  関数は、成功した場合 0 を返す; エラーが発生した場合 \-1 を返し、エラーを 示すために \fIerror\fP がセットされる。
 .SH エラー
-.TP
-.B EINVAL
-.\"O .I buf
-.\"O is NULL.
-.I buf
-が NULL。
-.TP
-.B ENOENT
-.\"O No user corresponding to
-.\"O .IR uid .
-.I uid
-に対応するユーザがいない。
-.TP
-.B ENOMEM
-.\"O Insufficient memory to allocate
-.\"O .I passwd
-.\"O structure.
-.I passwd
-構造体を割り当てるためのメモリが不十分。
-.\"O .SH FILES
+.TP 
+\fBEINVAL\fP
+\fIbuf\fP が NULL。
+.TP 
+\fBENOENT\fP
+\fIuid\fP に対応するユーザがいない。
+.TP 
+\fBENOMEM\fP
+\fIpasswd\fP 構造体に割り当てるメモリが十分なかった。
 .SH ファイル
-.TP
-.I /etc/passwd
-.\"O password database file
+.TP 
+\fI/etc/passwd\fP
 パスワードデータベースファイル
-.\"O .SH "CONFORMING TO"
 .SH 準拠
-.\"O SVr2.
 SVr2
-.\"O .SH BUGS
 .SH バグ
-.\"O The
-.\"O .BR getpw ()
-.\"O function is dangerous as it may overflow the provided buffer
-.\"O .IR buf .
-.BR getpw ()
-関数は、与えられたバッファ
-.I buf
-がオーバーフローするかもしれないので危険である。
-.\"O It is obsoleted by
-.\"O .BR getpwuid (3).
-この関数は
-.BR getpwuid (3)
-によって古いものとなった。
-.\"O .SH "SEE ALSO"
+\fBgetpw\fP()  関数は、与えられたバッファ \fIbuf\fP がオーバーフローするかもしれないので危険である。 この関数は
+\fBgetpwuid\fP(3)  によって古いものとなった。
 .SH 関連項目
-.BR endpwent (3),
-.BR fgetpwent (3),
-.BR getpwent (3),
-.BR getpwnam (3),
-.BR getpwuid (3),
-.BR putpwent (3),
-.BR setpwent (3),
-.BR passwd (5)
+\fBendpwent\fP(3), \fBfgetpwent\fP(3), \fBgetpwent\fP(3), \fBgetpwnam\fP(3),
+\fBgetpwuid\fP(3), \fBputpwent\fP(3), \fBsetpwent\fP(3), \fBpasswd\fP(5)