Debian Codegraph @

po/pt_BR/man3/readdir.3.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 # Marcelo Pereira da Silva <[email protected]>, 2001.
5 # André Luiz Fassone <[email protected]>, 2001.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:39+0200\n"
10 "PO-Revision-Date: 2022-12-04 08:42+0100\n"
11 "Last-Translator: André Luiz Fassone <[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 #, fuzzy, no-wrap
25 #| msgid "B<readdir>()"
26 msgid "readdir"
27 msgstr "B<readdir>()"
28
29 #. type: TH
30 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
31 #: opensuse-tumbleweed
32 #, no-wrap
33 msgid "2026-02-08"
34 msgstr "8 fevereiro 2026"
35
36 #. type: TH
37 #: archlinux debian-unstable
38 #, fuzzy, no-wrap
39 #| msgid "Linux man-pages 6.17"
40 msgid "Linux man-pages 6.18"
41 msgstr "Linux man-pages 6.17"
42
43 #. type: SH
44 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
45 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
46 #, no-wrap
47 msgid "NAME"
48 msgstr "NOME"
49
50 #. type: Plain text
51 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
52 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
53 msgid "readdir - read a directory"
54 msgstr "readdir - lê um diretório"
55
56 #. type: SH
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 #, no-wrap
60 msgid "LIBRARY"
61 msgstr "BIBLIOTECA"
62
63 #. type: Plain text
64 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
65 #: opensuse-leap-16-1 opensuse-tumbleweed
66 msgid "Standard C library (I<libc>,\\ I<-lc>)"
67 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "SYNOPSIS"
74 msgstr "SINOPSE"
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "B<#include E<lt>dirent.hE<gt>>\n"
81 msgstr "B<#include E<lt>dirent.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 "B<struct dirent *readdir(DIR *>I<dirp>B<);>\n"
88 msgstr "B<struct dirent *readdir(DIR *>I<dirp>B<);>\n"
89
90 #. type: SH
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "DESCRIPTION"
95 msgstr "DESCRIÇÃO"
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 #, fuzzy
101 #| msgid ""
102 #| "The B<readdir()> function returns a pointer to a dirent structure "
103 #| "representing the next directory entry in the directory stream pointed to "
104 #| "by I<dir>. It returns NULL on reaching the end-of-file or if an error "
105 #| "occurred."
106 msgid ""
107 "The B<readdir>() function returns a pointer to a I<dirent> structure "
108 "representing the next directory entry in the directory stream pointed to by "
109 "I<dirp>. It returns NULL on reaching the end of the directory stream or if "
110 "an error occurred."
111 msgstr ""
112 "A função B<readdir()> devolve um ponteiro para uma estrutura 'dirent' "
113 "representado a próxima entrada no fluxo de diretórios apontado por I<dir>. "
114 "NULO é devolvido ao chegar no final de arquivo (EOF) ou se ocorrer um erro."
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 msgid ""
120 "In the glibc implementation, the I<dirent> structure is defined as follows:"
121 msgstr ""
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 #, no-wrap
127 msgid ""
128 "struct dirent {\n"
129 " ino_t d_ino; /* Inode number */\n"
130 " off_t d_off; /* Not an offset; see below */\n"
131 " unsigned short d_reclen; /* Length of this record */\n"
132 " unsigned char d_type; /* Type of file; not supported\n"
133 " by all filesystem types */\n"
134 " char d_name[256]; /* Null-terminated filename */\n"
135 "};\n"
136 msgstr ""
137
138 #. type: Plain text
139 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
140 #: opensuse-tumbleweed
141 msgid ""
142 "The only fields in the I<dirent> structure that are mandated by POSIX.1 are "
143 "I<.d_name> and I<.d_ino>. The other fields are unstandardized, and not "
144 "present on all systems; see VERSIONS."
145 msgstr ""
146
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 msgid "The fields of the I<dirent> structure are as follows:"
151 msgstr ""
152
153 #. type: TP
154 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
155 #: opensuse-tumbleweed
156 #, fuzzy, no-wrap
157 #| msgid "I<d_ino>"
158 msgid "I<.d_ino>"
159 msgstr "I<d_ino>"
160
161 #. type: Plain text
162 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
163 #: opensuse-tumbleweed
164 msgid ""
165 "This is the inode number of the file in the filesystem containing the "
166 "directory on which B<readdir>() was called. If the directory entry is a "
167 "mount point, then I<.d_ino> differs from I<.st_ino> returned by B<stat>(2) "
168 "on this file: I<.d_ino> is the inode number of the mount point, while "
169 "I<.st_ino> is the inode number of the root directory of the mounted "
170 "filesystem."
171 msgstr ""
172
173 #. type: TP
174 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
175 #: opensuse-tumbleweed
176 #, fuzzy, no-wrap
177 #| msgid "I<d_off>"
178 msgid "I<.d_off>"
179 msgstr "I<d_off>"
180
181 #. https://lwn.net/Articles/544298/
182 #. type: Plain text
183 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
184 #: opensuse-tumbleweed
185 msgid ""
186 "The value returned in I<.d_off> is the same as would be returned by calling "
187 "B<telldir>(3) at the current position in the directory stream. Be aware "
188 "that despite its type and name, the I<.d_off> field is seldom any kind of "
189 "directory offset on modern filesystems. Applications should treat this "
190 "field as an opaque value, making no assumptions about its contents; see also "
191 "B<telldir>(3)."
192 msgstr ""
193
194 #. type: TP
195 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
196 #: opensuse-tumbleweed
197 #, fuzzy, no-wrap
198 #| msgid "I<d_reclen>"
199 msgid "I<.d_reclen>"
200 msgstr "I<d_reclen>"
201
202 #. type: Plain text
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 msgid ""
206 "This is the size (in bytes) of the returned record. This may not match the "
207 "size of the structure definition shown above; see VERSIONS."
208 msgstr ""
209
210 #. type: TP
211 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
212 #: opensuse-tumbleweed
213 #, fuzzy, no-wrap
214 #| msgid "I<d_type>"
215 msgid "I<.d_type>"
216 msgstr "I<d_type>"
217
218 #. type: Plain text
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 msgid ""
222 "This field contains a value indicating the file type, making it possible to "
223 "avoid the expense of calling B<lstat>(2) if further actions depend on the "
224 "type of the file."
225 msgstr ""
226
227 #. type: Plain text
228 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
229 #: opensuse-tumbleweed
230 msgid ""
231 "When a suitable feature test macro is defined (B<_DEFAULT_SOURCE> since "
232 "glibc 2.19, or B<_BSD_SOURCE> on glibc 2.19 and earlier), glibc defines the "
233 "following macro constants for the value returned in I<.d_type>:"
234 msgstr ""
235
236 #. type: TP
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 #, no-wrap
240 msgid "B<DT_BLK>"
241 msgstr "B<DT_BLK>"
242
243 #. type: Plain text
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 msgid "This is a block device."
247 msgstr ""
248
249 #. type: TP
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "B<DT_CHR>"
254 msgstr "B<DT_CHR>"
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid "This is a character device."
260 msgstr ""
261
262 #. type: TP
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 #, no-wrap
266 msgid "B<DT_DIR>"
267 msgstr "B<DT_DIR>"
268
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, fuzzy
273 #| msgid "that points to a directory"
274 msgid "This is a directory."
275 msgstr "que apontar para um diretório"
276
277 #. type: TP
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "B<DT_FIFO>"
282 msgstr "B<DT_FIFO>"
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 msgid "This is a named pipe (FIFO)."
288 msgstr ""
289
290 #. type: TP
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "B<DT_LNK>"
295 msgstr "B<DT_LNK>"
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 msgid "This is a symbolic link."
301 msgstr ""
302
303 #. type: TP
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "B<DT_REG>"
308 msgstr "B<DT_REG>"
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 msgid "This is a regular file."
314 msgstr ""
315
316 #. type: TP
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "B<DT_SOCK>"
321 msgstr "B<DT_SOCK>"
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid "This is a UNIX domain socket."
327 msgstr ""
328
329 #. type: TP
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 #, no-wrap
333 msgid "B<DT_UNKNOWN>"
334 msgstr "B<DT_UNKNOWN>"
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 msgid "The file type could not be determined."
340 msgstr ""
341
342 #. kernel 2.6.27
343 #. The same sentence is in getdents.2
344 #. type: Plain text
345 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
346 #: opensuse-tumbleweed
347 msgid ""
348 "Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) "
349 "have full support for returning the file type in I<.d_type>. All "
350 "applications must properly handle a return of B<DT_UNKNOWN>."
351 msgstr ""
352
353 #. type: TP
354 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
355 #: opensuse-tumbleweed
356 #, fuzzy, no-wrap
357 #| msgid "I<d_name>"
358 msgid "I<.d_name>"
359 msgstr "I<d_name>"
360
361 #. type: Plain text
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 msgid "This field contains the null terminated filename; see VERSIONS."
365 msgstr ""
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 #, fuzzy
371 #| msgid ""
372 #| "The data returned by B<readdir()> is overwritten by subsequent calls to "
373 #| "B<readdir()> for the same directory stream."
374 msgid ""
375 "The data returned by B<readdir>() may be overwritten by subsequent calls to "
376 "B<readdir>() for the same directory stream."
377 msgstr ""
378 "O dado devolvido por B<readdir()> é sobrescrito por chamadas subseqüentes a "
379 "B<readdir()> para o mesmo fluxo de diretórios."
380
381 #. type: SH
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 #, no-wrap
385 msgid "RETURN VALUE"
386 msgstr "VALOR DE RETORNO"
387
388 #. type: Plain text
389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
391 msgid ""
392 "On success, B<readdir>() returns a pointer to a I<dirent> structure. (This "
393 "structure may be statically allocated; do not attempt to B<free>(3) it.)"
394 msgstr ""
395
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 "If the end of the directory stream is reached, NULL is returned and I<errno> "
401 "is not changed. If an error occurs, NULL is returned and I<errno> is set to "
402 "indicate the error. To distinguish end of stream from an error, set "
403 "I<errno> to zero before calling B<readdir>() and then check the value of "
404 "I<errno> if NULL is returned."
405 msgstr ""
406
407 #. type: SH
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 #, no-wrap
411 msgid "ERRORS"
412 msgstr "ERROS"
413
414 #. type: TP
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 #, no-wrap
418 msgid "B<EBADF>"
419 msgstr "B<EBADF>"
420
421 #. type: Plain text
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 msgid "Invalid directory stream descriptor I<dirp>."
425 msgstr "Descritor de fluxo de diretório I<dirp> inválido."
426
427 #. type: SH
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 #, no-wrap
431 msgid "ATTRIBUTES"
432 msgstr "ATRIBUTOS"
433
434 #. type: Plain text
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 msgid ""
438 "For an explanation of the terms used in this section, see B<attributes>(7)."
439 msgstr ""
440 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
441
442 #. type: tbl table
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "Interface"
447 msgstr "Interface"
448
449 #. type: tbl table
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid "Attribute"
454 msgstr "Atributo"
455
456 #. type: tbl table
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 #, no-wrap
460 msgid "Value"
461 msgstr "Valor"
462
463 #. type: tbl table
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 #, no-wrap
467 msgid ".na\n"
468 msgstr ".na\n"
469
470 #. type: tbl table
471 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
472 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
473 #, no-wrap
474 msgid ".nh\n"
475 msgstr ".nh\n"
476
477 #. type: tbl table
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, no-wrap
481 msgid "B<readdir>()"
482 msgstr "B<readdir>()"
483
484 #. type: tbl table
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 #, no-wrap
488 msgid "Thread safety"
489 msgstr "Thread safety"
490
491 #. type: tbl table
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 #, no-wrap
495 msgid "MT-Unsafe race:dirstream"
496 msgstr ""
497
498 #. FIXME .
499 #. http://www.austingroupbugs.net/view.php?id=696
500 #. type: Plain text
501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
503 msgid ""
504 "In the current POSIX.1 specification (POSIX.1-2008), B<readdir>() is not "
505 "required to be thread-safe. However, in modern implementations (including "
506 "the glibc implementation), concurrent calls to B<readdir>() that specify "
507 "different directory streams are thread-safe. In cases where multiple "
508 "threads must read from the same directory stream, using B<readdir>() with "
509 "external synchronization is still preferable to the use of the deprecated "
510 "B<readdir_r>(3) function. It is expected that a future version of POSIX.1 "
511 "will require that B<readdir>() be thread-safe when concurrently employed on "
512 "different directory streams."
513 msgstr ""
514
515 #. type: SH
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 #, no-wrap
519 msgid "VERSIONS"
520 msgstr "VERSÕES"
521
522 #. POSIX.1-2001, POSIX.1-2008
523 #. type: Plain text
524 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
525 #: opensuse-tumbleweed
526 msgid ""
527 "Only the fields I<.d_name> and (as an XSI extension) I<.d_ino> are "
528 "specified in POSIX.1. Other than Linux, the I<.d_type> field is available "
529 "mainly only on BSD systems. The remaining fields are available on many, but "
530 "not all systems. Under glibc, programs can check for the availability of "
531 "the fields not defined in POSIX.1 by testing whether the macros "
532 "B<_DIRENT_HAVE_D_NAMLEN>, B<_DIRENT_HAVE_D_RECLEN>, B<_DIRENT_HAVE_D_OFF>, "
533 "or B<_DIRENT_HAVE_D_TYPE> are defined."
534 msgstr ""
535
536 #. type: SS
537 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
538 #: opensuse-tumbleweed
539 #, fuzzy, no-wrap
540 #| msgid "The d_name field"
541 msgid "The \\f[I].d_name\\fB field"
542 msgstr "O campo d_name"
543
544 #. type: Plain text
545 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
546 #: opensuse-tumbleweed
547 msgid ""
548 "The I<dirent> structure definition shown above is taken from the glibc "
549 "headers, and shows the I<.d_name> field with a fixed size."
550 msgstr ""
551
552 #. type: Plain text
553 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
554 #: opensuse-tumbleweed
555 msgid ""
556 "I<Warning>: applications should avoid any dependence on the size of the "
557 "I<.d_name> field. POSIX defines it as I<char\\ d_name[]>, a character array "
558 "of unspecified size, with at most B<NAME_MAX> characters preceding the "
559 "terminating null byte (\\[aq]\\[rs]0\\[aq])."
560 msgstr ""
561
562 #. type: Plain text
563 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
564 #: opensuse-tumbleweed
565 msgid ""
566 "POSIX.1 explicitly notes that this field should not be used as an lvalue. "
567 "The standard also notes that the use of I<sizeof(.d_name)> is incorrect; use "
568 "I<strlen(.d_name)> instead. (On some systems, this field is defined as "
569 "I<char\\ d_name[1]>!) By implication, the use I<sizeof(struct dirent)> to "
570 "capture the size of the record including the size of I<.d_name> is also "
571 "incorrect."
572 msgstr ""
573
574 #. type: Plain text
575 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
576 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
577 msgid "Note that while the call"
578 msgstr ""
579
580 #. type: Plain text
581 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
582 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
583 #, fuzzy, no-wrap
584 #| msgid " fpathconf(fd, _PC_NAME_MAX)\n"
585 msgid "fpathconf(fd, _PC_NAME_MAX)\n"
586 msgstr " fpathconf(fd, _PC_NAME_MAX)\n"
587
588 #. type: Plain text
589 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
590 #: opensuse-tumbleweed
591 msgid ""
592 "returns the value 255 for most filesystems, on some filesystems (e.g., CIFS, "
593 "Windows SMB servers), the null-terminated filename that is (correctly) "
594 "returned in I<.d_name> can actually exceed this size. In such cases, the "
595 "I<.d_reclen> field will contain a value that exceeds the size of the glibc "
596 "I<dirent> structure shown above."
597 msgstr ""
598
599 #. type: SH
600 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
601 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
602 #, no-wrap
603 msgid "STANDARDS"
604 msgstr "PADRÕES"
605
606 #. type: Plain text
607 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
608 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
609 msgid "POSIX.1-2008."
610 msgstr "POSIX.1-2008."
611
612 #. type: SH
613 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
614 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
615 #, no-wrap
616 msgid "HISTORY"
617 msgstr "HISTÓRICO"
618
619 #. type: Plain text
620 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
621 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
622 msgid "POSIX.1-2001, SVr4, 4.3BSD."
623 msgstr "POSIX.1-2001, SVr4, 4.3BSD."
624
625 #. type: SH
626 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
627 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
628 #, no-wrap
629 msgid "NOTES"
630 msgstr "NOTAS"
631
632 #. type: Plain text
633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
635 #, fuzzy
636 #| msgid "Invalid directory stream descriptor I<dir>."
637 msgid "A directory stream is opened using B<opendir>(3)."
638 msgstr "Descritor I<dir> de fluxo de diretórios inválido."
639
640 #. type: Plain text
641 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
642 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
643 msgid ""
644 "The order in which filenames are read by successive calls to B<readdir>() "
645 "depends on the filesystem implementation; it is unlikely that the names will "
646 "be sorted in any fashion."
647 msgstr ""
648
649 #. type: SH
650 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
651 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
652 #, no-wrap
653 msgid "SEE ALSO"
654 msgstr "VEJA TAMBÉM"
655
656 #. type: Plain text
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 msgid ""
660 "B<getdents>(2), B<read>(2), B<closedir>(3), B<dirfd>(3), B<ftw>(3), "
661 "B<offsetof>(3), B<opendir>(3), B<readdir_r>(3), B<rewinddir>(3), "
662 "B<scandir>(3), B<seekdir>(3), B<telldir>(3)"
663 msgstr ""
664 "B<getdents>(2), B<read>(2), B<closedir>(3), B<dirfd>(3), B<ftw>(3), "
665 "B<offsetof>(3), B<opendir>(3), B<readdir_r>(3), B<rewinddir>(3), "
666 "B<scandir>(3), B<seekdir>(3), B<telldir>(3)"
667
668 #. type: TH
669 #: debian-trixie
670 #, no-wrap
671 msgid "2024-06-16"
672 msgstr "16 junho 2024"
673
674 #. type: TH
675 #: debian-trixie
676 #, no-wrap
677 msgid "Linux man-pages 6.9.1"
678 msgstr "Linux man-pages 6.9.1"
679
680 #. type: Plain text
681 #: debian-trixie
682 msgid "Standard C library (I<libc>, I<-lc>)"
683 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
684
685 #. type: Plain text
686 #: debian-trixie fedora-44 fedora-rawhide
687 msgid ""
688 "The only fields in the I<dirent> structure that are mandated by POSIX.1 are "
689 "I<d_name> and I<d_ino>. The other fields are unstandardized, and not "
690 "present on all systems; see VERSIONS."
691 msgstr ""
692
693 #. type: TP
694 #: debian-trixie fedora-44 fedora-rawhide
695 #, no-wrap
696 msgid "I<d_ino>"
697 msgstr "I<d_ino>"
698
699 #. type: Plain text
700 #: debian-trixie fedora-44 fedora-rawhide
701 #, fuzzy
702 #| msgid "print the index number of each file"
703 msgid "This is the inode number of the file."
704 msgstr "emite o número de índice de cada arquivo"
705
706 #. type: TP
707 #: debian-trixie fedora-44 fedora-rawhide
708 #, no-wrap
709 msgid "I<d_off>"
710 msgstr "I<d_off>"
711
712 #. https://lwn.net/Articles/544298/
713 #. type: Plain text
714 #: debian-trixie fedora-44 fedora-rawhide
715 msgid ""
716 "The value returned in I<d_off> is the same as would be returned by calling "
717 "B<telldir>(3) at the current position in the directory stream. Be aware "
718 "that despite its type and name, the I<d_off> field is seldom any kind of "
719 "directory offset on modern filesystems. Applications should treat this "
720 "field as an opaque value, making no assumptions about its contents; see also "
721 "B<telldir>(3)."
722 msgstr ""
723
724 #. type: TP
725 #: debian-trixie fedora-44 fedora-rawhide
726 #, no-wrap
727 msgid "I<d_reclen>"
728 msgstr "I<d_reclen>"
729
730 #. type: TP
731 #: debian-trixie fedora-44 fedora-rawhide
732 #, no-wrap
733 msgid "I<d_type>"
734 msgstr "I<d_type>"
735
736 #. type: Plain text
737 #: debian-trixie fedora-44 fedora-rawhide
738 msgid ""
739 "When a suitable feature test macro is defined (B<_DEFAULT_SOURCE> since "
740 "glibc 2.19, or B<_BSD_SOURCE> on glibc 2.19 and earlier), glibc defines the "
741 "following macro constants for the value returned in I<d_type>:"
742 msgstr ""
743
744 #. kernel 2.6.27
745 #. The same sentence is in getdents.2
746 #. type: Plain text
747 #: debian-trixie fedora-44 fedora-rawhide
748 msgid ""
749 "Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) "
750 "have full support for returning the file type in I<d_type>. All "
751 "applications must properly handle a return of B<DT_UNKNOWN>."
752 msgstr ""
753
754 #. type: TP
755 #: debian-trixie fedora-44 fedora-rawhide
756 #, no-wrap
757 msgid "I<d_name>"
758 msgstr "I<d_name>"
759
760 #. POSIX.1-2001, POSIX.1-2008
761 #. type: Plain text
762 #: debian-trixie fedora-44 fedora-rawhide
763 msgid ""
764 "Only the fields I<d_name> and (as an XSI extension) I<d_ino> are specified "
765 "in POSIX.1. Other than Linux, the I<d_type> field is available mainly only "
766 "on BSD systems. The remaining fields are available on many, but not all "
767 "systems. Under glibc, programs can check for the availability of the fields "
768 "not defined in POSIX.1 by testing whether the macros "
769 "B<_DIRENT_HAVE_D_NAMLEN>, B<_DIRENT_HAVE_D_RECLEN>, B<_DIRENT_HAVE_D_OFF>, "
770 "or B<_DIRENT_HAVE_D_TYPE> are defined."
771 msgstr ""
772
773 #. type: SS
774 #: debian-trixie fedora-44 fedora-rawhide
775 #, no-wrap
776 msgid "The d_name field"
777 msgstr "O campo d_name"
778
779 #. type: Plain text
780 #: debian-trixie fedora-44 fedora-rawhide
781 msgid ""
782 "The I<dirent> structure definition shown above is taken from the glibc "
783 "headers, and shows the I<d_name> field with a fixed size."
784 msgstr ""
785
786 #. type: Plain text
787 #: debian-trixie fedora-44 fedora-rawhide
788 msgid ""
789 "I<Warning>: applications should avoid any dependence on the size of the "
790 "I<d_name> field. POSIX defines it as I<char\\ d_name[]>, a character array "
791 "of unspecified size, with at most B<NAME_MAX> characters preceding the "
792 "terminating null byte (\\[aq]\\[rs]0\\[aq])."
793 msgstr ""
794
795 #. type: Plain text
796 #: debian-trixie fedora-44 fedora-rawhide
797 msgid ""
798 "POSIX.1 explicitly notes that this field should not be used as an lvalue. "
799 "The standard also notes that the use of I<sizeof(d_name)> is incorrect; use "
800 "I<strlen(d_name)> instead. (On some systems, this field is defined as "
801 "I<char\\ d_name[1]>!) By implication, the use I<sizeof(struct dirent)> to "
802 "capture the size of the record including the size of I<d_name> is also "
803 "incorrect."
804 msgstr ""
805
806 #. type: Plain text
807 #: debian-trixie fedora-44 fedora-rawhide
808 msgid ""
809 "returns the value 255 for most filesystems, on some filesystems (e.g., CIFS, "
810 "Windows SMB servers), the null-terminated filename that is (correctly) "
811 "returned in I<d_name> can actually exceed this size. In such cases, the "
812 "I<d_reclen> field will contain a value that exceeds the size of the glibc "
813 "I<dirent> structure shown above."
814 msgstr ""
815
816 #. type: TH
817 #: fedora-44 fedora-rawhide
818 #, no-wrap
819 msgid "2024-07-23"
820 msgstr "23 julho 2024"
821
822 #. type: TH
823 #: fedora-44 fedora-rawhide
824 #, no-wrap
825 msgid "Linux man-pages 6.13"
826 msgstr "Linux man-pages 6.13"
827
828 #. type: TH
829 #: mageia-cauldron
830 #, no-wrap
831 msgid "Linux man-pages 6.17"
832 msgstr "Linux man-pages 6.17"
833
834 #. type: TH
835 #: opensuse-leap-16-1 opensuse-tumbleweed
836 #, no-wrap
837 msgid "Linux man-pages (unreleased)"
838 msgstr "Linux man-pages (não lançado)"