checkpoint (lots of stuff)
[unix-history] / usr / src / lib / libc / gen / pwcache.3
CommitLineData
aac98ecd
KB
1.\" Copyright (c) 1989 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15.\"
16.\" @(#)pwcache.3 5.1 (Berkeley) %G%
17.\"
18.TH PWCACHE 3 ""
19.UC 7
20.SH NAME
21pwcache \- cache password and group entries
22.SH SYNOPSIS
23.ft B
24.nf
25user_from_uid(uid)
26uid_t uid;
27
28group_from_gid(gid)
29gid_t gid;
30.fi
31.ft R
32.SH DESCRIPTION
33.ft B
34This interface is not part of the C library.
35It has been placed in the Berkeley utility library, libutil, as it is
36used by several standard utilities.
37.ft R
38.PP
39The
40.I user_from_uid
41function returns the user name associated with the argument uid.
42The user name is cached so that multiple calls with the same uid
43do not require additional calls to
44.IR getpwuid (3).
45.PP
46The
47.I group_from_gid
48function returns the group name associated with the argument gid.
49The group name is cached so that multiple calls with the same gid
50do not require additional calls to
51.IR getgrgid (3).
52.SH SEE ALSO
53getgrgid(3), getpwuid(3)