putspent.3c (2010 09)

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).
˜
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (2 pages)