manual page distributed with 4.2BSD
[unix-history] / usr / src / lib / libcompat / 4.1 / getpw.3
CommitLineData
4088dad4 1.\" @(#)getpw.3 5.1 (Berkeley) %G%
1caf41fc 2.\"
4088dad4 3.TH GETPW 3C "19 January 1983"
1caf41fc
KM
4.AT 3
5.SH NAME
6getpw \- get name from uid
7.SH SYNOPSIS
8.nf
9.B getpw(uid, buf)
10.B char *buf;
11.fi
12.SH DESCRIPTION
4088dad4
KM
13.ft B
14Getpw is obsoleted by getpwuid(3).
15.ft R
16.PP
1caf41fc
KM
17.I Getpw
18searches the password file for
19the (numerical)
20.IR uid ", and fills in " "buf"
21with the corresponding line;
22it returns non-zero if
23.IR uid ""
24could not
25be found.
26The line is null-terminated.
27.SH FILES
28/etc/passwd
29.SH "SEE ALSO"
30getpwent(3),
31passwd(5)
32.SH DIAGNOSTICS
33Non-zero
34return on error.