| 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 |
# Gérard Delafond <[email protected]> |
| 5 |
# Christophe Blaess <[email protected]>, 1999, 2001, 2003, 2005, 2006. |
| 6 |
# Thierry Vignaud <[email protected]>, 2000, 2002. |
| 7 |
# Alain Portal <[email protected]>, 2003. |
| 8 |
# Denis Barbier <[email protected]>, 2004. |
| 9 |
# Nicolas François <[email protected]>, 2007, 2009. |
| 10 |
# Florentin Duneau <[email protected]>, 2006, 2007, 2008, 2009. |
| 11 |
# Thomas Blein <[email protected]>, 2011, 2014. |
| 12 |
# David Prévot <[email protected]>, 2012. |
| 13 |
msgid "" |
| 14 |
msgstr "" |
| 15 |
"Project-Id-Version: manpages-l10n 4.22.0\n" |
| 16 |
"POT-Creation-Date: 2026-06-05 06:38+0200\n" |
| 17 |
"PO-Revision-Date: 2024-06-03 11:51+0200\n" |
| 18 |
"Last-Translator: Thomas Blein <[email protected]>\n" |
| 19 |
"Language-Team: French <[email protected]>\n" |
| 20 |
"Language: fr\n" |
| 21 |
"MIME-Version: 1.0\n" |
| 22 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 23 |
"Content-Transfer-Encoding: 8bit\n" |
| 24 |
"X-Generator: Lokalize 22.12.3\n" |
| 25 |
"Plural-Forms: nplurals=2; plural=(n > 1);\n" |
| 26 |
|
| 27 |
#. type: TH |
| 28 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 29 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 30 |
#, no-wrap |
| 31 |
msgid "pthread_key_create" |
| 32 |
msgstr "pthread_key_create" |
| 33 |
|
| 34 |
#. type: TH |
| 35 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 36 |
#: opensuse-tumbleweed |
| 37 |
#, no-wrap |
| 38 |
msgid "2025-05-17" |
| 39 |
msgstr "17 mai 2025" |
| 40 |
|
| 41 |
#. type: TH |
| 42 |
#: archlinux debian-unstable |
| 43 |
#, no-wrap |
| 44 |
msgid "Linux man-pages 6.18" |
| 45 |
msgstr "Pages du manuel de Linux 6.18" |
| 46 |
|
| 47 |
#. type: SH |
| 48 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 49 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 50 |
#, no-wrap |
| 51 |
msgid "NAME" |
| 52 |
msgstr "NOM" |
| 53 |
|
| 54 |
#. type: Plain text |
| 55 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 56 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 57 |
msgid "" |
| 58 |
"pthread_key_create, pthread_key_delete, pthread_setspecific, " |
| 59 |
"pthread_getspecific - management of thread-specific data" |
| 60 |
msgstr "" |
| 61 |
"pthread_key_create, pthread_key_delete, pthread_setspecific, " |
| 62 |
"pthread_getspecific - Gestion de données spécifiques à un thread" |
| 63 |
|
| 64 |
#. type: SH |
| 65 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 66 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 67 |
#, no-wrap |
| 68 |
msgid "SYNOPSIS" |
| 69 |
msgstr "SYNOPSIS" |
| 70 |
|
| 71 |
#. type: Plain text |
| 72 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 73 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
#, no-wrap |
| 75 |
msgid "B<#include E<lt>pthread.hE<gt>>\n" |
| 76 |
msgstr "B<#include E<lt>pthread.hE<gt>>\n" |
| 77 |
|
| 78 |
#. type: Plain text |
| 79 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 80 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
#, fuzzy, no-wrap |
| 82 |
#| msgid "" |
| 83 |
#| "B<int pthread_key_create(pthread_key_t *>I<key>B<,>\n" |
| 84 |
#| "B< void (*>I<destr_function>B<) (void *));>\n" |
| 85 |
#| "B<int pthread_key_delete(pthread_key_t >I<key>B<);>\n" |
| 86 |
#| "B<int pthread_setspecific(pthread_key_t >I<key>B<, const void *>I<pointer>B<);>\n" |
| 87 |
#| "B<void * pthread_getspecific(pthread_key_t >I<key>B<);>\n" |
| 88 |
msgid "" |
| 89 |
"B<int pthread_key_create(pthread_key_t *>I<key>B<,>\n" |
| 90 |
"B< typeof(void (void *)) *>I<destr_function>B<;>\n" |
| 91 |
"B<int pthread_key_delete(pthread_key_t >I<key>B<);>\n" |
| 92 |
"B<int pthread_setspecific(pthread_key_t >I<key>B<, const void *>I<pointer>B<);>\n" |
| 93 |
"B<void * pthread_getspecific(pthread_key_t >I<key>B<);>\n" |
| 94 |
msgstr "" |
| 95 |
"B<int pthread_key_create(pthread_key_t *>I<key>B<,>\n" |
| 96 |
"B< void (*>I<destr_function>B<) (void *));>\n" |
| 97 |
"B<int pthread_key_delete(pthread_key_t >I<key>B<);>\n" |
| 98 |
"B<int pthread_setspecific(pthread_key_t >I<key>B<, const void *>I<pointer>B<);>\n" |
| 99 |
"B<void * pthread_getspecific(pthread_key_t >I<key>B<);>\n" |
| 100 |
|
| 101 |
#. type: SH |
| 102 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 103 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 104 |
#, no-wrap |
| 105 |
msgid "DESCRIPTION" |
| 106 |
msgstr "DESCRIPTION" |
| 107 |
|
| 108 |
#. type: Plain text |
| 109 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 110 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 111 |
msgid "" |
| 112 |
"Programs often need global or static variables that have different values in " |
| 113 |
"different threads. Since threads share one memory space, this cannot be " |
| 114 |
"achieved with regular variables. Thread-specific data is the POSIX threads " |
| 115 |
"answer to this need." |
| 116 |
msgstr "" |
| 117 |
"Les programmes ont souvent besoin de variables globales ou statiques ayant " |
| 118 |
"différentes valeurs dans des threads différents. Comme les threads partagent " |
| 119 |
"le même espace mémoire, cet objectif ne peut être réalisé avec les variables " |
| 120 |
"usuelles. Les données spécifiques à un thread POSIX sont la réponse à ce " |
| 121 |
"problème." |
| 122 |
|
| 123 |
#. type: Plain text |
| 124 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 125 |
#: opensuse-tumbleweed |
| 126 |
#, fuzzy |
| 127 |
#| msgid "" |
| 128 |
#| "Each thread possesses a private memory block, the thread-specific data " |
| 129 |
#| "area, or TSD area for short. This area is indexed by TSD keys. The TSD " |
| 130 |
#| "area associates values of type B<void *> to TSD keys. TSD keys are " |
| 131 |
#| "common to all threads, but the value associated with a given TSD key can " |
| 132 |
#| "be different in each thread." |
| 133 |
msgid "" |
| 134 |
"Each thread possesses a private memory block, the thread-specific data area, " |
| 135 |
"or TSD area for short. This area is indexed by TSD keys. The TSD area " |
| 136 |
"associates values of type I<void\\ *> to TSD keys. TSD keys are common to " |
| 137 |
"all threads, but the value associated with a given TSD key can be different " |
| 138 |
"in each thread." |
| 139 |
msgstr "" |
| 140 |
"Chaque thread possède un segment mémoire privé, le TSD (Thread-Specific " |
| 141 |
"Data\\ : Données Spécifiques au Thread). Cette zone mémoire est indexée par " |
| 142 |
"des clés TSD. La zone TSD associe des valeurs du type B<void *> aux clés " |
| 143 |
"TSD. Ces clés sont communes à tous les threads, mais la valeur associée à " |
| 144 |
"une clé donnée est différente dans chaque thread." |
| 145 |
|
| 146 |
#. type: Plain text |
| 147 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 148 |
#: opensuse-tumbleweed |
| 149 |
#, fuzzy |
| 150 |
#| msgid "" |
| 151 |
#| "For concreteness, the TSD areas can be viewed as arrays of B<void *> " |
| 152 |
#| "pointers, TSD keys as integer indices into these arrays, and the value of " |
| 153 |
#| "a TSD key as the value of the corresponding array element in the calling " |
| 154 |
#| "thread." |
| 155 |
msgid "" |
| 156 |
"For concreteness, the TSD areas can be viewed as arrays of I<void\\ *> " |
| 157 |
"pointers, TSD keys as integer indices into these arrays, and the value of a " |
| 158 |
"TSD key as the value of the corresponding array element in the calling " |
| 159 |
"thread." |
| 160 |
msgstr "" |
| 161 |
"Pour concrétiser ce formalisme, les zones TSD peuvent être vues comme des " |
| 162 |
"tableaux de pointeurs B<void *>, les clés TSD comme des indices entiers pour " |
| 163 |
"ces tableaux, et les valeurs des clés TSD comme les valeurs des entrées " |
| 164 |
"correspondantes dans le tableau du thread appelant." |
| 165 |
|
| 166 |
#. type: Plain text |
| 167 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 168 |
#: opensuse-tumbleweed |
| 169 |
#, fuzzy |
| 170 |
#| msgid "" |
| 171 |
#| "When a thread is created, its TSD area initially associates B<NULL> with " |
| 172 |
#| "all keys." |
| 173 |
msgid "" |
| 174 |
"When a thread is created, its TSD area initially associates NULL with all " |
| 175 |
"keys." |
| 176 |
msgstr "" |
| 177 |
"Quand un thread est créé, sa zone TSD associe initialement NULL à toutes les " |
| 178 |
"clés." |
| 179 |
|
| 180 |
#. type: Plain text |
| 181 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 182 |
#: opensuse-tumbleweed |
| 183 |
#, fuzzy |
| 184 |
#| msgid "" |
| 185 |
#| "B<pthread_key_create> allocates a new TSD key. The key is stored in the " |
| 186 |
#| "location pointed to by I<key>. There is a limit of B<PTHREAD_KEYS_MAX> " |
| 187 |
#| "on the number of keys allocated at a given time. The value initially " |
| 188 |
#| "associated with the returned key is B<NULL> in all currently executing " |
| 189 |
#| "threads." |
| 190 |
msgid "" |
| 191 |
"B<pthread_key_create>() allocates a new TSD key. The key is stored in the " |
| 192 |
"location pointed to by I<key>. There is a limit of B<PTHREAD_KEYS_MAX> on " |
| 193 |
"the number of keys allocated at a given time. The value initially " |
| 194 |
"associated with the returned key is NULL in all currently executing threads." |
| 195 |
msgstr "" |
| 196 |
"B<pthread_key_create>() alloue une nouvelle clé TSD. Cette clé est " |
| 197 |
"enregistrée à l'emplacement pointée par I<clé>. Il ne peut y avoir plus de " |
| 198 |
"B<PTHREAD_KEYS_MAX> clés allouées à un instant donné. La valeur initialement " |
| 199 |
"associée avec la clé renvoyée est NULL dans tous les threads en cours " |
| 200 |
"d'exécution." |
| 201 |
|
| 202 |
#. type: Plain text |
| 203 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 204 |
#: opensuse-tumbleweed |
| 205 |
#, fuzzy |
| 206 |
#| msgid "" |
| 207 |
#| "The I<destr_function> argument, if not B<NULL>, specifies a destructor " |
| 208 |
#| "function associated with the key. When a thread terminates via " |
| 209 |
#| "B<pthread_exit> or by cancelation, I<destr_function> is called with " |
| 210 |
#| "arguments the value associated with the key in that thread. The " |
| 211 |
#| "I<destr_function> is not called if that value is B<NULL>. The order in " |
| 212 |
#| "which destructor functions are called at thread termination time is " |
| 213 |
#| "unspecified." |
| 214 |
msgid "" |
| 215 |
"The I<destr_function> argument, if not NULL, specifies a destructor function " |
| 216 |
"associated with the key. When a thread terminates via B<pthread_exit>() or " |
| 217 |
"by cancelation, I<destr_function> is called with arguments the value " |
| 218 |
"associated with the key in that thread. The I<destr_function> is not called " |
| 219 |
"if that value is NULL. The order in which destructor functions are called " |
| 220 |
"at thread termination time is unspecified." |
| 221 |
msgstr "" |
| 222 |
"Le paramètre I<destr_function>, si différent de NULL, spécifie une fonction " |
| 223 |
"de destruction associée à une clé. Quand le thread se termine par " |
| 224 |
"B<pthread_exit>() ou par une annulation, I<destr_function> est appelée avec " |
| 225 |
"en argument les valeurs associées aux clés de ce thread. La fonction " |
| 226 |
"I<destr_function> n'est pas appelée si cette valeur est NULL. L'ordre dans " |
| 227 |
"lequel les fonctions de destruction sont appelées lors de la fin du thread " |
| 228 |
"n'est pas spécifiée." |
| 229 |
|
| 230 |
#. type: Plain text |
| 231 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 232 |
#: opensuse-tumbleweed |
| 233 |
#, fuzzy |
| 234 |
#| msgid "" |
| 235 |
#| "Before the destructor function is called, the B<NULL> value is associated " |
| 236 |
#| "with the key in the current thread. A destructor function might, " |
| 237 |
#| "however, re-associate non-B<NULL> values to that key or some other key. " |
| 238 |
#| "To deal with this, if after all the destructors have been called for all " |
| 239 |
#| "non-B<NULL> values, there are still some non-B<NULL> values with " |
| 240 |
#| "associated destructors, then the process is repeated. The glibc " |
| 241 |
#| "implementation stops the process after B<PTHREAD_DESTRUCTOR_ITERATIONS> " |
| 242 |
#| "iterations, even if some non-B<NULL> values with associated descriptors " |
| 243 |
#| "remain. Other implementations may loop indefinitely." |
| 244 |
msgid "" |
| 245 |
"Before the destructor function is called, the NULL value is associated with " |
| 246 |
"the key in the current thread. A destructor function might, however, re-" |
| 247 |
"associate non-NULL values to that key or some other key. To deal with this, " |
| 248 |
"if after all the destructors have been called for all non-NULL values, there " |
| 249 |
"are still some non-NULL values with associated destructors, then the process " |
| 250 |
"is repeated. The glibc implementation stops the process after " |
| 251 |
"B<PTHREAD_DESTRUCTOR_ITERATIONS> iterations, even if some non-NULL values " |
| 252 |
"with associated descriptors remain. Other implementations may loop " |
| 253 |
"indefinitely." |
| 254 |
msgstr "" |
| 255 |
"Avant que la fonction de destruction soit appelée, la valeur NULL est " |
| 256 |
"associée à la clé dans le thread courant. Une fonction de destruction peut " |
| 257 |
"cependant réassocier une valeur différente de NULL à cette clé ou une autre " |
| 258 |
"clé. Pour gérer ce cas de figure, si après l'appel de tous les destructeurs " |
| 259 |
"pour les valeurs différentes de NULL, il existe toujours des valeurs " |
| 260 |
"différentes de NULL avec des destructeurs associés, alors la procédure est " |
| 261 |
"répétée. L'implémentation de glibc interrompt cette procédure après " |
| 262 |
"B<PTHREAD_DESTRUCTOR_ITERATIONS> itérations, même s'il reste des valeurs " |
| 263 |
"différentes de NULL associées à des descripteurs. Les autres implémentations " |
| 264 |
"peuvent boucler sans fin." |
| 265 |
|
| 266 |
#. type: Plain text |
| 267 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 268 |
#: opensuse-tumbleweed |
| 269 |
#, fuzzy |
| 270 |
#| msgid "" |
| 271 |
#| "B<pthread_key_delete> deallocates a TSD key. It does not check whether " |
| 272 |
#| "non-B<NULL> values are associated with that key in the currently " |
| 273 |
#| "executing threads, nor call the destructor function associated with the " |
| 274 |
#| "key." |
| 275 |
msgid "" |
| 276 |
"B<pthread_key_delete>() deallocates a TSD key. It does not check whether " |
| 277 |
"non-NULL values are associated with that key in the currently executing " |
| 278 |
"threads, nor call the destructor function associated with the key." |
| 279 |
msgstr "" |
| 280 |
"B<pthread_key_delete>() désalloue une clé TSD. Elle ne vérifie pas si des " |
| 281 |
"valeurs différentes de NULL sont associées avec cette clé dans les threads " |
| 282 |
"en cours d'exécution, ni n'appelle la fonction de destruction associée avec " |
| 283 |
"cette clé." |
| 284 |
|
| 285 |
#. type: Plain text |
| 286 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 287 |
#: opensuse-tumbleweed |
| 288 |
#, fuzzy |
| 289 |
#| msgid "" |
| 290 |
#| "B<pthread_setspecific> changes the value associated with I<key> in the " |
| 291 |
#| "calling thread, storing the given I<pointer> instead." |
| 292 |
msgid "" |
| 293 |
"B<pthread_setspecific>() changes the value associated with I<key> in the " |
| 294 |
"calling thread, storing the given I<pointer> instead." |
| 295 |
msgstr "" |
| 296 |
"B<pthread_setspecific>() change la valeur associée avec I<clé> dans le " |
| 297 |
"thread appelant, sauve le paramètre I<pointer> à sa place." |
| 298 |
|
| 299 |
#. type: Plain text |
| 300 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 301 |
#: opensuse-tumbleweed |
| 302 |
#, fuzzy |
| 303 |
#| msgid "" |
| 304 |
#| "B<pthread_getspecific> returns the value currently associated with I<key> " |
| 305 |
#| "in the calling thread." |
| 306 |
msgid "" |
| 307 |
"B<pthread_getspecific>() returns the value currently associated with I<key> " |
| 308 |
"in the calling thread." |
| 309 |
msgstr "" |
| 310 |
"B<pthread_getspecific>() renvoie la valeur actuellement associée avec I<clé> " |
| 311 |
"dans le thread appelant." |
| 312 |
|
| 313 |
#. type: SH |
| 314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 315 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 316 |
#, no-wrap |
| 317 |
msgid "RETURN VALUE" |
| 318 |
msgstr "VALEUR RENVOYÉE" |
| 319 |
|
| 320 |
#. type: Plain text |
| 321 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 322 |
#: opensuse-tumbleweed |
| 323 |
#, fuzzy |
| 324 |
#| msgid "" |
| 325 |
#| "B<pthread_key_create>, B<pthread_key_delete>, and B<pthread_setspecific> " |
| 326 |
#| "return 0 on success and a non-zero error code on failure. If successful, " |
| 327 |
#| "B<pthread_key_create> stores the newly allocated key in the location " |
| 328 |
#| "pointed to by its I<key> argument." |
| 329 |
msgid "" |
| 330 |
"B<pthread_key_create>(), B<pthread_key_delete>(), and " |
| 331 |
"B<pthread_setspecific>() return 0 on success and a non-zero error code on " |
| 332 |
"failure. If successful, B<pthread_key_create>() stores the newly allocated " |
| 333 |
"key in the location pointed to by its I<key> argument." |
| 334 |
msgstr "" |
| 335 |
"B<pthread_key_create>(), B<pthread_key_delete>() et B<pthread_setspecific>() " |
| 336 |
"renvoient 0 en cas de succès et un code d'erreur non nul en cas d'échec. En " |
| 337 |
"cas de succès, B<pthread_key_create>() enregistre la clé récemment créée à " |
| 338 |
"l'emplacement pointé par son argument I<clé>." |
| 339 |
|
| 340 |
#. type: Plain text |
| 341 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 342 |
#: opensuse-tumbleweed |
| 343 |
#, fuzzy |
| 344 |
#| msgid "" |
| 345 |
#| "B<pthread_getspecific> returns the value associated with I<key> on " |
| 346 |
#| "success, and B<NULL> on error." |
| 347 |
msgid "" |
| 348 |
"B<pthread_getspecific>() returns the value associated with I<key> on " |
| 349 |
"success, and NULL on error." |
| 350 |
msgstr "" |
| 351 |
"B<pthread_getspecific>() renvoie la valeur associée à I<clé> en cas de " |
| 352 |
"succès et NULL en cas d'erreur." |
| 353 |
|
| 354 |
#. type: SH |
| 355 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 356 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 357 |
#, no-wrap |
| 358 |
msgid "ERRORS" |
| 359 |
msgstr "ERREURS" |
| 360 |
|
| 361 |
#. type: Plain text |
| 362 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 363 |
#: opensuse-tumbleweed |
| 364 |
#, fuzzy |
| 365 |
#| msgid "B<pthread_key_create> returns the following error code on error:" |
| 366 |
msgid "B<pthread_key_create>() returns the following error code on error:" |
| 367 |
msgstr "B<pthread_key_create>() renvoie le code d'erreur suivant\\ :" |
| 368 |
|
| 369 |
#. type: TP |
| 370 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 371 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 372 |
#, no-wrap |
| 373 |
msgid "B<EAGAIN>" |
| 374 |
msgstr "B<EAGAIN>" |
| 375 |
|
| 376 |
#. type: Plain text |
| 377 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 378 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 379 |
msgid "B<PTHREAD_KEYS_MAX> keys are already allocated." |
| 380 |
msgstr "B<PTHREAD_KEYS_MAX> clés sont déjà allouées." |
| 381 |
|
| 382 |
#. type: Plain text |
| 383 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 384 |
#: opensuse-tumbleweed |
| 385 |
#, fuzzy |
| 386 |
#| msgid "" |
| 387 |
#| "B<pthread_key_delete> and B<pthread_setspecific> return the following " |
| 388 |
#| "error code on error:" |
| 389 |
msgid "" |
| 390 |
"B<pthread_key_delete>() and B<pthread_setspecific>() return the following " |
| 391 |
"error code on error:" |
| 392 |
msgstr "" |
| 393 |
"B<pthread_key_delete>() et B<pthread_setspecific>() renvoient le code " |
| 394 |
"d'erreur suivant\\ :" |
| 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<EINVAL>" |
| 401 |
msgstr "B<EINVAL>" |
| 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<key> is not a valid, allocated TSD key." |
| 407 |
msgstr "I<clé> n'est pas une clé TSD allouée valable." |
| 408 |
|
| 409 |
#. type: Plain text |
| 410 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 411 |
#: opensuse-tumbleweed |
| 412 |
#, fuzzy |
| 413 |
#| msgid "" |
| 414 |
#| "B<pthread_getspecific> returns B<NULL> if I<key> is not a valid, " |
| 415 |
#| "allocated TSD key." |
| 416 |
msgid "" |
| 417 |
"B<pthread_getspecific>() returns NULL if I<key> is not a valid, allocated " |
| 418 |
"TSD key." |
| 419 |
msgstr "" |
| 420 |
"B<pthread_getspecific>() renvoie NULL si I<clé> n'est pas une clef TSD " |
| 421 |
"allouée valable." |
| 422 |
|
| 423 |
#. type: SH |
| 424 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 425 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 426 |
#, no-wrap |
| 427 |
msgid "SEE ALSO" |
| 428 |
msgstr "VOIR AUSSI" |
| 429 |
|
| 430 |
#. type: Plain text |
| 431 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 432 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 433 |
msgid "pthread_create(3), pthread_exit(3), pthread_testcancel(3)." |
| 434 |
msgstr "B<pthread_create>(3), B<pthread_exit>(3), B<pthread_testcancel>(3)." |
| 435 |
|
| 436 |
#. type: SH |
| 437 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 438 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 439 |
#, no-wrap |
| 440 |
msgid "EXAMPLE" |
| 441 |
msgstr "EXEMPLE" |
| 442 |
|
| 443 |
#. type: Plain text |
| 444 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 445 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 446 |
msgid "" |
| 447 |
"The following code fragment allocates a thread-specific array of 100 " |
| 448 |
"characters, with automatic reclamation at thread exit:" |
| 449 |
msgstr "" |
| 450 |
"L'extrait de code suivant alloue dans un thread un tableau de 100 " |
| 451 |
"caractères, avec libération de la mémoire automatiquement à la fin de " |
| 452 |
"l'exécution du thread." |
| 453 |
|
| 454 |
#. type: Plain text |
| 455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 456 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 457 |
#, no-wrap |
| 458 |
msgid "" |
| 459 |
"B</* Key for the thread-specific buffer */\n" |
| 460 |
"static pthread_key_t buffer_key;\n" |
| 461 |
"\\&\n" |
| 462 |
"/* Once-only initialisation of the key */\n" |
| 463 |
"static pthread_once_t buffer_key_once = PTHREAD_ONCE_INIT;\n" |
| 464 |
"\\&\n" |
| 465 |
"/* Allocate the thread-specific buffer */\n" |
| 466 |
"void buffer_alloc(void)\n" |
| 467 |
"{\n" |
| 468 |
" pthread_once(&buffer_key_once, buffer_key_alloc);\n" |
| 469 |
" pthread_setspecific(buffer_key, malloc(100));\n" |
| 470 |
"}\n" |
| 471 |
"\\&\n" |
| 472 |
"/* Return the thread-specific buffer */\n" |
| 473 |
"char * get_buffer(void)\n" |
| 474 |
"{\n" |
| 475 |
" return (char *) pthread_getspecific(buffer_key);\n" |
| 476 |
"}\n" |
| 477 |
"\\&\n" |
| 478 |
"/* Allocate the key */\n" |
| 479 |
"static void buffer_key_alloc()\n" |
| 480 |
"{\n" |
| 481 |
" pthread_key_create(&buffer_key, buffer_destroy);\n" |
| 482 |
"}\n" |
| 483 |
"\\&\n" |
| 484 |
"/* Free the thread-specific buffer */\n" |
| 485 |
"static void buffer_destroy(void * buf)\n" |
| 486 |
"{\n" |
| 487 |
" free(buf);\n" |
| 488 |
"}>\n" |
| 489 |
msgstr "" |
| 490 |
"B</* Clé pour le tampon spécifique au thread */\n" |
| 491 |
"static pthread_key_t buffer_key;\n" |
| 492 |
"\\&\n" |
| 493 |
"/* Initialisation unique de la clé */\n" |
| 494 |
"static pthread_once_t buffer_key_once = PTHREAD_ONCE_INIT;\n" |
| 495 |
"\\&\n" |
| 496 |
"* Alloue le tampon spécifique au thread */\n" |
| 497 |
"void buffer_alloc(void)\n" |
| 498 |
"{\n" |
| 499 |
" pthread_once(&buffer_key_once, buffer_key_alloc);\n" |
| 500 |
" pthread_setspecific(buffer_key, malloc(100));\n" |
| 501 |
"}\n" |
| 502 |
"\\&\n" |
| 503 |
"* Renvoie le tampon spécifique au thread */\n" |
| 504 |
"char * get_buffer(void)\n" |
| 505 |
"{\n" |
| 506 |
" return (char *) pthread_getspecific(buffer_key);\n" |
| 507 |
"}\n" |
| 508 |
"\\&\n" |
| 509 |
"/* Alloue la clé */\n" |
| 510 |
"static void buffer_key_alloc()\n" |
| 511 |
"{\n" |
| 512 |
" pthread_key_create(&buffer_key, buffer_destroy);\n" |
| 513 |
"}\n" |
| 514 |
"\\&\n" |
| 515 |
"/* Libère le tampon spécifique au thread */\n" |
| 516 |
"static void buffer_destroy(void * buf)\n" |
| 517 |
"{\n" |
| 518 |
" free(buf);\n" |
| 519 |
"}>\n" |
| 520 |
|
| 521 |
#. type: TH |
| 522 |
#: debian-trixie |
| 523 |
#, no-wrap |
| 524 |
msgid "2024-06-16" |
| 525 |
msgstr "16 juin 2024" |
| 526 |
|
| 527 |
#. type: TH |
| 528 |
#: debian-trixie |
| 529 |
#, no-wrap |
| 530 |
msgid "Linux man-pages 6.9.1" |
| 531 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 532 |
|
| 533 |
#. type: Plain text |
| 534 |
#: debian-trixie |
| 535 |
#, no-wrap |
| 536 |
msgid "" |
| 537 |
"B<int pthread_key_create(pthread_key_t *>I<key>B<,>\n" |
| 538 |
"B< void (*>I<destr_function>B<) (void *));>\n" |
| 539 |
"B<int pthread_key_delete(pthread_key_t >I<key>B<);>\n" |
| 540 |
"B<int pthread_setspecific(pthread_key_t >I<key>B<, const void *>I<pointer>B<);>\n" |
| 541 |
"B<void * pthread_getspecific(pthread_key_t >I<key>B<);>\n" |
| 542 |
msgstr "" |
| 543 |
"B<int pthread_key_create(pthread_key_t *>I<key>B<,>\n" |
| 544 |
"B< void (*>I<destr_function>B<) (void *));>\n" |
| 545 |
"B<int pthread_key_delete(pthread_key_t >I<key>B<);>\n" |
| 546 |
"B<int pthread_setspecific(pthread_key_t >I<key>B<, const void *>I<pointer>B<);>\n" |
| 547 |
"B<void * pthread_getspecific(pthread_key_t >I<key>B<);>\n" |
| 548 |
|
| 549 |
#. type: Plain text |
| 550 |
#: debian-trixie fedora-44 fedora-rawhide |
| 551 |
msgid "" |
| 552 |
"Each thread possesses a private memory block, the thread-specific data area, " |
| 553 |
"or TSD area for short. This area is indexed by TSD keys. The TSD area " |
| 554 |
"associates values of type B<void *> to TSD keys. TSD keys are common to all " |
| 555 |
"threads, but the value associated with a given TSD key can be different in " |
| 556 |
"each thread." |
| 557 |
msgstr "" |
| 558 |
"Chaque thread possède un segment mémoire privé, le TSD (Thread-Specific " |
| 559 |
"Data\\ : Données Spécifiques au Thread). Cette zone mémoire est indexée par " |
| 560 |
"des clés TSD. La zone TSD associe des valeurs du type B<void *> aux clés " |
| 561 |
"TSD. Ces clés sont communes à tous les threads, mais la valeur associée à " |
| 562 |
"une clé donnée est différente dans chaque thread." |
| 563 |
|
| 564 |
#. type: Plain text |
| 565 |
#: debian-trixie fedora-44 fedora-rawhide |
| 566 |
msgid "" |
| 567 |
"For concreteness, the TSD areas can be viewed as arrays of B<void *> " |
| 568 |
"pointers, TSD keys as integer indices into these arrays, and the value of a " |
| 569 |
"TSD key as the value of the corresponding array element in the calling " |
| 570 |
"thread." |
| 571 |
msgstr "" |
| 572 |
"Pour concrétiser ce formalisme, les zones TSD peuvent être vues comme des " |
| 573 |
"tableaux de pointeurs B<void *>, les clés TSD comme des indices entiers pour " |
| 574 |
"ces tableaux, et les valeurs des clés TSD comme les valeurs des entrées " |
| 575 |
"correspondantes dans le tableau du thread appelant." |
| 576 |
|
| 577 |
#. type: Plain text |
| 578 |
#: debian-trixie fedora-44 fedora-rawhide |
| 579 |
msgid "" |
| 580 |
"When a thread is created, its TSD area initially associates B<NULL> with all " |
| 581 |
"keys." |
| 582 |
msgstr "" |
| 583 |
"Quand un thread est créé, sa zone TSD associe initialement NULL à toutes les " |
| 584 |
"clés." |
| 585 |
|
| 586 |
#. type: Plain text |
| 587 |
#: debian-trixie fedora-44 fedora-rawhide |
| 588 |
msgid "" |
| 589 |
"B<pthread_key_create> allocates a new TSD key. The key is stored in the " |
| 590 |
"location pointed to by I<key>. There is a limit of B<PTHREAD_KEYS_MAX> on " |
| 591 |
"the number of keys allocated at a given time. The value initially " |
| 592 |
"associated with the returned key is B<NULL> in all currently executing " |
| 593 |
"threads." |
| 594 |
msgstr "" |
| 595 |
"B<pthread_key_create>() alloue une nouvelle clé TSD. Cette clé est " |
| 596 |
"enregistrée à l'emplacement pointée par I<clé>. Il ne peut y avoir plus de " |
| 597 |
"B<PTHREAD_KEYS_MAX> clés allouées à un instant donné. La valeur initialement " |
| 598 |
"associée avec la clé renvoyée est NULL dans tous les threads en cours " |
| 599 |
"d'exécution." |
| 600 |
|
| 601 |
#. type: Plain text |
| 602 |
#: debian-trixie fedora-44 fedora-rawhide |
| 603 |
msgid "" |
| 604 |
"The I<destr_function> argument, if not B<NULL>, specifies a destructor " |
| 605 |
"function associated with the key. When a thread terminates via " |
| 606 |
"B<pthread_exit> or by cancelation, I<destr_function> is called with " |
| 607 |
"arguments the value associated with the key in that thread. The " |
| 608 |
"I<destr_function> is not called if that value is B<NULL>. The order in " |
| 609 |
"which destructor functions are called at thread termination time is " |
| 610 |
"unspecified." |
| 611 |
msgstr "" |
| 612 |
"Le paramètre I<destr_function>, si différent de NULL, spécifie une fonction " |
| 613 |
"de destruction associée à une clé. Quand le thread se termine par " |
| 614 |
"B<pthread_exit>() ou par une annulation, I<destr_function> est appelée avec " |
| 615 |
"en argument les valeurs associées aux clés de ce thread. La fonction " |
| 616 |
"I<destr_function> n'est pas appelée si cette valeur est NULL. L'ordre dans " |
| 617 |
"lequel les fonctions de destruction sont appelées lors de la fin du thread " |
| 618 |
"n'est pas spécifiée." |
| 619 |
|
| 620 |
#. type: Plain text |
| 621 |
#: debian-trixie fedora-44 fedora-rawhide |
| 622 |
msgid "" |
| 623 |
"Before the destructor function is called, the B<NULL> value is associated " |
| 624 |
"with the key in the current thread. A destructor function might, however, " |
| 625 |
"re-associate non-B<NULL> values to that key or some other key. To deal with " |
| 626 |
"this, if after all the destructors have been called for all non-B<NULL> " |
| 627 |
"values, there are still some non-B<NULL> values with associated destructors, " |
| 628 |
"then the process is repeated. The glibc implementation stops the process " |
| 629 |
"after B<PTHREAD_DESTRUCTOR_ITERATIONS> iterations, even if some non-B<NULL> " |
| 630 |
"values with associated descriptors remain. Other implementations may loop " |
| 631 |
"indefinitely." |
| 632 |
msgstr "" |
| 633 |
"Avant que la fonction de destruction soit appelée, la valeur NULL est " |
| 634 |
"associée à la clé dans le thread courant. Une fonction de destruction peut " |
| 635 |
"cependant réassocier une valeur différente de NULL à cette clé ou une autre " |
| 636 |
"clé. Pour gérer ce cas de figure, si après l'appel de tous les destructeurs " |
| 637 |
"pour les valeurs différentes de NULL, il existe toujours des valeurs " |
| 638 |
"différentes de NULL avec des destructeurs associés, alors la procédure est " |
| 639 |
"répétée. L'implémentation de glibc interrompt cette procédure après " |
| 640 |
"B<PTHREAD_DESTRUCTOR_ITERATIONS> itérations, même s'il reste des valeurs " |
| 641 |
"différentes de NULL associées à des descripteurs. Les autres implémentations " |
| 642 |
"peuvent boucler sans fin." |
| 643 |
|
| 644 |
#. type: Plain text |
| 645 |
#: debian-trixie fedora-44 fedora-rawhide |
| 646 |
msgid "" |
| 647 |
"B<pthread_key_delete> deallocates a TSD key. It does not check whether non-" |
| 648 |
"B<NULL> values are associated with that key in the currently executing " |
| 649 |
"threads, nor call the destructor function associated with the key." |
| 650 |
msgstr "" |
| 651 |
"B<pthread_key_delete>() désalloue une clé TSD. Elle ne vérifie pas si des " |
| 652 |
"valeurs différentes de NULL sont associées avec cette clé dans les threads " |
| 653 |
"en cours d'exécution, ni n'appelle la fonction de destruction associée avec " |
| 654 |
"cette clé." |
| 655 |
|
| 656 |
#. type: Plain text |
| 657 |
#: debian-trixie fedora-44 fedora-rawhide |
| 658 |
msgid "" |
| 659 |
"B<pthread_setspecific> changes the value associated with I<key> in the " |
| 660 |
"calling thread, storing the given I<pointer> instead." |
| 661 |
msgstr "" |
| 662 |
"B<pthread_setspecific>() change la valeur associée avec I<clé> dans le " |
| 663 |
"thread appelant, sauve le paramètre I<pointer> à sa place." |
| 664 |
|
| 665 |
#. type: Plain text |
| 666 |
#: debian-trixie fedora-44 fedora-rawhide |
| 667 |
msgid "" |
| 668 |
"B<pthread_getspecific> returns the value currently associated with I<key> in " |
| 669 |
"the calling thread." |
| 670 |
msgstr "" |
| 671 |
"B<pthread_getspecific>() renvoie la valeur actuellement associée avec I<clé> " |
| 672 |
"dans le thread appelant." |
| 673 |
|
| 674 |
#. type: Plain text |
| 675 |
#: debian-trixie fedora-44 fedora-rawhide |
| 676 |
msgid "" |
| 677 |
"B<pthread_key_create>, B<pthread_key_delete>, and B<pthread_setspecific> " |
| 678 |
"return 0 on success and a non-zero error code on failure. If successful, " |
| 679 |
"B<pthread_key_create> stores the newly allocated key in the location pointed " |
| 680 |
"to by its I<key> argument." |
| 681 |
msgstr "" |
| 682 |
"B<pthread_key_create>(), B<pthread_key_delete>() et B<pthread_setspecific>() " |
| 683 |
"renvoient 0 en cas de succès et un code d'erreur non nul en cas d'échec. En " |
| 684 |
"cas de succès, B<pthread_key_create>() enregistre la clé récemment créée à " |
| 685 |
"l'emplacement pointé par son argument I<clé>." |
| 686 |
|
| 687 |
#. type: Plain text |
| 688 |
#: debian-trixie fedora-44 fedora-rawhide |
| 689 |
msgid "" |
| 690 |
"B<pthread_getspecific> returns the value associated with I<key> on success, " |
| 691 |
"and B<NULL> on error." |
| 692 |
msgstr "" |
| 693 |
"B<pthread_getspecific>() renvoie la valeur associée à I<clé> en cas de " |
| 694 |
"succès et NULL en cas d'erreur." |
| 695 |
|
| 696 |
#. type: Plain text |
| 697 |
#: debian-trixie fedora-44 fedora-rawhide |
| 698 |
msgid "B<pthread_key_create> returns the following error code on error:" |
| 699 |
msgstr "B<pthread_key_create>() renvoie le code d'erreur suivant\\ :" |
| 700 |
|
| 701 |
#. type: Plain text |
| 702 |
#: debian-trixie fedora-44 fedora-rawhide |
| 703 |
msgid "" |
| 704 |
"B<pthread_key_delete> and B<pthread_setspecific> return the following error " |
| 705 |
"code on error:" |
| 706 |
msgstr "" |
| 707 |
"B<pthread_key_delete>() et B<pthread_setspecific>() renvoient le code " |
| 708 |
"d'erreur suivant\\ :" |
| 709 |
|
| 710 |
#. type: Plain text |
| 711 |
#: debian-trixie fedora-44 fedora-rawhide |
| 712 |
msgid "" |
| 713 |
"B<pthread_getspecific> returns B<NULL> if I<key> is not a valid, allocated " |
| 714 |
"TSD key." |
| 715 |
msgstr "" |
| 716 |
"B<pthread_getspecific>() renvoie NULL si I<clé> n'est pas une clef TSD " |
| 717 |
"allouée valable." |
| 718 |
|
| 719 |
#. type: TH |
| 720 |
#: fedora-44 fedora-rawhide |
| 721 |
#, no-wrap |
| 722 |
msgid "2025-01-11" |
| 723 |
msgstr "11 janvier 2025" |
| 724 |
|
| 725 |
#. type: TH |
| 726 |
#: fedora-44 fedora-rawhide |
| 727 |
#, no-wrap |
| 728 |
msgid "Linux man-pages 6.13" |
| 729 |
msgstr "Pages du manuel de Linux 6.13" |
| 730 |
|
| 731 |
#. type: TH |
| 732 |
#: mageia-cauldron |
| 733 |
#, no-wrap |
| 734 |
msgid "Linux man-pages 6.17" |
| 735 |
msgstr "Pages du manuel de Linux 6.17" |
| 736 |
|
| 737 |
#. type: TH |
| 738 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 739 |
#, no-wrap |
| 740 |
msgid "Linux man-pages (unreleased)" |
| 741 |
msgstr "Pages du manuel de Linux (non publiées)" |