|
|
1.1 root 1: .\" @(#)getpw.3c 6.2 (Berkeley) 5/27/86
2: .\"
3: .TH GETPW 3C "May 27, 1986"
4: .AT 3
5: .SH NAME
6: getpw \- get name from uid
7: .SH SYNOPSIS
8: .nf
9: .B getpw(uid, buf)
10: .B char *buf;
11: .fi
12: .SH DESCRIPTION
13: .ft B
14: Getpw is made obsolete by getpwuid(3).
15: .ft R
16: .PP
17: .I Getpw
18: searches the password file for
19: the (numerical)
20: .IR uid ", and fills in " "buf"
21: with the corresponding line;
22: it returns non-zero if
23: .IR uid ""
24: could not
25: be found.
26: The line is null-terminated.
27: .SH FILES
28: /etc/passwd
29: .SH "SEE ALSO"
30: getpwent(3),
31: passwd(5)
32: .SH DIAGNOSTICS
33: Non-zero
34: return on error.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.