93 lines
3.1 KiB
Groff
93 lines
3.1 KiB
Groff
.\" Copyright (c) 1989, 1991, 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.
|
||
.\"
|
||
.\" @(#)pwcache.3 8.1 (Berkeley) 6/9/93
|
||
.\" %FreeBSD: src/lib/libc/gen/pwcache.3,v 1.6.2.4 2001/12/14 18:33:51 ru Exp %
|
||
.\"
|
||
.\" $FreeBSD$
|
||
.Dd June 9, 1993
|
||
.Dt PWCACHE 3
|
||
.Os
|
||
.Sh ̾¾Î
|
||
.Nm pwcache
|
||
.Nd ¥Ñ¥¹¥ï¡¼¥É¥¨¥ó¥È¥ê¤È¥°¥ë¡¼¥×¥¨¥ó¥È¥ê¤Î¥¥ã¥Ã¥·¥å
|
||
.Sh ¥é¥¤¥Ö¥é¥ê
|
||
.Lb libc
|
||
.Sh ½ñ¼°
|
||
.In stdlib.h
|
||
.Ft char *
|
||
.Fn user_from_uid "unsigned long uid" "int nouser"
|
||
.Ft char *
|
||
.Fn group_from_gid "unsigned long gid" "int nogroup"
|
||
.Sh ²òÀâ
|
||
.Fn user_from_uid
|
||
´Ø¿ô¤Ï¡¢°ú¿ô
|
||
.Fa uid
|
||
¤Ë´ØÏ¢¤¹¤ë¥æ¡¼¥¶Ì¾¤òÌᤷ¤Þ¤¹¡£¥æ¡¼¥¶Ì¾¤Ï¥¥ã¥Ã¥·¥å¤µ¤ì¤ë¤Î¤Ç¡¢Æ±¤¸
|
||
.Fa uid
|
||
¤Ç²¿ÅÙ¤â¸Æ¤Ó½Ð¤¹¾ì¹ç¤Ï¡¢
|
||
.Xr getpwuid 3
|
||
¤ò¸Æ¤Ó½Ð¤¹É¬ÍפϤ¢¤ê¤Þ¤»¤ó¡£
|
||
.Fa uid
|
||
¤Ë¥æ¡¼¥¶¤¬´ØÏ¢¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢°ú¿ô
|
||
.Fa nouser
|
||
¤¬ 0 ¤Ç¤¢¤ì¤Ð¡¢
|
||
.Fa uid
|
||
¤Î¥¹¥È¥ê¥ó¥°É½¸½¤Ë¥Ý¥¤¥ó¥¿¤¬Ìᤵ¤ì¤Þ¤¹¡£0 °Ê³°¤Ç¤¢¤ë¾ì¹ç¤Ï
|
||
.Dv NULL
|
||
¥Ý¥¤¥ó¥¿¤¬Ìᤵ¤ì¤Þ¤¹¡£
|
||
.Pp
|
||
.Fn group_from_gid
|
||
´Ø¿ô¤Ï¡¢°ú¿ô
|
||
.Fa gid
|
||
¤Ë´ØÏ¢¤¹¤ë¥°¥ë¡¼¥×̾¤òÌᤷ¤Þ¤¹¡£¥°¥ë¡¼¥×̾¤Ï¥¥ã¥Ã¥·¥å¤µ¤ì¤ë¤Î¤Ç¡¢Æ±¤¸
|
||
.Fa gid
|
||
¤Ç²¿ÅÙ¤â¸Æ¤Ó½Ð¤¹¾ì¹ç¤Ï¡¢
|
||
.Xr getgrgid 3
|
||
¤ò¸Æ¤Ó½Ð¤¹É¬ÍפϤ¢¤ê¤Þ¤»¤ó¡£
|
||
.Fa gid
|
||
¤Ë¥°¥ë¡¼¥×¤¬´ØÏ¢¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢°ú¿ô
|
||
.Fa nogroup
|
||
¤¬ 0 ¤Ç¤¢¤ì¤Ð¡¢
|
||
.Fa gid
|
||
¤Î¥¹¥È¥ê¥ó¥°É½¸½¤Ë¥Ý¥¤¥ó¥¿¤¬Ìᤵ¤ì¤Þ¤¹¡£0 °Ê³°¤Ç¤¢¤ë¾ì¹ç¤Ï
|
||
.Dv NULL
|
||
¥Ý¥¤¥ó¥¿¤¬Ìᤵ¤ì¤Þ¤¹¡£
|
||
.Sh ´ØÏ¢¹àÌÜ
|
||
.Xr getgrgid 3 ,
|
||
.Xr getpwuid 3
|
||
.Sh Îò»Ë
|
||
.Fn user_from_uid
|
||
´Ø¿ô¤È
|
||
.Fn group_from_gid
|
||
´Ø¿ô¤Ï¡¢
|
||
.Bx 4.4
|
||
¤Ç¤Ï¤¸¤á¤ÆÅо줷¤Þ¤·¤¿¡£
|