Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getpw(3c) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

passwd



GETPW(3c,L)                 AIX Technical Reference                 GETPW(3c,L)



-------------------------------------------------------------------------------
getpw



PURPOSE

Gets a password file entry, given the user ID.

LIBRARY

Standard C Library (libc.a)

SYNTAX

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

DESCRIPTION

The getpw subroutine is included only for compatibility with prior systems and
should not be used unless your program is going to be used with a prior system.
See "getpwent, getpwuid, getpwnam, setpwent, endpwent" and "putpwent" for the
correct subroutines to use.

The getpw searches the password file for a user ID number that matches the uid
parameter.  When a match is found, getpw copies the line of the password file
in which the match was found into an array pointed to by the buf parameter.
The subroutine then returns a value of 0.  If a match cannot be found, the
subroutine returns a nonzero value.

FILE

/etc/passwd

RELATED INFORMATION

In this book:  "passwd."
















Processed November 7, 1990        GETPW(3c,L)                                 1



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