| 1 |
# French translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003. |
| 5 |
# Stéphan Rafin <[email protected]>, 2002. |
| 6 |
# Thierry Vignaud <[email protected]>, 1999, 2002. |
| 7 |
# François Micaux, 2002. |
| 8 |
# Alain Portal <[email protected]>, 2003-2008. |
| 9 |
# Jean-Philippe Guérard <[email protected]>, 2005-2006. |
| 10 |
# Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007. |
| 11 |
# Julien Cristau <[email protected]>, 2006-2007. |
| 12 |
# Thomas Huriaux <[email protected]>, 2006-2008. |
| 13 |
# Nicolas François <[email protected]>, 2006-2008. |
| 14 |
# Florentin Duneau <[email protected]>, 2006-2010. |
| 15 |
# Simon Paillard <[email protected]>, 2006. |
| 16 |
# Denis Barbier <[email protected]>, 2006, 2010. |
| 17 |
# David Prévot <[email protected]>, 2010-2014. |
| 18 |
# Jean-Philippe MENGUAL <[email protected]>, 2020-2024. |
| 19 |
msgid "" |
| 20 |
msgstr "" |
| 21 |
"Project-Id-Version: manpages-l10n 4.24.0\n" |
| 22 |
"POT-Creation-Date: 2026-06-05 06:25+0200\n" |
| 23 |
"PO-Revision-Date: 2024-11-05 18:14+0100\n" |
| 24 |
"Last-Translator: Jean-Philippe MENGUAL <[email protected]>\n" |
| 25 |
"Language-Team: French <[email protected]>\n" |
| 26 |
"Language: fr\n" |
| 27 |
"MIME-Version: 1.0\n" |
| 28 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 29 |
"Content-Transfer-Encoding: 8bit\n" |
| 30 |
"Plural-Forms: nplurals=2; plural=n > 1;\n" |
| 31 |
"X-Generator: Lokalize 22.12.3\n" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 35 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 36 |
#, no-wrap |
| 37 |
msgid "getdents" |
| 38 |
msgstr "getdents" |
| 39 |
|
| 40 |
#. type: TH |
| 41 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "2026-04-08" |
| 44 |
msgstr "8 avril 2026" |
| 45 |
|
| 46 |
#. type: TH |
| 47 |
#: archlinux debian-unstable |
| 48 |
#, no-wrap |
| 49 |
msgid "Linux man-pages 6.18" |
| 50 |
msgstr "Pages du manuel de Linux 6.18" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "NAME" |
| 57 |
msgstr "NOM" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 61 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "getdents, getdents64 - get directory entries" |
| 63 |
msgstr "getdents, getdents64 - Obtenir les points d'entrée d'un répertoire" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "LIBRARY" |
| 70 |
msgstr "BIBLIOTHÈQUE" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 74 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 76 |
msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)" |
| 77 |
|
| 78 |
#. type: SH |
| 79 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 80 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
#, no-wrap |
| 82 |
msgid "SYNOPSIS" |
| 83 |
msgstr "SYNOPSIS" |
| 84 |
|
| 85 |
#. type: Plain text |
| 86 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 87 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
#, no-wrap |
| 89 |
msgid "" |
| 90 |
"B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n" |
| 91 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 92 |
msgstr "" |
| 93 |
"B<#include E<lt>sys/syscall.hE<gt>> /* Définition des constantes B<SYS_*> */\n" |
| 94 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 95 |
|
| 96 |
#. type: Plain text |
| 97 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 98 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 99 |
#, no-wrap |
| 100 |
msgid "" |
| 101 |
"B<long syscall(SYS_getdents, unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n" |
| 102 |
"B< unsigned int >I<count>B<);>\n" |
| 103 |
msgstr "" |
| 104 |
"B<long syscall(SYS_getdents, unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n" |
| 105 |
"B< unsigned int >I<count>B<);>\n" |
| 106 |
|
| 107 |
#. type: Plain text |
| 108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 110 |
#, no-wrap |
| 111 |
msgid "" |
| 112 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 113 |
"B<#include E<lt>dirent.hE<gt>>\n" |
| 114 |
msgstr "" |
| 115 |
"B<#define _GNU_SOURCE> /* Voir feature_test_macros(7) */\n" |
| 116 |
"B<#include E<lt>dirent.hE<gt>>\n" |
| 117 |
|
| 118 |
#. type: Plain text |
| 119 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 120 |
#: opensuse-tumbleweed |
| 121 |
#, fuzzy, no-wrap |
| 122 |
#| msgid "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n" |
| 123 |
msgid "" |
| 124 |
"B<ssize_t getdents64(>size_t count;\n" |
| 125 |
"B< int >I<fd>B<, void >I<dirp>B<[>I<count>B<], size_t >I<count>B<);>\n" |
| 126 |
msgstr "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n" |
| 127 |
|
| 128 |
#. type: Plain text |
| 129 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 130 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 131 |
msgid "" |
| 132 |
"I<Note>: glibc provides no wrapper for B<getdents>(), necessitating the use " |
| 133 |
"of B<syscall>(2)." |
| 134 |
msgstr "" |
| 135 |
"I<Remarque> : la glibc ne fournit pas de fonction autour de B<getdents>(), " |
| 136 |
"nécessitant l'utilisation de B<syscall>(2)." |
| 137 |
|
| 138 |
#. type: Plain text |
| 139 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 140 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 141 |
msgid "" |
| 142 |
"I<Note>: There is no definition of I<struct linux_dirent> in glibc; see " |
| 143 |
"NOTES." |
| 144 |
msgstr "" |
| 145 |
"I<Remarque> : il n'existe pas de définition de I<struct linux_dirent> dans " |
| 146 |
"la glibc ; voir les NOTES." |
| 147 |
|
| 148 |
#. type: SH |
| 149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 150 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 151 |
#, no-wrap |
| 152 |
msgid "DESCRIPTION" |
| 153 |
msgstr "DESCRIPTION" |
| 154 |
|
| 155 |
#. type: Plain text |
| 156 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 157 |
#, fuzzy |
| 158 |
#| msgid "" |
| 159 |
#| "These are not the interfaces you are interested in. Look at " |
| 160 |
#| "B<readdir>(3) for the POSIX-conforming C library interface. This page " |
| 161 |
#| "documents the bare kernel system call interfaces." |
| 162 |
msgid "" |
| 163 |
"These are not the interfaces you are interested in. Look at B<readdir>(3) " |
| 164 |
"for the POSIX-conforming C library interface." |
| 165 |
msgstr "" |
| 166 |
"Ce ne sont pas des interfaces qui vous intéressent. Veuillez regarder " |
| 167 |
"B<readdir>(3) pour l'interface de la fonction de même nom de la bibliothèque " |
| 168 |
"C conforme à la spécification POSIX. Cette page documente les interfaces de " |
| 169 |
"l'appel système du noyau." |
| 170 |
|
| 171 |
#. type: SS |
| 172 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 173 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 174 |
#, no-wrap |
| 175 |
msgid "getdents()" |
| 176 |
msgstr "getdents()" |
| 177 |
|
| 178 |
#. type: Plain text |
| 179 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 180 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 181 |
msgid "" |
| 182 |
"The system call B<getdents>() reads several I<linux_dirent> structures from " |
| 183 |
"the directory referred to by the open file descriptor I<fd> into the buffer " |
| 184 |
"pointed to by I<dirp>. The argument I<count> specifies the size of that " |
| 185 |
"buffer." |
| 186 |
msgstr "" |
| 187 |
"L'appel système B<getdents>() lit plusieurs structures I<linux_dirent> " |
| 188 |
"depuis le répertoire référencé par le descripteur de fichier ouvert I<fd> et " |
| 189 |
"les place dans la zone de mémoire pointée par I<dirp>. Le paramètre I<count> " |
| 190 |
"spécifie la taille de cette zone mémoire." |
| 191 |
|
| 192 |
#. type: Plain text |
| 193 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 194 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 195 |
msgid "The I<linux_dirent> structure is declared as follows:" |
| 196 |
msgstr "La structure I<linux_dirent> est déclarée comme ceci\\ :" |
| 197 |
|
| 198 |
#. type: Plain text |
| 199 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 200 |
#: opensuse-tumbleweed |
| 201 |
#, fuzzy, no-wrap |
| 202 |
#| msgid "" |
| 203 |
#| "struct linux_dirent {\n" |
| 204 |
#| " unsigned long d_ino; /* Inode number */\n" |
| 205 |
#| " unsigned long d_off; /* Not an offset; see below */\n" |
| 206 |
#| " unsigned short d_reclen; /* Length of this I<linux_dirent> */\n" |
| 207 |
#| " char d_name[]; /* Filename (null-terminated) */\n" |
| 208 |
#| " /* length is actually (d_reclen - 2 -\n" |
| 209 |
#| " offsetof(struct linux_dirent, d_name)) */\n" |
| 210 |
#| " /*\n" |
| 211 |
#| " char pad; // Zero padding byte\n" |
| 212 |
#| " char d_type; // File type (only since Linux\n" |
| 213 |
#| " // 2.6.4); offset is (d_reclen - 1)\n" |
| 214 |
#| " */\n" |
| 215 |
#| "}\n" |
| 216 |
msgid "" |
| 217 |
"struct linux_dirent {\n" |
| 218 |
" unsigned long d_ino; /* Inode number */\n" |
| 219 |
" unsigned long d_off; /* Not an offset; see below */\n" |
| 220 |
" unsigned short d_reclen; /* Length of this \\f[I]linux_dirent\\fR */\n" |
| 221 |
" char d_name[]; /* Filename (null-terminated) */\n" |
| 222 |
" /* length is actually (d_reclen - 2 -\n" |
| 223 |
" offsetof(struct linux_dirent, d_name)) */\n" |
| 224 |
" /*\n" |
| 225 |
" char pad; // Zero padding byte\n" |
| 226 |
" char d_type; // File type (only since Linux\n" |
| 227 |
" // 2.6.4); offset is (d_reclen - 1)\n" |
| 228 |
" */\n" |
| 229 |
"}\n" |
| 230 |
msgstr "" |
| 231 |
"struct linux_dirent {\n" |
| 232 |
" unsigned long d_ino; /* Numéro d'inœud */\n" |
| 233 |
" unsigned long d_off; /* Pas une position ; voir plus bas */\n" |
| 234 |
" unsigned short d_reclen; /* Longueur de ce I<linux_dirent> */\n" |
| 235 |
" char d_name[]; /* Nom de fichier (fini par NULL) */\n" |
| 236 |
" /* La longueur est en fait (d_reclen - 2 -\n" |
| 237 |
" offsetof(struct linux_dirent, d_name)) */\n" |
| 238 |
" /*\n" |
| 239 |
" char pad; // Octet de remplissage avec des zéros\n" |
| 240 |
" char d_type; // Type de fichier (seulement depuis\n" |
| 241 |
" // Linux 2.6.4) ; sa position est\n" |
| 242 |
" // (d_reclen - 1)\n" |
| 243 |
" */\n" |
| 244 |
|
| 245 |
#. type: Plain text |
| 246 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 247 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 248 |
msgid "" |
| 249 |
"I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with " |
| 250 |
"no specific meaning to user space, though on older filesystems it used to be " |
| 251 |
"the distance from the start of the directory to the start of the next " |
| 252 |
"I<linux_dirent>; see B<readdir>(3). I<d_reclen> is the size of this entire " |
| 253 |
"I<linux_dirent>. I<d_name> is a null-terminated filename." |
| 254 |
msgstr "" |
| 255 |
"I<d_ino> est un numéro d'inœud. I<d_off> est une valeur spécifique au " |
| 256 |
"système de fichiers sans signification particulière pour l'espace " |
| 257 |
"utilisateur, bien que pour les systèmes de fichiers plus anciens, c'était la " |
| 258 |
"distance entre le début du répertoire et le début de la prochaine structure " |
| 259 |
"I<linux_dirent> ; voir B<readdir>(3). I<d_reclen> est la taille complète de " |
| 260 |
"I<linux_dirent>. I<d_name> est le nom de fichier terminé par un caractère " |
| 261 |
"NULL." |
| 262 |
|
| 263 |
#. type: Plain text |
| 264 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 265 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 266 |
msgid "" |
| 267 |
"I<d_type> is a byte at the end of the structure that indicates the file " |
| 268 |
"type. It contains one of the following values (defined in " |
| 269 |
"I<E<lt>dirent.hE<gt>>):" |
| 270 |
msgstr "" |
| 271 |
"I<d_type> est un octet placé à la fin de la structure qui indique le type du " |
| 272 |
"fichier. Il contient l'une des valeurs suivantes (définies dans " |
| 273 |
"I<E<lt>dirent.hE<gt>>) :" |
| 274 |
|
| 275 |
#. type: TP |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
#, no-wrap |
| 279 |
msgid "B<DT_BLK>" |
| 280 |
msgstr "B<DT_BLK>" |
| 281 |
|
| 282 |
#. type: Plain text |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
msgid "This is a block device." |
| 286 |
msgstr "Il s'agit d'un périphérique bloc." |
| 287 |
|
| 288 |
#. type: TP |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
#, no-wrap |
| 292 |
msgid "B<DT_CHR>" |
| 293 |
msgstr "B<DT_CHR>" |
| 294 |
|
| 295 |
#. type: Plain text |
| 296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 298 |
msgid "This is a character device." |
| 299 |
msgstr "Il s'agit d'un périphérique caractère." |
| 300 |
|
| 301 |
#. type: TP |
| 302 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 303 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 304 |
#, no-wrap |
| 305 |
msgid "B<DT_DIR>" |
| 306 |
msgstr "B<DT_DIR>" |
| 307 |
|
| 308 |
#. type: Plain text |
| 309 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 310 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 311 |
msgid "This is a directory." |
| 312 |
msgstr "Il s'agit d'un répertoire" |
| 313 |
|
| 314 |
#. type: TP |
| 315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 316 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 317 |
#, no-wrap |
| 318 |
msgid "B<DT_FIFO>" |
| 319 |
msgstr "B<DT_FIFO>" |
| 320 |
|
| 321 |
#. type: Plain text |
| 322 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 323 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 324 |
msgid "This is a named pipe (FIFO)." |
| 325 |
msgstr "Il s'agit d'un tube nommé (FIFO)." |
| 326 |
|
| 327 |
#. type: TP |
| 328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 330 |
#, no-wrap |
| 331 |
msgid "B<DT_LNK>" |
| 332 |
msgstr "B<DT_LNK>" |
| 333 |
|
| 334 |
#. type: Plain text |
| 335 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 336 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 337 |
msgid "This is a symbolic link." |
| 338 |
msgstr "Il s'agit d'un lien symbolique." |
| 339 |
|
| 340 |
#. type: TP |
| 341 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 342 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 343 |
#, no-wrap |
| 344 |
msgid "B<DT_REG>" |
| 345 |
msgstr "B<DT_REG>" |
| 346 |
|
| 347 |
#. type: Plain text |
| 348 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 349 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 350 |
msgid "This is a regular file." |
| 351 |
msgstr "Il s'agit d'un fichier ordinaire." |
| 352 |
|
| 353 |
#. type: TP |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
#, no-wrap |
| 357 |
msgid "B<DT_SOCK>" |
| 358 |
msgstr "B<DT_SOCK>" |
| 359 |
|
| 360 |
#. type: Plain text |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
msgid "This is a UNIX domain socket." |
| 364 |
msgstr "Il s'agit d'un socket de domaine UNIX." |
| 365 |
|
| 366 |
#. type: TP |
| 367 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 368 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 369 |
#, no-wrap |
| 370 |
msgid "B<DT_UNKNOWN>" |
| 371 |
msgstr "B<DT_UNKNOWN>" |
| 372 |
|
| 373 |
#. type: Plain text |
| 374 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 375 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 376 |
msgid "The file type is unknown." |
| 377 |
msgstr "Le type du fichier est inconnu." |
| 378 |
|
| 379 |
#. type: Plain text |
| 380 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 381 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 382 |
msgid "" |
| 383 |
"The I<d_type> field is implemented since Linux 2.6.4. It occupies a space " |
| 384 |
"that was previously a zero-filled padding byte in the I<linux_dirent> " |
| 385 |
"structure. Thus, on kernels up to and including Linux 2.6.3, attempting to " |
| 386 |
"access this field always provides the value 0 (B<DT_UNKNOWN>)." |
| 387 |
msgstr "" |
| 388 |
"Le champ I<d_type> est implémenté depuis Linux 2.6.4. Il occupe un espace " |
| 389 |
"qui était auparavant un octet de remplissage composé de zéros dans la " |
| 390 |
"structure I<linux_dirent>. Ainsi, sur les noyaux antérieurs ou égaux à " |
| 391 |
"2.6.3, les accès à ce champ fournissent toujours la valeur B<0> " |
| 392 |
"(B<DT_UNKNOWN>)." |
| 393 |
|
| 394 |
#. kernel 2.6.27 |
| 395 |
#. The same sentence is in readdir.2 |
| 396 |
#. type: Plain text |
| 397 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 398 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 399 |
msgid "" |
| 400 |
"Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) " |
| 401 |
"have full support for returning the file type in I<d_type>. All " |
| 402 |
"applications must properly handle a return of B<DT_UNKNOWN>." |
| 403 |
msgstr "" |
| 404 |
"Actuellement, seuls certains systèmes de fichiers (parmi lesquels Btrfs, " |
| 405 |
"ext2, ext3 et ext4) prennent complètement en charge le renvoi du type de " |
| 406 |
"fichier dans I<d_type>. Toutes les applications doivent gérer correctement " |
| 407 |
"une valeur de retour valant B<DT_UNKNOWN>." |
| 408 |
|
| 409 |
#. type: SS |
| 410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 411 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 412 |
#, no-wrap |
| 413 |
msgid "getdents64()" |
| 414 |
msgstr "getdents64()" |
| 415 |
|
| 416 |
#. type: Plain text |
| 417 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 418 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 419 |
msgid "" |
| 420 |
"The original Linux B<getdents>() system call did not handle large " |
| 421 |
"filesystems and large file offsets. Consequently, Linux 2.4 added " |
| 422 |
"B<getdents64>(), with wider types for the I<d_ino> and I<d_off> fields. In " |
| 423 |
"addition, B<getdents64>() supports an explicit I<d_type> field." |
| 424 |
msgstr "" |
| 425 |
"L'appel système B<getdents>() original de Linux ne permettait pas de gérer " |
| 426 |
"les gros systèmes de fichiers et les positions dans les gros fichiers. En " |
| 427 |
"conséquence, Linux 2.4 a ajouté B<getdents64>(), avec des types plus larges " |
| 428 |
"pour les champs I<d_ino> et I<d_off>. De plus, B<getdents64>() gère un champ " |
| 429 |
"explicite I<d_type>." |
| 430 |
|
| 431 |
#. type: Plain text |
| 432 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 433 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 434 |
msgid "" |
| 435 |
"The B<getdents64>() system call is like B<getdents>(), except that its " |
| 436 |
"second argument is a pointer to a buffer containing structures of the " |
| 437 |
"following type:" |
| 438 |
msgstr "" |
| 439 |
"L'appel système B<getdents64>() est comme B<getdents>(), sauf que son " |
| 440 |
"deuxième paramètre est un pointeur vers un tampon contenant des structures " |
| 441 |
"de type suivant :" |
| 442 |
|
| 443 |
#. type: Plain text |
| 444 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 445 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 446 |
#, no-wrap |
| 447 |
msgid "" |
| 448 |
"struct linux_dirent64 {\n" |
| 449 |
" ino64_t d_ino; /* 64-bit inode number */\n" |
| 450 |
" off64_t d_off; /* Not an offset; see getdents() */\n" |
| 451 |
" unsigned short d_reclen; /* Size of this dirent */\n" |
| 452 |
" unsigned char d_type; /* File type */\n" |
| 453 |
" char d_name[]; /* Filename (null-terminated) */\n" |
| 454 |
"};\n" |
| 455 |
msgstr "" |
| 456 |
"struct dirent {\n" |
| 457 |
" ino64_t d_ino; /* numéro d'inœud 64 bits */\n" |
| 458 |
" off64_t d_off; /* Pas une position ; voir plus bas */\n" |
| 459 |
" unsigned short d_reclen; /* longueur de ce dirent */\n" |
| 460 |
" unsigned char d_type; /* type du fichier */\n" |
| 461 |
" char d_name[]; /* nom du fichier (terminé par NULL) */\n" |
| 462 |
"};\n" |
| 463 |
|
| 464 |
#. type: SH |
| 465 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 466 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 467 |
#, no-wrap |
| 468 |
msgid "RETURN VALUE" |
| 469 |
msgstr "VALEUR RENVOYÉE" |
| 470 |
|
| 471 |
#. type: Plain text |
| 472 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 473 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 474 |
msgid "" |
| 475 |
"On success, the number of bytes read is returned. On end of directory, 0 is " |
| 476 |
"returned. On error, -1 is returned, and I<errno> is set to indicate the " |
| 477 |
"error." |
| 478 |
msgstr "" |
| 479 |
"En cas de réussite, le nombre d'octets est renvoyé. En fin de répertoire, " |
| 480 |
"B<0> est renvoyé. En cas d’erreur, B<-1> est renvoyé, auquel cas I<errno> " |
| 481 |
"est positionné pour indiquer l'erreur." |
| 482 |
|
| 483 |
#. type: SH |
| 484 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 485 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 486 |
#, no-wrap |
| 487 |
msgid "ERRORS" |
| 488 |
msgstr "ERREURS" |
| 489 |
|
| 490 |
#. type: TP |
| 491 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 492 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 493 |
#, no-wrap |
| 494 |
msgid "B<EBADF>" |
| 495 |
msgstr "B<EBADF>" |
| 496 |
|
| 497 |
#. type: Plain text |
| 498 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 499 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 500 |
msgid "Invalid file descriptor I<fd>." |
| 501 |
msgstr "I<fd> n'est pas un descripteur de fichier valable." |
| 502 |
|
| 503 |
#. type: TP |
| 504 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 505 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 506 |
#, no-wrap |
| 507 |
msgid "B<EFAULT>" |
| 508 |
msgstr "B<EFAULT>" |
| 509 |
|
| 510 |
#. type: Plain text |
| 511 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 512 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 513 |
msgid "Argument points outside the calling process's address space." |
| 514 |
msgstr "" |
| 515 |
"L'argument pointe en dehors de l'espace d'adressage du processus appelant." |
| 516 |
|
| 517 |
#. type: TP |
| 518 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 519 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 520 |
#, no-wrap |
| 521 |
msgid "B<EINVAL>" |
| 522 |
msgstr "B<EINVAL>" |
| 523 |
|
| 524 |
#. type: Plain text |
| 525 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 526 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 527 |
msgid "Result buffer is too small." |
| 528 |
msgstr "Le tampon de résultat est trop petit." |
| 529 |
|
| 530 |
#. type: TP |
| 531 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 532 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 533 |
#, no-wrap |
| 534 |
msgid "B<ENOENT>" |
| 535 |
msgstr "B<ENOENT>" |
| 536 |
|
| 537 |
#. type: Plain text |
| 538 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 539 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 540 |
msgid "No such directory." |
| 541 |
msgstr "Répertoire inexistant." |
| 542 |
|
| 543 |
#. type: TP |
| 544 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 545 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 546 |
#, no-wrap |
| 547 |
msgid "B<ENOTDIR>" |
| 548 |
msgstr "B<ENOTDIR>" |
| 549 |
|
| 550 |
#. type: Plain text |
| 551 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 552 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 553 |
msgid "File descriptor does not refer to a directory." |
| 554 |
msgstr "Le descripteur de fichier ne pointe pas sur un répertoire." |
| 555 |
|
| 556 |
#. type: SH |
| 557 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 558 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 559 |
#, no-wrap |
| 560 |
msgid "STANDARDS" |
| 561 |
msgstr "NORMES" |
| 562 |
|
| 563 |
#. type: Plain text |
| 564 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 565 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 566 |
msgid "None." |
| 567 |
msgstr "Aucun." |
| 568 |
|
| 569 |
#. type: SH |
| 570 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 571 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 572 |
#, no-wrap |
| 573 |
msgid "HISTORY" |
| 574 |
msgstr "HISTORIQUE" |
| 575 |
|
| 576 |
#. type: TP |
| 577 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 578 |
#, fuzzy, no-wrap |
| 579 |
#| msgid "B<getdents64>()" |
| 580 |
msgid "B<getdents>()" |
| 581 |
msgstr "B<getdents64>()" |
| 582 |
|
| 583 |
#. SVr4 documents additional ENOLINK, EIO error conditions. |
| 584 |
#. type: Plain text |
| 585 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 586 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 587 |
msgid "SVr4." |
| 588 |
msgstr "SVr4." |
| 589 |
|
| 590 |
#. type: TP |
| 591 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 592 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 593 |
#, no-wrap |
| 594 |
msgid "B<getdents64>()" |
| 595 |
msgstr "B<getdents64>()" |
| 596 |
|
| 597 |
#. type: Plain text |
| 598 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 599 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 600 |
msgid "glibc 2.30." |
| 601 |
msgstr "glibc 2.30." |
| 602 |
|
| 603 |
#. type: SH |
| 604 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 605 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 606 |
#, no-wrap |
| 607 |
msgid "NOTES" |
| 608 |
msgstr "NOTES" |
| 609 |
|
| 610 |
#. type: Plain text |
| 611 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 612 |
#, fuzzy |
| 613 |
#| msgid "" |
| 614 |
#| "glibc does not provide a wrapper for B<getdents>(); call B<getdents>() " |
| 615 |
#| "using B<syscall>(2). In that case you will need to define the " |
| 616 |
#| "I<linux_dirent> or I<linux_dirent64> structure yourself." |
| 617 |
msgid "" |
| 618 |
"glibc does not provide a wrapper for B<getdents>(); call B<getdents>() " |
| 619 |
"using B<syscall>(2). In that case you will need to define the " |
| 620 |
"I<linux_dirent> structure yourself." |
| 621 |
msgstr "" |
| 622 |
"Il n'existe pas d'enveloppe glibc pour B<getdents>(). Appelez B<getdents>() " |
| 623 |
"en utilisant B<syscall>(2). Dans ce cas, vous devrez définir vous-même la " |
| 624 |
"structure I<linux_dirent> ou I<linux_dirent64>." |
| 625 |
|
| 626 |
#. type: Plain text |
| 627 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 628 |
msgid "" |
| 629 |
"The B<getdents64>() system call accepts an B<unsigned int> argument " |
| 630 |
"I<count> and assumes that I<count> does not exceed B<INT_MAX>. The glibc " |
| 631 |
"wrapper function sets I<count> to B<INT_MAX> if it exceeds B<INT_MAX>. " |
| 632 |
"glibc defines a I<dirent64> structure, which is similar to I<linux_dirent64> " |
| 633 |
"but with a 256-byte I<d_name>." |
| 634 |
msgstr "" |
| 635 |
|
| 636 |
#. type: Plain text |
| 637 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 638 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 639 |
msgid "Probably, you want to use B<readdir>(3) instead of these system calls." |
| 640 |
msgstr "" |
| 641 |
"Vous voudrez probablement utiliser B<readdir>(3) à la place de ces appels " |
| 642 |
"système." |
| 643 |
|
| 644 |
#. type: Plain text |
| 645 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 646 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 647 |
msgid "These calls supersede B<readdir>(2)." |
| 648 |
msgstr "Ces appels remplacent B<readdir>(2)." |
| 649 |
|
| 650 |
#. type: SH |
| 651 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 652 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 653 |
#, no-wrap |
| 654 |
msgid "EXAMPLES" |
| 655 |
msgstr "EXEMPLES" |
| 656 |
|
| 657 |
#. FIXME The example program needs to be revised, since it uses the older |
| 658 |
#. getdents() system call and the structure with smaller field widths. |
| 659 |
#. type: Plain text |
| 660 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 661 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 662 |
msgid "" |
| 663 |
"The program below demonstrates the use of B<getdents>(). The following " |
| 664 |
"output shows an example of what we see when running this program on an ext2 " |
| 665 |
"directory:" |
| 666 |
msgstr "" |
| 667 |
"Le programme ci-dessous démontre l'utilisation de B<getdents>(). La sortie " |
| 668 |
"suivante montre un exemple de ce que donne le programme sur un répertoire " |
| 669 |
"ext2 :" |
| 670 |
|
| 671 |
#. type: Plain text |
| 672 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 673 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 674 |
#, no-wrap |
| 675 |
msgid "" |
| 676 |
"$B< ./a.out /testfs/>\n" |
| 677 |
"--------------- nread=120 ---------------\n" |
| 678 |
"inode# file type d_reclen d_off d_name\n" |
| 679 |
" 2 directory 16 12 .\n" |
| 680 |
" 2 directory 16 24 ..\n" |
| 681 |
" 11 directory 24 44 lost+found\n" |
| 682 |
" 12 regular 16 56 a\n" |
| 683 |
" 228929 directory 16 68 sub\n" |
| 684 |
" 16353 directory 16 80 sub2\n" |
| 685 |
" 130817 directory 16 4096 sub3\n" |
| 686 |
msgstr "" |
| 687 |
"$B< ./a.out /testfs/>\n" |
| 688 |
"--------------- nread=120 ---------------\n" |
| 689 |
"inode# file type d_reclen d_off d_name\n" |
| 690 |
" 2 directory 16 12 .\n" |
| 691 |
" 2 directory 16 24 ..\n" |
| 692 |
" 11 directory 24 44 lost+found\n" |
| 693 |
" 12 regular 16 56 a\n" |
| 694 |
" 228929 directory 16 68 sub\n" |
| 695 |
" 16353 directory 16 80 sub2\n" |
| 696 |
" 130817 directory 16 4096 sub3\n" |
| 697 |
|
| 698 |
#. type: SS |
| 699 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 700 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 701 |
#, no-wrap |
| 702 |
msgid "Program source" |
| 703 |
msgstr "Source du programme" |
| 704 |
|
| 705 |
#. type: Plain text |
| 706 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 707 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 708 |
#, no-wrap |
| 709 |
msgid "" |
| 710 |
"#define _GNU_SOURCE\n" |
| 711 |
"#include E<lt>dirent.hE<gt> /* Defines DT_* constants */\n" |
| 712 |
"#include E<lt>err.hE<gt>\n" |
| 713 |
"#include E<lt>fcntl.hE<gt>\n" |
| 714 |
"#include E<lt>stdint.hE<gt>\n" |
| 715 |
"#include E<lt>stdio.hE<gt>\n" |
| 716 |
"#include E<lt>stdlib.hE<gt>\n" |
| 717 |
"#include E<lt>sys/syscall.hE<gt>\n" |
| 718 |
"#include E<lt>sys/types.hE<gt>\n" |
| 719 |
"#include E<lt>unistd.hE<gt>\n" |
| 720 |
"\\&\n" |
| 721 |
"struct linux_dirent {\n" |
| 722 |
" unsigned long d_ino;\n" |
| 723 |
" off_t d_off;\n" |
| 724 |
" unsigned short d_reclen;\n" |
| 725 |
" char d_name[];\n" |
| 726 |
"};\n" |
| 727 |
"\\&\n" |
| 728 |
"#define BUF_SIZE 1024\n" |
| 729 |
"\\&\n" |
| 730 |
"int\n" |
| 731 |
"main(int argc, char *argv[])\n" |
| 732 |
"{\n" |
| 733 |
" int fd;\n" |
| 734 |
" char d_type;\n" |
| 735 |
" char buf[BUF_SIZE];\n" |
| 736 |
" long nread;\n" |
| 737 |
" struct linux_dirent *d;\n" |
| 738 |
"\\&\n" |
| 739 |
" fd = open(argc E<gt> 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n" |
| 740 |
" if (fd == -1)\n" |
| 741 |
" err(EXIT_FAILURE, \"open\");\n" |
| 742 |
"\\&\n" |
| 743 |
" for (;;) {\n" |
| 744 |
" nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n" |
| 745 |
" if (nread == -1)\n" |
| 746 |
" err(EXIT_FAILURE, \"getdents\");\n" |
| 747 |
"\\&\n" |
| 748 |
" if (nread == 0)\n" |
| 749 |
" break;\n" |
| 750 |
"\\&\n" |
| 751 |
" printf(\"--------------- nread=%ld ---------------\\[rs]n\", nread);\n" |
| 752 |
" printf(\"inode# file type d_reclen d_off d_name\\[rs]n\");\n" |
| 753 |
" for (size_t bpos = 0; bpos E<lt> nread;) {\n" |
| 754 |
" d = (struct linux_dirent *) (buf + bpos);\n" |
| 755 |
" printf(\"%8lu \", d-E<gt>d_ino);\n" |
| 756 |
" d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n" |
| 757 |
" printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n" |
| 758 |
" (d_type == DT_DIR) ? \"directory\" :\n" |
| 759 |
" (d_type == DT_FIFO) ? \"FIFO\" :\n" |
| 760 |
" (d_type == DT_SOCK) ? \"socket\" :\n" |
| 761 |
" (d_type == DT_LNK) ? \"symlink\" :\n" |
| 762 |
" (d_type == DT_BLK) ? \"block dev\" :\n" |
| 763 |
" (d_type == DT_CHR) ? \"char dev\" : \"???\");\n" |
| 764 |
" printf(\"%4d %10jd %s\\[rs]n\", d-E<gt>d_reclen,\n" |
| 765 |
" (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n" |
| 766 |
" bpos += d-E<gt>d_reclen;\n" |
| 767 |
" }\n" |
| 768 |
" }\n" |
| 769 |
"\\&\n" |
| 770 |
" exit(EXIT_SUCCESS);\n" |
| 771 |
"}\n" |
| 772 |
msgstr "" |
| 773 |
"#define _GNU_SOURCE\n" |
| 774 |
"#include E<lt>dirent.hE<gt> /* Définir les constantes DT_* */\n" |
| 775 |
"#include E<lt>err.hE<gt>\n" |
| 776 |
"#include E<lt>fcntl.hE<gt>\n" |
| 777 |
"#include E<lt>stdint.hE<gt>\n" |
| 778 |
"#include E<lt>stdio.hE<gt>\n" |
| 779 |
"#include E<lt>stdlib.hE<gt>\n" |
| 780 |
"#include E<lt>sys/syscall.hE<gt>\n" |
| 781 |
"#include E<lt>sys/types.hE<gt>\n" |
| 782 |
"#include E<lt>unistd.hE<gt>\n" |
| 783 |
"\\&\n" |
| 784 |
"struct linux_dirent {\n" |
| 785 |
" unsigned long d_ino;\n" |
| 786 |
" off_t d_off;\n" |
| 787 |
" unsigned short d_reclen;\n" |
| 788 |
" char d_name[];\n" |
| 789 |
"};\n" |
| 790 |
"\\&\n" |
| 791 |
"#define BUF_SIZE 1024\n" |
| 792 |
"\\&\n" |
| 793 |
"int\n" |
| 794 |
"main(int argc, char *argv[])\n" |
| 795 |
"{\n" |
| 796 |
" int fd;\n" |
| 797 |
" char d_type;\n" |
| 798 |
" char buf[BUF_SIZE];\n" |
| 799 |
" long nread;\n" |
| 800 |
" struct linux_dirent *d;\n" |
| 801 |
"\\&\n" |
| 802 |
" fd = open(argc E<gt> 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n" |
| 803 |
" if (fd == -1)\n" |
| 804 |
" err(EXIT_FAILURE, \"open\");\n" |
| 805 |
"\\&\n" |
| 806 |
" for (;;) {\n" |
| 807 |
" nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n" |
| 808 |
" if (nread == -1)\n" |
| 809 |
" err(EXIT_FAILURE, \"getdents\");\n" |
| 810 |
"\\&\n" |
| 811 |
" if (nread == 0)\n" |
| 812 |
" break;\n" |
| 813 |
"\\&\n" |
| 814 |
" printf(\"--------------- nread=%ld ---------------\\[rs]n\", nread);\n" |
| 815 |
" printf(\"inoeud# type de fichier d_reclen d_off d_name\\[rs]n\");\n" |
| 816 |
" for (size_t bpos = 0; bpos E<lt> nread;) {\n" |
| 817 |
" d = (struct linux_dirent *) (buf + bpos);\n" |
| 818 |
" printf(\"%8lu \", d-E<gt>d_ino);\n" |
| 819 |
" d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n" |
| 820 |
" printf(\"%-10s \", (d_type == DT_REG) ? \"régulier\" :\n" |
| 821 |
" (d_type == DT_DIR) ? \"répertoire\" :\n" |
| 822 |
" (d_type == DT_FIFO) ? \"FIFO\" :\n" |
| 823 |
" (d_type == DT_SOCK) ? \"socket\" :\n" |
| 824 |
" (d_type == DT_LNK) ? \"liens symboliques\" :\n" |
| 825 |
" (d_type == DT_BLK) ? \"bloc de périph\" :\n" |
| 826 |
" (d_type == DT_CHR) ? \"char dev\" : \"???\");\n" |
| 827 |
" printf(\"%4d %10jd %s\\[rs]n\", d-E<gt>d_reclen,\n" |
| 828 |
" (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n" |
| 829 |
" bpos += d-E<gt>d_reclen;\n" |
| 830 |
" }\n" |
| 831 |
" }\n" |
| 832 |
"\\&\n" |
| 833 |
" exit(EXIT_SUCCESS);\n" |
| 834 |
"}\n" |
| 835 |
|
| 836 |
#. SRC END |
| 837 |
#. type: SH |
| 838 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 839 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 840 |
#, no-wrap |
| 841 |
msgid "SEE ALSO" |
| 842 |
msgstr "VOIR AUSSI" |
| 843 |
|
| 844 |
#. type: Plain text |
| 845 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 846 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 847 |
msgid "B<readdir>(2), B<readdir>(3), B<inode>(7)" |
| 848 |
msgstr "B<readdir>(2), B<readdir>(3), B<inode>(7)" |
| 849 |
|
| 850 |
#. type: TH |
| 851 |
#: debian-trixie |
| 852 |
#, no-wrap |
| 853 |
msgid "2024-06-15" |
| 854 |
msgstr "15 juin 2024" |
| 855 |
|
| 856 |
#. type: TH |
| 857 |
#: debian-trixie |
| 858 |
#, no-wrap |
| 859 |
msgid "Linux man-pages 6.9.1" |
| 860 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 861 |
|
| 862 |
#. type: Plain text |
| 863 |
#: debian-trixie |
| 864 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 865 |
msgstr "Bibliothèque C standard (I<libc>, I<-lc>)" |
| 866 |
|
| 867 |
#. type: Plain text |
| 868 |
#: debian-trixie fedora-44 fedora-rawhide |
| 869 |
#, no-wrap |
| 870 |
msgid "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n" |
| 871 |
msgstr "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n" |
| 872 |
|
| 873 |
#. type: Plain text |
| 874 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 875 |
msgid "" |
| 876 |
"These are not the interfaces you are interested in. Look at B<readdir>(3) " |
| 877 |
"for the POSIX-conforming C library interface. This page documents the bare " |
| 878 |
"kernel system call interfaces." |
| 879 |
msgstr "" |
| 880 |
"Ce ne sont pas des interfaces qui vous intéressent. Veuillez regarder " |
| 881 |
"B<readdir>(3) pour l'interface de la fonction de même nom de la bibliothèque " |
| 882 |
"C conforme à la spécification POSIX. Cette page documente les interfaces de " |
| 883 |
"l'appel système du noyau." |
| 884 |
|
| 885 |
#. type: Plain text |
| 886 |
#: debian-trixie fedora-44 fedora-rawhide |
| 887 |
#, no-wrap |
| 888 |
msgid "" |
| 889 |
"struct linux_dirent {\n" |
| 890 |
" unsigned long d_ino; /* Inode number */\n" |
| 891 |
" unsigned long d_off; /* Not an offset; see below */\n" |
| 892 |
" unsigned short d_reclen; /* Length of this I<linux_dirent> */\n" |
| 893 |
" char d_name[]; /* Filename (null-terminated) */\n" |
| 894 |
" /* length is actually (d_reclen - 2 -\n" |
| 895 |
" offsetof(struct linux_dirent, d_name)) */\n" |
| 896 |
" /*\n" |
| 897 |
" char pad; // Zero padding byte\n" |
| 898 |
" char d_type; // File type (only since Linux\n" |
| 899 |
" // 2.6.4); offset is (d_reclen - 1)\n" |
| 900 |
" */\n" |
| 901 |
"}\n" |
| 902 |
msgstr "" |
| 903 |
"struct linux_dirent {\n" |
| 904 |
" unsigned long d_ino; /* Numéro d'inœud */\n" |
| 905 |
" unsigned long d_off; /* Pas une position ; voir plus bas */\n" |
| 906 |
" unsigned short d_reclen; /* Longueur de ce I<linux_dirent> */\n" |
| 907 |
" char d_name[]; /* Nom de fichier (fini par NULL) */\n" |
| 908 |
" /* La longueur est en fait (d_reclen - 2 -\n" |
| 909 |
" offsetof(struct linux_dirent, d_name)) */\n" |
| 910 |
" /*\n" |
| 911 |
" char pad; // Octet de remplissage avec des zéros\n" |
| 912 |
" char d_type; // Type de fichier (seulement depuis\n" |
| 913 |
" // Linux 2.6.4) ; sa position est\n" |
| 914 |
" // (d_reclen - 1)\n" |
| 915 |
" */\n" |
| 916 |
|
| 917 |
#. type: Plain text |
| 918 |
#: debian-trixie |
| 919 |
msgid "" |
| 920 |
"I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with " |
| 921 |
"no specific meaning to user space, though on older filesystems it used to be " |
| 922 |
"the distance from the start of the directory to the start of the next " |
| 923 |
"I<linux_dirent>; see B<readdir>(3)B<.> I<d_reclen> is the size of this " |
| 924 |
"entire I<linux_dirent>. I<d_name> is a null-terminated filename." |
| 925 |
msgstr "" |
| 926 |
"I<d_ino> est un numéro d'inœud. I<d_off> est une valeur spécifique au " |
| 927 |
"système de fichiers sans signification particulière pour l'espace " |
| 928 |
"utilisateur, bien que pour les systèmes de fichiers plus anciens, c'était la " |
| 929 |
"distance entre le début du répertoire et le début de la prochaine structure " |
| 930 |
"I<linux_dirent> ; voir B<readdir>(3)B<.> I<d_reclen> est la taille complète " |
| 931 |
"de I<linux_dirent>. I<d_name> est le nom de fichier terminé par un caractère " |
| 932 |
"NULL." |
| 933 |
|
| 934 |
#. type: Plain text |
| 935 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 936 |
msgid "" |
| 937 |
"glibc does not provide a wrapper for B<getdents>(); call B<getdents>() " |
| 938 |
"using B<syscall>(2). In that case you will need to define the " |
| 939 |
"I<linux_dirent> or I<linux_dirent64> structure yourself." |
| 940 |
msgstr "" |
| 941 |
"Il n'existe pas d'enveloppe glibc pour B<getdents>(). Appelez B<getdents>() " |
| 942 |
"en utilisant B<syscall>(2). Dans ce cas, vous devrez définir vous-même la " |
| 943 |
"structure I<linux_dirent> ou I<linux_dirent64>." |
| 944 |
|
| 945 |
#. type: TH |
| 946 |
#: fedora-44 fedora-rawhide |
| 947 |
#, no-wrap |
| 948 |
msgid "2024-11-17" |
| 949 |
msgstr "17 novembre 2024" |
| 950 |
|
| 951 |
#. type: TH |
| 952 |
#: fedora-44 fedora-rawhide |
| 953 |
#, no-wrap |
| 954 |
msgid "Linux man-pages 6.13" |
| 955 |
msgstr "Pages du manuel de Linux 6.13" |
| 956 |
|
| 957 |
#. type: TH |
| 958 |
#: mageia-cauldron |
| 959 |
#, no-wrap |
| 960 |
msgid "2026-02-08" |
| 961 |
msgstr "8 février 2026" |
| 962 |
|
| 963 |
#. type: TH |
| 964 |
#: mageia-cauldron |
| 965 |
#, no-wrap |
| 966 |
msgid "Linux man-pages 6.17" |
| 967 |
msgstr "Pages du manuel de Linux 6.17" |
| 968 |
|
| 969 |
#. type: TH |
| 970 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 971 |
#, no-wrap |
| 972 |
msgid "Linux man-pages (unreleased)" |
| 973 |
msgstr "Pages du manuel de Linux (non publiées)" |