Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getpw(3) — Ultrix-11 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpwent(3)

passwd(5)

getpw(3)

NAME

getpw − get name from UID

SYNTAX

int getpw(uid, buf)
int uid;
char *buf;

DESCRIPTION

The getpw subroutine 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. 

This routine is included only for compatibility with prior systems and should not be used.  For routines to use instead, see getpwent(3). 

DIAGNOSTICS

The getpw subroutine returns non-zero on error. 

FILES

/etc/passwd

SEE ALSO

getpwent(3), passwd(5)

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