putpwent(3c) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

putpwent(3c)

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(3C). Given a pointer
       to a passwd structure created by getpwent(), getpwuid(), or getpwnam(),
       putpwent()  writes  a  line  on the stream f that matches the format of
       passwd(5).

RETURN VALUES
       The putpwent() function returns a non-zero value if an  error  was  de‐
       tected during its operation. Otherwise, it returns 0.

USAGE
       The  putpwent() function is of limited utility, since most password en‐
       tries are maintained in LDAP or NIS repositories that cannot be updated
       with this function. For this reason, the use of this function  is  dis‐
       couraged. If used at all, it should be used with putspent(3C) to update
       the shadow file.

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ MT-LevelUnsafe


SEE ALSO
       getpwnam(3C), putspent(3C), passwd(5), attributes(7)

Oracle Solaris 11.4               6 Oct 2022                      putpwent(3C)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3