Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getpw(3) — SunOS 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpwent(3)

passwd(5)

GETPW(3)  —  System Interface Manual — Subroutines

NAME

getpw − get name from uid

SYNOPSIS

getpw(uid, buf)
char ∗buf;

DESCRIPTION

Getpw is obsoleted by getpwent(3). 

Getpw searches the password file for the (numerical) uid, and fills in buf with the corresponding line; it returns non-zero if uid could not be found.  The line is null-terminated. 

FILES

/etc/passwd

SEE ALSO

getpwent(3), passwd(5)

DIAGNOSTICS

Non-zero return on error. 

Sun System Release 1.0  —  26 August 1983

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026