HP-UX Reference (11i v2 03/08) - 3 Library Functions N-Z (vol 7)

p
putspent(3C) putspent(3C)
NAME
putspent - write shadow password file entry
SYNOPSIS
#include <shadow.h>
int putspent (const struct spwd *sp, FILE *f);
DESCRIPTION
putspent() is the inverse of getspent(). See getspent (3C). Given a pointer to an
spwd structure
as created by the
getspent() or getspnam()
functions, putspent() writes a line on the stream f,
which matches the format of
/etc/shadow.
APPLICATION USAGE
In a multithreaded application,
putspent() is thread-safe. It is not async-cancel-safe. A cancellation
point may occur when a thread is executing
putspent().
RETURN VALUE
putspent() returns non-zero if an error was detected during its operation. Otherwise it returns zero.
FILES
/etc/shadow shadow password file.
SEE ALSO
getspent(3C), shadow(4).
˜
Section 3830 Hewlett-Packard Company 1 HP-UX 11i Version 2: August 2003