Commit | Line | Data |
---|---|---|
e6817382 BJ |
1 | .TH GETPW 3 deprecated |
2 | .SH NAME | |
3 | getpw \- get name from UID | |
4 | .SH SYNOPSIS | |
5 | .B getpw(uid, buf) | |
6 | .br | |
7 | .B char *buf; | |
8 | .SH DESCRIPTION | |
9 | .I Getpw | |
10 | searches the password file for | |
11 | the (numerical) | |
12 | .IR uid ", and fills in " "buf" | |
13 | with the corresponding line; | |
14 | it returns non-zero if | |
15 | .IR uid "" | |
16 | could not | |
17 | be found. | |
18 | The line is null-terminated. | |
19 | .SH FILES | |
20 | /etc/passwd | |
21 | .SH "SEE ALSO" | |
22 | getpwent(3), | |
23 | passwd(5) | |
24 | .SH DIAGNOSTICS | |
25 | Non-zero | |
26 | return on error. |