putpwent(3) Library Functions Manual putpwent(3) putpwent - (libc -lc) #include #include #include int putpwent(const struct passwd *restrict p, FILE *restrict stream); glibc ( feature_test_macros(7)): putpwent(): glibc 2.19: _DEFAULT_SOURCE glibc 2.19 : _SVID_SOURCE putpwent() p stream. passwd : struct passwd { char *pw_name; /* */ char *pw_passwd; /* */ uid_t pw_uid; /* */ gid_t pw_gid; /* */ char *pw_gecos; /* */ char *pw_dir; /* */ char *pw_shell; /* */ }; putpwent() 0 . -1 errno . EINVAL (NULL). attributes(7). +----------------------+------------------------------------+---------------------------------------------------------------------------------------------+ | | | | +----------------------+------------------------------------+---------------------------------------------------------------------------------------------+ |putpwent() | | (locale) (MT-Safe) | +----------------------+------------------------------------+---------------------------------------------------------------------------------------------+ . SVr4. endpwent(3), fgetpwent(3), getpw(3), getpwent(3), getpwnam(3), getpwuid(3), setpwent(3) 3 . . : . 6.18 8 2026 putpwent(3)