OSDN Git Service

(split) Move Japanese translation histories after original history sections.
[linuxjm/LDP_man-pages.git] / draft / man3 / putpwent.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified Sat Jul 24 18:43:46 1993 by Rik Faith (faith@cs.unc.edu)
28 .\"
29 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
30 .\"     all rights reserved.
31 .\" Translated Thu Dec 18 17:43:46 JST 1997
32 .\"     by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
33 .\"
34 .TH PUTPWENT 3  2007-07-26 "GNU" "Linux Programmer's Manual"
35 .SH Ì¾Á°
36 putpwent \- ¥Ñ¥¹¥ï¡¼¥É¥Õ¥¡¥¤¥ë¥¨¥ó¥È¥ê¤Î½ñ¤­¹þ¤ß
37 .SH ½ñ¼°
38 .nf
39 .B #include <stdio.h>
40 .B #include <sys/types.h>
41 .B #include <pwd.h>
42 .sp
43 .BI "int putpwent(const struct passwd *" p ", FILE *" stream );
44 .fi
45 .sp
46 .in -4n
47 .\"O Feature Test Macro Requirements for glibc (see
48 .\"O .BR feature_test_macros (7)):
49 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
50 .RB ( feature_test_macros (7)
51 »²¾È):
52 .in
53 .sp
54 .BR putpwent ():
55 _SVID_SOURCE
56 .SH ÀâÌÀ
57 .BR putpwent ()
58 ´Ø¿ô¤Ï¡¢¹½Â¤ÂΠ\fIp\fP ¤«¤é¤Î¥Ñ¥¹¥ï¡¼¥É¥¨¥ó¥È¥ê¤ò
59 \fIstream\fP ¤Ë·ë¤Ó¤Ä¤±¤é¤ì¤¿¥Õ¥¡¥¤¥ë¤Ë½ñ¤­¹þ¤à¡£
60
61 .PP
62 \fIpasswd\fP ¹½Â¤ÂΤϡ¢\fI<pwd.h>\fP ¤Ç°Ê²¼¤Î¤è¤¦¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë:
63 .sp
64 .in +4n
65 .nf
66 struct passwd {
67 .\"O     char    *pw_name;        /* username */
68 .\"O     char    *pw_passwd;      /* user password */
69 .\"O     uid_t    pw_uid;         /* user ID */
70 .\"O     gid_t    pw_gid;         /* group ID */
71 .\"O     char    *pw_gecos;       /* real name */
72 .\"O     char    *pw_dir;         /* home directory */
73 .\"O     char    *pw_shell;       /* shell program */
74     char    *pw_name;        /* ¥æ¡¼¥¶Ì¾ */
75     char    *pw_passwd;      /* ¥æ¡¼¥¶¤Î¥Ñ¥¹¥ï¡¼¥É */
76     uid_t    pw_uid;         /* ¥æ¡¼¥¶ ID */
77     gid_t    pw_gid;         /* ¥°¥ë¡¼¥× ID */
78     char    *pw_gecos;       /* ËÜ̾ */
79     char    *pw_dir;         /* ¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê */
80     char    *pw_shell;       /* ¥·¥§¥ë¥×¥í¥°¥é¥à */
81 };
82 .fi
83 .in
84 .SH ÊÖ¤êÃÍ
85 .BR putpwent ()
86 ´Ø¿ô¤Ï¡¢À®¸ù¤·¤¿¾ì¹ç¤Ï 0 ¤ò¡¢¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤Ï
87 \-1 ¤òÊÖ¤¹¡£
88 .SH ¥¨¥é¡¼
89 .TP
90 .B EINVAL
91 ̵¸ú¤Ê(NULL)°ú¿ô¤¬ÅϤµ¤ì¤¿¡£
92 .SH ½àµò
93 SVr4.
94 .SH ´ØÏ¢¹àÌÜ
95 .BR endpwent (3),
96 .BR fgetpwent (3),
97 .BR getpw (3),
98 .BR getpwent (3),
99 .BR getpwnam (3),
100 .BR getpwuid (3),
101 .BR setpwent (3)