Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ putspent(3C) — DG/UX R4.11MU05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

reentrant(3)

getspent(3C)

getpwent(3C)

putpwent(3C)



putspent(3C)                   DG/UX R4.11MU05                  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.  Given a pointer to
       a spwd structure created by the getspent routine (or the getspnam
       routine), the putspent routine writes a line on the stream fp, which
       matches the format of /etc/shadow.

       If the spmin, spmax, splstchg, spwarn, spinact, or spexpire
       field of the spwd structure is -1, or if spflag is 0, the
       corresponding /etc/shadow field is cleared.


   Considerations for Threads Programming
                     +---------+-----------------------------+
                     |         |                      async- |
                     |function | reentrant   cancel   cancel |
                     |         |             point     safe  |
                     +---------+-----------------------------+
                     |putspent |     N         -        -    |
                     +---------+-----------------------------+

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

DIAGNOSTICS
       The putspent routine returns non-zero if an error was detected during
       its operation, otherwise zero.

NOTES
       This routine is for internal use only, compatibility is not
       guaranteed.


Licensed material--property of copyright holder(s)

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