Debian Codegraph @

po/pt_BR/man2/getdents.2.po

raw
1 # Brazilian Portuguese translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # André Luiz Fassone <[email protected]>, 2000.
5 # Ricardo C.O.Freitas <[email protected]>, 2000.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
10 "PO-Revision-Date: 2022-12-04 08:42+0100\n"
11 "Last-Translator: Ricardo C.O.Freitas <[email protected]>\n"
12 "Language-Team: Brazilian Portuguese <debian-l10n-"
13 "[email protected]>\n"
14 "Language: pt_BR\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 "X-Generator: Lokalize 20.04.1\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "getdents"
26 msgstr "getdents"
27
28 #. type: TH
29 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-04-08"
32 msgstr "8 abril 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, fuzzy, no-wrap
37 #| msgid "Linux man-pages 6.17"
38 msgid "Linux man-pages 6.18"
39 msgstr "Linux man-pages 6.17"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "NOME"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "getdents, getdents64 - get directory entries"
52 msgstr "getdents, getdents64 - obtém as entradas de diretórios"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr "BIBLIOTECA"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr "SINOPSE"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid ""
79 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
80 "B<#include E<lt>unistd.hE<gt>>\n"
81 msgstr ""
82 "B<#include E<lt>sys/syscall.hE<gt>> /* Definição das constantes B<SYS_*> */\n"
83 "B<#include E<lt>unistd.hE<gt>>\n"
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 #, fuzzy, no-wrap
89 #| msgid ""
90 #| "B<int getdents(unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n"
91 #| "B< unsigned int >I<count>B<);>\n"
92 #| "B<int getdents64(unsigned int >I<fd>B<, struct linux_dirent64 *>I<dirp>B<,>\n"
93 #| "B< unsigned int >I<count>B<);>\n"
94 msgid ""
95 "B<long syscall(SYS_getdents, unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n"
96 "B< unsigned int >I<count>B<);>\n"
97 msgstr ""
98 "B<int getdents(unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n"
99 "B< unsigned int >I<count>B<);>\n"
100 "B<int getdents64(unsigned int >I<fd>B<, struct linux_dirent64 *>I<dirp>B<,>\n"
101 "B< unsigned int >I<count>B<);>\n"
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 #, fuzzy, no-wrap
107 #| msgid ""
108 #| "B<#define _GNU_SOURCE>\n"
109 #| "B<#include E<lt>sched.hE<gt>>\n"
110 msgid ""
111 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
112 "B<#include E<lt>dirent.hE<gt>>\n"
113 msgstr ""
114 "B<#define _GNU_SOURCE>\n"
115 "B<#include E<lt>sched.hE<gt>>\n"
116
117 #. type: Plain text
118 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
119 #: opensuse-tumbleweed
120 #, fuzzy, no-wrap
121 #| msgid "B<void *memmove(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
122 msgid ""
123 "B<ssize_t getdents64(>size_t count;\n"
124 "B< int >I<fd>B<, void >I<dirp>B<[>I<count>B<], size_t >I<count>B<);>\n"
125 msgstr "B<void *memmove(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
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>: glibc provides no wrapper for B<getdents>(), necessitating the use "
132 "of B<syscall>(2)."
133 msgstr ""
134
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 msgid ""
139 "I<Note>: There is no definition of I<struct linux_dirent> in glibc; see "
140 "NOTES."
141 msgstr ""
142
143 #. type: SH
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 #, no-wrap
147 msgid "DESCRIPTION"
148 msgstr "DESCRIÇÃO"
149
150 #. type: Plain text
151 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
152 msgid ""
153 "These are not the interfaces you are interested in. Look at B<readdir>(3) "
154 "for the POSIX-conforming C library interface."
155 msgstr ""
156
157 #. type: SS
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 #, no-wrap
161 msgid "getdents()"
162 msgstr "getdents()"
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 #, fuzzy
168 #| msgid ""
169 #| "B<getdents> reads several I<dirent> structures from the directory pointed "
170 #| "at by I<fd> into the memory area pointed to by I<dirp>. The parameter "
171 #| "I<count> is the size of the memory area."
172 msgid ""
173 "The system call B<getdents>() reads several I<linux_dirent> structures from "
174 "the directory referred to by the open file descriptor I<fd> into the buffer "
175 "pointed to by I<dirp>. The argument I<count> specifies the size of that "
176 "buffer."
177 msgstr ""
178 "B<getdents> lê várias estruturas I<dirent> a partir do diretório apontado "
179 "por I<fd> dentro da área de memória apontada por I<dirp>. O parâmetro "
180 "I<count> é o tamanho da área de memória."
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid "The I<linux_dirent> structure is declared as follows:"
186 msgstr "A estrutura I<linux_dirent> é declarada como segue:"
187
188 #. type: Plain text
189 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
190 #: opensuse-tumbleweed
191 #, no-wrap
192 msgid ""
193 "struct linux_dirent {\n"
194 " unsigned long d_ino; /* Inode number */\n"
195 " unsigned long d_off; /* Not an offset; see below */\n"
196 " unsigned short d_reclen; /* Length of this \\f[I]linux_dirent\\fR */\n"
197 " char d_name[]; /* Filename (null-terminated) */\n"
198 " /* length is actually (d_reclen - 2 -\n"
199 " offsetof(struct linux_dirent, d_name)) */\n"
200 " /*\n"
201 " char pad; // Zero padding byte\n"
202 " char d_type; // File type (only since Linux\n"
203 " // 2.6.4); offset is (d_reclen - 1)\n"
204 " */\n"
205 "}\n"
206 msgstr ""
207
208 #. type: Plain text
209 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
210 #: opensuse-leap-16-1 opensuse-tumbleweed
211 #, fuzzy
212 #| msgid ""
213 #| "I<d_ino> is an inode number. I<d_off> is the distance from the start of "
214 #| "the directory to the start of the next I<linux_dirent>. I<d_reclen> is "
215 #| "the size of this entire I<linux_dirent>. I<d_name> is a null-terminated "
216 #| "filename."
217 msgid ""
218 "I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with "
219 "no specific meaning to user space, though on older filesystems it used to be "
220 "the distance from the start of the directory to the start of the next "
221 "I<linux_dirent>; see B<readdir>(3). I<d_reclen> is the size of this entire "
222 "I<linux_dirent>. I<d_name> is a null-terminated filename."
223 msgstr ""
224 "I<d_ino> é um número de inode. I<d_off> é a distância a partir do início do "
225 "diretório para o início do próximo I<linux_dirent>. I<d_reclen> é o tamanho "
226 "da completa I<linux_dirent>. I<d_name> é um nome de arquivo vazio."
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 msgid ""
232 "I<d_type> is a byte at the end of the structure that indicates the file "
233 "type. It contains one of the following values (defined in "
234 "I<E<lt>dirent.hE<gt>>):"
235 msgstr ""
236
237 #. type: TP
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 #, no-wrap
241 msgid "B<DT_BLK>"
242 msgstr "B<DT_BLK>"
243
244 #. type: Plain text
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 msgid "This is a block device."
248 msgstr ""
249
250 #. type: TP
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid "B<DT_CHR>"
255 msgstr "B<DT_CHR>"
256
257 #. type: Plain text
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 msgid "This is a character device."
261 msgstr ""
262
263 #. type: TP
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid "B<DT_DIR>"
268 msgstr "B<DT_DIR>"
269
270 #. type: Plain text
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 #, fuzzy
274 #| msgid "that points to a directory"
275 msgid "This is a directory."
276 msgstr "que apontar para um diretório"
277
278 #. type: TP
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 #, no-wrap
282 msgid "B<DT_FIFO>"
283 msgstr "B<DT_FIFO>"
284
285 #. type: Plain text
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 msgid "This is a named pipe (FIFO)."
289 msgstr ""
290
291 #. type: TP
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 #, no-wrap
295 msgid "B<DT_LNK>"
296 msgstr "B<DT_LNK>"
297
298 #. type: Plain text
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 msgid "This is a symbolic link."
302 msgstr ""
303
304 #. type: TP
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, no-wrap
308 msgid "B<DT_REG>"
309 msgstr "B<DT_REG>"
310
311 #. type: Plain text
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 msgid "This is a regular file."
315 msgstr ""
316
317 #. type: TP
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "B<DT_SOCK>"
322 msgstr "B<DT_SOCK>"
323
324 #. type: Plain text
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 msgid "This is a UNIX domain socket."
328 msgstr ""
329
330 #. type: TP
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "B<DT_UNKNOWN>"
335 msgstr "B<DT_UNKNOWN>"
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid "The file type is unknown."
341 msgstr ""
342
343 #. type: Plain text
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 msgid ""
347 "The I<d_type> field is implemented since Linux 2.6.4. It occupies a space "
348 "that was previously a zero-filled padding byte in the I<linux_dirent> "
349 "structure. Thus, on kernels up to and including Linux 2.6.3, attempting to "
350 "access this field always provides the value 0 (B<DT_UNKNOWN>)."
351 msgstr ""
352
353 #. kernel 2.6.27
354 #. The same sentence is in readdir.2
355 #. type: Plain text
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 msgid ""
359 "Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) "
360 "have full support for returning the file type in I<d_type>. All "
361 "applications must properly handle a return of B<DT_UNKNOWN>."
362 msgstr ""
363
364 #. type: SS
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 #, no-wrap
368 msgid "getdents64()"
369 msgstr "getdents64()"
370
371 #. type: Plain text
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 msgid ""
375 "The original Linux B<getdents>() system call did not handle large "
376 "filesystems and large file offsets. Consequently, Linux 2.4 added "
377 "B<getdents64>(), with wider types for the I<d_ino> and I<d_off> fields. In "
378 "addition, B<getdents64>() supports an explicit I<d_type> field."
379 msgstr ""
380
381 #. type: Plain text
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 msgid ""
385 "The B<getdents64>() system call is like B<getdents>(), except that its "
386 "second argument is a pointer to a buffer containing structures of the "
387 "following type:"
388 msgstr ""
389
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, fuzzy, no-wrap
394 #| msgid ""
395 #| "struct dirent\n"
396 #| "{\n"
397 #| " long d_ino; /* inode number */\n"
398 #| " off_t d_off; /* offset to next I<dirent> */\n"
399 #| " unsigned short d_reclen; /* length of this I<dirent> */\n"
400 #| " char d_name [NAME_MAX+1]; /* file name (null-terminated) */\n"
401 #| "}\n"
402 msgid ""
403 "struct linux_dirent64 {\n"
404 " ino64_t d_ino; /* 64-bit inode number */\n"
405 " off64_t d_off; /* Not an offset; see getdents() */\n"
406 " unsigned short d_reclen; /* Size of this dirent */\n"
407 " unsigned char d_type; /* File type */\n"
408 " char d_name[]; /* Filename (null-terminated) */\n"
409 "};\n"
410 msgstr ""
411 "struct dirent\n"
412 "{\n"
413 " long d_ino; /* inode number */\n"
414 " off_t d_off; /* offset to next I<dirent> */\n"
415 " unsigned short d_reclen; /* length of this I<dirent> */\n"
416 " char d_name [NAME_MAX+1]; /* file name (null-terminated) */\n"
417 "}\n"
418
419 #. type: SH
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "RETURN VALUE"
424 msgstr "VALOR DE RETORNO"
425
426 #. type: Plain text
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 #, fuzzy
430 #| msgid ""
431 #| "On success, the number of bytes read is returned. On end of directory, 0 "
432 #| "is returned. On error, -1 is returned, and I<errno> is set appropriately."
433 msgid ""
434 "On success, the number of bytes read is returned. On end of directory, 0 is "
435 "returned. On error, -1 is returned, and I<errno> is set to indicate the "
436 "error."
437 msgstr ""
438 "Em caso de sucesso, o número de bytes lidos é devolvido. No final do "
439 "diretório, 0 é devolvido. Caso contrário, -1 é devolvido e I<errno> é "
440 "selecionado adequadamente."
441
442 #. type: SH
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "ERRORS"
447 msgstr "ERROS"
448
449 #. type: TP
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid "B<EBADF>"
454 msgstr "B<EBADF>"
455
456 #. type: Plain text
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 msgid "Invalid file descriptor I<fd>."
460 msgstr "Descritor de arquivos inválido I<fd>."
461
462 #. type: TP
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 #, no-wrap
466 msgid "B<EFAULT>"
467 msgstr "B<EFAULT>"
468
469 #. type: Plain text
470 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
471 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
472 msgid "Argument points outside the calling process's address space."
473 msgstr "O argumento aponta para o espaço de endereço do processo solicitante."
474
475 #. type: TP
476 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
477 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
478 #, no-wrap
479 msgid "B<EINVAL>"
480 msgstr "B<EINVAL>"
481
482 #. type: Plain text
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 msgid "Result buffer is too small."
486 msgstr "O buffer de resultado é muito pequeno."
487
488 #. type: TP
489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
491 #, no-wrap
492 msgid "B<ENOENT>"
493 msgstr "B<ENOENT>"
494
495 #. type: Plain text
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 msgid "No such directory."
499 msgstr "Sem aquele diretório."
500
501 #. type: TP
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 #, no-wrap
505 msgid "B<ENOTDIR>"
506 msgstr "B<ENOTDIR>"
507
508 #. type: Plain text
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 msgid "File descriptor does not refer to a directory."
512 msgstr "O descritor de arquivos não se refere para um diretório."
513
514 #. type: SH
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 #, no-wrap
518 msgid "STANDARDS"
519 msgstr "PADRÕES"
520
521 #. type: Plain text
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 msgid "None."
525 msgstr ""
526
527 #. type: SH
528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
530 #, no-wrap
531 msgid "HISTORY"
532 msgstr "HISTÓRICO"
533
534 #. type: TP
535 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
536 #, fuzzy, no-wrap
537 #| msgid "getdents64()"
538 msgid "B<getdents>()"
539 msgstr "getdents64()"
540
541 #. SVr4 documents additional ENOLINK, EIO error conditions.
542 #. type: Plain text
543 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
544 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
545 msgid "SVr4."
546 msgstr "SVr4."
547
548 #. type: TP
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 #, fuzzy, no-wrap
552 #| msgid "getdents64()"
553 msgid "B<getdents64>()"
554 msgstr "getdents64()"
555
556 #. type: Plain text
557 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
558 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
559 #, fuzzy
560 #| msgid "Since glibc 2.10:"
561 msgid "glibc 2.30."
562 msgstr "Desde o glibc 2.10:"
563
564 #. type: SH
565 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
566 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
567 #, no-wrap
568 msgid "NOTES"
569 msgstr "NOTAS"
570
571 #. type: Plain text
572 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
573 msgid ""
574 "glibc does not provide a wrapper for B<getdents>(); call B<getdents>() "
575 "using B<syscall>(2). In that case you will need to define the "
576 "I<linux_dirent> structure yourself."
577 msgstr ""
578
579 #. type: Plain text
580 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
581 msgid ""
582 "The B<getdents64>() system call accepts an B<unsigned int> argument "
583 "I<count> and assumes that I<count> does not exceed B<INT_MAX>. The glibc "
584 "wrapper function sets I<count> to B<INT_MAX> if it exceeds B<INT_MAX>. "
585 "glibc defines a I<dirent64> structure, which is similar to I<linux_dirent64> "
586 "but with a 256-byte I<d_name>."
587 msgstr ""
588
589 #. type: Plain text
590 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
591 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
592 msgid "Probably, you want to use B<readdir>(3) instead of these system calls."
593 msgstr ""
594
595 #. type: Plain text
596 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
597 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
598 #, fuzzy
599 #| msgid "This call supersedes B<readdir>(2)."
600 msgid "These calls supersede B<readdir>(2)."
601 msgstr "Esta chamada substitui B<readdir>(2)."
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 "EXAMPLES"
608 msgstr "EXEMPLOS"
609
610 #. FIXME The example program needs to be revised, since it uses the older
611 #. getdents() system call and the structure with smaller field widths.
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 ""
616 "The program below demonstrates the use of B<getdents>(). The following "
617 "output shows an example of what we see when running this program on an ext2 "
618 "directory:"
619 msgstr ""
620
621 #. type: Plain text
622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
624 #, no-wrap
625 msgid ""
626 "$B< ./a.out /testfs/>\n"
627 "--------------- nread=120 ---------------\n"
628 "inode# file type d_reclen d_off d_name\n"
629 " 2 directory 16 12 .\n"
630 " 2 directory 16 24 ..\n"
631 " 11 directory 24 44 lost+found\n"
632 " 12 regular 16 56 a\n"
633 " 228929 directory 16 68 sub\n"
634 " 16353 directory 16 80 sub2\n"
635 " 130817 directory 16 4096 sub3\n"
636 msgstr ""
637
638 #. type: SS
639 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
640 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
641 #, no-wrap
642 msgid "Program source"
643 msgstr "Fonte do programa"
644
645 #. type: Plain text
646 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
647 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
648 #, no-wrap
649 msgid ""
650 "#define _GNU_SOURCE\n"
651 "#include E<lt>dirent.hE<gt> /* Defines DT_* constants */\n"
652 "#include E<lt>err.hE<gt>\n"
653 "#include E<lt>fcntl.hE<gt>\n"
654 "#include E<lt>stdint.hE<gt>\n"
655 "#include E<lt>stdio.hE<gt>\n"
656 "#include E<lt>stdlib.hE<gt>\n"
657 "#include E<lt>sys/syscall.hE<gt>\n"
658 "#include E<lt>sys/types.hE<gt>\n"
659 "#include E<lt>unistd.hE<gt>\n"
660 "\\&\n"
661 "struct linux_dirent {\n"
662 " unsigned long d_ino;\n"
663 " off_t d_off;\n"
664 " unsigned short d_reclen;\n"
665 " char d_name[];\n"
666 "};\n"
667 "\\&\n"
668 "#define BUF_SIZE 1024\n"
669 "\\&\n"
670 "int\n"
671 "main(int argc, char *argv[])\n"
672 "{\n"
673 " int fd;\n"
674 " char d_type;\n"
675 " char buf[BUF_SIZE];\n"
676 " long nread;\n"
677 " struct linux_dirent *d;\n"
678 "\\&\n"
679 " fd = open(argc E<gt> 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n"
680 " if (fd == -1)\n"
681 " err(EXIT_FAILURE, \"open\");\n"
682 "\\&\n"
683 " for (;;) {\n"
684 " nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n"
685 " if (nread == -1)\n"
686 " err(EXIT_FAILURE, \"getdents\");\n"
687 "\\&\n"
688 " if (nread == 0)\n"
689 " break;\n"
690 "\\&\n"
691 " printf(\"--------------- nread=%ld ---------------\\[rs]n\", nread);\n"
692 " printf(\"inode# file type d_reclen d_off d_name\\[rs]n\");\n"
693 " for (size_t bpos = 0; bpos E<lt> nread;) {\n"
694 " d = (struct linux_dirent *) (buf + bpos);\n"
695 " printf(\"%8lu \", d-E<gt>d_ino);\n"
696 " d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n"
697 " printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n"
698 " (d_type == DT_DIR) ? \"directory\" :\n"
699 " (d_type == DT_FIFO) ? \"FIFO\" :\n"
700 " (d_type == DT_SOCK) ? \"socket\" :\n"
701 " (d_type == DT_LNK) ? \"symlink\" :\n"
702 " (d_type == DT_BLK) ? \"block dev\" :\n"
703 " (d_type == DT_CHR) ? \"char dev\" : \"???\");\n"
704 " printf(\"%4d %10jd %s\\[rs]n\", d-E<gt>d_reclen,\n"
705 " (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n"
706 " bpos += d-E<gt>d_reclen;\n"
707 " }\n"
708 " }\n"
709 "\\&\n"
710 " exit(EXIT_SUCCESS);\n"
711 "}\n"
712 msgstr ""
713
714 #. SRC END
715 #. type: SH
716 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
717 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
718 #, no-wrap
719 msgid "SEE ALSO"
720 msgstr "VEJA TAMBÉM"
721
722 #. type: Plain text
723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
725 msgid "B<readdir>(2), B<readdir>(3), B<inode>(7)"
726 msgstr "B<readdir>(2), B<readdir>(3), B<inode>(7)"
727
728 #. type: TH
729 #: debian-trixie
730 #, no-wrap
731 msgid "2024-06-15"
732 msgstr "15 junho 2024"
733
734 #. type: TH
735 #: debian-trixie
736 #, no-wrap
737 msgid "Linux man-pages 6.9.1"
738 msgstr "Linux man-pages 6.9.1"
739
740 #. type: Plain text
741 #: debian-trixie
742 msgid "Standard C library (I<libc>, I<-lc>)"
743 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
744
745 #. type: Plain text
746 #: debian-trixie fedora-44 fedora-rawhide
747 #, fuzzy, no-wrap
748 #| msgid "B<void *memmove(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
749 msgid "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n"
750 msgstr "B<void *memmove(void *>I<dest>B<, const void *>I<src>B<, size_t >I<n>B<);>\n"
751
752 #. type: Plain text
753 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
754 msgid ""
755 "These are not the interfaces you are interested in. Look at B<readdir>(3) "
756 "for the POSIX-conforming C library interface. This page documents the bare "
757 "kernel system call interfaces."
758 msgstr ""
759
760 #. type: Plain text
761 #: debian-trixie fedora-44 fedora-rawhide
762 #, no-wrap
763 msgid ""
764 "struct linux_dirent {\n"
765 " unsigned long d_ino; /* Inode number */\n"
766 " unsigned long d_off; /* Not an offset; see below */\n"
767 " unsigned short d_reclen; /* Length of this I<linux_dirent> */\n"
768 " char d_name[]; /* Filename (null-terminated) */\n"
769 " /* length is actually (d_reclen - 2 -\n"
770 " offsetof(struct linux_dirent, d_name)) */\n"
771 " /*\n"
772 " char pad; // Zero padding byte\n"
773 " char d_type; // File type (only since Linux\n"
774 " // 2.6.4); offset is (d_reclen - 1)\n"
775 " */\n"
776 "}\n"
777 msgstr ""
778
779 #. type: Plain text
780 #: debian-trixie
781 #, fuzzy
782 #| msgid ""
783 #| "I<d_ino> is an inode number. I<d_off> is the distance from the start of "
784 #| "the directory to the start of the next I<linux_dirent>. I<d_reclen> is "
785 #| "the size of this entire I<linux_dirent>. I<d_name> is a null-terminated "
786 #| "filename."
787 msgid ""
788 "I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with "
789 "no specific meaning to user space, though on older filesystems it used to be "
790 "the distance from the start of the directory to the start of the next "
791 "I<linux_dirent>; see B<readdir>(3)B<.> I<d_reclen> is the size of this "
792 "entire I<linux_dirent>. I<d_name> is a null-terminated filename."
793 msgstr ""
794 "I<d_ino> é um número de inode. I<d_off> é a distância a partir do início do "
795 "diretório para o início do próximo I<linux_dirent>. I<d_reclen> é o tamanho "
796 "da completa I<linux_dirent>. I<d_name> é um nome de arquivo vazio."
797
798 #. type: Plain text
799 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
800 msgid ""
801 "glibc does not provide a wrapper for B<getdents>(); call B<getdents>() "
802 "using B<syscall>(2). In that case you will need to define the "
803 "I<linux_dirent> or I<linux_dirent64> structure yourself."
804 msgstr ""
805
806 #. type: TH
807 #: fedora-44 fedora-rawhide
808 #, no-wrap
809 msgid "2024-11-17"
810 msgstr "17 novembro 2024"
811
812 #. type: TH
813 #: fedora-44 fedora-rawhide
814 #, no-wrap
815 msgid "Linux man-pages 6.13"
816 msgstr "Linux man-pages 6.13"
817
818 #. type: TH
819 #: mageia-cauldron
820 #, no-wrap
821 msgid "2026-02-08"
822 msgstr "8 fevereiro 2026"
823
824 #. type: TH
825 #: mageia-cauldron
826 #, no-wrap
827 msgid "Linux man-pages 6.17"
828 msgstr "Linux man-pages 6.17"
829
830 #. type: TH
831 #: opensuse-leap-16-1 opensuse-tumbleweed
832 #, no-wrap
833 msgid "Linux man-pages (unreleased)"
834 msgstr "Linux man-pages (não lançado)"