Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getpw(3C) — A/UX 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpwent(3C)

passwd(4)




getpw(3C) getpw(3C)
NAME getpw - get name from UID SYNOPSIS int getpw(uid, buf) int uid; char *buf; DESCRIPTION getpw searches the password file for a user ID number that equals uid, copies the line of the password file in which uid was found into the array pointed to by buf, and returns 0. The line is null terminated. getpw returns nonzero if uid cannot be found. This routine is included only for compatibility with prior systems and should not be used; see getpwent(3C) for rou- tines to use instead. RETURN VALUE getpw returns nonzero on error. FILES /etc/passwd SEE ALSO getpwent(3C), passwd(4). WARNINGS The above routine uses <stdio.h>. Therefore, the size of programs not otherwise using standard I/O is increased more than might be expected. April, 1990 1

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