Manual Pages for Linux CentOS command on man putpwent
MyWebUniversity

Manual Pages for Linux CentOS command on man putpwent

PUTPWENT(3) Linux Programmer's Manual PUTPWENT(3)

NAME

putpwent - write a password file entry SYNOPSIS

#include

#include

#include int putpwent(const struct passwd *p, FILE *stream); Feature Test Macro Requirements for glibc (see featuretestmacros(7)): putpwent(): SVIDSOURCE DESCRIPTION The putpwent() function writes a password entry from the structure p in the file associated with stream. The passwd structure is defined in as follows: struct passwd { char *pwname; /* username */ char *pwpasswd; /* user password */ uidt pwuid; /* user ID */ gidt pwgid; /* group ID */ char *pwgecos; /* real name */ char *pwdir; /* home directory */ char *pwshell; /* shell program */ }; RETURN VALUE

The putpwent() function returns 0 on success, or -1 if an error occurs. In the event of an error, errno is set to indicate the cause. ERRORS EINVAL Invalid (NULL) argument given. CONFORMING TO SVr4. SEE ALSO endpwent(3), fgetpwent(3), getpw(3), getpwent(3), getpwnam(3), getp‐ wuid(3), setpwent(3) COLOPHON

This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can

be found at http://www.kernel.org/doc/man-pages/.

GNU 2013-04-19 PUTPWENT(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™