getdirentries(3) Library Functions Manual getdirentries(3) NOMBRE getdirentries - obtiene entradas de directorio en un formato independiente del sistema de ficheros BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include ssize_t getdirentries(size_t size; int fd, char buf[restrict size], size_t size, off_t *restrict basep); Requisitos de Macros de Prueba de Caracteristicas para glibc (vease feature_test_macros(7)): getdirentries(): A partir de glibc 2.19: _DEFAULT_SOURCE Anteriores a glibc 2.19: _BSD_SOURCE || _SVID_SOURCE DESCRIPCION Read directory entries from the directory specified by fd into buf. At most size bytes are read. Reading starts at offset *basep, and *basep is updated with the new position after reading. VALOR DEVUELTO getdirentries() returns the number of bytes read or zero when at the end of the directory. If an error occurs, -1 is returned, and errno is set to indicate the error. ERRORES Vea el codigo fuente de la biblioteca de Linux para los detalles. ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +-----------------------------+--------------------+-------------------+ |Interfaz | Atributo | Valor | +-----------------------------+--------------------+-------------------+ |getdirentries() | Seguridad del hilo | Multi-hilo seguro | +-----------------------------+--------------------+-------------------+ ESTANDARES BSD. NOTAS Use opendir(3) and readdir(3) instead. VEASE TAMBIEN lseek(2), open(2) 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 . Linux man-pages 6.18 8 Febrero 2026 getdirentries(3)