Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > P

putspent(3C)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

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). \" ~

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.