*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> putspent (3c)              


putspent(3C)							  putspent(3C)

NAME    [Toc]    [Back]

     putspent -	write shadow password file entry

SYNOPSIS    [Toc]    [Back]

     #include <shadow.h>

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

DESCRIPTION    [Toc]    [Back]

     The putspent routine is the inverse of getspent.  Given a pointer to a
     spwd structure created by the getspent routine (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, sp_lstchg, sp_warn,	sp_inact, or sp_expire field
     of	the spwd structure is -1, or if	sp_flag	is 0, the corresponding
     /etc/shadow field is cleared.

SEE ALSO    [Toc]    [Back]

     getspent(3C), getpwent(3C), putpwent(3C).

DIAGNOSTICS    [Toc]    [Back]

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

NOTES    [Toc]    [Back]

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

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
getspent IRIX manipulate shadow password file entry
vipw Linux edit the password, group, shadow-password, or shadow-group file.
putpwent IRIX write password file entry
putpwent Linux write a password file entry
shadow IRIX shadow password file
shadow HP-UX shadow password file
getpwnam Linux get password file entry
getpwent IRIX get password file entry
getpwent Linux get password file entry
fgetpwent Linux get password file entry
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service