fgetpwent(3) Library Functions Manual fgetpwent(3) NOMBRE fgetpwent - obtiene una entrada de un fichero de contrasenas BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include #include #include struct passwd *fgetpwent(FILE *flujo); Requisitos de Macros de Prueba de Caracteristicas para glibc (vease feature_test_macros(7)): fgetpwent(): A partir de glibc 2.19: _DEFAULT_SOURCE En glibc 2.19 y anteriores: _SVID_SOURCE DESCRIPCION The fgetpwent() function returns a pointer to a structure containing the broken out fields of a line in the file 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/passwd (see passwd(5)). La estructura passwd se define en asi: struct passwd { char *pw_name; /* nombre de usuario */ char *pw_passwd; /* contrasena del usuario */ uid_t pw_uid; /* identificacion del usuario */ gid_t pw_gid; /* identificacion del grupo */ char *pw_gecos; /* nombre real */ char *pw_dir; /* directorio inicial */ char *pw_shell; /* programa `shell' */ }; VALOR DEVUELTO The fgetpwent() function returns a pointer to a passwd 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. ERRORES ENOMEM Memoria insuficiente para alojar la estructura passwd. ARCHIVOS /etc/passwd archivo con los datos de las cuentas de usuario ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +----------------------+--------------------+--------------------------+ |Interfaz | Atributo | Valor | +----------------------+--------------------+--------------------------+ |fgetpwent() | Seguridad del hilo | MT-Unsafe race:fgetpwent | +----------------------+--------------------+--------------------------+ ESTANDARES None. HISTORIAL SVr4. VEASE TAMBIEN endpwent(3), fgetpwent_r(3), fopen(3), getpw(3), getpwent(3), getpwnam(3), getpwuid(3), putpwent(3), setpwent(3), passwd(5) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Gerardo Aburruzaga Garcia Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de manual de Linux 6.06 31 Octubre 2023 fgetpwent(3)