Man page - fgetgrent(3)

Packages contains this manual

Available languages:

en fr pt_BR es pl ja ru ro de

Manual

fgetgrent

NOME
BIBLIOTECA
SINOPSE
DESCRIÇÃO
VALOR DE RETORNO
ERROS
ATRIBUTOS
PADRÕES
HISTÓRICO
VEJA TAMBÉM
TRADUÇÃO

NOME

fgetgrent - obtém entrada de arquivo de grupo

BIBLIOTECA

Biblioteca C PadrĂŁo ( libc , -lc )

SINOPSE

#include <stdio.h>
#include <sys/types.h>
#include <grp.h>

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

DESCRIÇÃO

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 Ă© definida em <grp.h> , 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 explicação dos termos usados nesta seção, consulte attributes (7).

Image grohtml-3940031-1.png

PADRÕES

None.

HISTÓRICO

SVr4.

VEJA TAMBÉM

endgrent (3), fgetgrent_r (3), fopen (3), getgrent (3), getgrgid (3), getgrnam (3), putgrent (3), setgrent (3), group (5)

TRADUÇÃO

A tradução para portuguĂȘs brasileiro desta pĂĄgina man foi criada por Felipe M Pereira <Felipe.Pereira@ic.unicamp.br> e AndrĂ© Luiz Fassone <lonely_wolf@ig.com.br>

Esta tradução Ă© uma documentação livre; leia a Licença PĂșblica Geral GNU VersĂŁo 3 ou posterior para as condiçÔes de direitos autorais. Nenhuma responsabilidade Ă© aceita.

Se vocĂȘ encontrar algum erro na tradução desta pĂĄgina de manual, envie um e-mail para a lista de discussĂŁo de tradutores .