Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ putpwent(3C) — HP-UX 9.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpwent(3C)

putspwent(3C)

passwd(4)

spasswd(4)

putpwent(3C)

NAME

putpwent() − write password file entry

SYNOPSIS

#include <pwd.h>

int putpwent(const struct passwd *p, FILE *f);

DESCRIPTION

putpwent() is the inverse of getpwent() (see getpwent(3C)). Given a pointer to a passwd structure as created by getpwent() (or getpwuid() or getpwnam()), putpwent() writes a line on the stream f, which matches the format of /etc/passwd. 

putpwent() ignores the audit ID and audit flag in the passwd structure; and does not create the corresponding entries used in the secure password file (/.secure/etc/passwd).  putspwent() which produces entries that match the secure password file format, must be used to create these entries. 

DIAGNOSTICS

putpwent() returns non-zero if an error was detected during its operation; otherwise it returns zero. 

SEE ALSO

getpwent(3C), putspwent(3C), passwd(4), spasswd(4). 

STANDARDS CONFORMANCE

putpwent(): SVID2, XPG2

Hewlett-Packard Company  —  HP-UX Release 9.0: August 1992

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