Debian Codegraph @

po/es/man3/hsearch.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 # José Miguel Gurpegui <[email protected]>, 1998.
5 # Miguel Pérez Ibars <[email protected]>, 2005.
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: 2005-03-19 19:53+0200\n"
11 "Last-Translator: Miguel Pérez Ibars <[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 "Searching"
25 msgid "hsearch"
26 msgstr "Búsquedas"
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 ""
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 - funciones "
57 "para manejar una tabla dispersa (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 Estándar C (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 "SINOPSIS"
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 "B<#define _GNU_SOURCE> /* Vea feature_test_macros(7) */\n"
112 "B<#include E<lt>search.hE<gt>>\n"
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 #, fuzzy, no-wrap
118 #| msgid "B<int hcreate_r(size_t >I<nel>B<, struct hsearch_data *>I<htab>B<);>\n"
119 msgid ""
120 "B<int hcreate_r(size_t >I<nel>B<, struct hsearch_data *>I<htab>B<);>\n"
121 "B<void hdestroy_r(struct hsearch_data *>I<htab>B<);>\n"
122 msgstr "B<int hcreate_r(size_t >I<nel>B<, struct hsearch_data *>I<htab>B<);>\n"
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid ""
129 "B<int hsearch_r(ENTRY >I<item>B<, ACTION >I<action>B<, ENTRY **>I<retval>B<,>\n"
130 "B< struct hsearch_data *>I<htab>B<);>\n"
131 msgstr ""
132 "B<int hsearch_r(ENTRY >I<item>B<, ACTION >I<action>B<, ENTRY **>I<retval>B<,>\n"
133 "B< struct hsearch_data *>I<htab>B<);>\n"
134
135 #. type: SH
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 #, no-wrap
139 msgid "DESCRIPTION"
140 msgstr "DESCRIPCIÓN"
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 #, fuzzy
146 #| msgid ""
147 #| "The three functions B<hcreate>, B<hsearch>, and B<hdestroy> allow the "
148 #| "user to create a hash table (only one at a time) which associates a key "
149 #| "with any data. The three functions B<hcreate_r>, B<hsearch_r>, "
150 #| "B<hdestroy_r> are reentrant versions that allow the use of more than one "
151 #| "table."
152 msgid ""
153 "The three functions B<hcreate>(), B<hsearch>(), and B<hdestroy>() allow the "
154 "caller to create and manage a hash search table containing entries "
155 "consisting of a key (a string) and associated data. Using these functions, "
156 "only one hash table can be used at a time."
157 msgstr ""
158 "Las tres funciones B<hcreate>, B<hsearch>, y B<hdestroy> permiten al usuario "
159 "crear una tabla dispersa (sólo una al mismo tiempo) que asocia una clave "
160 "con cualquier dato. Las tres funciones B<hcreate_r>, B<hsearch_r>, "
161 "B<hdestroy_r> son versiones reentrantes que permiten el uso de más de una "
162 "tabla."
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid ""
168 "The three functions B<hcreate_r>(), B<hsearch_r>(), B<hdestroy_r>() are "
169 "reentrant versions that allow a program to use more than one hash search "
170 "table at the same time. The last argument, I<htab>, points to a structure "
171 "that describes the table on which the function is to operate. The "
172 "programmer should treat this structure as opaque (i.e., do not attempt to "
173 "directly access or modify the fields in this structure)."
174 msgstr ""
175
176 #. e.g., in glibc it is raised to the next higher prime number
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 #| "First the table must be created with the function B<hcreate()>. The "
183 #| "argument I<nel> is an estimate of the maximum number of entries in the "
184 #| "table. The function B<hcreate()> may adjust this value upward to improve "
185 #| "the performance of the resulting hash table."
186 msgid ""
187 "First a hash table must be created using B<hcreate>(). The argument I<nel> "
188 "specifies the maximum number of entries in the table. (This maximum cannot "
189 "be changed later, so choose it wisely.) The implementation may adjust this "
190 "value upward to improve the performance of the resulting hash table."
191 msgstr ""
192 "En primer lugar, se debe crear la tabla con la función B<hcreate()>. El "
193 "argumento I<nel> es una estimación del número de entradas de la tabla. La "
194 "función B<hcreate()> puede incrementar este valor para mejorar el "
195 "rendimiento de la tabla dispersa resultante."
196
197 #. type: Plain text
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 msgid ""
201 "The B<hcreate_r>() function performs the same task as B<hcreate>(), but for "
202 "the table described by the structure I<*htab>. The structure pointed to by "
203 "I<htab> must be zeroed before the first call to B<hcreate_r>()."
204 msgstr ""
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 msgid ""
210 "The function B<hdestroy>() frees the memory occupied by the hash table that "
211 "was created by B<hcreate>(). After calling B<hdestroy>(), a new hash table "
212 "can be created using B<hcreate>(). The B<hdestroy_r>() function performs "
213 "the analogous task for a hash table described by I<*htab>, which was "
214 "previously created using B<hcreate_r>()."
215 msgstr ""
216
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 msgid ""
221 "The B<hsearch>() function searches the hash table for an item with the same "
222 "key as I<item> (where \"the same\" is determined using B<strcmp>(3)), and if "
223 "successful returns a pointer to it."
224 msgstr ""
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, fuzzy
230 #| msgid ""
231 #| "The argument I<item> is of type B<ENTRY>, which is a typedef defined in "
232 #| "I<E<lt>search.hE<gt>> and includes these elements:"
233 msgid ""
234 "The argument I<item> is of type I<ENTRY>, which is defined in "
235 "I<E<lt>search.hE<gt>> as follows:"
236 msgstr ""
237 "El argumento I<item> es del tipo B<ENTRY>, que se define mediante typedef en "
238 "I<E<lt>search.hE<gt>> e incluye estos elementos:"
239
240 #. type: Plain text
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, no-wrap
244 msgid ""
245 "typedef struct entry {\n"
246 " char *key;\n"
247 " void *data;\n"
248 "} ENTRY;\n"
249 msgstr ""
250 "typedef struct entry {\n"
251 " char *key;\n"
252 " void *data;\n"
253 "} ENTRY;\n"
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid ""
259 "The field I<key> points to a null-terminated string which is the search "
260 "key. The field I<data> points to data that is associated with that key."
261 msgstr ""
262
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 msgid ""
267 "The argument I<action> determines what B<hsearch>() does after an "
268 "unsuccessful search. This argument must either have the value B<ENTER>, "
269 "meaning insert a copy of I<item> (and return a pointer to the new hash table "
270 "entry as the function result), or the value B<FIND>, meaning that NULL "
271 "should be returned. (If I<action> is B<FIND>, then I<data> is ignored.)"
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 "The B<hsearch_r>() function is like B<hsearch>() but operates on the hash "
279 "table described by I<*htab>. The B<hsearch_r>() function differs from "
280 "B<hsearch>() in that a pointer to the found item is returned in I<*retval>, "
281 "rather than as the function result."
282 msgstr ""
283
284 #. type: SH
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 #, no-wrap
288 msgid "RETURN VALUE"
289 msgstr "VALOR DEVUELTO"
290
291 #. type: Plain text
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 msgid ""
295 "B<hcreate>() and B<hcreate_r>() return nonzero on success. They return 0 "
296 "on error, with I<errno> set to indicate the error."
297 msgstr ""
298
299 #. type: Plain text
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 msgid ""
303 "On success, B<hsearch>() returns a pointer to an entry in the hash table. "
304 "B<hsearch>() returns NULL on error, that is, if I<action> is B<ENTER> and "
305 "the hash table is full, or I<action> is B<FIND> and I<item> cannot be found "
306 "in the hash table. B<hsearch_r>() returns nonzero on success, and 0 on "
307 "error. In the event of an error, these two functions set I<errno> to "
308 "indicate the error."
309 msgstr ""
310
311 #. type: SH
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "ERRORS"
316 msgstr "ERRORES"
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "B<hcreate_r>() and B<hdestroy_r>() can fail for the following reasons:"
323 msgstr ""
324
325 #. type: TP
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 #, no-wrap
329 msgid "B<EINVAL>"
330 msgstr "B<EINVAL>"
331
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid "I<htab> is NULL."
336 msgstr ""
337
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 msgid "B<hsearch>() and B<hsearch_r>() can fail for the following reasons:"
342 msgstr ""
343
344 #. type: TP
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 #, no-wrap
348 msgid "B<ENOMEM>"
349 msgstr "B<ENOMEM>"
350
351 #. type: Plain text
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 msgid ""
355 "I<action> was B<ENTER>, I<key> was not found in the table, and there was no "
356 "room in the table to add a new entry."
357 msgstr ""
358
359 #. type: TP
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 #, no-wrap
363 msgid "B<ESRCH>"
364 msgstr "B<ESRCH>"
365
366 #. type: Plain text
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 msgid "I<action> was B<FIND>, and I<key> was not found in the table."
370 msgstr ""
371
372 #. PROX.1-2001, POSIX.1-2008
373 #. type: Plain text
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 msgid "POSIX.1 specifies only the B<ENOMEM> error."
377 msgstr ""
378
379 #. type: SH
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, no-wrap
383 msgid "ATTRIBUTES"
384 msgstr "ATRIBUTOS"
385
386 #. type: Plain text
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 msgid ""
390 "For an explanation of the terms used in this section, see B<attributes>(7)."
391 msgstr ""
392 "Para obtener una explicación de los términos usados en esta sección, véase "
393 "B<attributes>(7)."
394
395 #. type: tbl table
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 #, no-wrap
399 msgid "Interface"
400 msgstr "Interfaz"
401
402 #. type: tbl table
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 #, no-wrap
406 msgid "Attribute"
407 msgstr "Atributo"
408
409 #. type: tbl table
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 #, no-wrap
413 msgid "Value"
414 msgstr "Valor"
415
416 #. type: tbl table
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 #, no-wrap
420 msgid ".na\n"
421 msgstr ".na\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 ".nh\n"
428 msgstr ".nh\n"
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 ""
435 #| "B<hcreate>(),\n"
436 #| "B<hsearch>(),\n"
437 msgid ""
438 "B<hcreate>(),\n"
439 "B<hsearch>(),\n"
440 "B<hdestroy>()"
441 msgstr ""
442 "B<hcreate>(),\n"
443 "B<hsearch>(),\n"
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 #, no-wrap
449 msgid "Thread safety"
450 msgstr "Seguridad del hilo"
451
452 #. type: tbl table
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 #, no-wrap
456 msgid "MT-Unsafe race:hsearch"
457 msgstr ""
458
459 #. type: tbl table
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, fuzzy, no-wrap
463 #| msgid ""
464 #| "B<hcreate_r>(),\n"
465 #| "B<hsearch_r>(),\n"
466 msgid ""
467 "B<hcreate_r>(),\n"
468 "B<hsearch_r>(),\n"
469 "B<hdestroy_r>()"
470 msgstr ""
471 "B<hcreate_r>(),\n"
472 "B<hsearch_r>(),\n"
473
474 #. type: tbl table
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 #, fuzzy, no-wrap
478 #| msgid "MT-Safe locale"
479 msgid "MT-Safe race:htab"
480 msgstr "Configuración regional de multi-hilo seguro"
481
482 #. type: SH
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "STANDARDS"
487 msgstr "ESTÁNDARES"
488
489 #. type: TP
490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
492 #, fuzzy, no-wrap
493 #| msgid "B<write>(2)"
494 msgid "B<hcreate>()"
495 msgstr "B<write>(2)"
496
497 #. type: TQ
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 "Searching"
502 msgid "B<hsearch>()"
503 msgstr "Búsquedas"
504
505 #. type: TQ
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 #, no-wrap
509 msgid "B<hdestroy>()"
510 msgstr "B<hdestroy>()"
511
512 #. type: Plain text
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 msgid "POSIX.1-2008."
516 msgstr "POSIX.1-2008."
517
518 #. type: TP
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 #, fuzzy, no-wrap
522 #| msgid "B<hdestroy_r>()"
523 msgid "B<hcreate_r>()"
524 msgstr "B<hdestroy_r>()"
525
526 #. type: TQ
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<hdestroy_r>()"
531 msgid "B<hsearch_r>()"
532 msgstr "B<hdestroy_r>()"
533
534 #. type: TQ
535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
537 #, no-wrap
538 msgid "B<hdestroy_r>()"
539 msgstr "B<hdestroy_r>()"
540
541 #. type: Plain text
542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
544 msgid "GNU."
545 msgstr "GNU."
546
547 #. type: SH
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 #, no-wrap
551 msgid "HISTORY"
552 msgstr "HISTORIAL"
553
554 #. type: Plain text
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 #, fuzzy
558 #| msgid "SVr4, 4.3BSD, POSIX.1-2001."
559 msgid "SVr4, POSIX.1-2001."
560 msgstr "SVr4, 4.3BSD, POSIX.1-2001."
561
562 #. type: SH
563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
565 #, no-wrap
566 msgid "NOTES"
567 msgstr "NOTAS"
568
569 #. type: Plain text
570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
572 msgid ""
573 "Hash table implementations are usually more efficient when the table "
574 "contains enough free space to minimize collisions. Typically, this means "
575 "that I<nel> should be at least 25% larger than the maximum number of "
576 "elements that the caller expects to store in the table."
577 msgstr ""
578
579 #. type: Plain text
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 msgid ""
583 "The B<hdestroy>() and B<hdestroy_r>() functions do not free the buffers "
584 "pointed to by the I<key> and I<data> elements of the hash table entries. "
585 "(It can't do this because it doesn't know whether these buffers were "
586 "allocated dynamically.) If these buffers need to be freed (perhaps because "
587 "the program is repeatedly creating and destroying hash tables, rather than "
588 "creating a single table whose lifetime matches that of the program), then "
589 "the program must maintain bookkeeping data structures that allow it to free "
590 "them."
591 msgstr ""
592
593 #. type: SH
594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
596 #, no-wrap
597 msgid "BUGS"
598 msgstr "ERRORES"
599
600 #. type: Plain text
601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
603 #, fuzzy
604 #| msgid ""
605 #| "SVID and POSIX 1003.1-2001 specify that I<action> is significant only for "
606 #| "unsuccessful searches, so that an ENTER should not do anything for a "
607 #| "successful search. The libc and glibc implementations update the I<data> "
608 #| "for the given I<key> in this case."
609 msgid ""
610 "SVr4 and POSIX.1-2001 specify that I<action> is significant only for "
611 "unsuccessful searches, so that an B<ENTER> should not do anything for a "
612 "successful search. In libc and glibc (before glibc 2.3), the implementation "
613 "violates the specification, updating the I<data> for the given I<key> in "
614 "this case."
615 msgstr ""
616 "SVID y POSIX 1003.1-2001 especifican que el argumento I<action> es "
617 "significativo sólo para búsquedas sin éxito, por lo que ENTER no debería "
618 "hacer nada para una búsqueda exitosa. Las implementaciones de libc y glibc "
619 "actualizan I<data> para una clave I<key> dada en este caso."
620
621 #. type: Plain text
622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
624 msgid "Individual hash table entries can be added, but not deleted."
625 msgstr ""
626 "Se pueden añadir a la tabla dispersa entradas individuales pero no se pueden "
627 "eliminar."
628
629 #. type: SH
630 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
631 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
632 #, no-wrap
633 msgid "EXAMPLES"
634 msgstr "EJEMPLOS"
635
636 #. type: Plain text
637 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
638 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
639 msgid ""
640 "The following program inserts 24 items into a hash table, then prints some "
641 "of them."
642 msgstr ""
643 "El siguiente programa inserta 24 elementos en una tabla dispersa y a "
644 "continuación imprime algunos de ellos."
645
646 #. type: Plain text
647 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
648 #: opensuse-leap-16-1 opensuse-tumbleweed
649 #, no-wrap
650 msgid ""
651 "#include E<lt>search.hE<gt>\n"
652 "#include E<lt>stdio.hE<gt>\n"
653 "#include E<lt>stdlib.hE<gt>\n"
654 "\\&\n"
655 "static char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n"
656 " \"echo\", \"foxtrot\", \"golf\", \"hotel\", \"india\", \"juliet\",\n"
657 " \"kilo\", \"lima\", \"mike\", \"november\", \"oscar\", \"papa\",\n"
658 " \"quebec\", \"romeo\", \"sierra\", \"tango\", \"uniform\",\n"
659 " \"victor\", \"whisky\", \"x-ray\", \"yankee\", \"zulu\"\n"
660 "};\n"
661 "\\&\n"
662 "int\n"
663 "main(void)\n"
664 "{\n"
665 " ENTRY e;\n"
666 " ENTRY *ep;\n"
667 "\\&\n"
668 " hcreate(30);\n"
669 "\\&\n"
670 " for (size_t i = 0; i E<lt> 24; i++) {\n"
671 " e.key = data[i];\n"
672 " /* data is just an integer, instead of a\n"
673 " pointer to something */\n"
674 " e.data = (void *) i;\n"
675 " ep = hsearch(e, ENTER);\n"
676 " /* there should be no failures */\n"
677 " if (ep == NULL) {\n"
678 " fprintf(stderr, \"entry failed\\[rs]n\");\n"
679 " exit(EXIT_FAILURE);\n"
680 " }\n"
681 " }\n"
682 "\\&\n"
683 " for (size_t i = 22; i E<lt> 26; i++) {\n"
684 " /* print two entries from the table, and\n"
685 " show that two are not in the table */\n"
686 " e.key = data[i];\n"
687 " ep = hsearch(e, FIND);\n"
688 " printf(\"%9.9s -E<gt> %9.9s:%d\\[rs]n\", e.key,\n"
689 " ep ? ep-E<gt>key : \"NULL\", ep ? (int) ep-E<gt>data : 0);\n"
690 " }\n"
691 " hdestroy();\n"
692 " exit(EXIT_SUCCESS);\n"
693 "}\n"
694 msgstr ""
695
696 #. SRC END
697 #. type: SH
698 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
699 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
700 #, no-wrap
701 msgid "SEE ALSO"
702 msgstr "VÉASE TAMBIÉN"
703
704 #. type: Plain text
705 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
706 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
707 msgid "B<bsearch>(3), B<lsearch>(3), B<malloc>(3), B<tsearch>(3)"
708 msgstr "B<bsearch>(3), B<lsearch>(3), B<malloc>(3), B<tsearch>(3)"
709
710 #. type: TH
711 #: debian-trixie
712 #, no-wrap
713 msgid "2024-06-15"
714 msgstr "15 Junio 2024"
715
716 #. type: TH
717 #: debian-trixie
718 #, no-wrap
719 msgid "Linux man-pages 6.9.1"
720 msgstr "Páginas de Manual de Linux 6.9.1"
721
722 #. type: Plain text
723 #: debian-trixie
724 msgid "Standard C library (I<libc>, I<-lc>)"
725 msgstr "Biblioteca Estándar C (I<libc>, I<-lc>)"
726
727 #. type: Plain text
728 #: debian-trixie
729 #, no-wrap
730 msgid ""
731 "#include E<lt>search.hE<gt>\n"
732 "#include E<lt>stdio.hE<gt>\n"
733 "#include E<lt>stdlib.hE<gt>\n"
734 "\\&\n"
735 "static char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n"
736 " \"echo\", \"foxtrot\", \"golf\", \"hotel\", \"india\", \"juliet\",\n"
737 " \"kilo\", \"lima\", \"mike\", \"november\", \"oscar\", \"papa\",\n"
738 " \"quebec\", \"romeo\", \"sierra\", \"tango\", \"uniform\",\n"
739 " \"victor\", \"whisky\", \"x-ray\", \"yankee\", \"zulu\"\n"
740 "};\n"
741 "\\&\n"
742 "int\n"
743 "main(void)\n"
744 "{\n"
745 " ENTRY e;\n"
746 " ENTRY *ep;\n"
747 "\\&\n"
748 " hcreate(30);\n"
749 "\\&\n"
750 " for (size_t i = 0; i E<lt> 24; i++) {\n"
751 " e.key = data[i];\n"
752 " /* data is just an integer, instead of a\n"
753 " pointer to something */\n"
754 " e.data = (void *) i;\n"
755 " ep = hsearch(e, ENTER);\n"
756 " /* there should be no failures */\n"
757 " if (ep == NULL) {\n"
758 " fprintf(stderr, \"entry failed\\[rs]n\");\n"
759 " exit(EXIT_FAILURE);\n"
760 " }\n"
761 " }\n"
762 "\\&\n"
763 " for (size_t i = 22; i E<lt> 26; i++) {\n"
764 " /* print two entries from the table, and\n"
765 " show that two are not in the table */\n"
766 " e.key = data[i];\n"
767 " ep = hsearch(e, FIND);\n"
768 " printf(\"%9.9s -E<gt> %9.9s:%d\\[rs]n\", e.key,\n"
769 " ep ? ep-E<gt>key : \"NULL\", ep ? (int)(ep-E<gt>data) : 0);\n"
770 " }\n"
771 " hdestroy();\n"
772 " exit(EXIT_SUCCESS);\n"
773 "}\n"
774 msgstr ""
775
776 #. type: TH
777 #: fedora-44 fedora-rawhide
778 #, no-wrap
779 msgid "2025-01-05"
780 msgstr "5 Enero 2025"
781
782 #. type: TH
783 #: fedora-44 fedora-rawhide
784 #, no-wrap
785 msgid "Linux man-pages 6.13"
786 msgstr "Páginas de Manual de Linux 6.13"
787
788 #. type: TH
789 #: mageia-cauldron
790 #, no-wrap
791 msgid "Linux man-pages 6.17"
792 msgstr "Páginas de Manual de Linux 6.17"
793
794 #. type: TH
795 #: opensuse-leap-16-1 opensuse-tumbleweed
796 #, no-wrap
797 msgid "Linux man-pages (unreleased)"
798 msgstr "Páginas de Manual de Linux (no publicadas)"