|
|||||||
|
|
GETGRENTSection: Manual del Programador de Linux (3)Updated: 26 Enero 1998 Index Return to Main Contents NOMBREgetgrent, setgrent, endgrent - obtiene una entrada del fichero de gruposSINOPSIS#include <grp.h> #include <sys/types.h> struct group *getgrent(void); void setgrent(void); void endgrent(void); DESCRIPCIÓNLa función getgrent() devuelve un puntero a una estructura que contiene la información de grupo de /etc/group. La primera vez que se la llama devuelve la primera entrada; a partir de ahí devuelve las entradas sucesivas.La función setgrent() rebobina el apuntador de posición del fichero al principio del fichero /etc/group. La función endgrent() cierra el fichero /etc/group. La estructura group se define en <grp.h> como sigue:
VALOR DEVUELTOLa función getgrent() devuelve la dirección de la estructura con información del grupo, o NULL si no hay más entradas o ha ocurrido un error.ERRORES
FICHEROS
CONFORME ASVID 3, BSD 4.3VÉASE TAMBIÉNfgetgrent(3), getgrnam(3), getgrgid(3)
Index | ||||||
|
|
|
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account Document on this page is part of "Linuxinfor Man Pages in HTML Format: man3". See Index Page for more info about Authorship and Copyright. 1999-2008 Linuxinfor.com. No rights reserved. |