Commit | Line | Data |
---|---|---|
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 | |
21 | pwcache \- cache password and group entries | |
22 | .SH SYNOPSIS | |
23 | .ft B | |
24 | .nf | |
25 | user_from_uid(uid) | |
26 | uid_t uid; | |
27 | ||
28 | group_from_gid(gid) | |
29 | gid_t gid; | |
30 | .fi | |
31 | .ft R | |
32 | .SH DESCRIPTION | |
33 | .ft B | |
34 | This interface is not part of the C library. | |
35 | It has been placed in the Berkeley utility library, libutil, as it is | |
36 | used by several standard utilities. | |
37 | .ft R | |
38 | .PP | |
39 | The | |
40 | .I user_from_uid | |
41 | function returns the user name associated with the argument uid. | |
42 | The user name is cached so that multiple calls with the same uid | |
43 | do not require additional calls to | |
44 | .IR getpwuid (3). | |
45 | .PP | |
46 | The | |
47 | .I group_from_gid | |
48 | function returns the group name associated with the argument gid. | |
49 | The group name is cached so that multiple calls with the same gid | |
50 | do not require additional calls to | |
51 | .IR getgrgid (3). | |
52 | .SH SEE ALSO | |
53 | getgrgid(3), getpwuid(3) |