.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993, Rickard E. Faith .\" Copyright 1991-1992, Free Software Foundation .\" Copyright, the authors of the Linux man-pages project .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH getdirentries 3 "8 Febrero 2026" "Linux man\-pages 6.18" .SH NOMBRE getdirentries \- obtiene entradas de directorio en un formato independiente del sistema de ficheros .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP,\ \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .P \fBssize_t getdirentries(\fPsize_t size; \fB int \fP\fIfd\fP\fB, char \fP\fIbuf\fP\fB[restrict \fP\fIsize\fP\fB], size_t \fP\fIsize\fP\fB,\fP \fB off_t *restrict \fP\fIbasep\fP\fB);\fP .fi .P .RS -4 Requisitos de Macros de Prueba de Características para glibc (véase \fBfeature_test_macros\fP(7)): .RE .P \fBgetdirentries\fP(): .nf A partir de glibc 2.19: _DEFAULT_SOURCE Anteriores a glibc 2.19: _BSD_SOURCE || _SVID_SOURCE .fi .SH DESCRIPCIÓN Read directory entries from the directory specified by \fIfd\fP into \fIbuf\fP. At most \fIsize\fP bytes are read. Reading starts at offset \fI*basep\fP, and \fI*basep\fP is updated with the new position after reading. .SH "VALOR DEVUELTO" \fBgetdirentries\fP() returns the number of bytes read or zero when at the end of the directory. If an error occurs, \-1 is returned, and \fIerrno\fP is set to indicate the error. .SH ERRORES Vea el código fuente de la biblioteca de Linux para los detalles. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBgetdirentries\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .SH ESTÁNDARES BSD. .SH NOTAS Use \fBopendir\fP(3) and \fBreaddir\fP(3) instead. .SH "VÉASE TAMBIÉN" \fBlseek\fP(2), \fBopen\fP(2) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .