Debian Codegraph @

po/es/man3/ftw.3.po

raw
1 # Spanish translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Gerardo Aburruzaga García <[email protected]>, 1998.
5 # Juan Piernas <[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-04-18 09:59+0200\n"
11 "Last-Translator: Juan Piernas <[email protected]>\n"
12 "Language-Team: Spanish <[email protected]>\n"
13 "Language: es\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
18 "X-Generator: Lokalize 20.04.1\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, fuzzy, no-wrap
24 #| msgid "ftw()"
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 Febrero 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 "Páginas de Manual de Linux 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 "NOMBRE"
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 - recorre un árbol de ficheros"
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 Estándar C (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 "SINOPSIS"
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 "B<int nftw(const char *>I<dir>B<, int (*>I<fn>B<)(const> B<char *>I<file>B<, const struct stat *>I<sb>B<, int >I<flag>B<,> B<struct FTW *>I<s>B<),> B<int >I<depth>B<, int >I<flags>B<);>"
87 msgid ""
88 "B<int nftw(const char *>I<dirpath>B<,>\n"
89 "B< typeof(int (const char *>I<fpath>B<, const struct stat *>I<sb,>\n"
90 "B< int >I<typeflag>B<, struct FTW *>I<ftwbuf>B<))>\n"
91 "B< *>I<fn,>\n"
92 "B< int >I<nopenfd>B<, int >I<flags>B<);>\n"
93 msgstr "B<int nftw(const char *>I<directorio>B<, int (*>I<fn>B<)(const> B<char *>I<fichero>B<, const struct stat *>I<sb>B<, int >I<flag>B<,> B<struct FTW *>I<s>B<),> B<int >I<profun>B<, int >I<flags>B<);>"
94
95 #. type: Plain text
96 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
97 #: opensuse-leap-16-1 opensuse-tumbleweed
98 #, fuzzy, no-wrap
99 #| msgid "B<int ftw(const char *>I<dir>B<, int (*>I<fn>B<)(const> B<char *>I<file>B<, const struct stat *>I<sb>B<, int >I<flag>B<),> B<int >I<depth>B<);>"
100 msgid ""
101 "B<[[deprecated]]>\n"
102 "B<int ftw(const char *>I<dirpath>B<,>\n"
103 "B< typeof(int (const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
104 "B< int >I<typeflag>B<))>\n"
105 "B< *>I<fn,>\n"
106 "B< int >I<nopenfd>B<);>\n"
107 msgstr "B<int ftw(const char *>I<directorio>B<, int (*>I<fn>B<)(const> B<char *>I<fichero>B<, const struct stat *>I<sb>B<, int >I<flag>B<),> B<int >I<profun>B<);>"
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid ""
113 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
114 msgstr ""
115 "Requisitos de Macros de Prueba de Características para glibc (véase "
116 "B<feature_test_macros>(7)):"
117
118 #. type: Plain text
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 #, fuzzy
122 #| msgid "B<nftw>()"
123 msgid "B<nftw>():"
124 msgstr "B<nftw>()"
125
126 #. type: Plain text
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 #, no-wrap
130 msgid " _XOPEN_SOURCE E<gt>= 500\n"
131 msgstr " _XOPEN_SOURCE E<gt>= 500\n"
132
133 #. type: SH
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 #, no-wrap
137 msgid "DESCRIPTION"
138 msgstr "DESCRIPCIÓN"
139
140 #. type: Plain text
141 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
142 #: opensuse-tumbleweed
143 msgid ""
144 "B<nftw>() walks through the directory tree that is located under the "
145 "directory I<dirpath>, and calls I<fn>() once for each entry in the tree. "
146 "By default, directories are handled before the files and subdirectories they "
147 "contain (preorder traversal)."
148 msgstr ""
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 #, fuzzy
154 #| msgid ""
155 #| "B<ftw>() recursively calls itself for traversing found directories, "
156 #| "handling a directory before its files or subdirectories. To avoid using "
157 #| "up all a program's file descriptors, the I<depth> specifies the number of "
158 #| "simultaneous open directories. When the depth is exceeded, B<ftw>() will "
159 #| "become slower because directories have to be closed and reopened. "
160 #| "B<ftw>() uses at most one file descriptor for each level in the file "
161 #| "hierarchy."
162 msgid ""
163 "To avoid using up all of the calling process's file descriptors, I<nopenfd> "
164 "specifies the maximum number of directories that B<nftw>() will hold open "
165 "simultaneously. When the search depth exceeds this, B<nftw>() will become "
166 "slower because directories have to be closed and reopened. B<nftw>() uses "
167 "at most one file descriptor for each level in the directory tree."
168 msgstr ""
169 "B<ftw>() se llama a sí misma recursivamente para atravesar los directorios "
170 "que encuentra, tratando un directorio antes que sus ficheros o "
171 "subdirectorios. Para evitar el uso de todos los descriptores de fichero de "
172 "un programa, el argumento I<profun> especifica el número de directorios "
173 "abiertos simultáneamente. Cuando la profundidad es sobrepasada, B<ftw>() se "
174 "ralentizará porque los directorios deberán cerrarse y volverse a abrir. "
175 "B<ftw>() usa, como mucho, un descriptor de fichero para cada nivel de la "
176 "jerarquía de ficheros."
177
178 #. type: Plain text
179 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
180 #: opensuse-tumbleweed
181 msgid ""
182 "For each entry found in the tree, B<nftw>() calls I<fn>() with four "
183 "arguments: I<fpath>, I<sb>, I<typeflag>, and I<ftwbuf>. I<fpath> is the "
184 "pathname of the entry, and is expressed either as a pathname relative to the "
185 "calling process's current working directory at the time of the call to "
186 "B<nftw>(), if I<dirpath> was expressed as a relative pathname, or as an "
187 "absolute pathname, if I<dirpath> was expressed as an absolute pathname. "
188 "I<sb> is a pointer to the I<stat> structure returned by a call to "
189 "B<stat>(2) for I<fpath>."
190 msgstr ""
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid ""
196 "The I<typeflag> argument passed to I<fn>() is an integer that has one of "
197 "the following values:"
198 msgstr ""
199
200 #. type: TP
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "B<FTW_F>"
205 msgstr "B<FTW_F>"
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, fuzzy
211 #| msgid "Item is a normal file"
212 msgid "I<fpath> is a regular file."
213 msgstr "El ítem es un fichero normal"
214
215 #. type: TP
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 #, no-wrap
219 msgid "B<FTW_D>"
220 msgstr "B<FTW_D>"
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 msgid "I<fpath> is a directory."
226 msgstr "I<fpath> es un directorio."
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_DNR>"
233 msgstr "B<FTW_DNR>"
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 which can't be read."
239 msgstr "I<fpath> es un directorio que no se puede leer."
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_DP>"
246 msgstr "B<FTW_DP>"
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 ""
252 "I<fpath> is a directory, and B<FTW_DEPTH> was specified in I<flags>. (If "
253 "B<FTW_DEPTH> was not specified in I<flags>, then directories will always be "
254 "visited with I<typeflag> set to B<FTW_D>.) All of the files and "
255 "subdirectories within I<fpath> have been processed."
256 msgstr ""
257
258 #. type: TP
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 #, no-wrap
262 msgid "B<FTW_NS>"
263 msgstr "B<FTW_NS>"
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 msgid ""
269 "The B<stat>(2) call failed on I<fpath>, which is not a symbolic link. The "
270 "probable cause for this is that the caller had read permission on the parent "
271 "directory, so that the filename I<fpath> could be seen, but did not have "
272 "execute permission, so that the file could not be reached for B<stat>(2). "
273 "The contents of the buffer pointed to by I<sb> are undefined."
274 msgstr ""
275
276 #. type: TP
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, no-wrap
280 msgid "B<FTW_SL>"
281 msgstr "B<FTW_SL>"
282
283 #. To obtain the definition of this constant from
284 #. .IR <ftw.h> ,
285 #. either
286 #. .B _BSD_SOURCE
287 #. must be defined, or
288 #. .BR _XOPEN_SOURCE
289 #. must be defined with a value of 500 or more.
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 msgid "I<fpath> is a symbolic link, and B<FTW_PHYS> was set in I<flags>."
294 msgstr ""
295
296 #. type: TP
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid "B<FTW_SLN>"
301 msgstr "B<FTW_SLN>"
302
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 ""
307 "I<fpath> is a symbolic link pointing to a nonexistent file. (This occurs "
308 "only if B<FTW_PHYS> is not set.) In this case the I<sb> argument passed to "
309 "I<fn>() contains information returned by performing B<lstat>(2) on the "
310 "\"dangling\" symbolic link. (But see BUGS.)"
311 msgstr ""
312
313 #. type: Plain text
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 msgid ""
317 "The fourth argument (I<ftwbuf>) that B<nftw>() supplies when calling "
318 "I<fn>() is a pointer to a structure of type I<FTW>:"
319 msgstr ""
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 #, no-wrap
325 msgid ""
326 "struct FTW {\n"
327 " int base;\n"
328 " int level;\n"
329 "};\n"
330 msgstr ""
331 "struct FTW {\n"
332 " int base;\n"
333 " int level;\n"
334 "};\n"
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 ""
340 "I<base> is the offset of the filename (i.e., basename component) in the "
341 "pathname given in I<fpath>. I<level> is the depth of I<fpath> in the "
342 "directory tree, relative to the root of the tree (I<dirpath>, which has "
343 "depth 0)."
344 msgstr ""
345
346 #. type: Plain text
347 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
348 #: opensuse-tumbleweed
349 #, fuzzy
350 #| msgid ""
351 #| "To stop the tree walk, I<fn>() returns a non-zero value; this value will "
352 #| "become the return value of B<ftw>(). Otherwise, B<ftw>() will continue "
353 #| "until it has traversed the entire tree, in which case it will return "
354 #| "zero, or until it hits an error other than EACCES (such as a "
355 #| "B<malloc>(3) failure), in which case it will return -1."
356 msgid ""
357 "To stop the tree walk, I<fn>() returns a nonzero value; this value will "
358 "become the return value of B<nftw>(). As long as I<fn>() returns 0, "
359 "B<nftw>() will continue either until it has traversed the entire tree, in "
360 "which case it will return zero, or until it encounters an error (such as a "
361 "B<malloc>(3) failure), in which case it will return -1."
362 msgstr ""
363 "Para detener el recorrido por el árbol, I<fn>() devuelve un valor no-cero. "
364 "Este valor se convertirá en el devuelto por B<ftw>(). De otro modo, "
365 "B<ftw>() continuará hasta que haya recorrido el árbol entero, en cuyo caso "
366 "devolverá cero, o hasta que ocurra un error distinto de EACCES (como un "
367 "fallo de B<malloc>(3)), en cuyo caso devolverá -1."
368
369 #. type: Plain text
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, fuzzy
373 #| msgid ""
374 #| "Because B<ftw()> uses dynamic data structures, the only safe way to exit "
375 #| "out of a tree walk is to return a non-zero value. To handle interrupts, "
376 #| "for example, mark that the interrupt occurred and return a non-zero "
377 #| "value\\(emdon't use B<longjmp>(3) unless the program is going to "
378 #| "terminate."
379 msgid ""
380 "Because B<nftw>() uses dynamic data structures, the only safe way to exit "
381 "out of a tree walk is to return a nonzero value from I<fn>(). To allow a "
382 "signal to terminate the walk without causing a memory leak, have the handler "
383 "set a global flag that is checked by I<fn>(). I<Don't> use B<longjmp>(3) "
384 "unless the program is going to terminate."
385 msgstr ""
386 "Puesto que B<ftw()> usa estructuras de datos dinámicas, la única forma "
387 "segura de salir de un recorrido por un árbol es devolver un valor no cero. "
388 "Para manejar interrupciones, por ejemplo, marque que ha ocurrido una "
389 "interrupción y devuelva un valor no-cero (no emplee B<longjmp>(3) a menos "
390 "que el programa vaya a terminar)."
391
392 #. type: Plain text
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 msgid ""
396 "The I<flags> argument of B<nftw>() is formed by ORing zero or more of the "
397 "following flags:"
398 msgstr ""
399
400 #. type: TP
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 #, no-wrap
404 msgid "B<FTW_ACTIONRETVAL> (since glibc 2.3.3)"
405 msgstr "B<FTW_ACTIONRETVAL> (desde glibc 2.3.3)"
406
407 #. type: Plain text
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 msgid ""
411 "If this glibc-specific flag is set, then B<nftw>() handles the return value "
412 "from I<fn>() differently. I<fn>() should return one of the following "
413 "values:"
414 msgstr ""
415
416 #. type: TP
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 #, no-wrap
420 msgid "B<FTW_CONTINUE>"
421 msgstr "B<FTW_CONTINUE>"
422
423 #. type: Plain text
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 msgid "Instructs B<nftw>() to continue normally."
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_SKIP_SIBLINGS>"
434 msgstr "B<FTW_SKIP_SIBLINGS>"
435
436 #. If \f[B]FTW_DEPTH\f[]
437 #. is set, the entry's parent directory is processed next (with
438 #. \f[I]flag\f[] set to \f[B]FTW_DP\f[]).
439 #. type: Plain text
440 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
441 #: opensuse-tumbleweed
442 msgid ""
443 "If I<fn>() returns this value, then siblings of the current entry will be "
444 "skipped, and processing continues in the parent."
445 msgstr ""
446
447 #. type: TP
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 #, no-wrap
451 msgid "B<FTW_SKIP_SUBTREE>"
452 msgstr "B<FTW_SKIP_SUBTREE>"
453
454 #. type: Plain text
455 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
456 #: opensuse-tumbleweed
457 msgid ""
458 "If I<fn>() is called with an entry that is a directory (I<typeflag> is "
459 "B<FTW_D>), this return value will prevent objects within that directory from "
460 "being passed as arguments to I<fn>(). B<nftw>() continues processing with "
461 "the next sibling of the directory."
462 msgstr ""
463
464 #. type: TP
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 #, no-wrap
468 msgid "B<FTW_STOP>"
469 msgstr "B<FTW_STOP>"
470
471 #. type: Plain text
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 msgid ""
475 "Causes B<nftw>() to return immediately with the return value B<FTW_STOP>."
476 msgstr ""
477
478 #. type: Plain text
479 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
480 #: opensuse-tumbleweed
481 msgid ""
482 "Other return values could be associated with new actions in the future; "
483 "I<fn>() should not return values other than those listed above."
484 msgstr ""
485
486 #. type: Plain text
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 msgid ""
490 "The feature test macro B<_GNU_SOURCE> must be defined (before including "
491 "I<any> header files) in order to obtain the definition of "
492 "B<FTW_ACTIONRETVAL> from I<E<lt>ftw.hE<gt>>."
493 msgstr ""
494
495 #. type: TP
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 #, no-wrap
499 msgid "B<FTW_CHDIR>"
500 msgstr "B<FTW_CHDIR>"
501
502 #. type: Plain text
503 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
504 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
505 msgid ""
506 "If set, do a B<chdir>(2) to each directory before handling its contents. "
507 "This is useful if the program needs to perform some action in the directory "
508 "in which I<fpath> resides. (Specifying this flag has no effect on the "
509 "pathname that is passed in the I<fpath> argument of I<fn>.)"
510 msgstr ""
511
512 #. type: TP
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 #, no-wrap
516 msgid "B<FTW_DEPTH>"
517 msgstr "B<FTW_DEPTH>"
518
519 #. type: Plain text
520 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
521 #: opensuse-tumbleweed
522 #, fuzzy
523 #| msgid ""
524 #| "If set, do a depth-first search, that is, call the function for the "
525 #| "directory itself only after handling the contents of the directory and "
526 #| "its subdirectories."
527 msgid ""
528 "If set, do a post-order traversal, that is, call I<fn>() for the directory "
529 "itself I<after> handling the contents of the directory and its "
530 "subdirectories. (By default, each directory is handled I<before> its "
531 "contents.)"
532 msgstr ""
533 "Realiza una búsqueda primero en profundidad, es decir, llama a la función "
534 "para el propio directorio sólo después de tratar el contenido del directorio "
535 "y de sus subdirectorios."
536
537 #. type: TP
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 #, no-wrap
541 msgid "B<FTW_MOUNT>"
542 msgstr "B<FTW_MOUNT>"
543
544 #. type: Plain text
545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
547 #, fuzzy
548 #| msgid "If set, stay within the same file system."
549 msgid ""
550 "If set, stay within the same filesystem (i.e., do not cross mount points)."
551 msgstr "Permanece dentro del mismo sistema de ficheros."
552
553 #. type: TP
554 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
555 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
556 #, no-wrap
557 msgid "B<FTW_PHYS>"
558 msgstr "B<FTW_PHYS>"
559
560 #. type: Plain text
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 msgid ""
564 "If set, do not follow symbolic links. (This is what you want.) If not set, "
565 "symbolic links are followed, but no file is reported twice."
566 msgstr ""
567 "No sigas enlaces simbólicos (esto es lo que desea). Cuando no está activa, "
568 "se siguen los enlaces simbólicos, pero ningún fichero aparece dos veces."
569
570 #. type: Plain text
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 msgid ""
574 "If B<FTW_PHYS> is not set, but B<FTW_DEPTH> is set, then the function "
575 "I<fn>() is never called for a directory that would be a descendant of "
576 "itself."
577 msgstr ""
578 "Si la opción B<FTW_PHYS> no está activa, pero B<FTW_DEPTH> sí, entonces "
579 "nunca se llama a la función I<fn>() para un directorio que sería "
580 "descendiente de sí mismo."
581
582 #. type: SS
583 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
584 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
585 #, no-wrap
586 msgid "ftw()"
587 msgstr "ftw()"
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 ""
593 "B<ftw>() is an older function that offers a subset of the functionality of "
594 "B<nftw>(). The notable differences are as follows:"
595 msgstr ""
596
597 #. type: IP
598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
600 #, no-wrap
601 msgid "\\[bu]"
602 msgstr "\\[bu]"
603
604 #. type: Plain text
605 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
606 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
607 msgid ""
608 "B<ftw>() has no I<flags> argument. It behaves the same as when B<nftw>() "
609 "is called with I<flags> specified as zero."
610 msgstr ""
611
612 #. type: Plain text
613 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
614 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
615 msgid "The callback function, I<fn>(), is not supplied with a fourth argument."
616 msgstr ""
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 "The range of values that is passed via the I<typeflag> argument supplied to "
623 "I<fn>() is smaller: just B<FTW_F>, B<FTW_D>, B<FTW_DNR>, B<FTW_NS>, and "
624 "(possibly) B<FTW_SL>."
625 msgstr ""
626
627 #. type: SH
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 #, no-wrap
631 msgid "RETURN VALUE"
632 msgstr "VALOR DEVUELTO"
633
634 #. type: Plain text
635 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
636 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
637 msgid "These functions return 0 on success, and -1 if an error occurs."
638 msgstr ""
639
640 #. type: Plain text
641 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
642 #: opensuse-tumbleweed
643 msgid ""
644 "If I<fn>() returns nonzero, then the tree walk is terminated and the value "
645 "returned by I<fn>() is returned as the result of B<ftw>() or B<nftw>()."
646 msgstr ""
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 ""
652 "If B<nftw>() is called with the B<FTW_ACTIONRETVAL> flag, then the only "
653 "nonzero value that should be used by I<fn>() to terminate the tree walk is "
654 "B<FTW_STOP>, and that value is returned as the result of B<nftw>()."
655 msgstr ""
656
657 #. type: SH
658 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
659 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
660 #, no-wrap
661 msgid "ATTRIBUTES"
662 msgstr "ATRIBUTOS"
663
664 #. type: Plain text
665 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
666 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
667 msgid ""
668 "For an explanation of the terms used in this section, see B<attributes>(7)."
669 msgstr ""
670 "Para obtener una explicación de los términos usados en esta sección, véase "
671 "B<attributes>(7)."
672
673 #. type: tbl table
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 #, no-wrap
677 msgid "Interface"
678 msgstr "Interfaz"
679
680 #. type: tbl table
681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
683 #, no-wrap
684 msgid "Attribute"
685 msgstr "Atributo"
686
687 #. type: tbl table
688 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
689 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
690 #, no-wrap
691 msgid "Value"
692 msgstr "Valor"
693
694 #. type: tbl table
695 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
696 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
697 #, no-wrap
698 msgid ".na\n"
699 msgstr ".na\n"
700
701 #. type: tbl table
702 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
703 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
704 #, no-wrap
705 msgid ".nh\n"
706 msgstr ".nh\n"
707
708 #. type: TP
709 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
710 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
711 #, no-wrap
712 msgid "B<nftw>()"
713 msgstr "B<nftw>()"
714
715 #. type: tbl table
716 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
717 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
718 #, no-wrap
719 msgid "Thread safety"
720 msgstr "Seguridad del hilo"
721
722 #. type: tbl table
723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
725 #, fuzzy, no-wrap
726 #| msgid "MT-Safe"
727 msgid "MT-Safe cwd"
728 msgstr "Multi-hilo seguro"
729
730 #. type: TP
731 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
732 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
733 #, no-wrap
734 msgid "B<ftw>()"
735 msgstr "B<ftw>()"
736
737 #. type: tbl table
738 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
739 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
740 #, no-wrap
741 msgid "MT-Safe"
742 msgstr "Multi-hilo seguro"
743
744 #. type: SH
745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
747 #, no-wrap
748 msgid "VERSIONS"
749 msgstr "VERSIONES"
750
751 #. type: Plain text
752 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
753 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
754 #, fuzzy
755 #| msgid ""
756 #| "On some systems I<ftw>() will never use FTW_SL, on other systems FTW_SL "
757 #| "occurs only for symbolic links that do not point to an existing file, and "
758 #| "again on other systems I<ftw>() will use FTW_SL for each symbolic link. "
759 #| "For predictable control, use I<nftw>()."
760 msgid ""
761 "In some implementations (e.g., glibc), B<ftw>() will never use B<FTW_SL>; "
762 "on other systems B<FTW_SL> occurs only for symbolic links that do not point "
763 "to an existing file; and again on other systems B<ftw>() will use B<FTW_SL> "
764 "for each symbolic link. If I<fpath> is a symbolic link and B<stat>(2) "
765 "failed, POSIX.1-2008 states that it is undefined whether B<FTW_NS> or "
766 "B<FTW_SL> is passed in I<typeflag>. For predictable results, use B<nftw>()."
767 msgstr ""
768 "En algunos sistemas I<ftw>() no usará nunca FTW_SL, en otros sistemas FTW_SL "
769 "se usa sólo para enlaces simbólicos que no apuntan a un fichero existente, y "
770 "de nuevo en otros sistemas, I<ftw>() usará FTW_SL para cada enlace "
771 "simbólico. Si quiere un uso determinista, use I<nftw>()."
772
773 #. type: SH
774 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
775 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
776 #, no-wrap
777 msgid "STANDARDS"
778 msgstr "ESTÁNDARES"
779
780 #. type: Plain text
781 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
782 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
783 msgid "POSIX.1-2008."
784 msgstr "POSIX.1-2008."
785
786 #. type: SH
787 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
788 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
789 #, no-wrap
790 msgid "HISTORY"
791 msgstr "HISTORIAL"
792
793 #. type: Plain text
794 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
795 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
796 #, fuzzy
797 #| msgid "POSIX.1-2001, POSIX.1-2008, SVr4."
798 msgid "POSIX.1-2001, SVr4, SUSv1. POSIX.1-2008 marks it as obsolete."
799 msgstr "POSIX.1-2001, POSIX.1-2008, SVr4."
800
801 #. type: Plain text
802 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
803 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
804 #, fuzzy
805 #| msgid "glibc 2.1. C99, POSIX.1-2001."
806 msgid "glibc 2.1. POSIX.1-2001, SUSv1."
807 msgstr "glibc 2.1. C99, POSIX.1-2001."
808
809 #. type: Plain text
810 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
811 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
812 #, fuzzy
813 #| msgid "POSIX.1-2001, C99."
814 msgid "POSIX.1-2001, SUSv1."
815 msgstr "POSIX.1-2001, C99."
816
817 #. type: SH
818 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
819 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
820 #, no-wrap
821 msgid "NOTES"
822 msgstr "NOTAS"
823
824 #. type: Plain text
825 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
826 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
827 msgid ""
828 "POSIX.1-2008 notes that the results are unspecified if I<fn> does not "
829 "preserve the current working directory."
830 msgstr ""
831
832 #. type: SH
833 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
834 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
835 #, no-wrap
836 msgid "BUGS"
837 msgstr "ERRORES"
838
839 #. https://bugzilla.redhat.com/show_bug.cgi?id=1422736
840 #. http://austingroupbugs.net/view.php?id=1121
841 #. glibc commit 6ba205b2c35e3e024c8c12d2ee1b73363e84da87
842 #. https://sourceware.org/bugzilla/show_bug.cgi?id=23501
843 #. type: Plain text
844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
846 msgid ""
847 "According to POSIX.1-2008, when the I<typeflag> argument passed to I<fn>() "
848 "contains B<FTW_SLN>, the buffer pointed to by I<sb> should contain "
849 "information about the dangling symbolic link (obtained by calling "
850 "B<lstat>(2) on the link). Early glibc versions correctly followed the "
851 "POSIX specification on this point. However, as a result of a regression "
852 "introduced in glibc 2.4, the contents of the buffer pointed to by I<sb> were "
853 "undefined when B<FTW_SLN> is passed in I<typeflag>. (More precisely, the "
854 "contents of the buffer were left unchanged in this case.) This regression "
855 "was eventually fixed in glibc 2.30, so that the glibc implementation (once "
856 "more) follows the POSIX specification."
857 msgstr ""
858
859 #. type: SH
860 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
861 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
862 #, no-wrap
863 msgid "EXAMPLES"
864 msgstr "EJEMPLOS"
865
866 #. type: Plain text
867 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
868 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
869 msgid ""
870 "The following program traverses the directory tree under the path named in "
871 "its first command-line argument, or under the current directory if no "
872 "argument is supplied. It displays various information about each file. The "
873 "second command-line argument can be used to specify characters that control "
874 "the value assigned to the I<flags> argument when calling B<nftw>()."
875 msgstr ""
876
877 #. type: SS
878 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
879 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
880 #, no-wrap
881 msgid "Program source"
882 msgstr "Código fuente"
883
884 #. type: Plain text
885 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
886 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
887 #, no-wrap
888 msgid ""
889 "#define _XOPEN_SOURCE 500\n"
890 "#include E<lt>ftw.hE<gt>\n"
891 "#include E<lt>stdint.hE<gt>\n"
892 "#include E<lt>stdio.hE<gt>\n"
893 "#include E<lt>stdlib.hE<gt>\n"
894 "#include E<lt>string.hE<gt>\n"
895 "\\&\n"
896 "static int\n"
897 "display_info(const char *fpath, const struct stat *sb,\n"
898 " int tflag, struct FTW *ftwbuf)\n"
899 "{\n"
900 " printf(\"%-3s %2d \",\n"
901 " (tflag == FTW_D) ? \"d\" : (tflag == FTW_DNR) ? \"dnr\" :\n"
902 " (tflag == FTW_DP) ? \"dp\" : (tflag == FTW_F) ? \"f\" :\n"
903 " (tflag == FTW_NS) ? \"ns\" : (tflag == FTW_SL) ? \"sl\" :\n"
904 " (tflag == FTW_SLN) ? \"sln\" : \"???\",\n"
905 " ftwbuf-E<gt>level);\n"
906 "\\&\n"
907 " if (tflag == FTW_NS)\n"
908 " printf(\"-------\");\n"
909 " else\n"
910 " printf(\"%7jd\", (intmax_t) sb-E<gt>st_size);\n"
911 "\\&\n"
912 " printf(\" %-40s %d %s\\[rs]n\",\n"
913 " fpath, ftwbuf-E<gt>base, fpath + ftwbuf-E<gt>base);\n"
914 "\\&\n"
915 " return 0; /* To tell nftw() to continue */\n"
916 "}\n"
917 "\\&\n"
918 "int\n"
919 "main(int argc, char *argv[])\n"
920 "{\n"
921 " int flags = 0;\n"
922 "\\&\n"
923 " if (argc E<gt> 2 && strchr(argv[2], \\[aq]d\\[aq]) != NULL)\n"
924 " flags |= FTW_DEPTH;\n"
925 " if (argc E<gt> 2 && strchr(argv[2], \\[aq]p\\[aq]) != NULL)\n"
926 " flags |= FTW_PHYS;\n"
927 "\\&\n"
928 " if (nftw((argc E<lt> 2) ? \".\" : argv[1], display_info, 20, flags)\n"
929 " == -1)\n"
930 " {\n"
931 " perror(\"nftw\");\n"
932 " exit(EXIT_FAILURE);\n"
933 " }\n"
934 "\\&\n"
935 " exit(EXIT_SUCCESS);\n"
936 "}\n"
937 msgstr ""
938
939 #. SRC END
940 #. type: SH
941 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
942 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
943 #, no-wrap
944 msgid "SEE ALSO"
945 msgstr "VÉASE TAMBIÉN"
946
947 #. type: Plain text
948 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
949 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
950 msgid "B<stat>(2), B<fts>(3), B<readdir>(3)"
951 msgstr "B<stat>(2), B<fts>(3), B<readdir>(3)"
952
953 #. type: TH
954 #: debian-trixie
955 #, no-wrap
956 msgid "2024-06-15"
957 msgstr "15 Junio 2024"
958
959 #. type: TH
960 #: debian-trixie
961 #, no-wrap
962 msgid "Linux man-pages 6.9.1"
963 msgstr "Páginas de Manual de Linux 6.9.1"
964
965 #. type: Plain text
966 #: debian-trixie
967 msgid "Standard C library (I<libc>, I<-lc>)"
968 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
969
970 #. type: Plain text
971 #: debian-trixie
972 #, fuzzy, no-wrap
973 #| msgid "B<int nftw(const char *>I<dir>B<, int (*>I<fn>B<)(const> B<char *>I<file>B<, const struct stat *>I<sb>B<, int >I<flag>B<,> B<struct FTW *>I<s>B<),> B<int >I<depth>B<, int >I<flags>B<);>"
974 msgid ""
975 "B<int nftw(const char *>I<dirpath>B<,>\n"
976 "B< int (*>I<fn>B<)(const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
977 "B< int >I<typeflag>B<, struct FTW *>I<ftwbuf>B<),>\n"
978 "B< int >I<nopenfd>B<, int >I<flags>B<);>\n"
979 msgstr "B<int nftw(const char *>I<directorio>B<, int (*>I<fn>B<)(const> B<char *>I<fichero>B<, const struct stat *>I<sb>B<, int >I<flag>B<,> B<struct FTW *>I<s>B<),> B<int >I<profun>B<, int >I<flags>B<);>"
980
981 #. type: Plain text
982 #: debian-trixie
983 #, fuzzy, no-wrap
984 #| msgid "B<int ftw(const char *>I<dir>B<, int (*>I<fn>B<)(const> B<char *>I<file>B<, const struct stat *>I<sb>B<, int >I<flag>B<),> B<int >I<depth>B<);>"
985 msgid ""
986 "B<[[deprecated]]>\n"
987 "B<int ftw(const char *>I<dirpath>B<,>\n"
988 "B< int (*>I<fn>B<)(const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
989 "B< int >I<typeflag>B<),>\n"
990 "B< int >I<nopenfd>B<);>\n"
991 msgstr "B<int ftw(const char *>I<directorio>B<, int (*>I<fn>B<)(const> B<char *>I<fichero>B<, const struct stat *>I<sb>B<, int >I<flag>B<),> B<int >I<profun>B<);>"
992
993 #. type: Plain text
994 #: debian-trixie fedora-44 fedora-rawhide
995 msgid ""
996 "B<nftw>() walks through the directory tree that is located under the "
997 "directory I<dirpath>, and calls I<fn>() once for each entry in the tree. By "
998 "default, directories are handled before the files and subdirectories they "
999 "contain (preorder traversal)."
1000 msgstr ""
1001
1002 #. type: Plain text
1003 #: debian-trixie fedora-44 fedora-rawhide
1004 msgid ""
1005 "For each entry found in the tree, B<nftw>() calls I<fn>() with four "
1006 "arguments: I<fpath>, I<sb>, I<typeflag>, and I<ftwbuf>. I<fpath> is the "
1007 "pathname of the entry, and is expressed either as a pathname relative to the "
1008 "calling process's current working directory at the time of the call to "
1009 "B<nftw>(), if I<dirpath> was expressed as a relative pathname, or as an "
1010 "absolute pathname, if I<dirpath> was expressed as an absolute pathname. "
1011 "I<sb> is a pointer to the I<stat> structure returned by a call to "
1012 "B<stat>(2) for I<fpath>."
1013 msgstr ""
1014
1015 #. type: Plain text
1016 #: debian-trixie fedora-44 fedora-rawhide
1017 #, fuzzy
1018 #| msgid ""
1019 #| "To stop the tree walk, I<fn>() returns a non-zero value; this value will "
1020 #| "become the return value of B<ftw>(). Otherwise, B<ftw>() will continue "
1021 #| "until it has traversed the entire tree, in which case it will return "
1022 #| "zero, or until it hits an error other than EACCES (such as a "
1023 #| "B<malloc>(3) failure), in which case it will return -1."
1024 msgid ""
1025 "To stop the tree walk, I<fn>() returns a nonzero value; this value will "
1026 "become the return value of B<nftw>(). As long as I<fn>() returns 0, "
1027 "B<nftw>() will continue either until it has traversed the entire tree, in "
1028 "which case it will return zero, or until it encounters an error (such as a "
1029 "B<malloc>(3) failure), in which case it will return -1."
1030 msgstr ""
1031 "Para detener el recorrido por el árbol, I<fn>() devuelve un valor no-cero. "
1032 "Este valor se convertirá en el devuelto por B<ftw>(). De otro modo, "
1033 "B<ftw>() continuará hasta que haya recorrido el árbol entero, en cuyo caso "
1034 "devolverá cero, o hasta que ocurra un error distinto de EACCES (como un "
1035 "fallo de B<malloc>(3)), en cuyo caso devolverá -1."
1036
1037 #. If \fBFTW_DEPTH\fP
1038 #. is set, the entry's parent directory is processed next (with
1039 #. \fIflag\fP set to \fBFTW_DP\fP).
1040 #. type: Plain text
1041 #: debian-trixie fedora-44 fedora-rawhide
1042 msgid ""
1043 "If I<fn>() returns this value, then siblings of the current entry will be "
1044 "skipped, and processing continues in the parent."
1045 msgstr ""
1046
1047 #. type: Plain text
1048 #: debian-trixie fedora-44 fedora-rawhide
1049 msgid ""
1050 "If I<fn>() is called with an entry that is a directory (I<typeflag> is "
1051 "B<FTW_D>), this return value will prevent objects within that directory from "
1052 "being passed as arguments to I<fn>(). B<nftw>() continues processing with "
1053 "the next sibling of the directory."
1054 msgstr ""
1055
1056 #. type: Plain text
1057 #: debian-trixie fedora-44 fedora-rawhide
1058 msgid ""
1059 "Other return values could be associated with new actions in the future; "
1060 "I<fn>() should not return values other than those listed above."
1061 msgstr ""
1062
1063 #. type: Plain text
1064 #: debian-trixie fedora-44 fedora-rawhide
1065 #, fuzzy
1066 #| msgid ""
1067 #| "If set, do a depth-first search, that is, call the function for the "
1068 #| "directory itself only after handling the contents of the directory and "
1069 #| "its subdirectories."
1070 msgid ""
1071 "If set, do a post-order traversal, that is, call I<fn>() for the directory "
1072 "itself I<after> handling the contents of the directory and its "
1073 "subdirectories. (By default, each directory is handled I<before> its "
1074 "contents.)"
1075 msgstr ""
1076 "Realiza una búsqueda primero en profundidad, es decir, llama a la función "
1077 "para el propio directorio sólo después de tratar el contenido del directorio "
1078 "y de sus subdirectorios."
1079
1080 #. type: Plain text
1081 #: debian-trixie fedora-44 fedora-rawhide
1082 msgid ""
1083 "If I<fn>() returns nonzero, then the tree walk is terminated and the value "
1084 "returned by I<fn>() is returned as the result of B<ftw>() or B<nftw>()."
1085 msgstr ""
1086
1087 #. type: TH
1088 #: fedora-44 fedora-rawhide
1089 #, no-wrap
1090 msgid "2024-12-13"
1091 msgstr "13 Diciembre 2024"
1092
1093 #. type: TH
1094 #: fedora-44 fedora-rawhide
1095 #, no-wrap
1096 msgid "Linux man-pages 6.13"
1097 msgstr "Páginas de Manual de Linux 6.13"
1098
1099 #. type: TH
1100 #: mageia-cauldron
1101 #, no-wrap
1102 msgid "Linux man-pages 6.17"
1103 msgstr "Páginas de Manual de Linux 6.17"
1104
1105 #. type: TH
1106 #: opensuse-leap-16-1 opensuse-tumbleweed
1107 #, no-wrap
1108 msgid "Linux man-pages (unreleased)"
1109 msgstr "Páginas de Manual de Linux (no publicadas)"