.\" -*- 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 février 2026" "Linux man\-pages 6.18" .SH NOM getdirentries \- Lire le contenu d'un répertoire dans un format indépendant du système .SH BIBLIOTHÈQUE Bibliothèque C standard (\fIlibc\fP,\ \fI\-lc\fP) .SH SYNOPSIS .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 Exigences de macros de test de fonctionnalités pour la glibc (consulter \fBfeature_test_macros\fP(7)) : .RE .P \fBgetdirentries\fP() : .nf Depuis la glibc 2.19 : _DEFAULT_SOURCE glibc 2.19 et antérieures : _BSD_SOURCE || _SVID_SOURCE .fi .SH DESCRIPTION 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 "VALEUR RENVOYÉE" \fBgetdirentries\fP() renvoie le nombre d'octets lus, ou \fB0\fP à la fin du répertoire. En cas d'échec, \fB\-1\fP est renvoyé et \fIerrno\fP est positionné pour indiquer l'erreur. .SH ERREURS Consultez le code source de la bibliothèque Linux pour obtenir des détails. .SH ATTRIBUTS Pour une explication des termes utilisés dans cette section, consulter \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interface Attribut Valeur T{ .na .nh \fBgetdirentries\fP() T} Sécurité des threads MT\-Safe .TE .SH NORMES BSD. .SH NOTES Utiliser \fBopendir\fP(3) et \fBreaddir\fP(3) à la place. .SH "VOIR AUSSI" \fBlseek\fP(2), \fBopen\fP(2) .PP .SH TRADUCTION La traduction française de cette page de manuel a été créée par Christophe Blaess , Stéphan Rafin , Thierry Vignaud , François Micaux, Alain Portal , Jean-Philippe Guérard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas François , Florentin Duneau , Simon Paillard , Denis Barbier , David Prévot et Jean-Pierre Giraud . .PP Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. .PP Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .