Debian Codegraph @

po/pt_BR/man3/ftw.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 # Rubens de Jesus Nogueira <[email protected]>, 2000.
5 # André Luiz Fassone <[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: 2000-06-02 19:20-0300\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: Virtaal 1.0.0-beta1\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 "ftw"
26 msgstr "ftw"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-08"
33 msgstr "8 fevereiro 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, fuzzy, no-wrap
38 #| msgid "Linux man-pages 6.17"
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.17"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NOME"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid "ftw, nftw - file tree walk"
53 msgstr "ftw, nftw - caminha pela árvore de arquivos"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "BIBLIOTECA"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "SINOPSE"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>ftw.hE<gt>>\n"
80 msgstr "B<#include E<lt>ftw.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
84 #: opensuse-leap-16-1 opensuse-tumbleweed
85 #, fuzzy, no-wrap
86 #| msgid ""
87 #| "B<int nftw(const char *>I<dirpath>B<,>\n"
88 #| "B< int (*>I<fn>B<)(const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
89 #| "B< int >I<typeflag>B<, struct FTW *>I<ftwbuf>B<),>\n"
90 #| "B< int >I<nopenfd>B<, int >I<flags>B<);>\n"
91 msgid ""
92 "B<int nftw(const char *>I<dirpath>B<,>\n"
93 "B< typeof(int (const char *>I<fpath>B<, const struct stat *>I<sb,>\n"
94 "B< int >I<typeflag>B<, struct FTW *>I<ftwbuf>B<))>\n"
95 "B< *>I<fn,>\n"
96 "B< int >I<nopenfd>B<, int >I<flags>B<);>\n"
97 msgstr ""
98 "B<int nftw(const char *>I<dirpath>B<,>\n"
99 "B< int (*>I<fn>B<)(const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
100 "B< int >I<typeflag>B<, struct FTW *>I<ftwbuf>B<),>\n"
101 "B< int >I<nopenfd>B<, int >I<flags>B<);>\n"
102
103 #. type: Plain text
104 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
105 #: opensuse-leap-16-1 opensuse-tumbleweed
106 #, fuzzy, no-wrap
107 #| msgid ""
108 #| "B<int ftw(const char *>I<dirpath>B<,>\n"
109 #| "B< int (*>I<fn>B<) (const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
110 #| "B< int >I<typeflag>B<),>\n"
111 #| "B< int >I<nopenfd>B<);>\n"
112 msgid ""
113 "B<[[deprecated]]>\n"
114 "B<int ftw(const char *>I<dirpath>B<,>\n"
115 "B< typeof(int (const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
116 "B< int >I<typeflag>B<))>\n"
117 "B< *>I<fn,>\n"
118 "B< int >I<nopenfd>B<);>\n"
119 msgstr ""
120 "B<int ftw(const char *>I<dirpath>B<,>\n"
121 "B< int (*>I<fn>B<) (const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
122 "B< int >I<typeflag>B<),>\n"
123 "B< int >I<nopenfd>B<);>\n"
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid ""
129 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
130 msgstr ""
131 "Requisitos de macro de teste de recursos para o glibc (consulte "
132 "B<feature_test_macros>(7)):"
133
134 #. type: Plain text
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 msgid "B<nftw>():"
138 msgstr "B<nftw>():"
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 #, no-wrap
144 msgid " _XOPEN_SOURCE E<gt>= 500\n"
145 msgstr " _XOPEN_SOURCE E<gt>= 500\n"
146
147 #. type: SH
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 #, no-wrap
151 msgid "DESCRIPTION"
152 msgstr "DESCRIÇÃO"
153
154 #. type: Plain text
155 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
156 #: opensuse-tumbleweed
157 msgid ""
158 "B<nftw>() walks through the directory tree that is located under the "
159 "directory I<dirpath>, and calls I<fn>() once for each entry in the tree. "
160 "By default, directories are handled before the files and subdirectories they "
161 "contain (preorder traversal)."
162 msgstr ""
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<ftw>() recursively calls itself for traversing found directories, "
170 #| "handling a directory before its files or subdirectories. To avoid using "
171 #| "up all a program's file descriptors, the I<depth> specifies the number of "
172 #| "simultaneous open directories. When the depth is exceeded, B<ftw>() will "
173 #| "become slower because directories have to be closed and reopened. "
174 #| "B<ftw>() uses at most one file descriptor for each level in the file "
175 #| "hierarchy."
176 msgid ""
177 "To avoid using up all of the calling process's file descriptors, I<nopenfd> "
178 "specifies the maximum number of directories that B<nftw>() will hold open "
179 "simultaneously. When the search depth exceeds this, B<nftw>() will become "
180 "slower because directories have to be closed and reopened. B<nftw>() uses "
181 "at most one file descriptor for each level in the directory tree."
182 msgstr ""
183 "B<ftw>() chama recursivamente a si mesmo para atravessar diretórios "
184 "encontrados, manipulando um diretório antes do seus arquivos ou "
185 "subdiretórios. Para evitar o uso de todos os descritores de arquivos do "
186 "programa, o I<depth> especifica o número de diretórios abertos "
187 "simultaneamente. Quando a profundidade é excedida, B<ftw>() se tornará mais "
188 "lenta porque os diretórios têm que ser fechados e reabertos. B<ftw>() usa no "
189 "máximo um descritor de arquivos para cada nível na hierarquia de arquivos."
190
191 #. type: Plain text
192 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
193 #: opensuse-tumbleweed
194 msgid ""
195 "For each entry found in the tree, B<nftw>() calls I<fn>() with four "
196 "arguments: I<fpath>, I<sb>, I<typeflag>, and I<ftwbuf>. I<fpath> is the "
197 "pathname of the entry, and is expressed either as a pathname relative to the "
198 "calling process's current working directory at the time of the call to "
199 "B<nftw>(), if I<dirpath> was expressed as a relative pathname, or as an "
200 "absolute pathname, if I<dirpath> was expressed as an absolute pathname. "
201 "I<sb> is a pointer to the I<stat> structure returned by a call to "
202 "B<stat>(2) for I<fpath>."
203 msgstr ""
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 msgid ""
209 "The I<typeflag> argument passed to I<fn>() is an integer that has one of "
210 "the following values:"
211 msgstr ""
212
213 #. type: TP
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, no-wrap
217 msgid "B<FTW_F>"
218 msgstr "B<FTW_F>"
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 #, fuzzy
224 #| msgid "Item is a normal file"
225 msgid "I<fpath> is a regular file."
226 msgstr "O item é um arquivo normal"
227
228 #. type: TP
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid "B<FTW_D>"
233 msgstr "B<FTW_D>"
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 "I<fpath> is a directory."
239 msgstr "I<fpath> é um diretório."
240
241 #. type: TP
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 #, no-wrap
245 msgid "B<FTW_DNR>"
246 msgstr "B<FTW_DNR>"
247
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 msgid "I<fpath> is a directory which can't be read."
252 msgstr "I<fpath> é um diretório que não pode ser lido."
253
254 #. type: TP
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid "B<FTW_DP>"
259 msgstr "B<FTW_DP>"
260
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 msgid ""
265 "I<fpath> is a directory, and B<FTW_DEPTH> was specified in I<flags>. (If "
266 "B<FTW_DEPTH> was not specified in I<flags>, then directories will always be "
267 "visited with I<typeflag> set to B<FTW_D>.) All of the files and "
268 "subdirectories within I<fpath> have been processed."
269 msgstr ""
270
271 #. type: TP
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid "B<FTW_NS>"
276 msgstr "B<FTW_NS>"
277
278 #. type: Plain text
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 msgid ""
282 "The B<stat>(2) call failed on I<fpath>, which is not a symbolic link. The "
283 "probable cause for this is that the caller had read permission on the parent "
284 "directory, so that the filename I<fpath> could be seen, but did not have "
285 "execute permission, so that the file could not be reached for B<stat>(2). "
286 "The contents of the buffer pointed to by I<sb> are undefined."
287 msgstr ""
288
289 #. type: TP
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "B<FTW_SL>"
294 msgstr "B<FTW_SL>"
295
296 #. To obtain the definition of this constant from
297 #. .IR <ftw.h> ,
298 #. either
299 #. .B _BSD_SOURCE
300 #. must be defined, or
301 #. .BR _XOPEN_SOURCE
302 #. must be defined with a value of 500 or more.
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid "I<fpath> is a symbolic link, and B<FTW_PHYS> was set in I<flags>."
307 msgstr ""
308
309 #. type: TP
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "B<FTW_SLN>"
314 msgstr "B<FTW_SLN>"
315
316 #. type: Plain text
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 msgid ""
320 "I<fpath> is a symbolic link pointing to a nonexistent file. (This occurs "
321 "only if B<FTW_PHYS> is not set.) In this case the I<sb> argument passed to "
322 "I<fn>() contains information returned by performing B<lstat>(2) on the "
323 "\"dangling\" symbolic link. (But see BUGS.)"
324 msgstr ""
325
326 #. type: Plain text
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 msgid ""
330 "The fourth argument (I<ftwbuf>) that B<nftw>() supplies when calling "
331 "I<fn>() is a pointer to a structure of type I<FTW>:"
332 msgstr ""
333
334 #. type: Plain text
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 #, no-wrap
338 msgid ""
339 "struct FTW {\n"
340 " int base;\n"
341 " int level;\n"
342 "};\n"
343 msgstr ""
344 "struct FTW {\n"
345 " int base;\n"
346 " int level;\n"
347 "};\n"
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid ""
353 "I<base> is the offset of the filename (i.e., basename component) in the "
354 "pathname given in I<fpath>. I<level> is the depth of I<fpath> in the "
355 "directory tree, relative to the root of the tree (I<dirpath>, which has "
356 "depth 0)."
357 msgstr ""
358
359 #. type: Plain text
360 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
361 #: opensuse-tumbleweed
362 #, fuzzy
363 #| msgid ""
364 #| "To stop the tree walk, I<fn>() returns a non-zero value; this value will "
365 #| "become the return value of B<ftw>(). Otherwise, B<ftw>() will continue "
366 #| "until it has traversed the entire tree, in which case it will return "
367 #| "zero, or until it hits an error other than EACCES (such as a "
368 #| "B<malloc>(3) failure), in which case it will return -1."
369 msgid ""
370 "To stop the tree walk, I<fn>() returns a nonzero value; this value will "
371 "become the return value of B<nftw>(). As long as I<fn>() returns 0, "
372 "B<nftw>() will continue either until it has traversed the entire tree, in "
373 "which case it will return zero, or until it encounters an error (such as a "
374 "B<malloc>(3) failure), in which case it will return -1."
375 msgstr ""
376 "Para parar a caminhada na árvore, I<fn>() retorna um valor diferente de "
377 "zero; este valor se tornará o valor de retorno de B<ftw>(). Caso contrário, "
378 "B<ftw>() continuará até que tenha atravessado a árvore inteira, em cujo caso "
379 "retornará zero, ou até que ele encontre um erro diferente de EACCES (tal "
380 "como uma falha de B<malloc>(3)), em cujo caso retornará -1."
381
382 #. type: Plain text
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, fuzzy
386 #| msgid ""
387 #| "Because B<ftw()> uses dynamic data structures, the only safe way to exit "
388 #| "out of a tree walk is to return a non-zero value. To handle interrupts, "
389 #| "for example, mark that the interrupt occurred and return a non-zero "
390 #| "value\\(emdon't use B<longjmp>(3) unless the program is going to "
391 #| "terminate."
392 msgid ""
393 "Because B<nftw>() uses dynamic data structures, the only safe way to exit "
394 "out of a tree walk is to return a nonzero value from I<fn>(). To allow a "
395 "signal to terminate the walk without causing a memory leak, have the handler "
396 "set a global flag that is checked by I<fn>(). I<Don't> use B<longjmp>(3) "
397 "unless the program is going to terminate."
398 msgstr ""
399 "Como B<ftw()> usa estruturas de dados dinâmicas, a única maneira segura de "
400 "sair de uma caminhada na árvore é retornar um valor diferente de zero. Para "
401 "manipular interrupções, por exemplo, indica que a interrupção ocorreu e "
402 "retorna um valor diferente de zero \\(emnão use B<longjmp>(3) a menos que o "
403 "programa vá terminar."
404
405 #. type: Plain text
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 msgid ""
409 "The I<flags> argument of B<nftw>() is formed by ORing zero or more of the "
410 "following flags:"
411 msgstr ""
412
413 #. type: TP
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 #, no-wrap
417 msgid "B<FTW_ACTIONRETVAL> (since glibc 2.3.3)"
418 msgstr "B<FTW_ACTIONRETVAL> (desde o glibc 2.3.3)"
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 msgid ""
424 "If this glibc-specific flag is set, then B<nftw>() handles the return value "
425 "from I<fn>() differently. I<fn>() should return one of the following "
426 "values:"
427 msgstr ""
428
429 #. type: TP
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "B<FTW_CONTINUE>"
434 msgstr "B<FTW_CONTINUE>"
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 msgid "Instructs B<nftw>() to continue normally."
440 msgstr ""
441
442 #. type: TP
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "B<FTW_SKIP_SIBLINGS>"
447 msgstr "B<FTW_SKIP_SIBLINGS>"
448
449 #. If \f[B]FTW_DEPTH\f[]
450 #. is set, the entry's parent directory is processed next (with
451 #. \f[I]flag\f[] set to \f[B]FTW_DP\f[]).
452 #. type: Plain text
453 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
454 #: opensuse-tumbleweed
455 msgid ""
456 "If I<fn>() returns this value, then siblings of the current entry will be "
457 "skipped, and processing continues in the parent."
458 msgstr ""
459
460 #. type: TP
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 #, no-wrap
464 msgid "B<FTW_SKIP_SUBTREE>"
465 msgstr "B<FTW_SKIP_SUBTREE>"
466
467 #. type: Plain text
468 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
469 #: opensuse-tumbleweed
470 msgid ""
471 "If I<fn>() is called with an entry that is a directory (I<typeflag> is "
472 "B<FTW_D>), this return value will prevent objects within that directory from "
473 "being passed as arguments to I<fn>(). B<nftw>() continues processing with "
474 "the next sibling of the directory."
475 msgstr ""
476
477 #. type: TP
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<FTW_STOP>"
482 msgstr "B<FTW_STOP>"
483
484 #. type: Plain text
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 msgid ""
488 "Causes B<nftw>() to return immediately with the return value B<FTW_STOP>."
489 msgstr ""
490
491 #. type: Plain text
492 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
493 #: opensuse-tumbleweed
494 msgid ""
495 "Other return values could be associated with new actions in the future; "
496 "I<fn>() should not return values other than those listed above."
497 msgstr ""
498
499 #. type: Plain text
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 msgid ""
503 "The feature test macro B<_GNU_SOURCE> must be defined (before including "
504 "I<any> header files) in order to obtain the definition of "
505 "B<FTW_ACTIONRETVAL> from I<E<lt>ftw.hE<gt>>."
506 msgstr ""
507
508 #. type: TP
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 #, no-wrap
512 msgid "B<FTW_CHDIR>"
513 msgstr "B<FTW_CHDIR>"
514
515 #. type: Plain text
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 msgid ""
519 "If set, do a B<chdir>(2) to each directory before handling its contents. "
520 "This is useful if the program needs to perform some action in the directory "
521 "in which I<fpath> resides. (Specifying this flag has no effect on the "
522 "pathname that is passed in the I<fpath> argument of I<fn>.)"
523 msgstr ""
524
525 #. type: TP
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 #, no-wrap
529 msgid "B<FTW_DEPTH>"
530 msgstr "B<FTW_DEPTH>"
531
532 #. type: Plain text
533 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
534 #: opensuse-tumbleweed
535 #, fuzzy
536 #| msgid ""
537 #| "If set, do a depth-first search, that is, call the function for the "
538 #| "directory itself only after handling the contents of the directory and "
539 #| "its subdirectories."
540 msgid ""
541 "If set, do a post-order traversal, that is, call I<fn>() for the directory "
542 "itself I<after> handling the contents of the directory and its "
543 "subdirectories. (By default, each directory is handled I<before> its "
544 "contents.)"
545 msgstr ""
546 "Se setado, faz uma busca primeiro por profundidade, ou seja, chama a função "
547 "para o próprio diretório somente depois de manipular os conteúdos do "
548 "diretório e seus subdiretórios."
549
550 #. type: TP
551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
553 #, no-wrap
554 msgid "B<FTW_MOUNT>"
555 msgstr "B<FTW_MOUNT>"
556
557 #. type: Plain text
558 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
559 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
560 #, fuzzy
561 #| msgid "If set, stay within the same file system."
562 msgid ""
563 "If set, stay within the same filesystem (i.e., do not cross mount points)."
564 msgstr "Se setado, fica dentro do mesmo sistema de arquivos."
565
566 #. type: TP
567 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
568 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
569 #, no-wrap
570 msgid "B<FTW_PHYS>"
571 msgstr "B<FTW_PHYS>"
572
573 #. type: Plain text
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 msgid ""
577 "If set, do not follow symbolic links. (This is what you want.) If not set, "
578 "symbolic links are followed, but no file is reported twice."
579 msgstr ""
580 "Se setado, não segue ligações simbólicas. (Isto é o que você quer.) Se não "
581 "setado, as ligações simbólicas são seguidas, mas nenhum arquivo é relatado "
582 "duas vezes."
583
584 #. type: Plain text
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 msgid ""
588 "If B<FTW_PHYS> is not set, but B<FTW_DEPTH> is set, then the function "
589 "I<fn>() is never called for a directory that would be a descendant of "
590 "itself."
591 msgstr ""
592 "Se B<FTW_PHYS> não é setado, mas B<FTW_DEPTH> é setado, então a função "
593 "I<fn>() nunca é chamada para um diretório que seria um descendente dele "
594 "mesmo."
595
596 #. type: SS
597 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
598 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
599 #, no-wrap
600 msgid "ftw()"
601 msgstr "ftw()"
602
603 #. type: Plain text
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 msgid ""
607 "B<ftw>() is an older function that offers a subset of the functionality of "
608 "B<nftw>(). The notable differences are as follows:"
609 msgstr ""
610
611 #. type: IP
612 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
613 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
614 #, no-wrap
615 msgid "\\[bu]"
616 msgstr "\\[bu]"
617
618 #. type: Plain text
619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
621 msgid ""
622 "B<ftw>() has no I<flags> argument. It behaves the same as when B<nftw>() "
623 "is called with I<flags> specified as zero."
624 msgstr ""
625
626 #. type: Plain text
627 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
628 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
629 msgid "The callback function, I<fn>(), is not supplied with a fourth argument."
630 msgstr ""
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 msgid ""
636 "The range of values that is passed via the I<typeflag> argument supplied to "
637 "I<fn>() is smaller: just B<FTW_F>, B<FTW_D>, B<FTW_DNR>, B<FTW_NS>, and "
638 "(possibly) B<FTW_SL>."
639 msgstr ""
640
641 #. type: SH
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 #, no-wrap
645 msgid "RETURN VALUE"
646 msgstr "VALOR DE RETORNO"
647
648 #. type: Plain text
649 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
650 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
651 msgid "These functions return 0 on success, and -1 if an error occurs."
652 msgstr ""
653
654 #. type: Plain text
655 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
656 #: opensuse-tumbleweed
657 msgid ""
658 "If I<fn>() returns nonzero, then the tree walk is terminated and the value "
659 "returned by I<fn>() is returned as the result of B<ftw>() or B<nftw>()."
660 msgstr ""
661
662 #. type: Plain text
663 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
664 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
665 msgid ""
666 "If B<nftw>() is called with the B<FTW_ACTIONRETVAL> flag, then the only "
667 "nonzero value that should be used by I<fn>() to terminate the tree walk is "
668 "B<FTW_STOP>, and that value is returned as the result of B<nftw>()."
669 msgstr ""
670
671 #. type: SH
672 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
673 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
674 #, no-wrap
675 msgid "ATTRIBUTES"
676 msgstr "ATRIBUTOS"
677
678 #. type: Plain text
679 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
680 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
681 msgid ""
682 "For an explanation of the terms used in this section, see B<attributes>(7)."
683 msgstr ""
684 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
685
686 #. type: tbl table
687 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
688 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
689 #, no-wrap
690 msgid "Interface"
691 msgstr "Interface"
692
693 #. type: tbl table
694 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
695 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
696 #, no-wrap
697 msgid "Attribute"
698 msgstr "Atributo"
699
700 #. type: tbl table
701 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
702 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
703 #, no-wrap
704 msgid "Value"
705 msgstr "Valor"
706
707 #. type: tbl table
708 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
709 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
710 #, no-wrap
711 msgid ".na\n"
712 msgstr ".na\n"
713
714 #. type: tbl table
715 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
716 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
717 #, no-wrap
718 msgid ".nh\n"
719 msgstr ".nh\n"
720
721 #. type: TP
722 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
723 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
724 #, no-wrap
725 msgid "B<nftw>()"
726 msgstr "B<nftw>()"
727
728 #. type: tbl table
729 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
730 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
731 #, no-wrap
732 msgid "Thread safety"
733 msgstr "Thread safety"
734
735 #. type: tbl table
736 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
737 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
738 #, fuzzy, no-wrap
739 #| msgid "MT-Safe"
740 msgid "MT-Safe cwd"
741 msgstr "MT-Safe"
742
743 #. type: TP
744 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
745 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
746 #, no-wrap
747 msgid "B<ftw>()"
748 msgstr "B<ftw>()"
749
750 #. type: tbl table
751 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
752 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
753 #, no-wrap
754 msgid "MT-Safe"
755 msgstr "MT-Safe"
756
757 #. type: SH
758 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
759 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
760 #, no-wrap
761 msgid "VERSIONS"
762 msgstr "VERSÕES"
763
764 #. type: Plain text
765 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
766 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
767 msgid ""
768 "In some implementations (e.g., glibc), B<ftw>() will never use B<FTW_SL>; "
769 "on other systems B<FTW_SL> occurs only for symbolic links that do not point "
770 "to an existing file; and again on other systems B<ftw>() will use B<FTW_SL> "
771 "for each symbolic link. If I<fpath> is a symbolic link and B<stat>(2) "
772 "failed, POSIX.1-2008 states that it is undefined whether B<FTW_NS> or "
773 "B<FTW_SL> is passed in I<typeflag>. For predictable results, use B<nftw>()."
774 msgstr ""
775
776 #. type: SH
777 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
778 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
779 #, no-wrap
780 msgid "STANDARDS"
781 msgstr "PADRÕES"
782
783 #. type: Plain text
784 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
785 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
786 msgid "POSIX.1-2008."
787 msgstr "POSIX.1-2008."
788
789 #. type: SH
790 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
791 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
792 #, no-wrap
793 msgid "HISTORY"
794 msgstr "HISTÓRICO"
795
796 #. type: Plain text
797 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
798 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
799 #, fuzzy
800 #| msgid "POSIX.1-2001, POSIX.1-2008, SVr4."
801 msgid "POSIX.1-2001, SVr4, SUSv1. POSIX.1-2008 marks it as obsolete."
802 msgstr "POSIX.1-2001, POSIX.1-2008, SVr4."
803
804 #. type: Plain text
805 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
806 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
807 #, fuzzy
808 #| msgid "glibc 2.1. C99, POSIX.1-2001."
809 msgid "glibc 2.1. POSIX.1-2001, SUSv1."
810 msgstr "glibc 2.1. C99, POSIX.1-2001."
811
812 #. type: Plain text
813 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
814 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
815 #, fuzzy
816 #| msgid "POSIX.1-2001, C99."
817 msgid "POSIX.1-2001, SUSv1."
818 msgstr "POSIX.1-2001, C99."
819
820 #. type: SH
821 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
822 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
823 #, no-wrap
824 msgid "NOTES"
825 msgstr "NOTAS"
826
827 #. type: Plain text
828 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
829 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
830 msgid ""
831 "POSIX.1-2008 notes that the results are unspecified if I<fn> does not "
832 "preserve the current working directory."
833 msgstr ""
834
835 #. type: SH
836 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
837 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
838 #, no-wrap
839 msgid "BUGS"
840 msgstr "BUGS"
841
842 #. https://bugzilla.redhat.com/show_bug.cgi?id=1422736
843 #. http://austingroupbugs.net/view.php?id=1121
844 #. glibc commit 6ba205b2c35e3e024c8c12d2ee1b73363e84da87
845 #. https://sourceware.org/bugzilla/show_bug.cgi?id=23501
846 #. type: Plain text
847 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
848 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
849 msgid ""
850 "According to POSIX.1-2008, when the I<typeflag> argument passed to I<fn>() "
851 "contains B<FTW_SLN>, the buffer pointed to by I<sb> should contain "
852 "information about the dangling symbolic link (obtained by calling "
853 "B<lstat>(2) on the link). Early glibc versions correctly followed the "
854 "POSIX specification on this point. However, as a result of a regression "
855 "introduced in glibc 2.4, the contents of the buffer pointed to by I<sb> were "
856 "undefined when B<FTW_SLN> is passed in I<typeflag>. (More precisely, the "
857 "contents of the buffer were left unchanged in this case.) This regression "
858 "was eventually fixed in glibc 2.30, so that the glibc implementation (once "
859 "more) follows the POSIX specification."
860 msgstr ""
861
862 #. type: SH
863 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
864 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
865 #, no-wrap
866 msgid "EXAMPLES"
867 msgstr "EXEMPLOS"
868
869 #. type: Plain text
870 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
871 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
872 msgid ""
873 "The following program traverses the directory tree under the path named in "
874 "its first command-line argument, or under the current directory if no "
875 "argument is supplied. It displays various information about each file. The "
876 "second command-line argument can be used to specify characters that control "
877 "the value assigned to the I<flags> argument when calling B<nftw>()."
878 msgstr ""
879
880 #. type: SS
881 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
882 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
883 #, no-wrap
884 msgid "Program source"
885 msgstr "Fonte do programa"
886
887 #. type: Plain text
888 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
889 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
890 #, no-wrap
891 msgid ""
892 "#define _XOPEN_SOURCE 500\n"
893 "#include E<lt>ftw.hE<gt>\n"
894 "#include E<lt>stdint.hE<gt>\n"
895 "#include E<lt>stdio.hE<gt>\n"
896 "#include E<lt>stdlib.hE<gt>\n"
897 "#include E<lt>string.hE<gt>\n"
898 "\\&\n"
899 "static int\n"
900 "display_info(const char *fpath, const struct stat *sb,\n"
901 " int tflag, struct FTW *ftwbuf)\n"
902 "{\n"
903 " printf(\"%-3s %2d \",\n"
904 " (tflag == FTW_D) ? \"d\" : (tflag == FTW_DNR) ? \"dnr\" :\n"
905 " (tflag == FTW_DP) ? \"dp\" : (tflag == FTW_F) ? \"f\" :\n"
906 " (tflag == FTW_NS) ? \"ns\" : (tflag == FTW_SL) ? \"sl\" :\n"
907 " (tflag == FTW_SLN) ? \"sln\" : \"???\",\n"
908 " ftwbuf-E<gt>level);\n"
909 "\\&\n"
910 " if (tflag == FTW_NS)\n"
911 " printf(\"-------\");\n"
912 " else\n"
913 " printf(\"%7jd\", (intmax_t) sb-E<gt>st_size);\n"
914 "\\&\n"
915 " printf(\" %-40s %d %s\\[rs]n\",\n"
916 " fpath, ftwbuf-E<gt>base, fpath + ftwbuf-E<gt>base);\n"
917 "\\&\n"
918 " return 0; /* To tell nftw() to continue */\n"
919 "}\n"
920 "\\&\n"
921 "int\n"
922 "main(int argc, char *argv[])\n"
923 "{\n"
924 " int flags = 0;\n"
925 "\\&\n"
926 " if (argc E<gt> 2 && strchr(argv[2], \\[aq]d\\[aq]) != NULL)\n"
927 " flags |= FTW_DEPTH;\n"
928 " if (argc E<gt> 2 && strchr(argv[2], \\[aq]p\\[aq]) != NULL)\n"
929 " flags |= FTW_PHYS;\n"
930 "\\&\n"
931 " if (nftw((argc E<lt> 2) ? \".\" : argv[1], display_info, 20, flags)\n"
932 " == -1)\n"
933 " {\n"
934 " perror(\"nftw\");\n"
935 " exit(EXIT_FAILURE);\n"
936 " }\n"
937 "\\&\n"
938 " exit(EXIT_SUCCESS);\n"
939 "}\n"
940 msgstr ""
941
942 #. SRC END
943 #. type: SH
944 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
945 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
946 #, no-wrap
947 msgid "SEE ALSO"
948 msgstr "VEJA TAMBÉM"
949
950 #. type: Plain text
951 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
952 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
953 msgid "B<stat>(2), B<fts>(3), B<readdir>(3)"
954 msgstr "B<stat>(2), B<fts>(3), B<readdir>(3)"
955
956 #. type: TH
957 #: debian-trixie
958 #, no-wrap
959 msgid "2024-06-15"
960 msgstr "15 junho 2024"
961
962 #. type: TH
963 #: debian-trixie
964 #, no-wrap
965 msgid "Linux man-pages 6.9.1"
966 msgstr "Linux man-pages 6.9.1"
967
968 #. type: Plain text
969 #: debian-trixie
970 msgid "Standard C library (I<libc>, I<-lc>)"
971 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
972
973 #. type: Plain text
974 #: debian-trixie
975 #, no-wrap
976 msgid ""
977 "B<int nftw(const char *>I<dirpath>B<,>\n"
978 "B< int (*>I<fn>B<)(const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
979 "B< int >I<typeflag>B<, struct FTW *>I<ftwbuf>B<),>\n"
980 "B< int >I<nopenfd>B<, int >I<flags>B<);>\n"
981 msgstr ""
982 "B<int nftw(const char *>I<dirpath>B<,>\n"
983 "B< int (*>I<fn>B<)(const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
984 "B< int >I<typeflag>B<, struct FTW *>I<ftwbuf>B<),>\n"
985 "B< int >I<nopenfd>B<, int >I<flags>B<);>\n"
986
987 #. type: Plain text
988 #: debian-trixie
989 #, fuzzy, no-wrap
990 #| msgid ""
991 #| "B<int ftw(const char *>I<dirpath>B<,>\n"
992 #| "B< int (*>I<fn>B<) (const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
993 #| "B< int >I<typeflag>B<),>\n"
994 #| "B< int >I<nopenfd>B<);>\n"
995 msgid ""
996 "B<[[deprecated]]>\n"
997 "B<int ftw(const char *>I<dirpath>B<,>\n"
998 "B< int (*>I<fn>B<)(const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
999 "B< int >I<typeflag>B<),>\n"
1000 "B< int >I<nopenfd>B<);>\n"
1001 msgstr ""
1002 "B<int ftw(const char *>I<dirpath>B<,>\n"
1003 "B< int (*>I<fn>B<) (const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
1004 "B< int >I<typeflag>B<),>\n"
1005 "B< int >I<nopenfd>B<);>\n"
1006
1007 #. type: Plain text
1008 #: debian-trixie fedora-44 fedora-rawhide
1009 msgid ""
1010 "B<nftw>() walks through the directory tree that is located under the "
1011 "directory I<dirpath>, and calls I<fn>() once for each entry in the tree. By "
1012 "default, directories are handled before the files and subdirectories they "
1013 "contain (preorder traversal)."
1014 msgstr ""
1015
1016 #. type: Plain text
1017 #: debian-trixie fedora-44 fedora-rawhide
1018 msgid ""
1019 "For each entry found in the tree, B<nftw>() calls I<fn>() with four "
1020 "arguments: I<fpath>, I<sb>, I<typeflag>, and I<ftwbuf>. I<fpath> is the "
1021 "pathname of the entry, and is expressed either as a pathname relative to the "
1022 "calling process's current working directory at the time of the call to "
1023 "B<nftw>(), if I<dirpath> was expressed as a relative pathname, or as an "
1024 "absolute pathname, if I<dirpath> was expressed as an absolute pathname. "
1025 "I<sb> is a pointer to the I<stat> structure returned by a call to "
1026 "B<stat>(2) for I<fpath>."
1027 msgstr ""
1028
1029 #. type: Plain text
1030 #: debian-trixie fedora-44 fedora-rawhide
1031 #, fuzzy
1032 #| msgid ""
1033 #| "To stop the tree walk, I<fn>() returns a non-zero value; this value will "
1034 #| "become the return value of B<ftw>(). Otherwise, B<ftw>() will continue "
1035 #| "until it has traversed the entire tree, in which case it will return "
1036 #| "zero, or until it hits an error other than EACCES (such as a "
1037 #| "B<malloc>(3) failure), in which case it will return -1."
1038 msgid ""
1039 "To stop the tree walk, I<fn>() returns a nonzero value; this value will "
1040 "become the return value of B<nftw>(). As long as I<fn>() returns 0, "
1041 "B<nftw>() will continue either until it has traversed the entire tree, in "
1042 "which case it will return zero, or until it encounters an error (such as a "
1043 "B<malloc>(3) failure), in which case it will return -1."
1044 msgstr ""
1045 "Para parar a caminhada na árvore, I<fn>() retorna um valor diferente de "
1046 "zero; este valor se tornará o valor de retorno de B<ftw>(). Caso contrário, "
1047 "B<ftw>() continuará até que tenha atravessado a árvore inteira, em cujo caso "
1048 "retornará zero, ou até que ele encontre um erro diferente de EACCES (tal "
1049 "como uma falha de B<malloc>(3)), em cujo caso retornará -1."
1050
1051 #. If \fBFTW_DEPTH\fP
1052 #. is set, the entry's parent directory is processed next (with
1053 #. \fIflag\fP set to \fBFTW_DP\fP).
1054 #. type: Plain text
1055 #: debian-trixie fedora-44 fedora-rawhide
1056 msgid ""
1057 "If I<fn>() returns this value, then siblings of the current entry will be "
1058 "skipped, and processing continues in the parent."
1059 msgstr ""
1060
1061 #. type: Plain text
1062 #: debian-trixie fedora-44 fedora-rawhide
1063 msgid ""
1064 "If I<fn>() is called with an entry that is a directory (I<typeflag> is "
1065 "B<FTW_D>), this return value will prevent objects within that directory from "
1066 "being passed as arguments to I<fn>(). B<nftw>() continues processing with "
1067 "the next sibling of the directory."
1068 msgstr ""
1069
1070 #. type: Plain text
1071 #: debian-trixie fedora-44 fedora-rawhide
1072 msgid ""
1073 "Other return values could be associated with new actions in the future; "
1074 "I<fn>() should not return values other than those listed above."
1075 msgstr ""
1076
1077 #. type: Plain text
1078 #: debian-trixie fedora-44 fedora-rawhide
1079 #, fuzzy
1080 #| msgid ""
1081 #| "If set, do a depth-first search, that is, call the function for the "
1082 #| "directory itself only after handling the contents of the directory and "
1083 #| "its subdirectories."
1084 msgid ""
1085 "If set, do a post-order traversal, that is, call I<fn>() for the directory "
1086 "itself I<after> handling the contents of the directory and its "
1087 "subdirectories. (By default, each directory is handled I<before> its "
1088 "contents.)"
1089 msgstr ""
1090 "Se setado, faz uma busca primeiro por profundidade, ou seja, chama a função "
1091 "para o próprio diretório somente depois de manipular os conteúdos do "
1092 "diretório e seus subdiretórios."
1093
1094 #. type: Plain text
1095 #: debian-trixie fedora-44 fedora-rawhide
1096 msgid ""
1097 "If I<fn>() returns nonzero, then the tree walk is terminated and the value "
1098 "returned by I<fn>() is returned as the result of B<ftw>() or B<nftw>()."
1099 msgstr ""
1100
1101 #. type: TH
1102 #: fedora-44 fedora-rawhide
1103 #, no-wrap
1104 msgid "2024-12-13"
1105 msgstr "13 dezembro 2024"
1106
1107 #. type: TH
1108 #: fedora-44 fedora-rawhide
1109 #, no-wrap
1110 msgid "Linux man-pages 6.13"
1111 msgstr "Linux man-pages 6.13"
1112
1113 #. type: TH
1114 #: mageia-cauldron
1115 #, no-wrap
1116 msgid "Linux man-pages 6.17"
1117 msgstr "Linux man-pages 6.17"
1118
1119 #. type: TH
1120 #: opensuse-leap-16-1 opensuse-tumbleweed
1121 #, no-wrap
1122 msgid "Linux man-pages (unreleased)"
1123 msgstr "Linux man-pages (não lançado)"