Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ putspent(3C) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpwent(3C)

getspent(3C)

putpwent(3C)

putspent(3C)                                                   putspent(3C)

NAME
     putspent - write shadow password file entry

SYNOPSIS
     #include <shadow.h>

     int putspent(const struct spwd *p, FILE *fp);

DESCRIPTION
     The putspent() routine is the inverse of getspent(). p is a pointer to
     a spwd structure created by getspent() or getspnam(). putspent()
     writes the details of this spwd as a line on the stream fp. This line
     matches the format of the shadow password file, /etc/shadow.

     If the spmin, spmax, splstchg, spwarn, spinact, or spexpire
     field of the spwd structure is -1, or if spflag is 0, the correspond-
     ing field of the entry written on the stream fp is cleared.

RESULT
     putspent() returns non-zero if an error was detected during its opera-
     tion, otherwise zero.

SEE ALSO
     getpwent(3C), getspent(3C), putpwent(3C).































Page 1                       Reliant UNIX 5.44                Printed 11/98

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