Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

putpwent(3) [ultrix man page]

putpwent(3)						     Library Functions Manual						       putpwent(3)

Name
       putpwent - write password file entry

Syntax
       #include <pwd.h>

       int putpwent (p, f)
       struct passwd *p;
       FILE *f;

Description
       The  subroutine	is  the inverse of Given a pointer to a passwd structure created by (or or writes a line on the stream f which matches the
       format of

Diagnostics
       The subroutine returns non-zero if an error was detected during its operation, otherwise zero.  The routine uses <stdio.h>, which causes it
       to increase the size of programs, not otherwise using standard I/O, more than might be expected.

																       putpwent(3)

Check Out this Related Man Page

putpwent(3C)						   Standard C Library Functions 					      putpwent(3C)

NAME
putpwent - write password file entry SYNOPSIS
#include <pwd.h> int putpwent(const struct passwd *p, FILE *f); DESCRIPTION
The putpwent() function is the inverse of getpwent(). See getpwnam(3C). Given a pointer to a passwd structure created by getpwent(), getp- wuid(), or getpwnam(), putpwent() writes a line on the stream f that matches the format of /etc/passwd. RETURN VALUES
The putpwent() function returns a non-zero value if an error was detected during its operation. Otherwise, it returns 0. USAGE
The putpwent() function is of limited utility, since most password files are maintained as Network Information Service (NIS) files that cannot be updated with this function. For this reason, the use of this function is discouraged. If used at all, it should be used with put- spent(3C) to update the shadow file. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |Unsafe | +-----------------------------+-----------------------------+ SEE ALSO
getpwnam(3C), putspent(3C), attributes(5) SunOS 5.11 29 Dec 1996 putpwent(3C)
Man Page