Debian Codegraph @

po/pt_BR/man3/scandir.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 M. de Abreu <[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:42+0200\n"
10 "PO-Revision-Date: 2001-05-31 17:26+0200\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 "scandirat()"
26 msgid "scandir"
27 msgstr "scandirat()"
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 ""
54 "scandir, scandirat, alphasort, versionsort - scan a directory for matching "
55 "entries"
56 msgstr ""
57 "scandir, scandirat, alphasort, versionsort - varre um diretório buscando "
58 "entradas que combinem"
59
60 #. type: SH
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 #, no-wrap
64 msgid "LIBRARY"
65 msgstr "BIBLIOTECA"
66
67 #. type: Plain text
68 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
69 #: opensuse-leap-16-1 opensuse-tumbleweed
70 msgid "Standard C library (I<libc>,\\ I<-lc>)"
71 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
72
73 #. type: SH
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "SYNOPSIS"
78 msgstr "SINOPSE"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "B<#include E<lt>dirent.hE<gt>>\n"
85 msgstr "B<#include E<lt>dirent.hE<gt>>\n"
86
87 #. type: Plain text
88 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
89 #: opensuse-leap-16-1 opensuse-tumbleweed
90 #, fuzzy, no-wrap
91 #| msgid ""
92 #| "B<int (*>I<filter>B<)(const struct dirent *),>\n"
93 #| "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
94 msgid ""
95 "B<int scandir(const char *restrict >I<dirp>B<,>\n"
96 "B< struct dirent ***restrict >I<namelist>B<,>\n"
97 "B< typeof(int (const struct dirent *)) *>I<filter>B<,>\n"
98 "B<typeof(int (const struct dirent **, const struct dirent **))>\n"
99 "B< *>I<compar>B<);>\n"
100 msgstr ""
101 "B<int (*>I<filter>B<)(const struct dirent *),>\n"
102 "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 #, fuzzy, no-wrap
108 #| msgid ""
109 #| "B<int (*>I<filter>B<)(const struct dirent *),>\n"
110 #| "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
111 msgid ""
112 "B<int alphasort(const struct dirent **>I<a>B<, const struct dirent **>I<b>B<);>\n"
113 "B<int versionsort(const struct dirent **>I<a>B<, const struct dirent **>I<b>B<);>\n"
114 msgstr ""
115 "B<int (*>I<filter>B<)(const struct dirent *),>\n"
116 "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
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 #, no-wrap
122 msgid ""
123 "B<#include E<lt>fcntl.hE<gt>> /* Definition of AT_* constants */\n"
124 "B<#include E<lt>dirent.hE<gt>>\n"
125 msgstr ""
126
127 #. type: Plain text
128 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
129 #: opensuse-leap-16-1 opensuse-tumbleweed
130 #, fuzzy, no-wrap
131 #| msgid ""
132 #| "B<int (*>I<filter>B<)(const struct dirent *),>\n"
133 #| "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
134 msgid ""
135 "B<int scandirat(int >I<dirfd>B<, const char *restrict >I<dirp>B<,>\n"
136 "B< struct dirent ***restrict >I<namelist>B<,>\n"
137 "B< typeof(int (const struct dirent *)) *>I<filter>B<,>\n"
138 "B<typeof(int (const struct dirent **, const struct dirent **))>\n"
139 "B< *>I<compar>B<);>\n"
140 msgstr ""
141 "B<int (*>I<filter>B<)(const struct dirent *),>\n"
142 "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 msgid ""
148 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
149 msgstr ""
150 "Requisitos de macro de teste de recursos para o glibc (consulte "
151 "B<feature_test_macros>(7)):"
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid "B<scandir>(), B<alphasort>():"
157 msgstr "B<scandir>(), B<alphasort>():"
158
159 #. type: Plain text
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 #, fuzzy, no-wrap
163 #| msgid ""
164 #| "/* Since glibc 2.10: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200809L\n"
165 #| " || /* Glibc versions E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
166 msgid ""
167 " /* Since glibc 2.10: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
168 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
169 msgstr ""
170 "/* Desde o 2.10: */ _POSIX_C_SOURCE\\ E<gt>=\\ 200809L\n"
171 " || /* Glibc versões E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 #, fuzzy
177 #| msgid "B<versionsort>(): _GNU_SOURCE"
178 msgid "B<versionsort>():"
179 msgstr "B<versionsort>(): _GNU_SOURCE"
180
181 #. type: Plain text
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid " _GNU_SOURCE\n"
186 msgstr " _GNU_SOURCE\n"
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 #, fuzzy
192 #| msgid "scandirat()"
193 msgid "B<scandirat>():"
194 msgstr "scandirat()"
195
196 #. type: SH
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 #, no-wrap
200 msgid "DESCRIPTION"
201 msgstr "DESCRIÇÃO"
202
203 #. type: Plain text
204 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
205 #: opensuse-tumbleweed
206 #, fuzzy
207 #| msgid ""
208 #| "The B<scandir()> function scans the directory I<dir>, calling B<select()> "
209 #| "on each directory entry. Entries for which B<select()> returns non-zero "
210 #| "are stored in strings allocated via B<malloc()>, sorted using B<qsort()> "
211 #| "with the comparison function B<compar()>, and collected in array "
212 #| "I<namelist> which is allocated via B<malloc()>. If B<select> is NULL, "
213 #| "all entries are selected."
214 msgid ""
215 "The B<scandir>() function scans the directory I<dirp>, calling I<filter>() "
216 "on each directory entry. Entries for which I<filter>() returns nonzero are "
217 "stored in strings allocated via B<malloc>(3), sorted using B<qsort>(3) with "
218 "the comparison function I<compar>(), and collected in array I<namelist> "
219 "which is allocated via B<malloc>(3). If I<filter> is NULL, all entries are "
220 "selected."
221 msgstr ""
222 "A função B<scandir()> varre o diretório I<dir>, chamando B<select()> para "
223 "cada entrada no diretório. Entradas para as quais B<select()> retorna não-"
224 "zero são armazenadas em strings alocadas via B<malloc()>, ordenadas usando "
225 "B<qsort()> com a função de comparação B<compar()>, e coletadas no vetor "
226 "I<namelist> que é alocado via B<malloc()>. Se B<select> for NULO, todas as "
227 "entradas são selecionadas."
228
229 #. type: Plain text
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, fuzzy
233 #| msgid ""
234 #| "The B<alphasort()> function can be used as the comparison function for "
235 #| "the B<scandir()> function to sort the directory entries into alphabetical "
236 #| "order. Its parameters are the two directory entries, I<a> and I<b>, to "
237 #| "compare."
238 msgid ""
239 "The B<alphasort>() and B<versionsort>() functions can be used as the "
240 "comparison function I<compar>(). The former sorts directory entries using "
241 "B<strcoll>(3), the latter using B<strverscmp>(3) on the strings I<(*a)-"
242 "E<gt>d_name> and I<(*b)-E<gt>d_name>."
243 msgstr ""
244 "A função B<alphasort()> pode ser utilizada como a função de comparação para "
245 "a função B<scandir()> para ordenar as entradas do diretório em ordem "
246 "alfabética. Seus parâmetros são as duas entradas de diretório, I<a> e I<b>, "
247 "para comparar."
248
249 #. type: SS
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "scandirat()"
254 msgstr "scandirat()"
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 ""
260 "The B<scandirat>() function operates in exactly the same way as "
261 "B<scandir>(), except for the differences described here."
262 msgstr ""
263
264 #. type: Plain text
265 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
266 #: opensuse-tumbleweed
267 msgid ""
268 "If I<dirp> is relative, then it is interpreted relative to the directory "
269 "referred to by the file descriptor I<dirfd> (rather than relative to the "
270 "current working directory of the calling process, as is done by "
271 "B<scandir>() for a relative pathname)."
272 msgstr ""
273
274 #. type: Plain text
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 msgid ""
278 "If I<dirp> is relative and I<dirfd> is the special value B<AT_FDCWD>, then "
279 "I<dirp> is interpreted relative to the current working directory of the "
280 "calling process (like B<scandir>())."
281 msgstr ""
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid "If I<dirp> is absolute, then I<dirfd> is ignored."
287 msgstr ""
288
289 #. type: Plain text
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 msgid "See B<openat>(2) for an explanation of the need for B<scandirat>()."
293 msgstr ""
294
295 #. type: SH
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 #, no-wrap
299 msgid "RETURN VALUE"
300 msgstr "VALOR DE RETORNO"
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 #, fuzzy
306 #| msgid ""
307 #| "The B<scandir()> function returns the number of directory entries "
308 #| "selected or -1 if an error occurs."
309 msgid ""
310 "The B<scandir>() function returns the number of directory entries "
311 "selected. On error, -1 is returned, with I<errno> set to indicate the error."
312 msgstr ""
313 "A função B<scandir()> retorna o número de entradas de diretório selecionadas "
314 "ou -1 se um erro ocorrer."
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 #, fuzzy
320 #| msgid ""
321 #| "The B<alphasort()> function returns an integer less than, equal to, or "
322 #| "greater than zero if the first argument is considered to be respectively "
323 #| "less than, equal to, or greater than the second."
324 msgid ""
325 "The B<alphasort>() and B<versionsort>() functions return an integer less "
326 "than, equal to, or greater than zero if the first argument is considered to "
327 "be respectively less than, equal to, or greater than the second."
328 msgstr ""
329 "A função B<alphasort()> retorna um inteiro menor que, igual a, ou maior que "
330 "zero se o primeiro argumento é considerado sendo respectivamente menor que, "
331 "igual a, ou maior que o segundo."
332
333 #. type: SH
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 #, no-wrap
337 msgid "ERRORS"
338 msgstr "ERROS"
339
340 #. type: TP
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "B<EBADF>"
345 msgstr "B<EBADF>"
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid ""
351 "(B<scandirat>()) I<dirp> is relative but I<dirfd> is neither B<AT_FDCWD> "
352 "nor a valid file descriptor."
353 msgstr ""
354
355 #. type: TP
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid "B<ENOENT>"
360 msgstr "B<ENOENT>"
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid "The path in I<dirp> does not exist."
366 msgstr ""
367
368 #. type: TP
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 #, no-wrap
372 msgid "B<ENOMEM>"
373 msgstr "B<ENOMEM>"
374
375 #. type: Plain text
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 msgid "Insufficient memory to complete the operation."
379 msgstr "Memória insuficiente para completar a operação."
380
381 #. type: TP
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 #, no-wrap
385 msgid "B<ENOTDIR>"
386 msgstr "B<ENOTDIR>"
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 #, fuzzy
392 #| msgid "A component of I<path> is not a directory."
393 msgid "The path in I<dirp> is not a directory."
394 msgstr "Um componente do I<caminho> não é um diretório."
395
396 #. type: Plain text
397 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
398 #: opensuse-tumbleweed
399 msgid ""
400 "(B<scandirat>()) I<dirp> is relative and I<dirfd> is a file descriptor "
401 "referring to a file other than a directory."
402 msgstr ""
403
404 #. type: SH
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, no-wrap
408 msgid "ATTRIBUTES"
409 msgstr "ATRIBUTOS"
410
411 #. type: Plain text
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 msgid ""
415 "For an explanation of the terms used in this section, see B<attributes>(7)."
416 msgstr ""
417 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
418
419 #. type: tbl table
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "Interface"
424 msgstr "Interface"
425
426 #. type: tbl table
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 #, no-wrap
430 msgid "Attribute"
431 msgstr "Atributo"
432
433 #. type: tbl table
434 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
435 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
436 #, no-wrap
437 msgid "Value"
438 msgstr "Valor"
439
440 #. type: tbl table
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 #, no-wrap
444 msgid ".na\n"
445 msgstr ".na\n"
446
447 #. type: tbl table
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 #, no-wrap
451 msgid ".nh\n"
452 msgstr ".nh\n"
453
454 #. type: tbl table
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 #, no-wrap
458 msgid ""
459 "B<scandir>(),\n"
460 "B<scandirat>()"
461 msgstr ""
462 "B<scandir>(),\n"
463 "B<scandirat>()"
464
465 #. type: tbl table
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 #, no-wrap
469 msgid "Thread safety"
470 msgstr "Thread safety"
471
472 #. type: tbl table
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, no-wrap
476 msgid "MT-Safe"
477 msgstr "MT-Safe"
478
479 #. type: tbl table
480 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
481 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
482 #, no-wrap
483 msgid ""
484 "B<alphasort>(),\n"
485 "B<versionsort>()"
486 msgstr ""
487 "B<alphasort>(),\n"
488 "B<versionsort>()"
489
490 #. type: tbl table
491 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
492 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
493 #, no-wrap
494 msgid "MT-Safe locale"
495 msgstr "MT-Safe locale"
496
497 #. type: SH
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 #, no-wrap
501 msgid "STANDARDS"
502 msgstr "PADRÕES"
503
504 #. type: TP
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 #, fuzzy, no-wrap
508 #| msgid "B<scandir>(), B<alphasort>():"
509 msgid "B<alphasort>()"
510 msgstr "B<scandir>(), B<alphasort>():"
511
512 #. type: TQ
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 #, fuzzy, no-wrap
516 #| msgid "scandirat()"
517 msgid "B<scandir>()"
518 msgstr "scandirat()"
519
520 #. type: Plain text
521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
523 msgid "POSIX.1-2008."
524 msgstr "POSIX.1-2008."
525
526 #. type: TP
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 #, fuzzy, no-wrap
530 #| msgid "B<versionsort>(): _GNU_SOURCE"
531 msgid "B<versionsort>()"
532 msgstr "B<versionsort>(): _GNU_SOURCE"
533
534 #. type: TP
535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
537 #, fuzzy, no-wrap
538 #| msgid "scandirat()"
539 msgid "B<scandirat>()"
540 msgstr "scandirat()"
541
542 #. type: Plain text
543 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
544 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
545 msgid "GNU."
546 msgstr "GNU."
547
548 #. type: SH
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 #, no-wrap
552 msgid "HISTORY"
553 msgstr "HISTÓRICO"
554
555 #. type: Plain text
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 #, fuzzy
559 #| msgid "SVr4, 4.3BSD, POSIX.1-2001."
560 msgid "4.3BSD, POSIX.1-2008."
561 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
562
563 #. type: Plain text
564 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
565 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
566 msgid "glibc 2.1."
567 msgstr "glibc 2.1."
568
569 #. .P
570 #. The functions
571 #. .BR scandir ()
572 #. and
573 #. .BR alphasort ()
574 #. are from 4.3BSD, and have been available under Linux since libc4.
575 #. Libc4 and libc5 use the more precise prototype
576 #. .sp
577 #. .nf
578 #. int alphasort(const struct dirent ** a,
579 #. const struct dirent **b);
580 #. .fi
581 #. .sp
582 #. but glibc 2.0 returns to the imprecise BSD prototype.
583 #. type: Plain text
584 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
585 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
586 #, fuzzy
587 #| msgid "Since glibc 2.19:"
588 msgid "glibc 2.15."
589 msgstr "Desde o glibc 2.19:"
590
591 #. type: SH
592 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
593 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
594 #, no-wrap
595 msgid "NOTES"
596 msgstr "NOTAS"
597
598 #. type: Plain text
599 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
600 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
601 msgid ""
602 "Since glibc 2.1, B<alphasort>() calls B<strcoll>(3); earlier it used "
603 "B<strcmp>(3)."
604 msgstr ""
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 ""
610 "Before glibc 2.10, the two arguments of B<alphasort>() and "
611 "B<versionsort>() were typed as I<const void\\ *>. When B<alphasort>() was "
612 "standardized in POSIX.1-2008, the argument type was specified as the type-"
613 "safe I<const struct dirent\\ **>, and glibc 2.10 changed the definition of "
614 "B<alphasort>() (and the nonstandard B<versionsort>()) to match the "
615 "standard."
616 msgstr ""
617
618 #. type: SH
619 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
620 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
621 #, no-wrap
622 msgid "EXAMPLES"
623 msgstr "EXEMPLOS"
624
625 #. type: Plain text
626 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
627 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
628 msgid ""
629 "The program below prints a list of the files in the current directory in "
630 "reverse order."
631 msgstr ""
632
633 #. type: SS
634 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
635 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
636 #, no-wrap
637 msgid "Program source"
638 msgstr "Fonte do programa"
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 #, no-wrap
644 msgid ""
645 "#define _DEFAULT_SOURCE\n"
646 "#include E<lt>dirent.hE<gt>\n"
647 "#include E<lt>stdio.hE<gt>\n"
648 "#include E<lt>stdlib.hE<gt>\n"
649 "\\&\n"
650 "int\n"
651 "main(void)\n"
652 "{\n"
653 " struct dirent **namelist;\n"
654 " int n;\n"
655 "\\&\n"
656 " n = scandir(\".\", &namelist, NULL, alphasort);\n"
657 " if (n == -1) {\n"
658 " perror(\"scandir\");\n"
659 " exit(EXIT_FAILURE);\n"
660 " }\n"
661 "\\&\n"
662 " while (n--) {\n"
663 " printf(\"%s\\[rs]n\", namelist[n]-E<gt>d_name);\n"
664 " free(namelist[n]);\n"
665 " }\n"
666 " free(namelist);\n"
667 "\\&\n"
668 " exit(EXIT_SUCCESS);\n"
669 "}\n"
670 msgstr ""
671
672 #. SRC END
673 #. type: SH
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 #, no-wrap
677 msgid "SEE ALSO"
678 msgstr "VEJA TAMBÉM"
679
680 #. type: Plain text
681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
683 msgid ""
684 "B<closedir>(3), B<fnmatch>(3), B<opendir>(3), B<readdir>(3), "
685 "B<rewinddir>(3), B<seekdir>(3), B<strcmp>(3), B<strcoll>(3), "
686 "B<strverscmp>(3), B<telldir>(3)"
687 msgstr ""
688 "B<closedir>(3), B<fnmatch>(3), B<opendir>(3), B<readdir>(3), "
689 "B<rewinddir>(3), B<seekdir>(3), B<strcmp>(3), B<strcoll>(3), "
690 "B<strverscmp>(3), B<telldir>(3)"
691
692 #. type: TH
693 #: debian-trixie
694 #, no-wrap
695 msgid "2024-06-15"
696 msgstr "15 junho 2024"
697
698 #. type: TH
699 #: debian-trixie
700 #, no-wrap
701 msgid "Linux man-pages 6.9.1"
702 msgstr "Linux man-pages 6.9.1"
703
704 #. type: Plain text
705 #: debian-trixie
706 msgid "Standard C library (I<libc>, I<-lc>)"
707 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
708
709 #. type: Plain text
710 #: debian-trixie
711 #, fuzzy, no-wrap
712 #| msgid ""
713 #| "B<int (*>I<filter>B<)(const struct dirent *),>\n"
714 #| "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
715 msgid ""
716 "B<int scandir(const char *restrict >I<dirp>B<,>\n"
717 "B< struct dirent ***restrict >I<namelist>B<,>\n"
718 "B< int (*>I<filter>B<)(const struct dirent *),>\n"
719 "B< int (*>I<compar>B<)(const struct dirent **,>\n"
720 "B<const struct dirent **));>\n"
721 msgstr ""
722 "B<int (*>I<filter>B<)(const struct dirent *),>\n"
723 "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
724
725 #. type: Plain text
726 #: debian-trixie
727 #, fuzzy, no-wrap
728 #| msgid ""
729 #| "B<int (*>I<filter>B<)(const struct dirent *),>\n"
730 #| "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
731 msgid ""
732 "B<int scandirat(int >I<dirfd>B<, const char *restrict >I<dirp>B<,>\n"
733 "B< struct dirent ***restrict >I<namelist>B<,>\n"
734 "B< int (*>I<filter>B<)(const struct dirent *),>\n"
735 "B< int (*>I<compar>B<)(const struct dirent **,>\n"
736 "B<const struct dirent **));>\n"
737 msgstr ""
738 "B<int (*>I<filter>B<)(const struct dirent *),>\n"
739 "B<int (*>I<compar>B<)(const struct dirent **, const struct dirent **));>\n"
740
741 #. type: Plain text
742 #: debian-trixie fedora-44 fedora-rawhide
743 #, fuzzy
744 #| msgid ""
745 #| "The B<scandir()> function scans the directory I<dir>, calling B<select()> "
746 #| "on each directory entry. Entries for which B<select()> returns non-zero "
747 #| "are stored in strings allocated via B<malloc()>, sorted using B<qsort()> "
748 #| "with the comparison function B<compar()>, and collected in array "
749 #| "I<namelist> which is allocated via B<malloc()>. If B<select> is NULL, "
750 #| "all entries are selected."
751 msgid ""
752 "The B<scandir>() function scans the directory I<dirp>, calling I<filter>() "
753 "on each directory entry. Entries for which I<filter>() returns nonzero are "
754 "stored in strings allocated via B<malloc>(3), sorted using B<qsort>(3) with "
755 "the comparison function I<compar>(), and collected in array I<namelist> "
756 "which is allocated via B<malloc>(3). If I<filter> is NULL, all entries are "
757 "selected."
758 msgstr ""
759 "A função B<scandir()> varre o diretório I<dir>, chamando B<select()> para "
760 "cada entrada no diretório. Entradas para as quais B<select()> retorna não-"
761 "zero são armazenadas em strings alocadas via B<malloc()>, ordenadas usando "
762 "B<qsort()> com a função de comparação B<compar()>, e coletadas no vetor "
763 "I<namelist> que é alocado via B<malloc()>. Se B<select> for NULO, todas as "
764 "entradas são selecionadas."
765
766 #. type: Plain text
767 #: debian-trixie fedora-44 fedora-rawhide
768 msgid ""
769 "If the pathname given in I<dirp> is relative, then it is interpreted "
770 "relative to the directory referred to by the file descriptor I<dirfd> "
771 "(rather than relative to the current working directory of the calling "
772 "process, as is done by B<scandir>() for a relative pathname)."
773 msgstr ""
774
775 #. type: Plain text
776 #: debian-trixie fedora-44 fedora-rawhide
777 msgid ""
778 "(B<scandirat>()) I<dirp> is a relative pathname and I<dirfd> is a file "
779 "descriptor referring to a file other than a directory."
780 msgstr ""
781
782 #. type: TH
783 #: fedora-44 fedora-rawhide
784 #, no-wrap
785 msgid "2024-12-13"
786 msgstr "13 dezembro 2024"
787
788 #. type: TH
789 #: fedora-44 fedora-rawhide
790 #, no-wrap
791 msgid "Linux man-pages 6.13"
792 msgstr "Linux man-pages 6.13"
793
794 #. type: TH
795 #: mageia-cauldron
796 #, no-wrap
797 msgid "Linux man-pages 6.17"
798 msgstr "Linux man-pages 6.17"
799
800 #. type: TH
801 #: opensuse-leap-16-1 opensuse-tumbleweed
802 #, no-wrap
803 msgid "Linux man-pages (unreleased)"
804 msgstr "Linux man-pages (não lançado)"