| 1 | .\" @(#)getpw.3 5.1 (Berkeley) %G% |
| 2 | .\" |
| 3 | .TH GETPW 3C "19 January 1983" |
| 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 obsoleted 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. |