Debian Codegraph @

po/pt_BR/man3/hsearch.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 # Valter Ferraz Sanches <[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:27+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 "hsearch"
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 msgid ""
53 "hcreate, hdestroy, hsearch, hcreate_r, hdestroy_r, hsearch_r - hash table "
54 "management"
55 msgstr ""
56 "hcreate, hdestroy, hsearch, hcreate_r, hdestroy_r, hsearch_r - gerencimento "
57 "de tabela de 'hash'"
58
59 #. type: SH
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 #, no-wrap
63 msgid "LIBRARY"
64 msgstr "BIBLIOTECA"
65
66 #. type: Plain text
67 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
68 #: opensuse-leap-16-1 opensuse-tumbleweed
69 msgid "Standard C library (I<libc>,\\ I<-lc>)"
70 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
71
72 #. type: SH
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "SYNOPSIS"
77 msgstr "SINOPSE"
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "B<#include E<lt>search.hE<gt>>\n"
84 msgstr "B<#include E<lt>search.hE<gt>>\n"
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, fuzzy, no-wrap
90 #| msgid "B<int hcreate(size_t >I<nel>B<);>\n"
91 msgid ""
92 "B<int hcreate(size_t >I<nel>B<);>\n"
93 "B<void hdestroy(void);>\n"
94 msgstr "B<int hcreate(size_t >I<nel>B<);>\n"
95
96 #. type: Plain text
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 #, no-wrap
100 msgid "B<ENTRY *hsearch(ENTRY >I<item>B<, ACTION >I<action>B<);>\n"
101 msgstr "B<ENTRY *hsearch(ENTRY >I<item>B<, ACTION >I<action>B<);>\n"
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 #, no-wrap
107 msgid ""
108 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
109 "B<#include E<lt>search.hE<gt>>\n"
110 msgstr ""
111
112 #. type: Plain text
113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
115 #, fuzzy, no-wrap
116 #| msgid "B<int hcreate_r(size_t >I<nel>B<, struct hsearch_data *>I<htab>B<);>\n"
117 msgid ""
118 "B<int hcreate_r(size_t >I<nel>B<, struct hsearch_data *>I<htab>B<);>\n"
119 "B<void hdestroy_r(struct hsearch_data *>I<htab>B<);>\n"
120 msgstr "B<int hcreate_r(size_t >I<nel>B<, struct hsearch_data *>I<htab>B<);>\n"
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 #, no-wrap
126 msgid ""
127 "B<int hsearch_r(ENTRY >I<item>B<, ACTION >I<action>B<, ENTRY **>I<retval>B<,>\n"
128 "B< struct hsearch_data *>I<htab>B<);>\n"
129 msgstr ""
130 "B<int hsearch_r(ENTRY >I<item>B<, ACTION >I<action>B<, ENTRY **>I<retval>B<,>\n"
131 "B< struct hsearch_data *>I<htab>B<);>\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 "DESCRIÇÃO"
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "The three functions B<hcreate>(), B<hsearch>(), and B<hdestroy>() allow the "
145 "caller to create and manage a hash search table containing entries "
146 "consisting of a key (a string) and associated data. Using these functions, "
147 "only one hash table can be used at a time."
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 msgid ""
154 "The three functions B<hcreate_r>(), B<hsearch_r>(), B<hdestroy_r>() are "
155 "reentrant versions that allow a program to use more than one hash search "
156 "table at the same time. The last argument, I<htab>, points to a structure "
157 "that describes the table on which the function is to operate. The "
158 "programmer should treat this structure as opaque (i.e., do not attempt to "
159 "directly access or modify the fields in this structure)."
160 msgstr ""
161
162 #. e.g., in glibc it is raised to the next higher prime number
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 msgid ""
167 "First a hash table must be created using B<hcreate>(). The argument I<nel> "
168 "specifies the maximum number of entries in the table. (This maximum cannot "
169 "be changed later, so choose it wisely.) The implementation may adjust this "
170 "value upward to improve the performance of the resulting hash table."
171 msgstr ""
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 msgid ""
177 "The B<hcreate_r>() function performs the same task as B<hcreate>(), but for "
178 "the table described by the structure I<*htab>. The structure pointed to by "
179 "I<htab> must be zeroed before the first call to B<hcreate_r>()."
180 msgstr ""
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid ""
186 "The function B<hdestroy>() frees the memory occupied by the hash table that "
187 "was created by B<hcreate>(). After calling B<hdestroy>(), a new hash table "
188 "can be created using B<hcreate>(). The B<hdestroy_r>() function performs "
189 "the analogous task for a hash table described by I<*htab>, which was "
190 "previously created using B<hcreate_r>()."
191 msgstr ""
192
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 msgid ""
197 "The B<hsearch>() function searches the hash table for an item with the same "
198 "key as I<item> (where \"the same\" is determined using B<strcmp>(3)), and if "
199 "successful returns a pointer to it."
200 msgstr ""
201
202 #. type: Plain text
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 #, fuzzy
206 #| msgid ""
207 #| "I<item> is of type B<ENTRY>, which is a typedef defined in "
208 #| "I<E<lt>search.hE<gt>> and includes these elements:"
209 msgid ""
210 "The argument I<item> is of type I<ENTRY>, which is defined in "
211 "I<E<lt>search.hE<gt>> as follows:"
212 msgstr ""
213 "I<item> é do tipo B<ENTRY>, a qual é um 'typedef' definido em "
214 "I<E<lt>search.hE<gt>> e inclui estes elementos:"
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 #, no-wrap
220 msgid ""
221 "typedef struct entry {\n"
222 " char *key;\n"
223 " void *data;\n"
224 "} ENTRY;\n"
225 msgstr ""
226 "typedef struct entry {\n"
227 " char *key;\n"
228 " void *data;\n"
229 "} ENTRY;\n"
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 msgid ""
235 "The field I<key> points to a null-terminated string which is the search "
236 "key. The field I<data> points to data that is associated with that key."
237 msgstr ""
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid ""
243 "The argument I<action> determines what B<hsearch>() does after an "
244 "unsuccessful search. This argument must either have the value B<ENTER>, "
245 "meaning insert a copy of I<item> (and return a pointer to the new hash table "
246 "entry as the function result), or the value B<FIND>, meaning that NULL "
247 "should be returned. (If I<action> is B<FIND>, then I<data> is ignored.)"
248 msgstr ""
249
250 #. type: Plain text
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 msgid ""
254 "The B<hsearch_r>() function is like B<hsearch>() but operates on the hash "
255 "table described by I<*htab>. The B<hsearch_r>() function differs from "
256 "B<hsearch>() in that a pointer to the found item is returned in I<*retval>, "
257 "rather than as the function result."
258 msgstr ""
259
260 #. type: SH
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "RETURN VALUE"
265 msgstr "VALOR DE RETORNO"
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 msgid ""
271 "B<hcreate>() and B<hcreate_r>() return nonzero on success. They return 0 "
272 "on error, with I<errno> set to indicate the error."
273 msgstr ""
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 msgid ""
279 "On success, B<hsearch>() returns a pointer to an entry in the hash table. "
280 "B<hsearch>() returns NULL on error, that is, if I<action> is B<ENTER> and "
281 "the hash table is full, or I<action> is B<FIND> and I<item> cannot be found "
282 "in the hash table. B<hsearch_r>() returns nonzero on success, and 0 on "
283 "error. In the event of an error, these two functions set I<errno> to "
284 "indicate the error."
285 msgstr ""
286
287 #. type: SH
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, no-wrap
291 msgid "ERRORS"
292 msgstr "ERROS"
293
294 #. type: Plain text
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 msgid ""
298 "B<hcreate_r>() and B<hdestroy_r>() can fail for the following reasons:"
299 msgstr ""
300
301 #. type: TP
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 #, no-wrap
305 msgid "B<EINVAL>"
306 msgstr "B<EINVAL>"
307
308 #. type: Plain text
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 msgid "I<htab> is NULL."
312 msgstr ""
313
314 #. type: Plain text
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 msgid "B<hsearch>() and B<hsearch_r>() can fail for the following reasons:"
318 msgstr ""
319
320 #. type: TP
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 #, no-wrap
324 msgid "B<ENOMEM>"
325 msgstr "B<ENOMEM>"
326
327 #. type: Plain text
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 msgid ""
331 "I<action> was B<ENTER>, I<key> was not found in the table, and there was no "
332 "room in the table to add a new entry."
333 msgstr ""
334
335 #. type: TP
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 #, no-wrap
339 msgid "B<ESRCH>"
340 msgstr "B<ESRCH>"
341
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 msgid "I<action> was B<FIND>, and I<key> was not found in the table."
346 msgstr ""
347
348 #. PROX.1-2001, POSIX.1-2008
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid "POSIX.1 specifies only the B<ENOMEM> error."
353 msgstr ""
354
355 #. type: SH
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid "ATTRIBUTES"
360 msgstr "ATRIBUTOS"
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 ""
366 "For an explanation of the terms used in this section, see B<attributes>(7)."
367 msgstr ""
368 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
369
370 #. type: tbl table
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "Interface"
375 msgstr "Interface"
376
377 #. type: tbl table
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 #, no-wrap
381 msgid "Attribute"
382 msgstr "Atributo"
383
384 #. type: tbl table
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 #, no-wrap
388 msgid "Value"
389 msgstr "Valor"
390
391 #. type: tbl table
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 #, no-wrap
395 msgid ".na\n"
396 msgstr ".na\n"
397
398 #. type: tbl table
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 #, no-wrap
402 msgid ".nh\n"
403 msgstr ".nh\n"
404
405 #. type: tbl table
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 #, fuzzy, no-wrap
409 #| msgid ""
410 #| "B<hcreate>(),\n"
411 #| "B<hsearch>(),\n"
412 msgid ""
413 "B<hcreate>(),\n"
414 "B<hsearch>(),\n"
415 "B<hdestroy>()"
416 msgstr ""
417 "B<hcreate>(),\n"
418 "B<hsearch>(),\n"
419
420 #. type: tbl table
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 #, no-wrap
424 msgid "Thread safety"
425 msgstr "Thread safety"
426
427 #. type: tbl table
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 #, no-wrap
431 msgid "MT-Unsafe race:hsearch"
432 msgstr ""
433
434 #. type: tbl table
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 #, fuzzy, no-wrap
438 #| msgid ""
439 #| "B<hcreate_r>(),\n"
440 #| "B<hsearch_r>(),\n"
441 msgid ""
442 "B<hcreate_r>(),\n"
443 "B<hsearch_r>(),\n"
444 "B<hdestroy_r>()"
445 msgstr ""
446 "B<hcreate_r>(),\n"
447 "B<hsearch_r>(),\n"
448
449 #. type: tbl table
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, fuzzy, no-wrap
453 #| msgid "MT-Safe locale"
454 msgid "MT-Safe race:htab"
455 msgstr "MT-Safe locale"
456
457 #. type: SH
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, no-wrap
461 msgid "STANDARDS"
462 msgstr "PADRÕES"
463
464 #. type: TP
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 #, fuzzy, no-wrap
468 #| msgid "B<write>(2)"
469 msgid "B<hcreate>()"
470 msgstr "B<write>(2)"
471
472 #. type: TQ
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, fuzzy, no-wrap
476 #| msgid ""
477 #| "B<hcreate>(),\n"
478 #| "B<hsearch>(),\n"
479 msgid "B<hsearch>()"
480 msgstr ""
481 "B<hcreate>(),\n"
482 "B<hsearch>(),\n"
483
484 #. type: TQ
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 #, no-wrap
488 msgid "B<hdestroy>()"
489 msgstr "B<hdestroy>()"
490
491 #. type: Plain text
492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
494 msgid "POSIX.1-2008."
495 msgstr "POSIX.1-2008."
496
497 #. type: TP
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 #, fuzzy, no-wrap
501 #| msgid "B<hdestroy_r>()"
502 msgid "B<hcreate_r>()"
503 msgstr "B<hdestroy_r>()"
504
505 #. type: TQ
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 #, fuzzy, no-wrap
509 #| msgid "B<hdestroy_r>()"
510 msgid "B<hsearch_r>()"
511 msgstr "B<hdestroy_r>()"
512
513 #. type: TQ
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 #, no-wrap
517 msgid "B<hdestroy_r>()"
518 msgstr "B<hdestroy_r>()"
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 "GNU."
524 msgstr "GNU."
525
526 #. type: SH
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 #, no-wrap
530 msgid "HISTORY"
531 msgstr "HISTÓRICO"
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 msgid "SVr4, POSIX.1-2001."
537 msgstr "SVr4, POSIX.1-2001."
538
539 #. type: SH
540 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
541 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
542 #, no-wrap
543 msgid "NOTES"
544 msgstr "NOTAS"
545
546 #. type: Plain text
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 msgid ""
550 "Hash table implementations are usually more efficient when the table "
551 "contains enough free space to minimize collisions. Typically, this means "
552 "that I<nel> should be at least 25% larger than the maximum number of "
553 "elements that the caller expects to store in the table."
554 msgstr ""
555
556 #. type: Plain text
557 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
558 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
559 msgid ""
560 "The B<hdestroy>() and B<hdestroy_r>() functions do not free the buffers "
561 "pointed to by the I<key> and I<data> elements of the hash table entries. "
562 "(It can't do this because it doesn't know whether these buffers were "
563 "allocated dynamically.) If these buffers need to be freed (perhaps because "
564 "the program is repeatedly creating and destroying hash tables, rather than "
565 "creating a single table whose lifetime matches that of the program), then "
566 "the program must maintain bookkeeping data structures that allow it to free "
567 "them."
568 msgstr ""
569
570 #. type: SH
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 #, no-wrap
574 msgid "BUGS"
575 msgstr "BUGS"
576
577 #. type: Plain text
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 msgid ""
581 "SVr4 and POSIX.1-2001 specify that I<action> is significant only for "
582 "unsuccessful searches, so that an B<ENTER> should not do anything for a "
583 "successful search. In libc and glibc (before glibc 2.3), the implementation "
584 "violates the specification, updating the I<data> for the given I<key> in "
585 "this case."
586 msgstr ""
587
588 #. type: Plain text
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 msgid "Individual hash table entries can be added, but not deleted."
592 msgstr ""
593 "Entradas de tabela de 'hash' individuais podem ser acrescidas, mas não "
594 "apagadas."
595
596 #. type: SH
597 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
598 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
599 #, no-wrap
600 msgid "EXAMPLES"
601 msgstr "EXEMPLOS"
602
603 #. type: Plain text
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 msgid ""
607 "The following program inserts 24 items into a hash table, then prints some "
608 "of them."
609 msgstr ""
610 "O seguinte programa insere 24 itens em uma tabela de 'hash' e então imnprime "
611 "alguns deles."
612
613 #. type: Plain text
614 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
615 #: opensuse-leap-16-1 opensuse-tumbleweed
616 #, no-wrap
617 msgid ""
618 "#include E<lt>search.hE<gt>\n"
619 "#include E<lt>stdio.hE<gt>\n"
620 "#include E<lt>stdlib.hE<gt>\n"
621 "\\&\n"
622 "static char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n"
623 " \"echo\", \"foxtrot\", \"golf\", \"hotel\", \"india\", \"juliet\",\n"
624 " \"kilo\", \"lima\", \"mike\", \"november\", \"oscar\", \"papa\",\n"
625 " \"quebec\", \"romeo\", \"sierra\", \"tango\", \"uniform\",\n"
626 " \"victor\", \"whisky\", \"x-ray\", \"yankee\", \"zulu\"\n"
627 "};\n"
628 "\\&\n"
629 "int\n"
630 "main(void)\n"
631 "{\n"
632 " ENTRY e;\n"
633 " ENTRY *ep;\n"
634 "\\&\n"
635 " hcreate(30);\n"
636 "\\&\n"
637 " for (size_t i = 0; i E<lt> 24; i++) {\n"
638 " e.key = data[i];\n"
639 " /* data is just an integer, instead of a\n"
640 " pointer to something */\n"
641 " e.data = (void *) i;\n"
642 " ep = hsearch(e, ENTER);\n"
643 " /* there should be no failures */\n"
644 " if (ep == NULL) {\n"
645 " fprintf(stderr, \"entry failed\\[rs]n\");\n"
646 " exit(EXIT_FAILURE);\n"
647 " }\n"
648 " }\n"
649 "\\&\n"
650 " for (size_t i = 22; i E<lt> 26; i++) {\n"
651 " /* print two entries from the table, and\n"
652 " show that two are not in the table */\n"
653 " e.key = data[i];\n"
654 " ep = hsearch(e, FIND);\n"
655 " printf(\"%9.9s -E<gt> %9.9s:%d\\[rs]n\", e.key,\n"
656 " ep ? ep-E<gt>key : \"NULL\", ep ? (int) ep-E<gt>data : 0);\n"
657 " }\n"
658 " hdestroy();\n"
659 " exit(EXIT_SUCCESS);\n"
660 "}\n"
661 msgstr ""
662
663 #. SRC END
664 #. type: SH
665 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
666 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
667 #, no-wrap
668 msgid "SEE ALSO"
669 msgstr "VEJA TAMBÉM"
670
671 #. type: Plain text
672 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
673 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
674 msgid "B<bsearch>(3), B<lsearch>(3), B<malloc>(3), B<tsearch>(3)"
675 msgstr "B<bsearch>(3), B<lsearch>(3), B<malloc>(3), B<tsearch>(3)"
676
677 #. type: TH
678 #: debian-trixie
679 #, no-wrap
680 msgid "2024-06-15"
681 msgstr "15 junho 2024"
682
683 #. type: TH
684 #: debian-trixie
685 #, no-wrap
686 msgid "Linux man-pages 6.9.1"
687 msgstr "Linux man-pages 6.9.1"
688
689 #. type: Plain text
690 #: debian-trixie
691 msgid "Standard C library (I<libc>, I<-lc>)"
692 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
693
694 #. type: Plain text
695 #: debian-trixie
696 #, no-wrap
697 msgid ""
698 "#include E<lt>search.hE<gt>\n"
699 "#include E<lt>stdio.hE<gt>\n"
700 "#include E<lt>stdlib.hE<gt>\n"
701 "\\&\n"
702 "static char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n"
703 " \"echo\", \"foxtrot\", \"golf\", \"hotel\", \"india\", \"juliet\",\n"
704 " \"kilo\", \"lima\", \"mike\", \"november\", \"oscar\", \"papa\",\n"
705 " \"quebec\", \"romeo\", \"sierra\", \"tango\", \"uniform\",\n"
706 " \"victor\", \"whisky\", \"x-ray\", \"yankee\", \"zulu\"\n"
707 "};\n"
708 "\\&\n"
709 "int\n"
710 "main(void)\n"
711 "{\n"
712 " ENTRY e;\n"
713 " ENTRY *ep;\n"
714 "\\&\n"
715 " hcreate(30);\n"
716 "\\&\n"
717 " for (size_t i = 0; i E<lt> 24; i++) {\n"
718 " e.key = data[i];\n"
719 " /* data is just an integer, instead of a\n"
720 " pointer to something */\n"
721 " e.data = (void *) i;\n"
722 " ep = hsearch(e, ENTER);\n"
723 " /* there should be no failures */\n"
724 " if (ep == NULL) {\n"
725 " fprintf(stderr, \"entry failed\\[rs]n\");\n"
726 " exit(EXIT_FAILURE);\n"
727 " }\n"
728 " }\n"
729 "\\&\n"
730 " for (size_t i = 22; i E<lt> 26; i++) {\n"
731 " /* print two entries from the table, and\n"
732 " show that two are not in the table */\n"
733 " e.key = data[i];\n"
734 " ep = hsearch(e, FIND);\n"
735 " printf(\"%9.9s -E<gt> %9.9s:%d\\[rs]n\", e.key,\n"
736 " ep ? ep-E<gt>key : \"NULL\", ep ? (int)(ep-E<gt>data) : 0);\n"
737 " }\n"
738 " hdestroy();\n"
739 " exit(EXIT_SUCCESS);\n"
740 "}\n"
741 msgstr ""
742
743 #. type: TH
744 #: fedora-44 fedora-rawhide
745 #, no-wrap
746 msgid "2025-01-05"
747 msgstr "5 janeiro 2025"
748
749 #. type: TH
750 #: fedora-44 fedora-rawhide
751 #, no-wrap
752 msgid "Linux man-pages 6.13"
753 msgstr "Linux man-pages 6.13"
754
755 #. type: TH
756 #: mageia-cauldron
757 #, no-wrap
758 msgid "Linux man-pages 6.17"
759 msgstr "Linux man-pages 6.17"
760
761 #. type: TH
762 #: opensuse-leap-16-1 opensuse-tumbleweed
763 #, no-wrap
764 msgid "Linux man-pages (unreleased)"
765 msgstr "Linux man-pages (não lançado)"