Debian Codegraph @

po/de/man2/getdents.2.po

raw
1 # German translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Helge Kreutzmann <[email protected]>, 2012, 2020, 2024, 2026.
5 # Martin Eberhard Schauer <[email protected]>, 2012.
6 # Mario Blättermann <[email protected]>, 2013, 2016, 2020, 2021, 2022, 2023.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: manpages-l10n 4.30.1\n"
10 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
11 "PO-Revision-Date: 2026-05-10 07:10+0200\n"
12 "Last-Translator: Helge Kreutzmann <[email protected]>\n"
13 "Language-Team: German <[email protected]>\n"
14 "Language: de\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=n != 1;\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "getdents"
25 msgstr "getdents"
26
27 #. type: TH
28 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-04-08"
31 msgstr "8. April 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr "Linux man-pages 6.18"
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr "BEZEICHNUNG"
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "getdents, getdents64 - get directory entries"
50 msgstr "getdents, getdents64 - Verzeichniseinträge ermitteln"
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 "LIBRARY"
57 msgstr "BIBLIOTHEK"
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr "Standard-C-Bibliothek (I<libc>,\\ I<-lc>)"
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 "SYNOPSIS"
70 msgstr "ÜBERSICHT"
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid ""
77 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
78 "B<#include E<lt>unistd.hE<gt>>\n"
79 msgstr ""
80 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition der B<SYS_*>-Konstanten */\n"
81 "B<#include E<lt>unistd.hE<gt>>\n"
82
83 #. type: Plain text
84 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
85 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<long syscall(SYS_getdents, unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n"
89 "B< unsigned int >I<count>B<);>\n"
90 msgstr ""
91 "B<long syscall(SYS_getdents, unsigned int >I<dd>B<, struct linux_dirent *>I<Verzz>B<,>\n"
92 "B< unsigned int >I<Zähler>B<);>\n"
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 #, no-wrap
98 msgid ""
99 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
100 "B<#include E<lt>dirent.hE<gt>>\n"
101 msgstr ""
102 "B<#define _GNU_SOURCE> /* siehe feature_test_macros(7) */\n"
103 "B<#include E<lt>dirent.hE<gt>>\n"
104
105 # WONTFIX B<ssize_t getdents64(>size_t count; → B<ssize_t getdents64(size_t >I<count>B<;> // forward declaration
106 #. type: Plain text
107 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
108 #: opensuse-tumbleweed
109 #, no-wrap
110 msgid ""
111 "B<ssize_t getdents64(>size_t count;\n"
112 "B< int >I<fd>B<, void >I<dirp>B<[>I<count>B<], size_t >I<count>B<);>\n"
113 msgstr ""
114 "B<ssize_t getdents64(>size_t Zähler;\n"
115 "B< int >I<dd>B<, void >I<Verzz>B<[>I<Zähler>B<], size_t >I<Zähler>B<);>\n"
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 msgid ""
121 "I<Note>: glibc provides no wrapper for B<getdents>(), necessitating the use "
122 "of B<syscall>(2)."
123 msgstr ""
124 "I<Hinweis>: Glibc stellt keinen Wrapper für B<getdents>() bereit; rufen Sie "
125 "es mittels B<syscall>(2) auf."
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 msgid ""
131 "I<Note>: There is no definition of I<struct linux_dirent> in glibc; see "
132 "NOTES."
133 msgstr ""
134 "I<Hinweis>: Es gibt in Glibc keine Definition von I<struct linux_dirent>; "
135 "siehe ANMERKUNGEN."
136
137 #. type: SH
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 #, no-wrap
141 msgid "DESCRIPTION"
142 msgstr "BESCHREIBUNG"
143
144 # Muss noch mit anderem Auftreten koordiniert werden.
145 #. type: Plain text
146 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
147 msgid ""
148 "These are not the interfaces you are interested in. Look at B<readdir>(3) "
149 "for the POSIX-conforming C library interface."
150 msgstr ""
151 "Dies sind nicht die Schnittstellen, an der Sie interessiert sind. Lesen Sie "
152 "B<readdir>(3) für die POSIX-konforme C-Bibliotheksschnittstelle."
153
154 #. type: SS
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 #, no-wrap
158 msgid "getdents()"
159 msgstr "getdents()"
160
161 # sperrig
162 #. type: Plain text
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 msgid ""
166 "The system call B<getdents>() reads several I<linux_dirent> structures from "
167 "the directory referred to by the open file descriptor I<fd> into the buffer "
168 "pointed to by I<dirp>. The argument I<count> specifies the size of that "
169 "buffer."
170 msgstr ""
171 "Der Systemaufruf B<getdents>() liest mehrere I<linux_dirent>-Strukturen aus "
172 "dem Verzeichnis, auf das der offene Dateideskriptor I<dd> verweist, in den "
173 "Puffer, auf den I<Verzz> zeigt. Das Argument I<Zähler> spezifiziert die "
174 "Größe dieses Puffers."
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid "The I<linux_dirent> structure is declared as follows:"
180 msgstr "Die Struktur I<linux_dirent> ist wie folgt deklariert:"
181
182 # Übersetzung in Analogie zu readdir.2
183 # WONTFIX Zero padding byte → null padding byte? // Both seem good to me. Why not zero?
184 #. type: Plain text
185 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
186 #: opensuse-tumbleweed
187 #, no-wrap
188 msgid ""
189 "struct linux_dirent {\n"
190 " unsigned long d_ino; /* Inode number */\n"
191 " unsigned long d_off; /* Not an offset; see below */\n"
192 " unsigned short d_reclen; /* Length of this \\f[I]linux_dirent\\fR */\n"
193 " char d_name[]; /* Filename (null-terminated) */\n"
194 " /* length is actually (d_reclen - 2 -\n"
195 " offsetof(struct linux_dirent, d_name)) */\n"
196 " /*\n"
197 " char pad; // Zero padding byte\n"
198 " char d_type; // File type (only since Linux\n"
199 " // 2.6.4); offset is (d_reclen - 1)\n"
200 " */\n"
201 "}\n"
202 msgstr ""
203 "struct linux_dirent {\n"
204 " unsigned long d_ino; /* Inode-Nummer */\n"
205 " unsigned long d_off; /* Kein Versatz; siehe unten */\n"
206 " unsigned short d_reclen; /* Länge dieses \\f[I]linux_dirent\\fR */\n"
207 " char d_name[]; /* Dateiname (abgeschlossen mit */\n"
208 " /* Nullbytes) */\n"
209 " /* Tatsächlich ist die Länge (d_reclen - 2 -\n"
210 " offsetof(struct linux_dirent, d_name)) */\n"
211 " /*\n"
212 " char pad; // Null-Byte zum Auffüllen\n"
213 " char d_type; // Dateityp (nur seit Linux 2.6.4);\n"
214 " // Versatz beträgt (d_reclen - 1)\n"
215 " */\n"
216 "}\n"
217
218 #. type: Plain text
219 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
220 #: opensuse-leap-16-1 opensuse-tumbleweed
221 msgid ""
222 "I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with "
223 "no specific meaning to user space, though on older filesystems it used to be "
224 "the distance from the start of the directory to the start of the next "
225 "I<linux_dirent>; see B<readdir>(3). I<d_reclen> is the size of this entire "
226 "I<linux_dirent>. I<d_name> is a null-terminated filename."
227 msgstr ""
228 "I<d_ino> ist eine Inode-Nummer. I<d_off> ist ein Dateisystem-spezifischer "
229 "Wert ohne besondere Bedeutung für den Anwendungsbereich; allerdings war er "
230 "auf älteren Dateisystemen der Abstand zwischen dem Anfang des Verzeichnisses "
231 "und dem Anfang des nächsten I<linux_dirent> (siehe B<readdir>(3)). "
232 "I<d_reclen> ist die Größe dieses gesamten I<linux_dirent>. I<d_name> ist ein "
233 "mit NULL abgeschlossener Dateiname."
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid ""
239 "I<d_type> is a byte at the end of the structure that indicates the file "
240 "type. It contains one of the following values (defined in "
241 "I<E<lt>dirent.hE<gt>>):"
242 msgstr ""
243 "I<d_type> ist ein Byte am Ende der Struktur, das den Dateityp anzeigt. Es "
244 "enthält einen der folgenden Werte (definiert in I<E<lt>dirent.hE<gt>>):"
245
246 #. type: TP
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 #, no-wrap
250 msgid "B<DT_BLK>"
251 msgstr "B<DT_BLK>"
252
253 #. type: Plain text
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 msgid "This is a block device."
257 msgstr "Dies ist ein blockorientiertes Gerät."
258
259 #. type: TP
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid "B<DT_CHR>"
264 msgstr "B<DT_CHR>"
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 msgid "This is a character device."
270 msgstr "Dies ist ein zeichenorientiertes Gerät."
271
272 #. type: TP
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid "B<DT_DIR>"
277 msgstr "B<DT_DIR>"
278
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 msgid "This is a directory."
283 msgstr "Dies ist ein Verzeichnis."
284
285 #. type: TP
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 #, no-wrap
289 msgid "B<DT_FIFO>"
290 msgstr "B<DT_FIFO>"
291
292 #. type: Plain text
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 msgid "This is a named pipe (FIFO)."
296 msgstr "Dies ist ein FIFO (eine benannte Pipe)."
297
298 #. type: TP
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 #, no-wrap
302 msgid "B<DT_LNK>"
303 msgstr "B<DT_LNK>"
304
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 msgid "This is a symbolic link."
309 msgstr "Dies ist ein symbolischer Link."
310
311 #. type: TP
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "B<DT_REG>"
316 msgstr "B<DT_REG>"
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid "This is a regular file."
322 msgstr "Dies ist eine reguläre Datei."
323
324 #. type: TP
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, no-wrap
328 msgid "B<DT_SOCK>"
329 msgstr "B<DT_SOCK>"
330
331 #. type: Plain text
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 msgid "This is a UNIX domain socket."
335 msgstr "Dies ist ein UNIX Domain Socket."
336
337 #. type: TP
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 #, no-wrap
341 msgid "B<DT_UNKNOWN>"
342 msgstr "B<DT_UNKNOWN>"
343
344 #. type: Plain text
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 msgid "The file type is unknown."
348 msgstr "Der Dateityp ist unbekannt."
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid ""
354 "The I<d_type> field is implemented since Linux 2.6.4. It occupies a space "
355 "that was previously a zero-filled padding byte in the I<linux_dirent> "
356 "structure. Thus, on kernels up to and including Linux 2.6.3, attempting to "
357 "access this field always provides the value 0 (B<DT_UNKNOWN>)."
358 msgstr ""
359 "Das I<d_type>-Feld wird seit Linux 2.6.4 implementiert. Es nimmt den Raum "
360 "ein, der zuvor ein auf Null gesetztes Füllbyte in der I<linux_dirent>-"
361 "Struktur war. So ergibt mit Kerneln bis einschließlich Linux 2.6.3 ein "
362 "versuchter Zugriff auf dieses Feld immer den Wert 0 (B<DT_UNKNOWN>)."
363
364 #. kernel 2.6.27
365 #. The same sentence is in readdir.2
366 #. type: Plain text
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 msgid ""
370 "Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) "
371 "have full support for returning the file type in I<d_type>. All "
372 "applications must properly handle a return of B<DT_UNKNOWN>."
373 msgstr ""
374 "Derzeit unterstützen nur ein paar Dateisysteme (darunter Btrfs, ext2, ext3 "
375 "und ext4) die Rückgabe des Dateityps in I<d_type> vollständig. Alle "
376 "Anwendungen müssen mit dem Rückgabewert B<DT_UNKNOWN> umgehen können."
377
378 #. type: SS
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 #, no-wrap
382 msgid "getdents64()"
383 msgstr "getdents64()"
384
385 #. type: Plain text
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 msgid ""
389 "The original Linux B<getdents>() system call did not handle large "
390 "filesystems and large file offsets. Consequently, Linux 2.4 added "
391 "B<getdents64>(), with wider types for the I<d_ino> and I<d_off> fields. In "
392 "addition, B<getdents64>() supports an explicit I<d_type> field."
393 msgstr ""
394 "Der ursprüngliche Linux-Systemaufuf B<getdents>() konnte nicht mit großen "
395 "Dateisystemen und großen Dateioffsets umgehen. Folglich wurde in Linux 2.4 "
396 "B<getdents64>() hinzugefügt, mit »breiteren« Typen für die Felder I<d_ino> "
397 "und I<d_off> in der I<linux_dirent>-Struktur. Zusätzlich unterstützt "
398 "B<getdents64>() ein explizites I<d_type>-Feld."
399
400 #. type: Plain text
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 msgid ""
404 "The B<getdents64>() system call is like B<getdents>(), except that its "
405 "second argument is a pointer to a buffer containing structures of the "
406 "following type:"
407 msgstr ""
408 "Der B<getdents64>()-Systemaufruf ähnelt dem von B<getdents>(), außer dass "
409 "das zweite Argument ein Zeiger auf einen Puffer ist, der Strukturen des "
410 "folgenden Typs enthält:"
411
412 #. type: Plain text
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, no-wrap
416 msgid ""
417 "struct linux_dirent64 {\n"
418 " ino64_t d_ino; /* 64-bit inode number */\n"
419 " off64_t d_off; /* Not an offset; see getdents() */\n"
420 " unsigned short d_reclen; /* Size of this dirent */\n"
421 " unsigned char d_type; /* File type */\n"
422 " char d_name[]; /* Filename (null-terminated) */\n"
423 "};\n"
424 msgstr ""
425 "struct linux_dirent64 {\n"
426 " ino64_t d_ino; /* 64-bit-Inode-Nummer */\n"
427 " off64_t d_off; /* kein Versatz; siehe getdents() */\n"
428 " unsigned short d_reclen; /* Größe dieses Verzeichniseintrags */\n"
429 " unsigned char d_type; /* Dateityp */\n"
430 " char d_name[]; /* Dateiname (null-terminiert) */\n"
431 "};\n"
432
433 #. type: SH
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 #, no-wrap
437 msgid "RETURN VALUE"
438 msgstr "RÜCKGABEWERT"
439
440 #. type: Plain text
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 msgid ""
444 "On success, the number of bytes read is returned. On end of directory, 0 is "
445 "returned. On error, -1 is returned, and I<errno> is set to indicate the "
446 "error."
447 msgstr ""
448 "Bei Erfolg wird die Anzahl der gelesenen Bytes zurückgeliefert. Am "
449 "Verzeichnisende wird 0 zurückgeliefert. Im Fehlerfall wird -1 "
450 "zurückgeliefert und I<errno> gesetzt, um den Fehler anzuzeigen."
451
452 #. type: SH
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 #, no-wrap
456 msgid "ERRORS"
457 msgstr "FEHLER"
458
459 #. type: TP
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, no-wrap
463 msgid "B<EBADF>"
464 msgstr "B<EBADF>"
465
466 #. type: Plain text
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 msgid "Invalid file descriptor I<fd>."
470 msgstr "Unzulässiger Dateideskriptor I<dd>."
471
472 #. type: TP
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, no-wrap
476 msgid "B<EFAULT>"
477 msgstr "B<EFAULT>"
478
479 #. type: Plain text
480 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
481 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
482 msgid "Argument points outside the calling process's address space."
483 msgstr ""
484 "Das Argument zeigt aus dem Adressraum des aufrufenden Prozesses heraus."
485
486 #. type: TP
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 #, no-wrap
490 msgid "B<EINVAL>"
491 msgstr "B<EINVAL>"
492
493 #. type: Plain text
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 msgid "Result buffer is too small."
497 msgstr "Ergebnispuffer ist zu klein."
498
499 #. type: TP
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, no-wrap
503 msgid "B<ENOENT>"
504 msgstr "B<ENOENT>"
505
506 #. type: Plain text
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 msgid "No such directory."
510 msgstr "Kein solches Verzeichnis."
511
512 #. type: TP
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 #, no-wrap
516 msgid "B<ENOTDIR>"
517 msgstr "B<ENOTDIR>"
518
519 #. type: Plain text
520 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
521 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
522 msgid "File descriptor does not refer to a directory."
523 msgstr "Dateideskriptor zeigt nicht auf ein Verzeichnis."
524
525 #. type: SH
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 #, no-wrap
529 msgid "STANDARDS"
530 msgstr "STANDARDS"
531
532 #. type: Plain text
533 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
534 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
535 msgid "None."
536 msgstr "Keine."
537
538 #. type: SH
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 #, no-wrap
542 msgid "HISTORY"
543 msgstr "GESCHICHTE"
544
545 #. type: TP
546 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
547 #, no-wrap
548 msgid "B<getdents>()"
549 msgstr "B<getdents>()"
550
551 #. SVr4 documents additional ENOLINK, EIO error conditions.
552 #. type: Plain text
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 msgid "SVr4."
556 msgstr "SVr4."
557
558 #. type: TP
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 #, no-wrap
562 msgid "B<getdents64>()"
563 msgstr "B<getdents64>()"
564
565 #. type: Plain text
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 msgid "glibc 2.30."
569 msgstr "Glibc 2.30."
570
571 #. type: SH
572 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
573 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
574 #, no-wrap
575 msgid "NOTES"
576 msgstr "ANMERKUNGEN"
577
578 #. type: Plain text
579 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
580 msgid ""
581 "glibc does not provide a wrapper for B<getdents>(); call B<getdents>() "
582 "using B<syscall>(2). In that case you will need to define the "
583 "I<linux_dirent> structure yourself."
584 msgstr ""
585 "Glibc stellt keinen Wrapper für B<getdents>() bereit. Der Aufruf von "
586 "B<getdents>() benötigt die Verwendung von B<syscall>(2). In diesem Fall "
587 "müssen Sie die Struktur I<linux_dirent> selbst definieren."
588
589 #. type: Plain text
590 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
591 msgid ""
592 "The B<getdents64>() system call accepts an B<unsigned int> argument "
593 "I<count> and assumes that I<count> does not exceed B<INT_MAX>. The glibc "
594 "wrapper function sets I<count> to B<INT_MAX> if it exceeds B<INT_MAX>. "
595 "glibc defines a I<dirent64> structure, which is similar to I<linux_dirent64> "
596 "but with a 256-byte I<d_name>."
597 msgstr ""
598 "Der Systemaufruf B<getdents64>() akzeptiert ein Argument I<Zähler> vom Typ "
599 "B<unsigned int> und nimmt an, dass er B<INT_MAX> nicht überschreitet. Die "
600 "Glibc-Wrapper-Funktion setzt I<Zähler> auf B<INT_MAX>, falls er B<INT_MAX> "
601 "überschreitet. Glibc definiert eine Struktur I<dirent64>, die ähnlich zu "
602 "I<linux_dirent64> ist, aber mit einem 256-byte I<d_name>."
603
604 #. type: Plain text
605 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
606 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
607 msgid "Probably, you want to use B<readdir>(3) instead of these system calls."
608 msgstr ""
609 "Wahrscheinlich möchten Sie B<readdir>(3) statt einer dieser Systemaufrufe "
610 "verwenden."
611
612 #. type: Plain text
613 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
614 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
615 msgid "These calls supersede B<readdir>(2)."
616 msgstr "Diese Aufrufe ersetzen B<readdir>(2)."
617
618 #. type: SH
619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
621 #, no-wrap
622 msgid "EXAMPLES"
623 msgstr "BEISPIELE"
624
625 #. FIXME The example program needs to be revised, since it uses the older
626 #. getdents() system call and the structure with smaller field widths.
627 #. type: Plain text
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 msgid ""
631 "The program below demonstrates the use of B<getdents>(). The following "
632 "output shows an example of what we see when running this program on an ext2 "
633 "directory:"
634 msgstr ""
635 "Das nachfolgende Programm zeigt die Verwendung von B<getdents>(). Die "
636 "folgende Ausgabe zeigt ein Beispiel davon, was bei der Ausführung des "
637 "Programms auf einem Ext2-Verzeichnis gesehen werden kann."
638
639 # Directory etc. hier und später im Codebeispiel übersetzen?
640 #. type: Plain text
641 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
642 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
643 #, no-wrap
644 msgid ""
645 "$B< ./a.out /testfs/>\n"
646 "--------------- nread=120 ---------------\n"
647 "inode# file type d_reclen d_off d_name\n"
648 " 2 directory 16 12 .\n"
649 " 2 directory 16 24 ..\n"
650 " 11 directory 24 44 lost+found\n"
651 " 12 regular 16 56 a\n"
652 " 228929 directory 16 68 sub\n"
653 " 16353 directory 16 80 sub2\n"
654 " 130817 directory 16 4096 sub3\n"
655 msgstr ""
656 "$B< ./a.out /testfs/>\n"
657 "--------------- nread=120 ---------------\n"
658 "inode# file type d_reclen d_off d_name\n"
659 " 2 directory 16 12 .\n"
660 " 2 directory 16 24 ..\n"
661 " 11 directory 24 44 lost+found\n"
662 " 12 regular 16 56 a\n"
663 " 228929 directory 16 68 sub\n"
664 " 16353 directory 16 80 sub2\n"
665 " 130817 directory 16 4096 sub3\n"
666
667 #. type: SS
668 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
669 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
670 #, no-wrap
671 msgid "Program source"
672 msgstr "Programmquelltext"
673
674 #. type: Plain text
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 #, no-wrap
678 msgid ""
679 "#define _GNU_SOURCE\n"
680 "#include E<lt>dirent.hE<gt> /* Defines DT_* constants */\n"
681 "#include E<lt>err.hE<gt>\n"
682 "#include E<lt>fcntl.hE<gt>\n"
683 "#include E<lt>stdint.hE<gt>\n"
684 "#include E<lt>stdio.hE<gt>\n"
685 "#include E<lt>stdlib.hE<gt>\n"
686 "#include E<lt>sys/syscall.hE<gt>\n"
687 "#include E<lt>sys/types.hE<gt>\n"
688 "#include E<lt>unistd.hE<gt>\n"
689 "\\&\n"
690 "struct linux_dirent {\n"
691 " unsigned long d_ino;\n"
692 " off_t d_off;\n"
693 " unsigned short d_reclen;\n"
694 " char d_name[];\n"
695 "};\n"
696 "\\&\n"
697 "#define BUF_SIZE 1024\n"
698 "\\&\n"
699 "int\n"
700 "main(int argc, char *argv[])\n"
701 "{\n"
702 " int fd;\n"
703 " char d_type;\n"
704 " char buf[BUF_SIZE];\n"
705 " long nread;\n"
706 " struct linux_dirent *d;\n"
707 "\\&\n"
708 " fd = open(argc E<gt> 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n"
709 " if (fd == -1)\n"
710 " err(EXIT_FAILURE, \"open\");\n"
711 "\\&\n"
712 " for (;;) {\n"
713 " nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n"
714 " if (nread == -1)\n"
715 " err(EXIT_FAILURE, \"getdents\");\n"
716 "\\&\n"
717 " if (nread == 0)\n"
718 " break;\n"
719 "\\&\n"
720 " printf(\"--------------- nread=%ld ---------------\\[rs]n\", nread);\n"
721 " printf(\"inode# file type d_reclen d_off d_name\\[rs]n\");\n"
722 " for (size_t bpos = 0; bpos E<lt> nread;) {\n"
723 " d = (struct linux_dirent *) (buf + bpos);\n"
724 " printf(\"%8lu \", d-E<gt>d_ino);\n"
725 " d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n"
726 " printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n"
727 " (d_type == DT_DIR) ? \"directory\" :\n"
728 " (d_type == DT_FIFO) ? \"FIFO\" :\n"
729 " (d_type == DT_SOCK) ? \"socket\" :\n"
730 " (d_type == DT_LNK) ? \"symlink\" :\n"
731 " (d_type == DT_BLK) ? \"block dev\" :\n"
732 " (d_type == DT_CHR) ? \"char dev\" : \"???\");\n"
733 " printf(\"%4d %10jd %s\\[rs]n\", d-E<gt>d_reclen,\n"
734 " (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n"
735 " bpos += d-E<gt>d_reclen;\n"
736 " }\n"
737 " }\n"
738 "\\&\n"
739 " exit(EXIT_SUCCESS);\n"
740 "}\n"
741 msgstr ""
742 "#define _GNU_SOURCE\n"
743 "#include E<lt>dirent.hE<gt> /* Definiert DT_*-Konstanten */\n"
744 "#include E<lt>err.hE<gt>\n"
745 "#include E<lt>fcntl.hE<gt>\n"
746 "#include E<lt>stdint.hE<gt>\n"
747 "#include E<lt>stdio.hE<gt>\n"
748 "#include E<lt>stdlib.hE<gt>\n"
749 "#include E<lt>sys/syscall.hE<gt>\n"
750 "#include E<lt>sys/types.hE<gt>\n"
751 "#include E<lt>unistd.hE<gt>\n"
752 "\\&\n"
753 "struct linux_dirent {\n"
754 " unsigned long d_ino;\n"
755 " off_t d_off;\n"
756 " unsigned short d_reclen;\n"
757 " char d_name[];\n"
758 "};\n"
759 "\\&\n"
760 "#define BUF_SIZE 1024\n"
761 "\\&\n"
762 "int\n"
763 "main(int argc, char *argv[])\n"
764 "{\n"
765 " int fd;\n"
766 " char d_type;\n"
767 " char buf[BUF_SIZE];\n"
768 " long nread;\n"
769 " struct linux_dirent *d;\n"
770 "\\&\n"
771 " fd = open(argc E<gt> 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n"
772 " if (fd == -1)\n"
773 " err(EXIT_FAILURE, \"open\");\n"
774 "\\&\n"
775 " for (;;) {\n"
776 " nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n"
777 " if (nread == -1)\n"
778 " err(EXIT_FAILURE, \"getdents\");\n"
779 "\\&\n"
780 " if (nread == 0)\n"
781 " break;\n"
782 "\\&\n"
783 " printf(\"--------------- nread=%ld ---------------\\[rs]n\", nread);\n"
784 " printf(\"inode# file type d_reclen d_off d_name\\[rs]n\");\n"
785 " for (size_t bpos = 0; bpos E<lt> nread;) {\n"
786 " d = (struct linux_dirent *) (buf + bpos);\n"
787 " printf(\"%8lu \", d-E<gt>d_ino);\n"
788 " d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n"
789 " printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n"
790 " (d_type == DT_DIR) ? \"directory\" :\n"
791 " (d_type == DT_FIFO) ? \"FIFO\" :\n"
792 " (d_type == DT_SOCK) ? \"socket\" :\n"
793 " (d_type == DT_LNK) ? \"symlink\" :\n"
794 " (d_type == DT_BLK) ? \"block dev\" :\n"
795 " (d_type == DT_CHR) ? \"char dev\" : \"???\");\n"
796 " printf(\"%4d %10jd %s\\[rs]n\", d-E<gt>d_reclen,\n"
797 " (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n"
798 " bpos += d-E<gt>d_reclen;\n"
799 " }\n"
800 " }\n"
801 "\\&\n"
802 " exit(EXIT_SUCCESS);\n"
803 "}\n"
804
805 #. SRC END
806 #. type: SH
807 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
808 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
809 #, no-wrap
810 msgid "SEE ALSO"
811 msgstr "SIEHE AUCH"
812
813 #. type: Plain text
814 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
815 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
816 msgid "B<readdir>(2), B<readdir>(3), B<inode>(7)"
817 msgstr "B<readdir>(2), B<readdir>(3), B<inode>(7)"
818
819 #. type: TH
820 #: debian-trixie
821 #, no-wrap
822 msgid "2024-06-15"
823 msgstr "15. Juni 2024"
824
825 #. type: TH
826 #: debian-trixie
827 #, no-wrap
828 msgid "Linux man-pages 6.9.1"
829 msgstr "Linux man-pages 6.9.1"
830
831 #. type: Plain text
832 #: debian-trixie
833 msgid "Standard C library (I<libc>, I<-lc>)"
834 msgstr "Standard-C-Bibliothek (I<libc>, I<-lc>)"
835
836 #. type: Plain text
837 #: debian-trixie fedora-44 fedora-rawhide
838 #, no-wrap
839 msgid "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n"
840 msgstr "B<ssize_t getdents64(int >I<dd>B<, void >I<Verzz>B<[.>I<Zähler>B<], size_t >I<Zähler>B<);>\n"
841
842 # Muss noch mit anderem Auftreten koordiniert werden.
843 #. type: Plain text
844 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
845 msgid ""
846 "These are not the interfaces you are interested in. Look at B<readdir>(3) "
847 "for the POSIX-conforming C library interface. This page documents the bare "
848 "kernel system call interfaces."
849 msgstr ""
850 "Dies sind nicht die Schnittstellen, an der Sie interessiert sind. Lesen Sie "
851 "B<readdir>(3) für die POSIX-konforme C-Bibliotheksschnittstelle. Diese Seite "
852 "dokumentiert die nackten Kernel-Systemaufruf-Schnittstellen."
853
854 # Übersetzung in Analogie zu readdir.2
855 # WONTFIX Zero padding byte → null padding byte? // Both seem good to me. Why not zero?
856 #. type: Plain text
857 #: debian-trixie fedora-44 fedora-rawhide
858 #, no-wrap
859 msgid ""
860 "struct linux_dirent {\n"
861 " unsigned long d_ino; /* Inode number */\n"
862 " unsigned long d_off; /* Not an offset; see below */\n"
863 " unsigned short d_reclen; /* Length of this I<linux_dirent> */\n"
864 " char d_name[]; /* Filename (null-terminated) */\n"
865 " /* length is actually (d_reclen - 2 -\n"
866 " offsetof(struct linux_dirent, d_name)) */\n"
867 " /*\n"
868 " char pad; // Zero padding byte\n"
869 " char d_type; // File type (only since Linux\n"
870 " // 2.6.4); offset is (d_reclen - 1)\n"
871 " */\n"
872 "}\n"
873 msgstr ""
874 "struct linux_dirent {\n"
875 " unsigned long d_ino; /* Inode-Nummer */\n"
876 " unsigned long d_off; /* Kein Versatz; siehe unten */\n"
877 " unsigned short d_reclen; /* Länge dieses I<linux_dirent> */\n"
878 " char d_name[]; /* Dateiname (abgeschlossen mit */\n"
879 " /* Nullbytes) */\n"
880 " /* Tatsächlich ist die Länge (d_reclen - 2 -\n"
881 " offsetof(struct linux_dirent, d_name)) */\n"
882 " /*\n"
883 " char pad; // Null-Byte zum Auffüllen\n"
884 " char d_type; // Dateityp (nur seit Linux 2.6.4);\n"
885 " // Versatz beträgt (d_reclen - 1)\n"
886 " */\n"
887 "}\n"
888
889 # FIXME B<readdir>(3)B<.> → B<readdir>(3).
890 #. type: Plain text
891 #: debian-trixie
892 msgid ""
893 "I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with "
894 "no specific meaning to user space, though on older filesystems it used to be "
895 "the distance from the start of the directory to the start of the next "
896 "I<linux_dirent>; see B<readdir>(3)B<.> I<d_reclen> is the size of this "
897 "entire I<linux_dirent>. I<d_name> is a null-terminated filename."
898 msgstr ""
899 "I<d_ino> ist eine Inode-Nummer. I<d_off> ist ein Dateisystem-spezifischer "
900 "Wert ohne besondere Bedeutung für den Anwendungsbereich; allerdings war er "
901 "auf älteren Dateisystemen der Abstand zwischen dem Anfang des Verzeichnisses "
902 "und dem Anfang des nächsten I<linux_dirent> (siehe B<readdir>(3)). "
903 "I<d_reclen> ist die Größe dieses gesamten I<linux_dirent>. I<d_name> ist ein "
904 "mit NULL abgeschlossener Dateiname."
905
906 #. type: Plain text
907 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
908 msgid ""
909 "glibc does not provide a wrapper for B<getdents>(); call B<getdents>() "
910 "using B<syscall>(2). In that case you will need to define the "
911 "I<linux_dirent> or I<linux_dirent64> structure yourself."
912 msgstr ""
913 "Glibc stellt keinen Wrapper für B<getdents>() bereit. Der Aufruf von "
914 "B<getdents>() benötigt die Verwendung von B<syscall>(2). In diesem Fall "
915 "müssen Sie die Struktur I<linux_dirent> oder I<linux_dirent64> selbst "
916 "definieren."
917
918 #. type: TH
919 #: fedora-44 fedora-rawhide
920 #, no-wrap
921 msgid "2024-11-17"
922 msgstr "17. November 2024"
923
924 #. type: TH
925 #: fedora-44 fedora-rawhide
926 #, no-wrap
927 msgid "Linux man-pages 6.13"
928 msgstr "Linux man-pages 6.13"
929
930 #. type: TH
931 #: mageia-cauldron
932 #, no-wrap
933 msgid "2026-02-08"
934 msgstr "8. Februar 2026"
935
936 #. type: TH
937 #: mageia-cauldron
938 #, no-wrap
939 msgid "Linux man-pages 6.17"
940 msgstr "Linux man-pages 6.17"
941
942 #. type: TH
943 #: opensuse-leap-16-1 opensuse-tumbleweed
944 #, no-wrap
945 msgid "Linux man-pages (unreleased)"
946 msgstr "Linux man-pages (unveröffentlicht)"