92 lines
2.9 KiB
Groff
92 lines
2.9 KiB
Groff
.\" Copyright (c) 1990, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)getpw.3 8.1 (Berkeley) 6/4/93
|
|
.\" %FreeBSD: src/lib/libcompat/4.1/getpw.3,v 1.5.2.5 2001/12/17 10:08:28 ru Exp %
|
|
.\" $FreeBSD$
|
|
.\"
|
|
.Dd June 4, 1993
|
|
.Dt GETPW 3
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm getpw
|
|
.Nd uid ¤«¤é¥æ¡¼¥¶Ì¾¤ò¼èÆÀ
|
|
.Sh ¥é¥¤¥Ö¥é¥ê
|
|
.Lb libcompat
|
|
.Sh ½ñ¼°
|
|
.In sys/types.h
|
|
.Ft int
|
|
.Fn getpw "uid_t uid" "char *buf"
|
|
.Sh ²òÀâ
|
|
.Bf -symbolic
|
|
.Fn getpw
|
|
´Ø¿ô¤Ï¡¢
|
|
.Xr getpwuid 3
|
|
¤ÎÅоì¤Ë¤è¤Ã¤Æµì¼°¤Î¤â¤Î¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
|
|
.Ef
|
|
.Pp
|
|
.Fn getpw
|
|
´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë
|
|
.Pa /etc/passwd
|
|
¤òÆÉ¤ß¹þ¤ó¤Ç¡¢»ØÄꤵ¤ì¤¿
|
|
.Fa uid
|
|
¤¬¸«¤Ä¤«¤ì¤Ð¤½¤Î
|
|
¥Ñ¥¹¥ï¡¼¥É¥¨¥ó¥È¥ê¹Ô¤ò¡¢
|
|
.Fa buf
|
|
¤¬»Ø¤¹Ê¸»úÎó¤Ë¥³¥Ô¡¼¤·¤Þ¤¹¡£
|
|
¥Ñ¥¹¥ï¡¼¥É¥Ç¡¼¥¿¥Ù¡¼¥¹¤«¤é¥³¥Ô¡¼¤¹¤ë¥¨¥ó¥È¥ê¹Ô¤¬
|
|
null
|
|
¤Ç½ª¤ï¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢
|
|
.Dv NUL
|
|
¥¥ã¥é¥¯¥¿¤ò¸å¤ËÉղä·¤Þ¤¹¡£
|
|
.Sh Ìá¤êÃÍ
|
|
.Fn getpw
|
|
´Ø¿ô¤Ï¡¢½èÍý¤¬Àµ¾ï½ªÎ»¤·¤¿¾ì¹ç¤Ë¤Ï 0 ¤òÊÖ¤·¤Þ¤¹¡£
|
|
¥¨¥ó¥È¥ê¤¬Â¸ºß¤·¤Ê¤¤¤Ê¤É¡¢¤½¤Î¾¤Î¾ì¹ç¤Ï 0 °Ê³°¤òÊÖ¤·¤Þ¤¹¡£
|
|
.Sh ´ØÏ¢¥Õ¥¡¥¤¥ë
|
|
.Bl -tag -width /etc/passwd -compact
|
|
.It Pa /etc/passwd
|
|
.El
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr getpwent 3 ,
|
|
.Xr passwd 5
|
|
.Sh Îò»Ë
|
|
.Fn getpw
|
|
´Ø¿ô¤Ï
|
|
.At v6
|
|
¤Ç¤Ï¤¸¤á¤ÆÅо줷¤Þ¤·¤¿¡£
|
|
.Sh ¥Ð¥°
|
|
.Fa buf
|
|
¤Ç¼¨¤µ¤ì¤¿Îΰè¤Ï¡¢¥æ¡¼¥¶Ì¾¤òÊÝ»ý¤¹¤ë¤Î¤Ë½½Ê¬¤ÊÂ礤µ¤Ç¤¢¤ë
|
|
ɬÍפ¬¤¢¤ê¤Þ¤¹¡£
|
|
.Pp
|
|
.Xr getpwent 3
|
|
¤Ë´Ø¤¹¤ë¥Ð¥°¤Ï¤¹¤Ù¤Æ¤³¤Î´Ø¿ô¤Ç¤âÅö¤Æ¤Ï¤Þ¤ê¤Þ¤¹¡£
|