OSDN Git Service

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