Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ putspent(3C) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpwent(3C)

getspent(3G)

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.  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 sp_min, sp_max, sp_lstchg, sp_warn, sp_inact, or
             sp_expire field of the spwd structure is -1, or if sp_flag is
             0, the corresponding /etc/shadow field is cleared.

          Return Values
             The putspent routine returns non-zero if an error was detected
             during its operation; otherwise it returns zero.

       REFERENCES
             getpwent(3C), getspent(3G), putpwent(3C)

       NOTICES
             This routine is for internal use only; compatibility is not
             guaranteed.





















                           Copyright 1994 Novell, Inc.               Page 1








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