Provided by: manpages-es-dev_4.15.0-9_all
NOMBRE
fgetpwent - obtiene una entrada de un fichero de contraseñas
SINOPSIS
#include <stdio.h> #include <sys/types.h> #include <pwd.h> struct passwd *fgetpwent(FILE *flujo); Requisitos de Macros de Prueba de Características para glibc (véase feature_test_macros(7)): fgetpwent(): Since glibc 2.19: _DEFAULT_SOURCE Glibc 2.19 and earlier: _SVID_SOURCE
DESCRIPCIÓN
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 está definida en <pwd.h> como sigue: struct passwd { char *pw_name; /* nombre de usuario */ char *pw_passwd; /* contraseña del usuario */ uid_t pw_uid; /* identificación del usuario */ gid_t pw_gid; /* identificación 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 fichero con los datos de los usuarios
ATRIBUTOS
Para obtener una explicación de los términos usados en esta sección, véase attributes(7). ┌─────────────────────────────────────────┬────────────────────┬──────────────────────────┐ │Interfaz │ Atributo │ Valor │ ├─────────────────────────────────────────┼────────────────────┼──────────────────────────┤ │fgetpwent() │ Seguridad del hilo │ MT-Unsafe race:fgetpwent │ └─────────────────────────────────────────┴────────────────────┴──────────────────────────┘
CONFORME A
SVr4.
VÉASE TAMBIÉN
endpwent(3), fgetpwent_r(3), fopen(3), getpw(3), getpwent(3), getpwnam(3), getpwuid(3), putpwent(3), setpwent(3), passwd(5)
COLOFÓN
Esta página es parte de la versión 5.13 del proyecto Linux man-pages. Puede encontrar una descripción del proyecto, información sobre cómo informar errores y la última versión de esta página en https://www.kernel.org/doc/man-pages/.
TRADUCCIÓN
La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García <gerardo.aburruzaga@uca.es> Esta traducción es documentación libre; lea la GNU General Public License Version 3 ⟨https://www.gnu.org/licenses/gpl-3.0.html⟩ o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a ⟨debian-l10n-spanish@lists.debian.org⟩.