Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getpw(3G) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpwent(3C)

passwd(4)






       getpw(3G)                                                  getpw(3G)


       NAME
             getpw - get name from UID

       SYNOPSIS
             cc [flag . . . ] file . . . -lgen [library] . . .
             #include <stdlib.h>
             int getpw (uid_t 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; it should not be used.  See getpwent(3C) for routines
             to use instead.

          Files
             /etc/passwd

          Errors
             getpw returns non-zero on error.

       REFERENCES
             getpwent(3C), passwd(4)






















                           Copyright 1994 Novell, Inc.               Page 1








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