Debian Codegraph @

po/pt_BR/man3/tsearch.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:49+0200\n"
10 "PO-Revision-Date: 2000-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 #, no-wrap
25 msgid "tsearch"
26 msgstr ""
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 #, fuzzy
53 #| msgid ""
54 #| "tsearch, tfind, tdelete, twalk, tdestroy - manage a binary search tree"
55 msgid ""
56 "tsearch, tfind, tdelete, twalk, twalk_r, tdestroy - manage a binary search "
57 "tree"
58 msgstr "tsearch, tfind, tdelete, twalk, tdestroy - gerencia uma árvore binária"
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>search.hE<gt>>\n"
85 msgstr "B<#include E<lt>search.hE<gt>>\n"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid "B<typedef enum { preorder, postorder, endorder, leaf } VISIT;>\n"
92 msgstr "B<typedef enum { preorder, postorder, endorder, leaf } VISIT;>\n"
93
94 #. type: Plain text
95 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
96 #: opensuse-leap-16-1 opensuse-tumbleweed
97 #, no-wrap
98 msgid ""
99 "B<void *tfind(const void *>I<key>B<, void *const *>I<rootp>B<,>\n"
100 "B< typeof(int (const void *, const void *)) *>I<compar>B<);>\n"
101 "B<void *tsearch(const void *>I<key>B<, void **>I<rootp>B<,>\n"
102 "B< typeof(int (const void *, const void *)) *>I<compar>B<);>\n"
103 "B<void *tdelete(const void *restrict >I<key>B<, void **restrict >I<rootp>B<,>\n"
104 "B< typeof(int (const void *, const void *)) *>I<compar>B<);>\n"
105 "B<void twalk(const void *>I<root>B<,>\n"
106 "B< typeof(void (const void *>I<nodep>B<, VISIT >I<which>B<, int >I<depth>B<))>\n"
107 "B< *>I<action>B<);>\n"
108 msgstr ""
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 #, no-wrap
114 msgid ""
115 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
116 "B<#include E<lt>search.hE<gt>>\n"
117 msgstr ""
118
119 #. type: Plain text
120 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
121 #: opensuse-leap-16-1 opensuse-tumbleweed
122 #, fuzzy, no-wrap
123 #| msgid ""
124 #| "B<void twalk_r(const void *>I<root>B<,>\n"
125 #| "B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n"
126 #| "B< void *>I<closure>B<),>\n"
127 #| "B< void *>I<closure>B<);>\n"
128 msgid ""
129 "B<void twalk_r(const void *>I<root>B<,>\n"
130 "B< typeof(void (const void *>I<nodep>B<, VISIT >I<which>B<, void *>I<closure>B<))>\n"
131 "B< *>I<action>B<,>\n"
132 "B< void *>I<closure>B<);>\n"
133 "B<void tdestroy(void *>I<root>B<,>\n"
134 "B< typeof(void (void *>I<nodep>B<)) *>I<free_node>B<);>\n"
135 msgstr ""
136 "B<void twalk_r(const void *>I<root>B<,>\n"
137 "B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n"
138 "B< void *>I<closure>B<),>\n"
139 "B< void *>I<closure>B<);>\n"
140
141 #. type: SH
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 #, no-wrap
145 msgid "DESCRIPTION"
146 msgstr "DESCRIÇÃO"
147
148 #. type: Plain text
149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
151 #, fuzzy
152 #| msgid ""
153 #| "B<tsearch>, B<tfind>, B<twalk>, and B<tdelete> manage a binary tree. "
154 #| "They are generalized from Knuth (6.2.2) Algorithm T. The first field in "
155 #| "each node of the tree is a pointer to the corresponding data item. (The "
156 #| "calling program must store the actual data.) I<compar> points to a "
157 #| "comparison routine, which takes pointers to two items. It should return "
158 #| "an integer which is negative, zero, or positive, depending on whether the "
159 #| "first item is less than, equal to, or greater than the second."
160 msgid ""
161 "B<tsearch>(), B<tfind>(), B<twalk>(), and B<tdelete>() manage a binary "
162 "search tree. They are generalized from Knuth (6.2.2) Algorithm T. The "
163 "first field in each node of the tree is a pointer to the corresponding data "
164 "item. (The calling program must store the actual data.) I<compar> points "
165 "to a comparison routine, which takes pointers to two items. It should "
166 "return an integer which is negative, zero, or positive, depending on whether "
167 "the first item is less than, equal to, or greater than the second."
168 msgstr ""
169 "B<tsearch>, B<tfind>, B<twalk>, e B<tdelete> gerenciam uma árvore binária. "
170 "Eles são gerados a partir do Algoritmo T de Knuth (6.2.2). O primeiro campo "
171 "em cada nó da árvore é um ponteiro para o item correspondente de dados. ( O "
172 "programa solicitante precisa armazenar os dados atuais). I<compar> aponta "
173 "para uma rotina de comparação, que pega ponteiros para dois itens. Ele deve "
174 "retornar um inteiro que é negaivo, ou zero, ou positivo, dependendo se o "
175 "primeiro item é menor, igual ou maior que o segundo."
176
177 #. type: Plain text
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 #, fuzzy
181 #| msgid ""
182 #| "B<tsearch> searches the tree for an item. I<key> points to the item to "
183 #| "be searched for. I<rootp> points to a variable which points to the root "
184 #| "of the tree. If the tree is empty, then the variable that I<rootp> "
185 #| "points to should be set to B<NULL>. If the item is found in the tree, "
186 #| "then B<tsearch> returns a pointer to it. If it is not found, then "
187 #| "B<tsearch> adds it, and returns a pointer to the newly added item."
188 msgid ""
189 "B<tsearch>() searches the tree for an item. I<key> points to the item to "
190 "be searched for. I<rootp> points to a variable which points to the root of "
191 "the tree. If the tree is empty, then the variable that I<rootp> points to "
192 "should be set to NULL. If the item is found in the tree, then B<tsearch>() "
193 "returns a pointer to the corresponding tree node. (In other words, "
194 "B<tsearch>() returns a pointer to a pointer to the data item.) If the item "
195 "is not found, then B<tsearch>() adds it, and returns a pointer to the "
196 "corresponding tree node."
197 msgstr ""
198 "B<tsearch> busca um item na árvore. I<key> aponta para o item a ser buscado. "
199 "I<rootp> aponta para uma variável que aponta para a raiz da árvore. Se a "
200 "árvore está vazia, então a variável apontada por I<rootp> deve ser setada "
201 "para B<NULL>. Se o item é encontrado na árvore, então B<tsearch> retorna um "
202 "ponteiro para ele. Se não é encontrado, então B<tsearch> o acrescenta, e "
203 "retorna um ponteiro para o novo item acrescentado."
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 "B<tfind>() is like B<tsearch>(), except that if the item is not found, then "
210 "B<tfind>() returns NULL."
211 msgstr ""
212 "B<tfind>() é como B<tsearch>(), exceto pelo fato de que, se o item não é "
213 "encontrado, então B<tfind>() retorna NULL."
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 msgid ""
219 "B<tdelete>() deletes an item from the tree. Its arguments are the same as "
220 "for B<tsearch>()."
221 msgstr ""
222 "B<tdelete>() apaga um item da árvore. Seus argumentos são os mesmos de "
223 "B<tsearch>()."
224
225 #. type: Plain text
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 #, fuzzy
229 #| msgid ""
230 #| "B<twalk> performs depth-first, left-to-right traversal of a binary tree. "
231 #| "I<root> points to the starting node for the traversal. If that node is "
232 #| "not the root, then only part of the tree will be visited. B<twalk> calls "
233 #| "the user function I<action> each time a node is visited (that is, three "
234 #| "times for an internal node, and once for a leaf). I<action>, in turn, "
235 #| "takes three arguments. The first is a pointer to the node being "
236 #| "visited. The second is an integer which takes on the values B<preorder>, "
237 #| "B<postorder>, and B<endorder> depending on whether this is the first, "
238 #| "second, or third visit to the internal node, or B<leaf> if it is the "
239 #| "single visit to a leaf node. (These symbols are defined in "
240 #| "I<E<lt>search.hE<gt>>.) The third argument is the depth of the node, "
241 #| "with zero being the root."
242 msgid ""
243 "B<twalk>() performs depth-first, left-to-right traversal of a binary tree. "
244 "I<root> points to the starting node for the traversal. If that node is not "
245 "the root, then only part of the tree will be visited. B<twalk>() calls the "
246 "user function I<action> each time a node is visited (that is, three times "
247 "for an internal node, and once for a leaf). I<action>, in turn, takes three "
248 "arguments. The first argument is a pointer to the node being visited. The "
249 "structure of the node is unspecified, but it is possible to cast the pointer "
250 "to a pointer-to-pointer-to-element in order to access the element stored "
251 "within the node. The application must not modify the structure pointed to "
252 "by this argument. The second argument is an integer which takes one of the "
253 "values B<preorder>, B<postorder>, or B<endorder> depending on whether this "
254 "is the first, second, or third visit to the internal node, or the value "
255 "B<leaf> if this is the single visit to a leaf node. (These symbols are "
256 "defined in I<E<lt>search.hE<gt>>.) The third argument is the depth of the "
257 "node; the root node has depth zero."
258 msgstr ""
259 "B<twalk> realiza uma travessia de uma árvore binária por profundidade, da "
260 "esquerda para a direita. I<root> aponta para o nó inicial da travessia. Se "
261 "aquele nó não é a raiz, então apenas parte da árvore será visitada. B<twalk> "
262 "chama a função de usuário I<action> cada vez que um nó é visitado (ou seja, "
263 "três vezes para um nó interno, e uma vez para uma folha). I<action>, por sua "
264 "vez, leva três argumentos. O primeiro é um ponteiro para o nó que está sendo "
265 "visitado. O segundo é um inteiro que recebe os valores B<preorder>, "
266 "B<postorder> e B<endorder>, dependendo se este é a primeira, a segundo ou a "
267 "terceira visita ao nó interno, ou B<leaf> se é uma visita única a um nó-"
268 "folha. (Estes símbolos são definidos em I<E<lt>search.hE<gt>>.) O terceiro "
269 "argumento é a profundidade do nó, com zero sendo a raiz."
270
271 #. type: Plain text
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 msgid ""
275 "(More commonly, B<preorder>, B<postorder>, and B<endorder> are known as "
276 "B<preorder>, B<inorder>, and B<postorder>: before visiting the children, "
277 "after the first and before the second, and after visiting the children. "
278 "Thus, the choice of name B<post\\%order> is rather confusing.)"
279 msgstr ""
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 msgid ""
285 "B<twalk_r>() is similar to B<twalk>(), but instead of the I<depth> "
286 "argument, the I<closure> argument pointer is passed to each invocation of "
287 "the action callback, unchanged. This pointer can be used to pass "
288 "information to and from the callback function in a thread-safe fashion, "
289 "without resorting to global variables."
290 msgstr ""
291
292 #. type: Plain text
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 msgid ""
296 "B<tdestroy>() removes the whole tree pointed to by I<root>, freeing all "
297 "resources allocated by the B<tsearch>() function. For the data in each "
298 "tree node the function I<free_node> is called. The pointer to the data is "
299 "passed as the argument to the function. If no such work is necessary, "
300 "I<free_node> must point to a function doing nothing."
301 msgstr ""
302
303 #. type: SH
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "RETURN VALUE"
308 msgstr "VALOR DE RETORNO"
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, fuzzy
314 #| msgid ""
315 #| "B<tsearch> returns a pointer to a matching item in the tree, or to the "
316 #| "newly added item, or B<NULL> if there was insufficient memory to add the "
317 #| "item. B<tfind> returns a pointer to the item, or B<NULL> if no match is "
318 #| "found. If there are multiple elements that match the key, the element "
319 #| "returned is unspecified."
320 msgid ""
321 "B<tsearch>() returns a pointer to a matching node in the tree, or to the "
322 "newly added node, or NULL if there was insufficient memory to add the item. "
323 "B<tfind>() returns a pointer to the node, or NULL if no match is found. If "
324 "there are multiple items that match the key, the item whose node is returned "
325 "is unspecified."
326 msgstr ""
327 "B<tsearch> retorna um ponteiro para um item encontrado na árvore, ou para o "
328 "novo item acrescentado, ou B<NULL> se havia memória insuficiente para "
329 "acrescentar o item. B<tfind> retorna um ponteiro para o item, ou B<NULL> se "
330 "nada foi encontrado. Se haviam múltiplos elementos que casaram com a chave, "
331 "o elemento retornado não é especificado."
332
333 #. type: Plain text
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 #, fuzzy
337 #| msgid ""
338 #| "B<tdelete> returns a pointer to the parent of the item deleted, or "
339 #| "B<NULL> if the item was not found."
340 msgid ""
341 "B<tdelete>() returns a pointer to the parent of the node deleted, or NULL "
342 "if the item was not found. If the deleted node was the root node, "
343 "B<tdelete>() returns a dangling pointer that must not be accessed."
344 msgstr ""
345 "B<tdelete> retorna um ponteiro para o pai do item apagado, ou B<NULL> se o "
346 "item não foi encontrado."
347
348 #. type: Plain text
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 msgid ""
352 "B<tsearch>(), B<tfind>(), and B<tdelete>() also return NULL if I<rootp> was "
353 "NULL on entry."
354 msgstr ""
355 "B<tsearch>(), B<tfind>() e B<tdelete>() também retornam NULL se I<rootp> era "
356 "NULL na entrada."
357
358 #. type: SH
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 #, no-wrap
362 msgid "ATTRIBUTES"
363 msgstr "ATRIBUTOS"
364
365 #. type: Plain text
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 msgid ""
369 "For an explanation of the terms used in this section, see B<attributes>(7)."
370 msgstr ""
371 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
372
373 #. type: tbl table
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 #, no-wrap
377 msgid "Interface"
378 msgstr "Interface"
379
380 #. type: tbl table
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 #, no-wrap
384 msgid "Attribute"
385 msgstr "Atributo"
386
387 #. type: tbl table
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 #, no-wrap
391 msgid "Value"
392 msgstr "Valor"
393
394 #. type: tbl table
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 #, no-wrap
398 msgid ".na\n"
399 msgstr ".na\n"
400
401 #. type: tbl table
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 #, no-wrap
405 msgid ".nh\n"
406 msgstr ".nh\n"
407
408 #. type: tbl table
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 #, fuzzy, no-wrap
412 #| msgid ""
413 #| "B<tsearch>(),\n"
414 #| "B<tfind>(),\n"
415 msgid ""
416 "B<tsearch>(),\n"
417 "B<tfind>(),\n"
418 "B<tdelete>()"
419 msgstr ""
420 "B<tsearch>(),\n"
421 "B<tfind>(),\n"
422
423 #. type: tbl table
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 #, no-wrap
427 msgid "Thread safety"
428 msgstr "Thread safety"
429
430 #. type: tbl table
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 #, fuzzy, no-wrap
434 #| msgid "MT-Safe locale"
435 msgid "MT-Safe race:rootp"
436 msgstr "MT-Safe locale"
437
438 #. type: TQ
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 #, no-wrap
442 msgid "B<twalk>()"
443 msgstr "B<twalk>()"
444
445 #. type: tbl table
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 #, fuzzy, no-wrap
449 #| msgid "MT-Safe locale"
450 msgid "MT-Safe race:root"
451 msgstr "MT-Safe locale"
452
453 #. type: TP
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, no-wrap
457 msgid "B<twalk_r>()"
458 msgstr "B<twalk_r>()"
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<tdestroy>()"
465 msgstr "B<tdestroy>()"
466
467 #. type: tbl table
468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
470 #, no-wrap
471 msgid "MT-Safe"
472 msgstr "MT-Safe"
473
474 #. type: SH
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 #, no-wrap
478 msgid "STANDARDS"
479 msgstr "PADRÕES"
480
481 #. type: TP
482 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
483 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
484 #, fuzzy, no-wrap
485 #| msgid ""
486 #| "B<tsearch>(),\n"
487 #| "B<tfind>(),\n"
488 msgid "B<tsearch>()"
489 msgstr ""
490 "B<tsearch>(),\n"
491 "B<tfind>(),\n"
492
493 #. type: TQ
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 #, fuzzy, no-wrap
497 #| msgid "B<bind>(2)"
498 msgid "B<tfind>()"
499 msgstr "B<bind>(2)"
500
501 #. type: TQ
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 #, no-wrap
505 msgid "B<tdelete>()"
506 msgstr "B<tdelete>()"
507
508 #. type: Plain text
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 msgid "POSIX.1-2008."
512 msgstr "POSIX.1-2008."
513
514 #. type: Plain text
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 msgid "GNU."
518 msgstr "GNU."
519
520 #. type: SH
521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
523 #, no-wrap
524 msgid "HISTORY"
525 msgstr "HISTÓRICO"
526
527 #. type: Plain text
528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
530 msgid "POSIX.1-2001, POSIX.1-2008, SVr4."
531 msgstr "POSIX.1-2001, POSIX.1-2008, SVr4."
532
533 #. type: Plain text
534 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
535 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
536 #, fuzzy
537 #| msgid "Since glibc 2.10:"
538 msgid "glibc 2.30."
539 msgstr "Desde o glibc 2.10:"
540
541 #. type: SH
542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
544 #, no-wrap
545 msgid "NOTES"
546 msgstr "NOTAS"
547
548 #. type: Plain text
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 msgid ""
552 "B<twalk>() takes a pointer to the root, while the other functions take a "
553 "pointer to a variable which points to the root."
554 msgstr ""
555 "B<twalk>() pega um ponteiro para a raiz, enquanto as outras funções pegam um "
556 "ponteiro para uma variável que aponta para a raiz."
557
558 #. type: Plain text
559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
561 msgid ""
562 "B<tdelete>() frees the memory required for the node in the tree. The user "
563 "is responsible for freeing the memory for the corresponding data."
564 msgstr ""
565 "B<tdelete>() libera a memória requerida para o nó na árvore. O usuário é "
566 "responsável para liberar a memória dos dados correspondentes."
567
568 #. type: Plain text
569 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
570 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
571 msgid ""
572 "The example program depends on the fact that B<twalk>() makes no further "
573 "reference to a node after calling the user function with argument "
574 "\"endorder\" or \"leaf\". This works with the GNU library implementation, "
575 "but is not in the System V documentation."
576 msgstr ""
577 "O programa exemplo depende do fato de que B<twalk>() não faz referência "
578 "adicional a um nó depois de chamar a função de usuário com o argumento "
579 "'endorder' ou 'leaf'. Isto funciona com a implementação da biblioteca GNU, "
580 "mas não está na documentação System V."
581
582 #. type: SH
583 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
584 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
585 #, no-wrap
586 msgid "EXAMPLES"
587 msgstr "EXEMPLOS"
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 #, fuzzy
593 #| msgid ""
594 #| "The following program inserts twelve random numbers into a binary tree, "
595 #| "then prints the numbers in order. The numbers are removed from the tree "
596 #| "and their storage freed during the traversal."
597 msgid ""
598 "The following program inserts twelve random numbers into a binary tree, "
599 "where duplicate numbers are collapsed, then prints the numbers in order."
600 msgstr ""
601 "O programa a seguir insere doze números aleatórios em uma árvore binária, e "
602 "então imprime os números em ordem. Os números são removidos da árvore e seus "
603 "armazenamentos são liberados durante a travessia."
604
605 #. type: Plain text
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 #, no-wrap
609 msgid ""
610 "#define _GNU_SOURCE /* Expose declaration of tdestroy() */\n"
611 "#include E<lt>search.hE<gt>\n"
612 "#include E<lt>stddef.hE<gt>\n"
613 "#include E<lt>stdio.hE<gt>\n"
614 "#include E<lt>stdlib.hE<gt>\n"
615 "#include E<lt>time.hE<gt>\n"
616 "\\&\n"
617 "static void *root = NULL;\n"
618 "\\&\n"
619 "static void *\n"
620 "xmalloc(size_t n)\n"
621 "{\n"
622 " void *p;\n"
623 "\\&\n"
624 " p = malloc(n);\n"
625 " if (p)\n"
626 " return p;\n"
627 " fprintf(stderr, \"insufficient memory\\[rs]n\");\n"
628 " exit(EXIT_FAILURE);\n"
629 "}\n"
630 "\\&\n"
631 "static int\n"
632 "compare(const void *pa, const void *pb)\n"
633 "{\n"
634 " if (*(int *) pa E<lt> *(int *) pb)\n"
635 " return -1;\n"
636 " if (*(int *) pa E<gt> *(int *) pb)\n"
637 " return 1;\n"
638 " return 0;\n"
639 "}\n"
640 "\\&\n"
641 "static void\n"
642 "action(const void *nodep, VISIT which, int depth)\n"
643 "{\n"
644 " int *datap;\n"
645 "\\&\n"
646 " switch (which) {\n"
647 " case preorder:\n"
648 " break;\n"
649 " case postorder:\n"
650 " datap = *(int **) nodep;\n"
651 " printf(\"%6d\\[rs]n\", *datap);\n"
652 " break;\n"
653 " case endorder:\n"
654 " break;\n"
655 " case leaf:\n"
656 " datap = *(int **) nodep;\n"
657 " printf(\"%6d\\[rs]n\", *datap);\n"
658 " break;\n"
659 " }\n"
660 "}\n"
661 "\\&\n"
662 "int\n"
663 "main(void)\n"
664 "{\n"
665 " int *ptr;\n"
666 " int **val;\n"
667 "\\&\n"
668 " srand(time(NULL));\n"
669 " for (unsigned int i = 0; i E<lt> 12; i++) {\n"
670 " ptr = xmalloc(sizeof(*ptr));\n"
671 " *ptr = rand() & 0xff;\n"
672 " val = tsearch(ptr, &root, compare);\n"
673 " if (val == NULL)\n"
674 " exit(EXIT_FAILURE);\n"
675 " if (*val != ptr)\n"
676 " free(ptr);\n"
677 " }\n"
678 " twalk(root, action);\n"
679 " tdestroy(root, free);\n"
680 " exit(EXIT_SUCCESS);\n"
681 "}\n"
682 msgstr ""
683
684 #. SRC END
685 #. type: SH
686 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
687 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
688 #, no-wrap
689 msgid "SEE ALSO"
690 msgstr "VEJA TAMBÉM"
691
692 #. type: Plain text
693 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
694 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
695 #, fuzzy
696 #| msgid "B<qsort>(3), B<bsearch>(3), B<hsearch>(3), B<lsearch>(3)"
697 msgid "B<bsearch>(3), B<hsearch>(3), B<lsearch>(3), B<qsort>(3)"
698 msgstr "B<qsort>(3), B<bsearch>(3), B<hsearch>(3), B<lsearch>(3)"
699
700 #. type: TH
701 #: debian-trixie
702 #, no-wrap
703 msgid "2024-06-15"
704 msgstr "15 junho 2024"
705
706 #. type: TH
707 #: debian-trixie
708 #, no-wrap
709 msgid "Linux man-pages 6.9.1"
710 msgstr "Linux man-pages 6.9.1"
711
712 #. type: Plain text
713 #: debian-trixie
714 msgid "Standard C library (I<libc>, I<-lc>)"
715 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
716
717 #. type: Plain text
718 #: debian-trixie
719 #, no-wrap
720 msgid ""
721 "B<void *tsearch(const void *>I<key>B<, void **>I<rootp>B<,>\n"
722 "B< int (*>I<compar>B<)(const void *, const void *));>\n"
723 "B<void *tfind(const void *>I<key>B<, void *const *>I<rootp>B<,>\n"
724 "B< int (*>I<compar>B<)(const void *, const void *));>\n"
725 "B<void *tdelete(const void *restrict >I<key>B<, void **restrict >I<rootp>B<,>\n"
726 "B< int (*>I<compar>B<)(const void *, const void *));>\n"
727 "B<void twalk(const void *>I<root>B<,>\n"
728 "B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n"
729 "B< int >I<depth>B<));>\n"
730 msgstr ""
731
732 #. type: Plain text
733 #: debian-trixie
734 #, fuzzy, no-wrap
735 #| msgid ""
736 #| "B<void twalk_r(const void *>I<root>B<,>\n"
737 #| "B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n"
738 #| "B< void *>I<closure>B<),>\n"
739 #| "B< void *>I<closure>B<);>\n"
740 msgid ""
741 "B<void twalk_r(const void *>I<root>B<,>\n"
742 "B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n"
743 "B< void *>I<closure>B<),>\n"
744 "B< void *>I<closure>B<);>\n"
745 "B<void tdestroy(void *>I<root>B<, void (*>I<free_node>B<)(void *>I<nodep>B<));>\n"
746 msgstr ""
747 "B<void twalk_r(const void *>I<root>B<,>\n"
748 "B< void (*>I<action>B<)(const void *>I<nodep>B<, VISIT >I<which>B<,>\n"
749 "B< void *>I<closure>B<),>\n"
750 "B< void *>I<closure>B<);>\n"
751
752 #. type: TH
753 #: fedora-44 fedora-rawhide
754 #, no-wrap
755 msgid "2024-12-13"
756 msgstr "13 dezembro 2024"
757
758 #. type: TH
759 #: fedora-44 fedora-rawhide
760 #, no-wrap
761 msgid "Linux man-pages 6.13"
762 msgstr "Linux man-pages 6.13"
763
764 #. type: TH
765 #: mageia-cauldron
766 #, no-wrap
767 msgid "Linux man-pages 6.17"
768 msgstr "Linux man-pages 6.17"
769
770 #. type: TH
771 #: opensuse-leap-16-1 opensuse-tumbleweed
772 #, no-wrap
773 msgid "Linux man-pages (unreleased)"
774 msgstr "Linux man-pages (não lançado)"