table of contents
- trixie 4.27.0-1
- trixie-backports 4.29.1-1~bpo13+1
- testing 4.29.1-1
- unstable 4.29.1-1
| getdirentries(3) | Library Functions Manual | getdirentries(3) |
NOMBRE¶
getdirentries - obtiene entradas de directorio en un formato independiente del sistema de ficheros
BIBLIOTECA¶
Biblioteca Estándar C (libc, -lc)
SINOPSIS¶
#include <dirent.h>
ssize_t getdirentries(size_t size;
int fd, char buf[restrict size], size_t size,
off_t *restrict basep);
getdirentries():
A partir de glibc 2.19:
_DEFAULT_SOURCE
Anteriores a glibc 2.19:
_BSD_SOURCE || _SVID_SOURCE
DESCRIPCIÓN¶
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 código fuente de la biblioteca de Linux para los detalles.
ATRIBUTOS¶
Para obtener una explicación de los términos usados en esta sección, véase attributes(7).
| Interfaz | Atributo | Valor |
| getdirentries() | Seguridad del hilo | Multi-hilo seguro |
ESTÁNDARES¶
BSD.
NOTAS¶
Use opendir(3) and readdir(3) instead.
VÉASE TAMBIÉN¶
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 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.
| 7 Septiembre 2025 | Páginas de Manual de Linux 6.16 |