|
|
1.1 root 1: .th GETPW III 4/7/73
2: .sh NAME
3: getpw \*- get name from UID
4: .sh SYNOPSIS
5: .ft B
6: getpw(uid, buf)
7: .br
8: char *buf;
9: .ft R
10: .sh DESCRIPTION
11: .it Getpw
12: searches the password file for
13: the (numerical)
14: \fIuid\fR, and fills in \fIbuf\fR
15: with the corresponding line;
16: it returns non-zero if \fIuid\fR could not
17: be found.
18: The line is null-terminated.
19: .sh FILES
20: /etc/passwd
21: .sh "SEE ALSO"
22: passwd(V)
23: .sh DIAGNOSTICS
24: non-zero
25: return on error.
26: .sh BUGS
27: It disturbs
28: buffered input via \fIgetchar\fR (III).
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.