File:  [CSRG BSD Unix] / 43BSDTahoe / man / man3 / getpw.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

.\"	@(#)getpw.3c	6.2 (Berkeley) 5/27/86
.\"
.TH GETPW 3C  "May 27, 1986"
.AT 3
.SH NAME
getpw \- get name from uid
.SH SYNOPSIS
.nf
.B getpw(uid, buf)
.B char *buf;
.fi
.SH DESCRIPTION
.ft B
Getpw is made obsolete by getpwuid(3).
.ft R
.PP
.I Getpw
searches the password file for
the (numerical)
.IR uid ", and fills in " "buf"
with the corresponding line;
it returns non-zero if
.IR uid ""
could not
be found.
The line is null-terminated.
.SH FILES
/etc/passwd
.SH "SEE ALSO"
getpwent(3),
passwd(5)
.SH DIAGNOSTICS
Non-zero
return on error.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.