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.