Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getspent(3X)



PUTSPENT(3X-SVR3)   RISC/os Reference Manual    PUTSPENT(3X-SVR3)



NAME
     putspent - write shadow password file entry

SYNOPSIS
     #include <shadow.h>

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

DESCRIPTION
     The putspent routine is the inverse of getspent(3X).  Given
     a pointer to a spwd structure created by the getspent rou-
     tine (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, or sp_lstchg field of the spwd struc-
     ture is -1, the corresponding /etc/shadow field is cleared.

SEE ALSO
     getspent(3X).

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

WARNING
     If a program not otherwise using standard I/O uses this rou-
     tine, the size of the program will increase more than might
     be expected.

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





















                        Printed 11/19/92                   Page 1



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