Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getpw(3C) — sysv — mips UMIPS RISC/os 4.52

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpwent(3C)

passwd(4)



GETPW(3C-SysV)      RISC/os Reference Manual       GETPW(3C-SysV)



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.  getpw returns non-zero 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.

FILES
     /etc/passwd

SEE ALSO
     getpwent(3C), passwd(4).

DIAGNOSTICS
     getpw returns non-zero on error.

WARNING
     The above routine uses <stdio.h>, which causes it to
     increase, more than might be expected, the size of programs
     not otherwise using standard I/O.
























                         Printed 1/15/91                   Page 1



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