Debian Codegraph @

po/fr/man3/pthread_mutexattr_setrobust.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 # Frédéric Hantrais <[email protected]>, 2013, 2014.
19 # Jean-Pierre Giraud <[email protected]>, 2023.
20 msgid ""
21 msgstr ""
22 "Project-Id-Version: perkamon\n"
23 "POT-Creation-Date: 2026-06-05 06:38+0200\n"
24 "PO-Revision-Date: 2023-07-25 16:53+0200\n"
25 "Last-Translator: Jean-Pierre Giraud <[email protected]>\n"
26 "Language-Team: French <[email protected]>\n"
27 "Language: fr\n"
28 "MIME-Version: 1.0\n"
29 "Content-Type: text/plain; charset=UTF-8\n"
30 "Content-Transfer-Encoding: 8bit\n"
31 "Plural-Forms: nplurals=2; plural=n > 1;\n"
32 "X-Generator: Lokalize 22.12.3\n"
33
34 #. type: TH
35 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
36 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
37 #, no-wrap
38 msgid "pthread_mutexattr_setrobust"
39 msgstr "pthread_mutexattr_setrobust"
40
41 #. type: TH
42 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
43 #: opensuse-tumbleweed
44 #, no-wrap
45 msgid "2026-02-08"
46 msgstr "8 février 2026"
47
48 #. type: TH
49 #: archlinux debian-unstable
50 #, no-wrap
51 msgid "Linux man-pages 6.18"
52 msgstr "Pages du manuel de Linux 6.18"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "NAME"
59 msgstr "NOM"
60
61 #. type: Plain text
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 msgid ""
65 "pthread_mutexattr_getrobust, pthread_mutexattr_setrobust - get and set the "
66 "robustness attribute of a mutex attributes object"
67 msgstr ""
68 "pthread_mutexattr_getrobust, pthread_mutexattr_setrobust — Définir ou "
69 "obtenir l'attribut de robustesse d'un objet d'attributs de mutex"
70
71 #. type: SH
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "LIBRARY"
76 msgstr "BIBLIOTHÈQUE"
77
78 #. type: Plain text
79 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
80 #: opensuse-leap-16-1 opensuse-tumbleweed
81 msgid "POSIX threads library (I<libpthread>,\\ I<-lpthread>)"
82 msgstr "Bibliothèque de threads POSIX (I<libpthread>,\\ I<-lpthread>)"
83
84 #. type: SH
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "SYNOPSIS"
89 msgstr "SYNOPSIS"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid "B<#include E<lt>pthread.hE<gt>>\n"
96 msgstr "B<#include E<lt>pthread.hE<gt>>\n"
97
98 #. type: Plain text
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 #, no-wrap
102 msgid ""
103 "B<int pthread_mutexattr_getrobust(const pthread_mutexattr_t *>I<attr>B<,>\n"
104 "B< int *>I<robustness>B<);>\n"
105 "B<int pthread_mutexattr_setrobust(pthread_mutexattr_t *>I<attr>B<,>\n"
106 "B< int >I<robustness>B<);>\n"
107 msgstr ""
108 "B<int pthread_mutexattr_getrobust(const pthread_mutexattr_t *>I<attr>B<,>\n"
109 "B< int *>I<robustesse>B<);>\n"
110 "B<int pthread_mutexattr_setrobust(pthread_mutexattr_t *>I<attr>B<,>\n"
111 "B< int >I<robustesse>B<);>\n"
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 msgid ""
117 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
118 msgstr ""
119 "Exigences de macros de test de fonctionnalités pour la glibc (consulter "
120 "B<feature_test_macros>(7)) :"
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 msgid "B<pthread_mutexattr_getrobust>(), B<pthread_mutexattr_setrobust>():"
126 msgstr "B<pthread_mutexattr_getrobust>(), B<pthread_mutexattr_setrobust>() :"
127
128 #. FIXME .
129 #. But see https://sourceware.org/bugzilla/show_bug.cgi?id=22125
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 #, no-wrap
134 msgid " _POSIX_C_SOURCE E<gt>= 200809L\n"
135 msgstr " _POSIX_C_SOURCE E<gt>= 200809L\n"
136
137 #. type: SH
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 #, no-wrap
141 msgid "DESCRIPTION"
142 msgstr "DESCRIPTION"
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 msgid ""
148 "The B<pthread_mutexattr_getrobust>() function places the value of the "
149 "robustness attribute of the mutex attributes object referred to by I<attr> "
150 "in I<*robustness>. The B<pthread_mutexattr_setrobust>() function sets the "
151 "value of the robustness attribute of the mutex attributes object referred to "
152 "by I<attr> to the value specified in I<*robustness>."
153 msgstr ""
154 "La fonction B<pthread_mutexattr_getrobust>() place la valeur de l'attribut "
155 "de robustesse de l'objet d'attributs de mutex auquel I<attr> fait référence "
156 "dans I<*robustesse>. La fonction B<pthread_mutexattr_setrobust>() définit à "
157 "la valeur spécifiée dans I<*robustesse> la valeur de l'attribut de "
158 "robustesse de l'objet d'attributs de mutex auquel I<attr> fait référence."
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 msgid ""
164 "The robustness attribute specifies the behavior of the mutex when the owning "
165 "thread dies without unlocking the mutex. The following values are valid for "
166 "I<robustness>:"
167 msgstr ""
168 "L'attribut de robustesse définit le comportement du mutex quand le thread "
169 "propriétaire finit sans déverrouiller le mutex. Les valeurs suivantes sont "
170 "permises pour I<robustesse> :"
171
172 #. type: TP
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 #, no-wrap
176 msgid "B<PTHREAD_MUTEX_STALLED>"
177 msgstr "B<PTHREAD_MUTEX_STALLED>"
178
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 msgid ""
183 "This is the default value for a mutex attributes object. If a mutex is "
184 "initialized with the B<PTHREAD_MUTEX_STALLED> attribute and its owner dies "
185 "without unlocking it, the mutex remains locked afterwards and any future "
186 "attempts to call B<pthread_mutex_lock>(3) on the mutex will block "
187 "indefinitely."
188 msgstr ""
189 "C'est la valeur par défaut pour un objet d'attributs de mutex. Si un mutex "
190 "est initialisé avec l'attribut B<PTHREAD_MUTEX_STALLED> et si son "
191 "propriétaire finit sans le déverrouiller, le mutex demeure verrouillé "
192 "ensuite et toute tentative ultérieure pour appeler B<pthread_mutex_lock>(3) "
193 "sur le mutex bloquera indéfiniment."
194
195 #. type: TP
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 #, no-wrap
199 msgid "B<PTHREAD_MUTEX_ROBUST>"
200 msgstr "B<PTHREAD_MUTEX_ROBUST>"
201
202 #. type: Plain text
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 msgid ""
206 "If a mutex is initialized with the B<PTHREAD_MUTEX_ROBUST> attribute and its "
207 "owner dies without unlocking it, any future attempts to call "
208 "B<pthread_mutex_lock>(3) on this mutex will succeed and return "
209 "B<EOWNERDEAD> to indicate that the original owner no longer exists and the "
210 "mutex is in an inconsistent state. Usually after B<EOWNERDEAD> is returned, "
211 "the next owner should call B<pthread_mutex_consistent>(3) on the acquired "
212 "mutex to make it consistent again before using it any further."
213 msgstr ""
214 "Si un mutex est initialisé avec l'attribut B<PTHREAD_MUTEX_ROBUST> et si son "
215 "propriétaire finit sans le déverrouiller, toute tentative ultérieure pour "
216 "appeler B<pthread_mutex_lock>(3) sur ce mutex réussira et renverra "
217 "B<EOWNERDEAD> pour indiquer que le propriétaire d'origine n'existe plus et "
218 "que le mutex est dans un état incohérent. Habituellement, après l'envoi de "
219 "B<EOWNERDEAD>, le propriétaire suivant devrait appeler "
220 "B<pthread_mutex_consistent>(3) sur le mutex acquis pour le rendre à nouveau "
221 "cohérent avant de l'utiliser plus avant."
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid ""
227 "If the next owner unlocks the mutex using B<pthread_mutex_unlock>(3) before "
228 "making it consistent, the mutex will be permanently unusable and any "
229 "subsequent attempts to lock it using B<pthread_mutex_lock>(3) will fail "
230 "with the error B<ENOTRECOVERABLE>. The only permitted operation on such a "
231 "mutex is B<pthread_mutex_destroy>(3)."
232 msgstr ""
233 "Si le propriétaire suivant déverrouille le mutex avec "
234 "B<pthread_mutex_unlock>(3) avant de le rendre cohérent, le mutex demeurera "
235 "inutilisable de façon permanente et toute tentative ultérieure pour le "
236 "verrouiller avec B<pthread_mutex_lock>(3) échouera avec l'erreur "
237 "B<ENOTRECOVERABLE>. B<pthread_mutex_destroy>(3) est la seule opération "
238 "permise sur un mutex dans cet état."
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 msgid ""
244 "If the next owner terminates before calling B<pthread_mutex_consistent>(3), "
245 "further B<pthread_mutex_lock>(3) operations on this mutex will still return "
246 "B<EOWNERDEAD>."
247 msgstr ""
248 "Si le propriétaire suivant termine avant d'appeler "
249 "B<pthread_mutex_consistent>(3), les opérations B<pthread_mutex_lock>(3) "
250 "ultérieures sur ce mutex renverront encore B<EOWNERDEAD>."
251
252 #. type: Plain text
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 msgid ""
256 "Note that the I<attr> argument of B<pthread_mutexattr_getrobust>() and "
257 "B<pthread_mutexattr_setrobust>() should refer to a mutex attributes object "
258 "that was initialized by B<pthread_mutexattr_init>(3), otherwise the behavior "
259 "is undefined."
260 msgstr ""
261 "Veuillez noter que l'argument I<attr> de B<pthread_mutexattr_getrobust>() et "
262 "de B<pthread_mutexattr_setrobust>() doit faire référence à l'objet "
263 "d'attributs de mutex initialisé par B<pthread_mutexattr_init>(3), autrement "
264 "le comportement est indéfini."
265
266 #. type: SH
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "RETURN VALUE"
271 msgstr "VALEUR RENVOYÉE"
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid ""
277 "On success, these functions return 0. On error, they return a positive "
278 "error number."
279 msgstr ""
280 "En cas de réussite, ces fonctions renvoient B<0> ; en cas d'erreur, elles "
281 "renvoient un code d'erreur positif."
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid ""
287 "In the glibc implementation, B<pthread_mutexattr_getrobust>() always return "
288 "zero."
289 msgstr ""
290 "Dans l'implémentation de la glibc, B<pthread_mutexattr_getrobust>() renvoie "
291 "toujours zéro."
292
293 #. type: SH
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid "ERRORS"
298 msgstr "ERREURS"
299
300 #. type: TP
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid "B<EINVAL>"
305 msgstr "B<EINVAL>"
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid ""
311 "A value other than B<PTHREAD_MUTEX_STALLED> or B<PTHREAD_MUTEX_ROBUST> was "
312 "passed to B<pthread_mutexattr_setrobust>()."
313 msgstr ""
314 "Une valeur autre que B<PTHREAD_MUTEX_STALLED> ou B<PTHREAD_MUTEX_ROBUST> a "
315 "été passée à B<pthread_mutexattr_setrobust>()."
316
317 #. type: SH
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "VERSIONS"
322 msgstr "VERSIONS"
323
324 #. E.g., Solaris, according to its manual page
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 "In the Linux implementation, when using process-shared robust mutexes, a "
330 "waiting thread also receives the B<EOWNERDEAD> notification if the owner of "
331 "a robust mutex performs an B<execve>(2) without first unlocking the mutex. "
332 "POSIX.1 does not specify this detail, but the same behavior also occurs in "
333 "at least some other implementations."
334 msgstr ""
335 "Dans l'implémentation de Linux, lors de l'utilisation de mutex à processus "
336 "partagé robustes, un thread en attente reçoit également la notification "
337 "B<EOWNERDEAD> si le propriétaire d'un mutex robuste réalise une commande "
338 "B<execve>(2) sans avoir préalablement déverrouillé le mutex. POSIX.1 ne "
339 "spécifie pas ce détail, mais le même comportement se produit aussi dans au "
340 "moins quelques autres implémentations."
341
342 #. type: SH
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 #, no-wrap
346 msgid "STANDARDS"
347 msgstr "NORMES"
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid "POSIX.1-2008."
353 msgstr "POSIX.1-2008."
354
355 #. type: SH
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid "HISTORY"
360 msgstr "HISTORIQUE"
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid "glibc 2.12. POSIX.1-2008."
366 msgstr "glibc 2.12. POSIX.1-2008."
367
368 #. type: Plain text
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 msgid ""
372 "Before the addition of B<pthread_mutexattr_getrobust>() and "
373 "B<pthread_mutexattr_setrobust>() to POSIX, glibc defined the following "
374 "equivalent nonstandard functions if B<_GNU_SOURCE> was defined:"
375 msgstr ""
376 "Avant l'ajout à POSIX de B<pthread_mutexattr_getrobust>() et "
377 "B<pthread_mutexattr_setrobust>(), la glibc définissait les fonctions non "
378 "standard équivalentes suivantes si B<_GNU_SOURCE> était défini :"
379
380 #. type: Plain text
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 #, no-wrap
384 msgid ""
385 "B<[[deprecated]]>\n"
386 "B<int pthread_mutexattr_getrobust_np(const pthread_mutexattr_t *>I<attr>B<,>\n"
387 "B< int *>I<robustness>B<);>\n"
388 "B<[[deprecated]]>\n"
389 "B<int pthread_mutexattr_setrobust_np(const pthread_mutexattr_t *>I<attr>B<,>\n"
390 "B< int >I<robustness>B<);>\n"
391 msgstr ""
392 "B<[[obsolète]]>\n"
393 "B<int pthread_mutexattr_getrobust_np(const pthread_mutexattr_t *>I<attr>B<,>\n"
394 "B< int *>I<robustesse>B<);>\n"
395 "B<[[obsolète]]>\n"
396 "B<int pthread_mutexattr_setrobust_np(const pthread_mutexattr_t *>I<attr>B<,>\n"
397 "B< int >I<robustesse>B<);>\n"
398
399 #. type: Plain text
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 msgid ""
403 "Correspondingly, the constants B<PTHREAD_MUTEX_STALLED_NP> and "
404 "B<PTHREAD_MUTEX_ROBUST_NP> were also defined."
405 msgstr ""
406 "De la même façon, les constantes B<PTHREAD_MUTEX_STALLED_NP> et "
407 "B<PTHREAD_MUTEX_ROBUST_NP> étaient également définies."
408
409 #. type: Plain text
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 msgid ""
413 "These GNU-specific APIs, which first appeared in glibc 2.4, are nowadays "
414 "obsolete and should not be used in new programs; since glibc 2.34 these APIs "
415 "are marked as deprecated."
416 msgstr ""
417 "Ces API propres à GNU, apparues dans la glibc 2.4, sont à présent obsolètes "
418 "et ne devraient pas être utilisées dans de nouveaux programmes. Depuis la "
419 "glibc 2.34, ces API sont marquées comme obsolètes."
420
421 #. type: SH
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 #, no-wrap
425 msgid "EXAMPLES"
426 msgstr "EXEMPLES"
427
428 #. type: Plain text
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 msgid ""
432 "The program below demonstrates the use of the robustness attribute of a "
433 "mutex attributes object. In this program, a thread holding the mutex dies "
434 "prematurely without unlocking the mutex. The main thread subsequently "
435 "acquires the mutex successfully and gets the error B<EOWNERDEAD>, after "
436 "which it makes the mutex consistent."
437 msgstr ""
438 "Le programme ci-dessous montre l'utilisation de l'attribut de robustesse "
439 "d'un objet d'attributs de mutex. Dans ce programme, un thread possédant le "
440 "mutex s'interrompt prématurément sans déverrouiller le mutex. Le thread "
441 "principal acquiert ensuite le mutex avec succès et reçoit l'erreur "
442 "B<EOWNERDEAD> après quoi il rend le mutex cohérent."
443
444 #. type: Plain text
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 msgid ""
448 "The following shell session shows what we see when running this program:"
449 msgstr ""
450 "La session d'interpréteur de commande suivante montre l'exécution de ce "
451 "programme :"
452
453 #. type: Plain text
454 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
455 #: opensuse-tumbleweed
456 #, fuzzy, no-wrap
457 #| msgid ""
458 #| "$ B<./a.out>\n"
459 #| "[original owner] Setting lock...\n"
460 #| "[original owner] Locked. Now exiting without unlocking.\n"
461 #| "[main] Attempting to lock the robust mutex.\n"
462 #| "[main] pthread_mutex_lock() returned EOWNERDEAD\n"
463 #| "[main] Now make the mutex consistent\n"
464 #| "[main] Mutex is now consistent; unlocking\n"
465 msgid ""
466 "$B< ./a.out>;\n"
467 "[original owner] Setting lock...\n"
468 "[original owner] Locked. Now exiting without unlocking.\n"
469 "[main] Attempting to lock the robust mutex.\n"
470 "[main] pthread_mutex_lock() returned EOWNERDEAD\n"
471 "[main] Now make the mutex consistent\n"
472 "[main] Mutex is now consistent; unlocking\n"
473 msgstr ""
474 "$ B<./a.out>\n"
475 "[original owner] Mise en place du verrou...\n"
476 "[original owner] Verrouillé. Sortie sans déverrouillage.\n"
477 "[main] Tentative de verrouillage du mutex robuste.\n"
478 "[main] pthread_mutex_lock() renvoie EOWNERDEAD\n"
479 "[main] Maintenant rendre le mutex cohérent\n"
480 "[main] Le mutex est maintenant cohérent ; déverrouillage\n"
481
482 #. type: SS
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "Program source"
487 msgstr "Source du programme"
488
489 #. type: Plain text
490 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
491 #: opensuse-tumbleweed
492 #, fuzzy, no-wrap
493 #| msgid ""
494 #| "#include E<lt>errno.hE<gt>\n"
495 #| "#include E<lt>pthread.hE<gt>\n"
496 #| "#include E<lt>stdio.hE<gt>\n"
497 #| "#include E<lt>stdlib.hE<gt>\n"
498 #| "#include E<lt>unistd.hE<gt>\n"
499 #| "\\&\n"
500 #| "#define handle_error_en(en, msg) \\e\n"
501 #| " do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)\n"
502 #| "\\&\n"
503 #| "static pthread_mutex_t mtx;\n"
504 #| "\\&\n"
505 #| "static void *\n"
506 #| "original_owner_thread(void *ptr)\n"
507 #| "{\n"
508 #| " printf(\"[original owner] Setting lock...\\en\");\n"
509 #| " pthread_mutex_lock(&mtx);\n"
510 #| " printf(\"[original owner] Locked. Now exiting without unlocking.\\en\");\n"
511 #| " pthread_exit(NULL);\n"
512 #| "}\n"
513 #| "\\&\n"
514 #| "int\n"
515 #| "main(void)\n"
516 #| "{\n"
517 #| " pthread_t thr;\n"
518 #| " pthread_mutexattr_t attr;\n"
519 #| " int s;\n"
520 #| "\\&\n"
521 #| " pthread_mutexattr_init(&attr);\n"
522 #| "\\&\n"
523 #| " pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);\n"
524 #| "\\&\n"
525 #| " pthread_mutex_init(&mtx, &attr);\n"
526 #| "\\&\n"
527 #| " pthread_create(&thr, NULL, original_owner_thread, NULL);\n"
528 #| "\\&\n"
529 #| " sleep(2);\n"
530 #| "\\&\n"
531 #| " /* \"original_owner_thread\" should have exited by now. */\n"
532 #| "\\&\n"
533 #| " printf(\"[main] Attempting to lock the robust mutex.\\en\");\n"
534 #| " s = pthread_mutex_lock(&mtx);\n"
535 #| " if (s == EOWNERDEAD) {\n"
536 #| " printf(\"[main] pthread_mutex_lock() returned EOWNERDEAD\\en\");\n"
537 #| " printf(\"[main] Now make the mutex consistent\\en\");\n"
538 #| " s = pthread_mutex_consistent(&mtx);\n"
539 #| " if (s != 0)\n"
540 #| " handle_error_en(s, \"pthread_mutex_consistent\");\n"
541 #| " printf(\"[main] Mutex is now consistent; unlocking\\en\");\n"
542 #| " s = pthread_mutex_unlock(&mtx);\n"
543 #| " if (s != 0)\n"
544 #| " handle_error_en(s, \"pthread_mutex_unlock\");\n"
545 #| "\\&\n"
546 #| " exit(EXIT_SUCCESS);\n"
547 #| " } else if (s == 0) {\n"
548 #| " printf(\"[main] pthread_mutex_lock() unexpectedly succeeded\\en\");\n"
549 #| " exit(EXIT_FAILURE);\n"
550 #| " } else {\n"
551 #| " printf(\"[main] pthread_mutex_lock() unexpectedly failed\\en\");\n"
552 #| " handle_error_en(s, \"pthread_mutex_lock\");\n"
553 #| " }\n"
554 #| "}\n"
555 msgid ""
556 "#include E<lt>err.hE<gt>\n"
557 "#include E<lt>errno.hE<gt>\n"
558 "#include E<lt>pthread.hE<gt>\n"
559 "#include E<lt>stdio.hE<gt>\n"
560 "#include E<lt>stdlib.hE<gt>\n"
561 "#include E<lt>unistd.hE<gt>\n"
562 "\\&\n"
563 "static pthread_mutex_t mtx;\n"
564 "\\&\n"
565 "static void *\n"
566 "original_owner_thread(void *ptr)\n"
567 "{\n"
568 " printf(\"[original owner] Setting lock...\\[rs]n\");\n"
569 " pthread_mutex_lock(&mtx);\n"
570 " printf(\"[original owner] Locked. Now exiting without unlocking.\\[rs]n\");\n"
571 " pthread_exit(NULL);\n"
572 "}\n"
573 "\\&\n"
574 "int\n"
575 "main(void)\n"
576 "{\n"
577 " pthread_t thr;\n"
578 " pthread_mutexattr_t attr;\n"
579 " int s;\n"
580 "\\&\n"
581 " pthread_mutexattr_init(&attr);\n"
582 "\\&\n"
583 " pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);\n"
584 "\\&\n"
585 " pthread_mutex_init(&mtx, &attr);\n"
586 "\\&\n"
587 " pthread_create(&thr, NULL, original_owner_thread, NULL);\n"
588 "\\&\n"
589 " sleep(2);\n"
590 "\\&\n"
591 " /* \"original_owner_thread\" should have exited by now. */\n"
592 "\\&\n"
593 " printf(\"[main] Attempting to lock the robust mutex.\\[rs]n\");\n"
594 " s = pthread_mutex_lock(&mtx);\n"
595 " if (s == EOWNERDEAD) {\n"
596 " printf(\"[main] pthread_mutex_lock() returned EOWNERDEAD\\[rs]n\");\n"
597 " printf(\"[main] Now make the mutex consistent\\[rs]n\");\n"
598 " s = pthread_mutex_consistent(&mtx);\n"
599 " if (s != 0)\n"
600 " errc(EXIT_FAILURE, s, \"pthread_mutex_consistent\");\n"
601 " printf(\"[main] Mutex is now consistent; unlocking\\[rs]n\");\n"
602 " s = pthread_mutex_unlock(&mtx);\n"
603 " if (s != 0)\n"
604 " errc(EXIT_FAILURE, s, \"pthread_mutex_unlock\");\n"
605 "\\&\n"
606 " exit(EXIT_SUCCESS);\n"
607 " } else if (s == 0) {\n"
608 " printf(\"[main] pthread_mutex_lock() unexpectedly succeeded\\[rs]n\");\n"
609 " exit(EXIT_FAILURE);\n"
610 " } else {\n"
611 " printf(\"[main] pthread_mutex_lock() unexpectedly failed\\[rs]n\");\n"
612 " errc(EXIT_FAILURE, s, \"pthread_mutex_lock\");\n"
613 " }\n"
614 "}\n"
615 msgstr ""
616 "#include E<lt>errno.hE<gt>\n"
617 "#include E<lt>pthread.hE<gt>\n"
618 "#include E<lt>stdio.hE<gt>\n"
619 "#include E<lt>stdlib.hE<gt>\n"
620 "#include E<lt>unistd.hE<gt>\n"
621 "\\&\n"
622 "#define handle_error_en(en, msg) \\e\n"
623 " do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)\n"
624 "\\&\n"
625 "static pthread_mutex_t mtx;\n"
626 "\\&\n"
627 "static void *\n"
628 "original_owner_thread(void *ptr)\n"
629 "{\n"
630 " printf(\"[original owner] Mise en place du verrou...\\en\");\n"
631 " pthread_mutex_lock(&mtx);\n"
632 " printf(\"[original owner] Verrouillé. Sortie sans déverrouillage.\\en\");\n"
633 " pthread_exit(NULL);\n"
634 "}\n"
635 "\\&\n"
636 "int\n"
637 "main(void)\n"
638 "{\n"
639 " pthread_t thr;\n"
640 " pthread_mutexattr_t attr;\n"
641 " int s;\n"
642 "\\&\n"
643 " pthread_mutexattr_init(&attr);\n"
644 "\\&\n"
645 " pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);\n"
646 "\\&\n"
647 " pthread_mutex_init(&mtx, &attr);\n"
648 "\\&\n"
649 " pthread_create(&thr, NULL, original_owner_thread, NULL);\n"
650 "\\&\n"
651 " sleep(2);\n"
652 "\\&\n"
653 " /* \"original_owner_thread\" devrait avoir quitté maintenant. */\n"
654 "\\&\n"
655 " printf(\"[main] Tentative de verrouillage du mutex robuste.\\en\");\n"
656 " s = pthread_mutex_lock(&mtx);\n"
657 " if (s == EOWNERDEAD) {\n"
658 " printf(\"[main] pthread_mutex_lock() renvoie EOWNERDEAD\\en\");\n"
659 " printf(\"[main] Maintenant rendre le mutex cohérent\\en\");\n"
660 " s = pthread_mutex_consistent(&mtx);\n"
661 " if (s != 0)\n"
662 " handle_error_en(s, \"pthread_mutex_consistent\");\n"
663 " printf(\"[main] Le mutex est maintenant cohérent ; déverrouillage\\en\");\n"
664 " s = pthread_mutex_unlock(&mtx);\n"
665 " if (s != 0)\n"
666 " handle_error_en(s, \"pthread_mutex_unlock\");\n"
667 "\\&\n"
668 " exit(EXIT_SUCCESS);\n"
669 " } else if (s == 0) {\n"
670 " printf(\"[main] pthread_mutex_lock() réussit de façon inattendue\\en\");\n"
671 " exit(EXIT_FAILURE);\n"
672 " } else {\n"
673 " printf(\"[main] pthread_mutex_lock() échoue de façon inattendue\\en\");\n"
674 " handle_error_en(s, \"pthread_mutex_lock\");\n"
675 " }\n"
676 "}\n"
677
678 #. SRC END
679 #. type: SH
680 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
681 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
682 #, no-wrap
683 msgid "SEE ALSO"
684 msgstr "VOIR AUSSI"
685
686 #. type: Plain text
687 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
688 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
689 msgid ""
690 "B<get_robust_list>(2), B<set_robust_list>(2), "
691 "B<pthread_mutex_consistent>(3), B<pthread_mutex_init>(3), "
692 "B<pthread_mutex_lock>(3), B<pthreads>(7)"
693 msgstr ""
694 "B<get_robust_list>(2), B<set_robust_list>(2), "
695 "B<pthread_mutex_consistent>(3), B<pthread_mutex_init>(3), "
696 "B<pthread_mutex_lock>(3), B<pthreads>(7)"
697
698 #. type: TH
699 #: debian-trixie
700 #, no-wrap
701 msgid "2024-06-15"
702 msgstr "15 juin 2024"
703
704 #. type: TH
705 #: debian-trixie
706 #, no-wrap
707 msgid "Linux man-pages 6.9.1"
708 msgstr "Pages du manuel de Linux 6.9.1"
709
710 #. type: Plain text
711 #: debian-trixie
712 msgid "POSIX threads library (I<libpthread>, I<-lpthread>)"
713 msgstr "Bibliothèque de threads POSIX (I<libpthread>, I<-lpthread>)"
714
715 #. type: Plain text
716 #: debian-trixie fedora-44 fedora-rawhide
717 #, no-wrap
718 msgid ""
719 "$ B<./a.out>\n"
720 "[original owner] Setting lock...\n"
721 "[original owner] Locked. Now exiting without unlocking.\n"
722 "[main] Attempting to lock the robust mutex.\n"
723 "[main] pthread_mutex_lock() returned EOWNERDEAD\n"
724 "[main] Now make the mutex consistent\n"
725 "[main] Mutex is now consistent; unlocking\n"
726 msgstr ""
727 "$ B<./a.out>\n"
728 "[original owner] Mise en place du verrou...\n"
729 "[original owner] Verrouillé. Sortie sans déverrouillage.\n"
730 "[main] Tentative de verrouillage du mutex robuste.\n"
731 "[main] pthread_mutex_lock() renvoie EOWNERDEAD\n"
732 "[main] Maintenant rendre le mutex cohérent\n"
733 "[main] Le mutex est maintenant cohérent ; déverrouillage\n"
734
735 #. type: Plain text
736 #: debian-trixie fedora-44 fedora-rawhide
737 #, fuzzy, no-wrap
738 #| msgid ""
739 #| "#include E<lt>errno.hE<gt>\n"
740 #| "#include E<lt>pthread.hE<gt>\n"
741 #| "#include E<lt>stdio.hE<gt>\n"
742 #| "#include E<lt>stdlib.hE<gt>\n"
743 #| "#include E<lt>unistd.hE<gt>\n"
744 #| "\\&\n"
745 #| "#define handle_error_en(en, msg) \\e\n"
746 #| " do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)\n"
747 #| "\\&\n"
748 #| "static pthread_mutex_t mtx;\n"
749 #| "\\&\n"
750 #| "static void *\n"
751 #| "original_owner_thread(void *ptr)\n"
752 #| "{\n"
753 #| " printf(\"[original owner] Setting lock...\\en\");\n"
754 #| " pthread_mutex_lock(&mtx);\n"
755 #| " printf(\"[original owner] Locked. Now exiting without unlocking.\\en\");\n"
756 #| " pthread_exit(NULL);\n"
757 #| "}\n"
758 #| "\\&\n"
759 #| "int\n"
760 #| "main(void)\n"
761 #| "{\n"
762 #| " pthread_t thr;\n"
763 #| " pthread_mutexattr_t attr;\n"
764 #| " int s;\n"
765 #| "\\&\n"
766 #| " pthread_mutexattr_init(&attr);\n"
767 #| "\\&\n"
768 #| " pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);\n"
769 #| "\\&\n"
770 #| " pthread_mutex_init(&mtx, &attr);\n"
771 #| "\\&\n"
772 #| " pthread_create(&thr, NULL, original_owner_thread, NULL);\n"
773 #| "\\&\n"
774 #| " sleep(2);\n"
775 #| "\\&\n"
776 #| " /* \"original_owner_thread\" should have exited by now. */\n"
777 #| "\\&\n"
778 #| " printf(\"[main] Attempting to lock the robust mutex.\\en\");\n"
779 #| " s = pthread_mutex_lock(&mtx);\n"
780 #| " if (s == EOWNERDEAD) {\n"
781 #| " printf(\"[main] pthread_mutex_lock() returned EOWNERDEAD\\en\");\n"
782 #| " printf(\"[main] Now make the mutex consistent\\en\");\n"
783 #| " s = pthread_mutex_consistent(&mtx);\n"
784 #| " if (s != 0)\n"
785 #| " handle_error_en(s, \"pthread_mutex_consistent\");\n"
786 #| " printf(\"[main] Mutex is now consistent; unlocking\\en\");\n"
787 #| " s = pthread_mutex_unlock(&mtx);\n"
788 #| " if (s != 0)\n"
789 #| " handle_error_en(s, \"pthread_mutex_unlock\");\n"
790 #| "\\&\n"
791 #| " exit(EXIT_SUCCESS);\n"
792 #| " } else if (s == 0) {\n"
793 #| " printf(\"[main] pthread_mutex_lock() unexpectedly succeeded\\en\");\n"
794 #| " exit(EXIT_FAILURE);\n"
795 #| " } else {\n"
796 #| " printf(\"[main] pthread_mutex_lock() unexpectedly failed\\en\");\n"
797 #| " handle_error_en(s, \"pthread_mutex_lock\");\n"
798 #| " }\n"
799 #| "}\n"
800 msgid ""
801 "#include E<lt>errno.hE<gt>\n"
802 "#include E<lt>pthread.hE<gt>\n"
803 "#include E<lt>stdio.hE<gt>\n"
804 "#include E<lt>stdlib.hE<gt>\n"
805 "#include E<lt>unistd.hE<gt>\n"
806 "\\&\n"
807 "#define handle_error_en(en, msg) \\[rs]\n"
808 " do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)\n"
809 "\\&\n"
810 "static pthread_mutex_t mtx;\n"
811 "\\&\n"
812 "static void *\n"
813 "original_owner_thread(void *ptr)\n"
814 "{\n"
815 " printf(\"[original owner] Setting lock...\\[rs]n\");\n"
816 " pthread_mutex_lock(&mtx);\n"
817 " printf(\"[original owner] Locked. Now exiting without unlocking.\\[rs]n\");\n"
818 " pthread_exit(NULL);\n"
819 "}\n"
820 "\\&\n"
821 "int\n"
822 "main(void)\n"
823 "{\n"
824 " pthread_t thr;\n"
825 " pthread_mutexattr_t attr;\n"
826 " int s;\n"
827 "\\&\n"
828 " pthread_mutexattr_init(&attr);\n"
829 "\\&\n"
830 " pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);\n"
831 "\\&\n"
832 " pthread_mutex_init(&mtx, &attr);\n"
833 "\\&\n"
834 " pthread_create(&thr, NULL, original_owner_thread, NULL);\n"
835 "\\&\n"
836 " sleep(2);\n"
837 "\\&\n"
838 " /* \"original_owner_thread\" should have exited by now. */\n"
839 "\\&\n"
840 " printf(\"[main] Attempting to lock the robust mutex.\\[rs]n\");\n"
841 " s = pthread_mutex_lock(&mtx);\n"
842 " if (s == EOWNERDEAD) {\n"
843 " printf(\"[main] pthread_mutex_lock() returned EOWNERDEAD\\[rs]n\");\n"
844 " printf(\"[main] Now make the mutex consistent\\[rs]n\");\n"
845 " s = pthread_mutex_consistent(&mtx);\n"
846 " if (s != 0)\n"
847 " handle_error_en(s, \"pthread_mutex_consistent\");\n"
848 " printf(\"[main] Mutex is now consistent; unlocking\\[rs]n\");\n"
849 " s = pthread_mutex_unlock(&mtx);\n"
850 " if (s != 0)\n"
851 " handle_error_en(s, \"pthread_mutex_unlock\");\n"
852 "\\&\n"
853 " exit(EXIT_SUCCESS);\n"
854 " } else if (s == 0) {\n"
855 " printf(\"[main] pthread_mutex_lock() unexpectedly succeeded\\[rs]n\");\n"
856 " exit(EXIT_FAILURE);\n"
857 " } else {\n"
858 " printf(\"[main] pthread_mutex_lock() unexpectedly failed\\[rs]n\");\n"
859 " handle_error_en(s, \"pthread_mutex_lock\");\n"
860 " }\n"
861 "}\n"
862 msgstr ""
863 "#include E<lt>errno.hE<gt>\n"
864 "#include E<lt>pthread.hE<gt>\n"
865 "#include E<lt>stdio.hE<gt>\n"
866 "#include E<lt>stdlib.hE<gt>\n"
867 "#include E<lt>unistd.hE<gt>\n"
868 "\\&\n"
869 "#define handle_error_en(en, msg) \\e\n"
870 " do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)\n"
871 "\\&\n"
872 "static pthread_mutex_t mtx;\n"
873 "\\&\n"
874 "static void *\n"
875 "original_owner_thread(void *ptr)\n"
876 "{\n"
877 " printf(\"[original owner] Mise en place du verrou...\\en\");\n"
878 " pthread_mutex_lock(&mtx);\n"
879 " printf(\"[original owner] Verrouillé. Sortie sans déverrouillage.\\en\");\n"
880 " pthread_exit(NULL);\n"
881 "}\n"
882 "\\&\n"
883 "int\n"
884 "main(void)\n"
885 "{\n"
886 " pthread_t thr;\n"
887 " pthread_mutexattr_t attr;\n"
888 " int s;\n"
889 "\\&\n"
890 " pthread_mutexattr_init(&attr);\n"
891 "\\&\n"
892 " pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST);\n"
893 "\\&\n"
894 " pthread_mutex_init(&mtx, &attr);\n"
895 "\\&\n"
896 " pthread_create(&thr, NULL, original_owner_thread, NULL);\n"
897 "\\&\n"
898 " sleep(2);\n"
899 "\\&\n"
900 " /* \"original_owner_thread\" devrait avoir quitté maintenant. */\n"
901 "\\&\n"
902 " printf(\"[main] Tentative de verrouillage du mutex robuste.\\en\");\n"
903 " s = pthread_mutex_lock(&mtx);\n"
904 " if (s == EOWNERDEAD) {\n"
905 " printf(\"[main] pthread_mutex_lock() renvoie EOWNERDEAD\\en\");\n"
906 " printf(\"[main] Maintenant rendre le mutex cohérent\\en\");\n"
907 " s = pthread_mutex_consistent(&mtx);\n"
908 " if (s != 0)\n"
909 " handle_error_en(s, \"pthread_mutex_consistent\");\n"
910 " printf(\"[main] Le mutex est maintenant cohérent ; déverrouillage\\en\");\n"
911 " s = pthread_mutex_unlock(&mtx);\n"
912 " if (s != 0)\n"
913 " handle_error_en(s, \"pthread_mutex_unlock\");\n"
914 "\\&\n"
915 " exit(EXIT_SUCCESS);\n"
916 " } else if (s == 0) {\n"
917 " printf(\"[main] pthread_mutex_lock() réussit de façon inattendue\\en\");\n"
918 " exit(EXIT_FAILURE);\n"
919 " } else {\n"
920 " printf(\"[main] pthread_mutex_lock() échoue de façon inattendue\\en\");\n"
921 " handle_error_en(s, \"pthread_mutex_lock\");\n"
922 " }\n"
923 "}\n"
924
925 #. type: TH
926 #: fedora-44 fedora-rawhide
927 #, no-wrap
928 msgid "2024-07-23"
929 msgstr "23 juillet 2024"
930
931 #. type: TH
932 #: fedora-44 fedora-rawhide
933 #, no-wrap
934 msgid "Linux man-pages 6.13"
935 msgstr "Pages du manuel de Linux 6.13"
936
937 #. type: TH
938 #: mageia-cauldron
939 #, no-wrap
940 msgid "Linux man-pages 6.17"
941 msgstr "Pages du manuel de Linux 6.17"
942
943 #. type: TH
944 #: opensuse-leap-16-1 opensuse-tumbleweed
945 #, no-wrap
946 msgid "Linux man-pages (unreleased)"
947 msgstr "Pages du manuel de Linux (non publiées)"