|
|
1.1 root 1:
2:
3: getpwent() General Function getpwent()
4:
5:
6:
7:
8: Get password file information
9:
10: #include <pwd.h>
11: ssttrruucctt ppaasssswwdd *ggeettppwweenntt()
12:
13: The COHERENT system has five routines that search the file
14: /etc/passwd, which contains information about every user of the
15: system. The returned structure passwd is defined in the header
16: file pwd.h. For a description of this structure, see pwd.h.
17:
18: getpwent returns the next entry from /etc/passwd.
19:
20: ***** Files *****
21:
22: /etc/passwd
23: <pwd.h>
24:
25: ***** See Also *****
26:
27: endpwent(), general functions, getpwnam(), getpwuid(), pwd.h,
28: setpwent()
29:
30: ***** Diagnostics *****
31:
32: getpwent returns NULL for any error or on end of file.
33:
34: ***** Notes *****
35:
36: All structures and information returned are in static areas in-
37: ternal to getpwent. Therefore, information from a previous call
38: is overwritten by each subsequent call.
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.