putpwent(3) Library Functions Manual putpwent(3) putpwent - LIBRARY Standard C library (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; /* */ }; The putpwent() function returns 0 on success. On failure, it returns -1, and errno is set to indicate the error. EINVAL (NULL) . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |putpwent() | | MT-Safe locale | +----------------------------+----------------------------------------------------------+--------------------------+ None. SVr4. . endpwent(3), fgetpwent(3), getpw(3), getpwent(3), getpwnam(3), getpwuid(3), setpwent(3) Alexey, Azamat Hackimov , kogamatranslator49 , Kogan, Max Is , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . putpwent(3)