fgetgrent(3) Library Functions Manual fgetgrent(3) NOME fgetgrent - obtem entrada de arquivo de grupo BIBLIOTECA Biblioteca C Padrao (libc, -lc) SINOPSE #include #include #include struct group *fgetgrent(FILE *stream); Requisitos de macro de teste de recursos para o glibc (consulte feature_test_macros(7)): fgetgrent(): Desde o glibc 2.19: _DEFAULT_SOURCE glibc 2.19 e anterior: _SVID_SOURCE DESCRICAO The fgetgrent() function returns a pointer to a structure containing the group information from the file referred to by stream. The first time it is called it returns the first entry; thereafter, it returns successive entries. The file referred to by stream must have the same format as /etc/group (see group(5)). A estrutura de group e definida em , conforme abaixo: struct group { char *gr_name; /* group name */ char *gr_passwd; /* group password */ gid_t gr_gid; /* group ID */ char **gr_mem; /* NULL-terminated array of pointers to names of group members */ }; VALOR DE RETORNO 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. ERROS ENOMEM Insufficient memory to allocate group structure. ATRIBUTOS Para uma explicacao dos termos usados nesta secao, consulte attributes(7). +---------------------------+---------------+--------------------------+ |Interface | Atributo | Valor | +---------------------------+---------------+--------------------------+ |fgetgrent() | Thread safety | MT-Unsafe race:fgetgrent | +---------------------------+---------------+--------------------------+ PADROES None. HISTORICO SVr4. VEJA TAMBEM endgrent(3), fgetgrent_r(3), fopen(3), getgrent(3), getgrgid(3), getgrnam(3), putgrent(3), setgrent(3), group(5) TRADUCAO A traducao para portugues brasileiro desta pagina man foi criada por Felipe M Pereira e Andre Luiz Fassone Esta traducao e uma documentacao livre; leia a Licenca Publica Geral GNU Versao 3 ou posterior para as condicoes de direitos autorais. Nenhuma responsabilidade e aceita. Se voce encontrar algum erro na traducao desta pagina de manual, envie um e-mail para a lista de discussao de tradutores . Linux man-pages 6.06 31 outubro 2023 fgetgrent(3)