Debian Codegraph @

po/fr/man3/hsearch.3.po

raw
1 # French translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003.
5 # Stéphan Rafin <[email protected]>, 2002.
6 # Thierry Vignaud <[email protected]>, 1999, 2002.
7 # François Micaux, 2002.
8 # Alain Portal <[email protected]>, 2003-2008.
9 # Jean-Philippe Guérard <[email protected]>, 2005-2006.
10 # Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007.
11 # Julien Cristau <[email protected]>, 2006-2007.
12 # Thomas Huriaux <[email protected]>, 2006-2008.
13 # Nicolas François <[email protected]>, 2006-2008.
14 # Florentin Duneau <[email protected]>, 2006-2010.
15 # Simon Paillard <[email protected]>, 2006.
16 # Denis Barbier <[email protected]>, 2006, 2010.
17 # David Prévot <[email protected]>, 2010, 2012.
18 # Jean-Baptiste Holcroft <[email protected]>, 2018.
19 # Grégoire Scano <[email protected]>, 2019.
20 # Jean-Philippe MENGUAL <[email protected]>, 2023.
21 msgid ""
22 msgstr ""
23 "Project-Id-Version: manpages-l10n 4.21.0\n"
24 "POT-Creation-Date: 2026-06-05 06:27+0200\n"
25 "PO-Revision-Date: 2025-05-30 11:58+0200\n"
26 "Last-Translator: Jean-Philippe MENGUAL <[email protected]>\n"
27 "Language-Team: French <[email protected]>\n"
28 "Language: fr\n"
29 "MIME-Version: 1.0\n"
30 "Content-Type: text/plain; charset=UTF-8\n"
31 "Content-Transfer-Encoding: 8bit\n"
32 "Plural-Forms: nplurals=2; plural=n > 1;\n"
33 "X-Generator: Lokalize 20.12.0\n"
34
35 #. type: TH
36 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
37 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
38 #, no-wrap
39 msgid "hsearch"
40 msgstr "hsearch"
41
42 #. type: TH
43 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
44 #: opensuse-tumbleweed
45 #, no-wrap
46 msgid "2026-02-08"
47 msgstr "8 février 2026"
48
49 #. type: TH
50 #: archlinux debian-unstable
51 #, no-wrap
52 msgid "Linux man-pages 6.18"
53 msgstr "Pages du manuel de Linux 6.18"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "NAME"
60 msgstr "NOM"
61
62 #. type: Plain text
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 msgid ""
66 "hcreate, hdestroy, hsearch, hcreate_r, hdestroy_r, hsearch_r - hash table "
67 "management"
68 msgstr ""
69 "hcreate, hdestroy, hsearch, hcreate_r, hdestroy_r, hsearch_r - Gestion de "
70 "table de hachage"
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 "LIBRARY"
77 msgstr "BIBLIOTHÈQUE"
78
79 #. type: Plain text
80 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
81 #: opensuse-leap-16-1 opensuse-tumbleweed
82 msgid "Standard C library (I<libc>,\\ I<-lc>)"
83 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
84
85 #. type: SH
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, no-wrap
89 msgid "SYNOPSIS"
90 msgstr "SYNOPSIS"
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, no-wrap
96 msgid "B<#include E<lt>search.hE<gt>>\n"
97 msgstr "B<#include E<lt>search.hE<gt>>\n"
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 #, no-wrap
103 msgid ""
104 "B<int hcreate(size_t >I<nel>B<);>\n"
105 "B<void hdestroy(void);>\n"
106 msgstr ""
107 "B<int hcreate(size_t >I<nel>B<);>\n"
108 "B<void hdestroy(void);>\n"
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 "B<ENTRY *hsearch(ENTRY >I<item>B<, ACTION >I<action>B<);>\n"
115 msgstr "B<ENTRY *hsearch(ENTRY >I<item>B<, ACTION >I<action>B<);>\n"
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 #, no-wrap
121 msgid ""
122 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
123 "B<#include E<lt>search.hE<gt>>\n"
124 msgstr ""
125 "B<#define _GNU_SOURCE> /* Consultez feature_test_macros(7) */\n"
126 "B<#include E<lt>search.hE<gt>>\n"
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 #, no-wrap
132 msgid ""
133 "B<int hcreate_r(size_t >I<nel>B<, struct hsearch_data *>I<htab>B<);>\n"
134 "B<void hdestroy_r(struct hsearch_data *>I<htab>B<);>\n"
135 msgstr ""
136 "B<int hcreate_r(size_t >I<nel>B<, struct hsearch_data *>I<htab>B<);>\n"
137 "B<void hdestroy_r(struct hsearch_data *>I<htab>B<);>\n"
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 #, no-wrap
143 msgid ""
144 "B<int hsearch_r(ENTRY >I<item>B<, ACTION >I<action>B<, ENTRY **>I<retval>B<,>\n"
145 "B< struct hsearch_data *>I<htab>B<);>\n"
146 msgstr ""
147 "B<int hsearch_r(ENTRY >I<item>B<, ACTION >I<action>B<, ENTRY **>I<retval>B<,>\n"
148 "B< struct hsearch_data *>I<htab>B<);>\n"
149
150 #. type: SH
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 #, no-wrap
154 msgid "DESCRIPTION"
155 msgstr "DESCRIPTION"
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 msgid ""
161 "The three functions B<hcreate>(), B<hsearch>(), and B<hdestroy>() allow the "
162 "caller to create and manage a hash search table containing entries "
163 "consisting of a key (a string) and associated data. Using these functions, "
164 "only one hash table can be used at a time."
165 msgstr ""
166 "Les trois fonctions B<hcreate>(), B<hsearch>() et B<hdestroy>() permettent à "
167 "l'utilisateur de créer et de gérer une table de hachage qui associe une clé "
168 "(une chaîne de caractères) avec des données quelconques. Une seule table de "
169 "hachage peut être utilisée à la fois avec ces fonctions."
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid ""
175 "The three functions B<hcreate_r>(), B<hsearch_r>(), B<hdestroy_r>() are "
176 "reentrant versions that allow a program to use more than one hash search "
177 "table at the same time. The last argument, I<htab>, points to a structure "
178 "that describes the table on which the function is to operate. The "
179 "programmer should treat this structure as opaque (i.e., do not attempt to "
180 "directly access or modify the fields in this structure)."
181 msgstr ""
182 "Les fonctions B<hcreate_r>(), B<hsearch_r>() et B<hdestroy_r>() sont des "
183 "versions réentrantes qui permettent d'utiliser plusieurs tables en même "
184 "temps. Le dernier argument I<htab> pointe vers une structure qui identifie "
185 "la table à utiliser. Le programmeur doit traiter la structure comme opaque "
186 "(par exemple, il est impossible d'accéder ou de modifier la table de hachage "
187 "depuis cette structure)."
188
189 #. e.g., in glibc it is raised to the next higher prime number
190 #. type: Plain text
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 msgid ""
194 "First a hash table must be created using B<hcreate>(). The argument I<nel> "
195 "specifies the maximum number of entries in the table. (This maximum cannot "
196 "be changed later, so choose it wisely.) The implementation may adjust this "
197 "value upward to improve the performance of the resulting hash table."
198 msgstr ""
199 "La table doit d'abord être créée avec B<hcreate>(). L'argument I<nel> est le "
200 "nombre maximal d'éléments de la table (le maximum ne peut pas être changé "
201 "pas la suite). L'implémentation peut décider d'augmenter cette valeur, afin "
202 "d'améliorer les performances de la table de hachage."
203
204 #. type: Plain text
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 msgid ""
208 "The B<hcreate_r>() function performs the same task as B<hcreate>(), but for "
209 "the table described by the structure I<*htab>. The structure pointed to by "
210 "I<htab> must be zeroed before the first call to B<hcreate_r>()."
211 msgstr ""
212 "B<hcreate_r>() effectue la même tâche que B<hcreate>() mais pour les tables "
213 "décrites par la structure I<*htab>. La structure pointée par I<htab> doit "
214 "être initialisée avec des zéros avant le premier appel à B<hcreate_r>()."
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 msgid ""
220 "The function B<hdestroy>() frees the memory occupied by the hash table that "
221 "was created by B<hcreate>(). After calling B<hdestroy>(), a new hash table "
222 "can be created using B<hcreate>(). The B<hdestroy_r>() function performs "
223 "the analogous task for a hash table described by I<*htab>, which was "
224 "previously created using B<hcreate_r>()."
225 msgstr ""
226 "La fonction B<hdestroy>() libère la mémoire occupée par la table de hachage "
227 "créée par B<hcreate>(). Après un appel à B<hdestroy>(), une nouvelle table "
228 "de hachage peut être créée avec B<hcreate>(). La fonction B<hdestroy_r>() "
229 "effectue la même tâche pour une table de hachage décrite par I<*htab>, qui a "
230 "été préalablement créée par B<hcreate_r>()."
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid ""
236 "The B<hsearch>() function searches the hash table for an item with the same "
237 "key as I<item> (where \"the same\" is determined using B<strcmp>(3)), and if "
238 "successful returns a pointer to it."
239 msgstr ""
240 "B<hsearch>() cherche dans la table de hachage un élément dont la clé est la "
241 "même que I<item> (au sens de B<strcmp>(3)), et retourne un pointeur sur cet "
242 "élément si la recherche réussit."
243
244 #. type: Plain text
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 msgid ""
248 "The argument I<item> is of type I<ENTRY>, which is defined in "
249 "I<E<lt>search.hE<gt>> as follows:"
250 msgstr ""
251 "L'argument I<item> est du type I<ENTRY>, qui est défini dans "
252 "I<E<lt>search.hE<gt>> ainsi\\ :"
253
254 #. type: Plain text
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid ""
259 "typedef struct entry {\n"
260 " char *key;\n"
261 " void *data;\n"
262 "} ENTRY;\n"
263 msgstr ""
264 "typedef struct entry {\n"
265 " char *key;\n"
266 " void *data;\n"
267 "} ENTRY;\n"
268
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 msgid ""
273 "The field I<key> points to a null-terminated string which is the search "
274 "key. The field I<data> points to data that is associated with that key."
275 msgstr ""
276 "Le champ I<key> pointe vers une chaîne terminée par un caractère nul qui est "
277 "la clé cherchée. Le champ I<data> pointe vers les données associées à la clé."
278
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 msgid ""
283 "The argument I<action> determines what B<hsearch>() does after an "
284 "unsuccessful search. This argument must either have the value B<ENTER>, "
285 "meaning insert a copy of I<item> (and return a pointer to the new hash table "
286 "entry as the function result), or the value B<FIND>, meaning that NULL "
287 "should be returned. (If I<action> is B<FIND>, then I<data> is ignored.)"
288 msgstr ""
289 "Le paramètre I<action> détermine ce que doit faire B<hsearch>() après une "
290 "recherche infructueuse. Si I<action> est égal à B<ENTER>, alors une copie de "
291 "I<item> est insérée et un pointeur sur ce nouvel élément est renvoyé. Si "
292 "I<action> est égal à B<FIND>, NULL est renvoyé et I<data> est ignoré."
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 "The B<hsearch_r>() function is like B<hsearch>() but operates on the hash "
299 "table described by I<*htab>. The B<hsearch_r>() function differs from "
300 "B<hsearch>() in that a pointer to the found item is returned in I<*retval>, "
301 "rather than as the function result."
302 msgstr ""
303 "B<hsearch_r>() est similaire à B<hsearch>(), mais elle opère sur la table de "
304 "hachage décrite par I<*htab>, et le pointeur de l'objet trouvé est renvoyé "
305 "dans I<*retval> et non dans la valeur de retour de la fonction."
306
307 #. type: SH
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid "RETURN VALUE"
312 msgstr "VALEUR RENVOYÉE"
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 ""
318 "B<hcreate>() and B<hcreate_r>() return nonzero on success. They return 0 "
319 "on error, with I<errno> set to indicate the error."
320 msgstr ""
321 "B<hcreate>() et B<hcreate_r>() renvoient une valeur non nulle en cas de "
322 "succès. En cas d'erreur, B<0> est renvoyé et I<errno> est positionné pour "
323 "indiquer l'erreur."
324
325 #. type: Plain text
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 msgid ""
329 "On success, B<hsearch>() returns a pointer to an entry in the hash table. "
330 "B<hsearch>() returns NULL on error, that is, if I<action> is B<ENTER> and "
331 "the hash table is full, or I<action> is B<FIND> and I<item> cannot be found "
332 "in the hash table. B<hsearch_r>() returns nonzero on success, and 0 on "
333 "error. In the event of an error, these two functions set I<errno> to "
334 "indicate the error."
335 msgstr ""
336 "En cas de succès, B<hsearch> renvoie un pointeur vers une entrée de la table "
337 "de hachage. Elle renvoie NULL en cas d'erreur, à savoir si I<action> est "
338 "égal à B<ENTER> et la table de hachage pleine, ou si I<action> est égal à "
339 "B<FIND> et I<item> ne peut pas être trouvé. B<hsearch_r>() renvoie une "
340 "valeur non nulle en cas de succès et zéro en cas d'erreur. En cas d'erreur, "
341 "ces fonctions positionnent I<errno> pour indiquer l'erreur."
342
343 #. type: SH
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 #, no-wrap
347 msgid "ERRORS"
348 msgstr "ERREURS"
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid ""
354 "B<hcreate_r>() and B<hdestroy_r>() can fail for the following reasons:"
355 msgstr ""
356 "B<hcreate_r>() et B<hdestroy_r>() peuvent échouer pour les raisons "
357 "suivantes\\ :"
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<EINVAL>"
364 msgstr "B<EINVAL>"
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<htab> is NULL."
370 msgstr "I<htab> est NULL."
371
372 #. type: Plain text
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 msgid "B<hsearch>() and B<hsearch_r>() can fail for the following reasons:"
376 msgstr ""
377 "B<hsearch> et B<hsearch_r> peuvent échouer pour les raisons suivantes\\ :"
378
379 #. type: TP
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, no-wrap
383 msgid "B<ENOMEM>"
384 msgstr "B<ENOMEM>"
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 "I<action> was B<ENTER>, I<key> was not found in the table, and there was no "
391 "room in the table to add a new entry."
392 msgstr ""
393 "I<action> est B<ENTER>, I<key> n'a pas été trouvé dans la table, et il n'y a "
394 "plus de place dans la table pour ajouter un nouvel élément."
395
396 #. type: TP
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "B<ESRCH>"
401 msgstr "B<ESRCH>"
402
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 msgid "I<action> was B<FIND>, and I<key> was not found in the table."
407 msgstr "I<action> vaut B<FIND> et I<key> n'a pas été trouvé dans la table."
408
409 #. PROX.1-2001, POSIX.1-2008
410 #. type: Plain text
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 msgid "POSIX.1 specifies only the B<ENOMEM> error."
414 msgstr "POSIX.1 spécifie seulement l'erreur B<ENOMEM>."
415
416 #. type: SH
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 #, no-wrap
420 msgid "ATTRIBUTES"
421 msgstr "ATTRIBUTS"
422
423 #. type: Plain text
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 msgid ""
427 "For an explanation of the terms used in this section, see B<attributes>(7)."
428 msgstr ""
429 "Pour une explication des termes utilisés dans cette section, consulter "
430 "B<attributes>(7)."
431
432 #. type: tbl table
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 #, no-wrap
436 msgid "Interface"
437 msgstr "Interface"
438
439 #. type: tbl table
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 #, no-wrap
443 msgid "Attribute"
444 msgstr "Attribut"
445
446 #. type: tbl table
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 #, no-wrap
450 msgid "Value"
451 msgstr "Valeur"
452
453 #. type: tbl table
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, no-wrap
457 msgid ".na\n"
458 msgstr ".na\n"
459
460 #. type: tbl table
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 #, no-wrap
464 msgid ".nh\n"
465 msgstr ".nh\n"
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 ""
472 "B<hcreate>(),\n"
473 "B<hsearch>(),\n"
474 "B<hdestroy>()"
475 msgstr ""
476 "B<hcreate>(),\n"
477 "B<hsearch>(),\n"
478 "B<hdestroy>()"
479
480 #. type: tbl table
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 #, no-wrap
484 msgid "Thread safety"
485 msgstr "Sécurité des threads"
486
487 #. type: tbl table
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 #, no-wrap
491 msgid "MT-Unsafe race:hsearch"
492 msgstr "MT-Unsafe race:hsearch"
493
494 #. type: tbl table
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 #, no-wrap
498 msgid ""
499 "B<hcreate_r>(),\n"
500 "B<hsearch_r>(),\n"
501 "B<hdestroy_r>()"
502 msgstr ""
503 "B<hcreate_r>(),\n"
504 "B<hsearch_r>(),\n"
505 "B<hdestroy_r>()"
506
507 #. type: tbl table
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 #, no-wrap
511 msgid "MT-Safe race:htab"
512 msgstr "MT-Safe race:htab"
513
514 #. type: SH
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 #, no-wrap
518 msgid "STANDARDS"
519 msgstr "NORMES"
520
521 #. type: TP
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 #, no-wrap
525 msgid "B<hcreate>()"
526 msgstr "B<hcreate>()"
527
528 #. type: TQ
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 #, no-wrap
532 msgid "B<hsearch>()"
533 msgstr "B<hsearch>()"
534
535 #. type: TQ
536 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
537 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
538 #, no-wrap
539 msgid "B<hdestroy>()"
540 msgstr "B<hdestroy>()"
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 "POSIX.1-2008."
546 msgstr "POSIX.1-2008."
547
548 #. type: TP
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 #, no-wrap
552 msgid "B<hcreate_r>()"
553 msgstr "B<hcreate_r>()"
554
555 #. type: TQ
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 #, no-wrap
559 msgid "B<hsearch_r>()"
560 msgstr "B<hsearch_r>()"
561
562 #. type: TQ
563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
565 #, no-wrap
566 msgid "B<hdestroy_r>()"
567 msgstr "B<hdestroy_r>()"
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 "GNU."
573 msgstr "GNU."
574
575 #. type: SH
576 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
577 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
578 #, no-wrap
579 msgid "HISTORY"
580 msgstr "HISTORIQUE"
581
582 #. type: Plain text
583 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
584 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
585 msgid "SVr4, POSIX.1-2001."
586 msgstr "SVr4, POSIX.1-2001."
587
588 #. type: SH
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 #, no-wrap
592 msgid "NOTES"
593 msgstr "NOTES"
594
595 #. type: Plain text
596 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
597 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
598 msgid ""
599 "Hash table implementations are usually more efficient when the table "
600 "contains enough free space to minimize collisions. Typically, this means "
601 "that I<nel> should be at least 25% larger than the maximum number of "
602 "elements that the caller expects to store in the table."
603 msgstr ""
604 "L'implémentation des tables de hachage est généralement plus efficace "
605 "lorsque la table possède assez d'espace libre pour minimiser les collisions. "
606 "Typiquement, cela signifie que I<nel> devrait être 25\\ % plus large que le "
607 "nombre maximal d'éléments que l'on souhaite enregistrer dans la table."
608
609 # NOTE: Formatting: B<hdestroy>_r
610 #. type: Plain text
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 msgid ""
614 "The B<hdestroy>() and B<hdestroy_r>() functions do not free the buffers "
615 "pointed to by the I<key> and I<data> elements of the hash table entries. "
616 "(It can't do this because it doesn't know whether these buffers were "
617 "allocated dynamically.) If these buffers need to be freed (perhaps because "
618 "the program is repeatedly creating and destroying hash tables, rather than "
619 "creating a single table whose lifetime matches that of the program), then "
620 "the program must maintain bookkeeping data structures that allow it to free "
621 "them."
622 msgstr ""
623 "Les fonctions B<hdestroy>() et B<hdestroy_r>() ne libèrent pas les tampons "
624 "pointés par les éléments I<key> et I<data> de la table de hachage. Elles ne "
625 "peuvent pas le faire car elles ne savent pas où ces tampons ont été alloués "
626 "dynamiquement. Si ces tampons doivent être libérés (peut-être car le "
627 "programme crée et supprime des tables de hachage de façon répétitive, au "
628 "lieu de créer un seule table pour toute la vie du programme), alors le "
629 "programme doit maintenir la liste des tampons libérables."
630
631 #. type: SH
632 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
633 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
634 #, no-wrap
635 msgid "BUGS"
636 msgstr "BOGUES"
637
638 #. type: Plain text
639 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
640 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
641 msgid ""
642 "SVr4 and POSIX.1-2001 specify that I<action> is significant only for "
643 "unsuccessful searches, so that an B<ENTER> should not do anything for a "
644 "successful search. In libc and glibc (before glibc 2.3), the implementation "
645 "violates the specification, updating the I<data> for the given I<key> in "
646 "this case."
647 msgstr ""
648 "SVr4 et POSIX.1-2001 précisent que I<action> n'est significatif que pour les "
649 "recherches infructueuses\\ ; ainsi B<ENTER> ne devrait avoir aucune "
650 "influence pour une recherche réussie. Les implémentations libc et glibc "
651 "(antérieure à la 2.3) ne suivaient pas les spécifications car elles "
652 "mettaient à jour les données I<data> de la clé I<key> dans ce cas."
653
654 #. type: Plain text
655 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
656 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
657 msgid "Individual hash table entries can be added, but not deleted."
658 msgstr ""
659 "Les entrées ne peuvent être qu'ajoutées dans la table, on ne peut pas les "
660 "supprimer individuellement."
661
662 #. type: SH
663 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
664 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
665 #, no-wrap
666 msgid "EXAMPLES"
667 msgstr "EXEMPLES"
668
669 #. type: Plain text
670 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
671 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
672 msgid ""
673 "The following program inserts 24 items into a hash table, then prints some "
674 "of them."
675 msgstr ""
676 "Le programme suivant insère 24 éléments dans une table de hachage, puis "
677 "affiche quelques-uns d'entre eux."
678
679 #. type: Plain text
680 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
681 #: opensuse-leap-16-1 opensuse-tumbleweed
682 #, no-wrap
683 msgid ""
684 "#include E<lt>search.hE<gt>\n"
685 "#include E<lt>stdio.hE<gt>\n"
686 "#include E<lt>stdlib.hE<gt>\n"
687 "\\&\n"
688 "static char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n"
689 " \"echo\", \"foxtrot\", \"golf\", \"hotel\", \"india\", \"juliet\",\n"
690 " \"kilo\", \"lima\", \"mike\", \"november\", \"oscar\", \"papa\",\n"
691 " \"quebec\", \"romeo\", \"sierra\", \"tango\", \"uniform\",\n"
692 " \"victor\", \"whisky\", \"x-ray\", \"yankee\", \"zulu\"\n"
693 "};\n"
694 "\\&\n"
695 "int\n"
696 "main(void)\n"
697 "{\n"
698 " ENTRY e;\n"
699 " ENTRY *ep;\n"
700 "\\&\n"
701 " hcreate(30);\n"
702 "\\&\n"
703 " for (size_t i = 0; i E<lt> 24; i++) {\n"
704 " e.key = data[i];\n"
705 " /* data is just an integer, instead of a\n"
706 " pointer to something */\n"
707 " e.data = (void *) i;\n"
708 " ep = hsearch(e, ENTER);\n"
709 " /* there should be no failures */\n"
710 " if (ep == NULL) {\n"
711 " fprintf(stderr, \"entry failed\\[rs]n\");\n"
712 " exit(EXIT_FAILURE);\n"
713 " }\n"
714 " }\n"
715 "\\&\n"
716 " for (size_t i = 22; i E<lt> 26; i++) {\n"
717 " /* print two entries from the table, and\n"
718 " show that two are not in the table */\n"
719 " e.key = data[i];\n"
720 " ep = hsearch(e, FIND);\n"
721 " printf(\"%9.9s -E<gt> %9.9s:%d\\[rs]n\", e.key,\n"
722 " ep ? ep-E<gt>key : \"NULL\", ep ? (int) ep-E<gt>data : 0);\n"
723 " }\n"
724 " hdestroy();\n"
725 " exit(EXIT_SUCCESS);\n"
726 "}\n"
727 msgstr ""
728 "#include E<lt>search.hE<gt>\n"
729 "#include E<lt>stdio.hE<gt>\n"
730 "#include E<lt>stdlib.hE<gt>\n"
731 "\\&\n"
732 "static char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n"
733 " \"echo\", \"foxtrot\", \"golf\", \"hotel\", \"india\", \"juliet\",\n"
734 " \"kilo\", \"lima\", \"mike\", \"november\", \"oscar\", \"papa\",\n"
735 " \"quebec\", \"romeo\", \"sierra\", \"tango\", \"uniform\",\n"
736 " \"victor\", \"whisky\", \"x-ray\", \"yankee\", \"zulu\"\n"
737 "};\n"
738 "\\&\n"
739 "int\n"
740 "main(void)\n"
741 "{\n"
742 " ENTRY e;\n"
743 " ENTRY *ep;\n"
744 "\\&\n"
745 " hcreate(30);\n"
746 "\\&\n"
747 " for (size_t i = 0; i E<lt> 24; i++) {\n"
748 " e.key = data[i];\n"
749 " /* les données sont des entiers et non un pointeur vers\n"
750 " quelque chose */\n"
751 " e.data = (void *) i;\n"
752 " ep = hsearch(e, ENTER);\n"
753 " /* il ne devrait pas y avoir d'échec */\n"
754 " if (ep == NULL) {\n"
755 " fprintf(stderr, \"l'entrée a échoué\\[rs]n\");\n"
756 " exit(EXIT_FAILURE);\n"
757 " }\n"
758 " }\n"
759 "\\&\n"
760 " for (size_t i = 22; i E<lt> 26; i++) {\n"
761 " /* afficher deux entrées de la table et\n"
762 " montrer qu'elles ne sont pas dans la table */\n"
763 " e.key = data[i];\n"
764 " ep = hsearch(e, FIND);\n"
765 " printf(\"%9.9s -E<gt> %9.9s:%d\\[rs]n\", e.key,\n"
766 " ep ? ep-E<gt>key : \"NULL\", ep ? (int) ep-E<gt>data : 0);\n"
767 " }\n"
768 " hdestroy();\n"
769 " exit(EXIT_SUCCESS);\n"
770 "}\n"
771
772 #. SRC END
773 #. type: SH
774 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
775 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
776 #, no-wrap
777 msgid "SEE ALSO"
778 msgstr "VOIR AUSSI"
779
780 #. type: Plain text
781 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
782 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
783 msgid "B<bsearch>(3), B<lsearch>(3), B<malloc>(3), B<tsearch>(3)"
784 msgstr "B<bsearch>(3), B<lsearch>(3), B<malloc>(3), B<tsearch>(3)"
785
786 #. type: TH
787 #: debian-trixie
788 #, no-wrap
789 msgid "2024-06-15"
790 msgstr "15 juin 2024"
791
792 #. type: TH
793 #: debian-trixie
794 #, no-wrap
795 msgid "Linux man-pages 6.9.1"
796 msgstr "Pages du manuel de Linux 6.9.1"
797
798 #. type: Plain text
799 #: debian-trixie
800 msgid "Standard C library (I<libc>, I<-lc>)"
801 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
802
803 #. type: Plain text
804 #: debian-trixie
805 #, no-wrap
806 msgid ""
807 "#include E<lt>search.hE<gt>\n"
808 "#include E<lt>stdio.hE<gt>\n"
809 "#include E<lt>stdlib.hE<gt>\n"
810 "\\&\n"
811 "static char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n"
812 " \"echo\", \"foxtrot\", \"golf\", \"hotel\", \"india\", \"juliet\",\n"
813 " \"kilo\", \"lima\", \"mike\", \"november\", \"oscar\", \"papa\",\n"
814 " \"quebec\", \"romeo\", \"sierra\", \"tango\", \"uniform\",\n"
815 " \"victor\", \"whisky\", \"x-ray\", \"yankee\", \"zulu\"\n"
816 "};\n"
817 "\\&\n"
818 "int\n"
819 "main(void)\n"
820 "{\n"
821 " ENTRY e;\n"
822 " ENTRY *ep;\n"
823 "\\&\n"
824 " hcreate(30);\n"
825 "\\&\n"
826 " for (size_t i = 0; i E<lt> 24; i++) {\n"
827 " e.key = data[i];\n"
828 " /* data is just an integer, instead of a\n"
829 " pointer to something */\n"
830 " e.data = (void *) i;\n"
831 " ep = hsearch(e, ENTER);\n"
832 " /* there should be no failures */\n"
833 " if (ep == NULL) {\n"
834 " fprintf(stderr, \"entry failed\\[rs]n\");\n"
835 " exit(EXIT_FAILURE);\n"
836 " }\n"
837 " }\n"
838 "\\&\n"
839 " for (size_t i = 22; i E<lt> 26; i++) {\n"
840 " /* print two entries from the table, and\n"
841 " show that two are not in the table */\n"
842 " e.key = data[i];\n"
843 " ep = hsearch(e, FIND);\n"
844 " printf(\"%9.9s -E<gt> %9.9s:%d\\[rs]n\", e.key,\n"
845 " ep ? ep-E<gt>key : \"NULL\", ep ? (int)(ep-E<gt>data) : 0);\n"
846 " }\n"
847 " hdestroy();\n"
848 " exit(EXIT_SUCCESS);\n"
849 "}\n"
850 msgstr ""
851 "#include E<lt>search.hE<gt>\n"
852 "#include E<lt>stdio.hE<gt>\n"
853 "#include E<lt>stdlib.hE<gt>\n"
854 "\\&\n"
855 "static char *data[] = { \"alpha\", \"bravo\", \"charlie\", \"delta\",\n"
856 " \"echo\", \"foxtrot\", \"golf\", \"hotel\", \"india\", \"juliet\",\n"
857 " \"kilo\", \"lima\", \"mike\", \"november\", \"oscar\", \"papa\",\n"
858 " \"quebec\", \"romeo\", \"sierra\", \"tango\", \"uniform\",\n"
859 " \"victor\", \"whisky\", \"x-ray\", \"yankee\", \"zulu\"\n"
860 "};\n"
861 "\\&\n"
862 "int\n"
863 "main(void)\n"
864 "{\n"
865 " ENTRY e;\n"
866 " ENTRY *ep;\n"
867 "\\&\n"
868 " hcreate(30);\n"
869 "\\&\n"
870 " for (size_t i = 0; i E<lt> 24; i++) {\n"
871 " e.key = data[i];\n"
872 " /* les données sont des entiers et non un pointeur vers\n"
873 " quelque chose */\n"
874 " e.data = (void *) i;\n"
875 " ep = hsearch(e, ENTER);\n"
876 " /* il ne devrait pas y avoir d'échec */\n"
877 " if (ep == NULL) {\n"
878 " fprintf(stderr, \"l'entrée a échoué\\[rs]n\");\n"
879 " exit(EXIT_FAILURE);\n"
880 " }\n"
881 " }\n"
882 "\\&\n"
883 " for (size_t i = 22; i E<lt> 26; i++) {\n"
884 " /* afficher deux entrées de la table et\n"
885 " montrer qu'elles ne sont pas dans la table */\n"
886 " e.key = data[i];\n"
887 " ep = hsearch(e, FIND);\n"
888 " printf(\"%9.9s -E<gt> %9.9s:%d\\[rs]n\", e.key,\n"
889 " ep ? ep-E<gt>key : \"NULL\", ep ? (int)(ep-E<gt>data) : 0);\n"
890 " }\n"
891 " hdestroy();\n"
892 " exit(EXIT_SUCCESS);\n"
893 "}\n"
894
895 #. type: TH
896 #: fedora-44 fedora-rawhide
897 #, no-wrap
898 msgid "2025-01-05"
899 msgstr "5 janvier 2025"
900
901 #. type: TH
902 #: fedora-44 fedora-rawhide
903 #, no-wrap
904 msgid "Linux man-pages 6.13"
905 msgstr "Pages du manuel de Linux 6.13"
906
907 #. type: TH
908 #: mageia-cauldron
909 #, no-wrap
910 msgid "Linux man-pages 6.17"
911 msgstr "Pages du manuel de Linux 6.17"
912
913 #. type: TH
914 #: opensuse-leap-16-1 opensuse-tumbleweed
915 #, no-wrap
916 msgid "Linux man-pages (unreleased)"
917 msgstr "Pages du manuel de Linux (non publiées)"