fgetgrent(3) Library Functions Manual fgetgrent(3) fgetgrent - LIBRARY Standard C library (libc, -lc) #include #include #include struct group *fgetgrent(FILE *stream); glibc (. feature_test_macros(7)): fgetgrent(): glibc 2.19: _DEFAULT_SOURCE glibc 2.19 : _SVID_SOURCE fgetgrent() , , stream. ; . , stream, /etc/group ( group(5)). group : struct group { char *gr_name; /* */ char *gr_passwd; /* */ gid_t gr_gid; /* ID */ char **gr_mem; /* , , NULL */ }; The fgetgrent() function returns a pointer to a group structure, or NULL if there are no more entries or an error occurs. In the event of an error, errno is set to indicate the error. ENOMEM group. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |fgetgrent() | | MT-Unsafe race:fgetgrent | +----------------------------+----------------------------------------------------------+--------------------------+ None. SVr4. . endgrent(3), fgetgrent_r(3), fopen(3), getgrent(3), getgrgid(3), getgrnam(3), putgrent(3), setgrent(3), group(5) Azamat Hackimov , Dmitry Bolkhovskikh , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . fgetgrent(3)