.\" Copyright (c) 1989 The Regents of the University of California.
.\" %sccs.include.redist.man%
.\" @(#)pwcache.3 5.3 (Berkeley) %G%
pwcache \- cache password and group entries
user_from_uid(uid, nouser)
group_from_gid(gid, nogroup)
This interface is not part of the C library.
It has been placed in the Berkeley utility library, libutil, as it is
used by several standard utilities.
function returns the user name associated with the argument uid.
The user name is cached so that multiple calls with the same uid
do not require additional calls to
If there is no user associated with the uid, a pointer is returned
to an ASCII representation of the uid, unless the argument
is non-zero, in which case a NULL pointer is returned.
function returns the group name associated with the argument gid.
The group name is cached so that multiple calls with the same gid
do not require additional calls to
If there is no group associated with the gid, a pointer is returned
to an ASCII representation of the gid, unless the argument
is non-zero, in which case a NULL pointer is returned.