Debian Codegraph @

po/fr/man7/attributes.7.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-Pierre Giraud <[email protected]>, 2021-2023.
19 msgid ""
20 msgstr ""
21 "Project-Id-Version: perkamon\n"
22 "POT-Creation-Date: 2026-06-05 06:18+0200\n"
23 "PO-Revision-Date: 2023-06-16 17:20+0200\n"
24 "Last-Translator: Jean-Pierre Giraud <[email protected]>\n"
25 "Language-Team: French <[email protected]>\n"
26 "Language: fr\n"
27 "MIME-Version: 1.0\n"
28 "Content-Type: text/plain; charset=UTF-8\n"
29 "Content-Transfer-Encoding: 8bit\n"
30 "Plural-Forms: nplurals=2; plural=n > 1;\n"
31 "X-Generator: Lokalize 20.12.0\n"
32
33 #. type: TH
34 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
35 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
36 #, no-wrap
37 msgid "attributes"
38 msgstr "attributes"
39
40 #. type: TH
41 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
42 #: opensuse-tumbleweed
43 #, no-wrap
44 msgid "2026-02-08"
45 msgstr "8 février 2026"
46
47 #. type: TH
48 #: archlinux debian-unstable
49 #, no-wrap
50 msgid "Linux man-pages 6.18"
51 msgstr "Pages du manuel de Linux 6.18"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "NAME"
58 msgstr "NOM"
59
60 #. type: Plain text
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "attributes - POSIX safety concepts"
64 msgstr "attributes – Concepts de sécurité POSIX"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "DESCRIPTION"
71 msgstr "DESCRIPTION"
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 msgid ""
77 "I<Note>: the text of this man page is based on the material taken from the "
78 "\"POSIX Safety Concepts\" section of the GNU C Library manual. Further "
79 "details on the topics described here can be found in that manual."
80 msgstr ""
81 "I<Note> : le texte de cette page de manuel est basée sur des éléments pris "
82 "dans la section « POSIX Safety Concepts » du manuel de la bibliothèque "
83 "GNU C. Plus de détails sur les sujets décrits ici peuvent être trouvés dans "
84 "ce manuel."
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 msgid ""
90 "Various function manual pages include a section ATTRIBUTES that describes "
91 "the safety of calling the function in various contexts. This section "
92 "annotates functions with the following safety markings:"
93 msgstr ""
94 "Diverses pages de manuel de fonctions comportent une section ATTRIBUTES qui "
95 "décrit la sécurité de l'appel d'une fonction dans divers contextes. Cette "
96 "section annote les fonctions avec les balises de sécurité suivantes :"
97
98 #. type: TP
99 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
101 #, no-wrap
102 msgid "I<MT-Safe>"
103 msgstr "I<MT-Safe>"
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid ""
109 "I<MT-Safe> or Thread-Safe functions are safe to call in the presence of "
110 "other threads. MT, in MT-Safe, stands for Multi Thread."
111 msgstr ""
112 "Les fonctions I<MT-Safe> ou I<Thread-Safe> sont sûres à appeler en présence "
113 "d'autres threads. MT, dans MT-Safe, signifie « multithread »."
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid ""
119 "Being MT-Safe does not imply a function is atomic, nor that it uses any of "
120 "the memory synchronization mechanisms POSIX exposes to users. It is even "
121 "possible that calling MT-Safe functions in sequence does not yield an MT-"
122 "Safe combination. For example, having a thread call two MT-Safe functions "
123 "one right after the other does not guarantee behavior equivalent to atomic "
124 "execution of a combination of both functions, since concurrent calls in "
125 "other threads may interfere in a destructive way."
126 msgstr ""
127 "L'état MT-Safe n'implique pas qu'une fonction est atomique, ni qu'elle "
128 "utilise un des mécanismes de synchronisation de mémoire que POSIX expose aux "
129 "utilisateurs. Il est même possible que l'appel de plusieurs fonctions MT-"
130 "Safe à la suite ne produise pas une combinaison MT-Safe. Par exemple, le "
131 "fait qu'un thread appelle deux fonctions MT-Safe l'une immédiatement après "
132 "l'autre ne garantit pas un comportement équivalent à l'exécution atomique de "
133 "la combinaison des deux fonctions, dans la mesure où des appels concomitants "
134 "dans d'autres threads peuvent interférer de manière destructive."
135
136 #
137 #
138 #
139 #. .TP
140 #. .I AS-Safe
141 #. .I AS-Safe
142 #. or Async-Signal-Safe functions are safe to call from
143 #. asynchronous signal handlers.
144 #. AS, in AS-Safe, stands for Asynchronous Signal.
145 #. Many functions that are AS-Safe may set
146 #. .IR errno ,
147 #. or modify the floating-point environment,
148 #. because their doing so does not make them
149 #. unsuitable for use in signal handlers.
150 #. However, programs could misbehave should asynchronous signal handlers
151 #. modify this thread-local state,
152 #. and the signal handling machinery cannot be counted on to
153 #. preserve it.
154 #. Therefore, signal handlers that call functions that may set
155 #. .I errno
156 #. or modify the floating-point environment
157 #. .I must
158 #. save their original values, and restore them before returning.
159 #. .TP
160 #. .I AC-Safe
161 #. .I AC-Safe
162 #. or Async-Cancel-Safe functions are safe to call when
163 #. asynchronous cancelation is enabled.
164 #. AC in AC-Safe stands for Asynchronous Cancelation.
165 #. The POSIX standard defines only three functions to be AC-Safe, namely
166 #. .BR pthread_cancel (3),
167 #. .BR pthread_setcancelstate (3),
168 #. and
169 #. .BR pthread_setcanceltype (3).
170 #. At present the GNU C Library provides no
171 #. guarantees beyond these three functions,
172 #. but does document which functions are presently AC-Safe.
173 #. This documentation is provided for use
174 #. by the GNU C Library developers.
175 #. Just like signal handlers, cancelation cleanup routines must configure
176 #. the floating point environment they require.
177 #. The routines cannot assume a floating point environment,
178 #. particularly when asynchronous cancelation is enabled.
179 #. If the configuration of the floating point
180 #. environment cannot be performed atomically then it is also possible that
181 #. the environment encountered is internally inconsistent.
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid ""
186 "Whole-program optimizations that could inline functions across library "
187 "interfaces may expose unsafe reordering, and so performing inlining across "
188 "the GNU C Library interface is not recommended. The documented MT-Safety "
189 "status is not guaranteed under whole-program optimization. However, "
190 "functions defined in user-visible headers are designed to be safe for "
191 "inlining."
192 msgstr ""
193 "Les optimisations à l'échelle du programme qui peuvent intégrer des "
194 "fonctions à travers les interfaces des bibliothèques peuvent exposer à des "
195 "réorganisations non sûres, aussi il n'est pas recommandé de réaliser des "
196 "intégrations au moyen des interfaces de la bibliothèque GNU C. L'état "
197 "documenté MT-Safety n'est pas garanti. Néanmoins, les fonctions définies "
198 "dans les en-têtes visibles par l'utilisateur sont conçues pour être sûres "
199 "pour l'intégration."
200
201 #. #-#-#-#-# archlinux: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
202 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
203 #. type: TP
204 #. #-#-#-#-# debian-trixie: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
205 #. ", " AS-Unsafe ", " AC-Unsafe
206 #. type: TP
207 #. #-#-#-#-# debian-unstable: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
208 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
209 #. type: TP
210 #. #-#-#-#-# fedora-44: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
211 #. ", " AS-Unsafe ", " AC-Unsafe
212 #. type: TP
213 #. #-#-#-#-# fedora-rawhide: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
214 #. ", " AS-Unsafe ", " AC-Unsafe
215 #. type: TP
216 #. #-#-#-#-# mageia-cauldron: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
217 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
218 #. type: TP
219 #. #-#-#-#-# opensuse-leap-16-1: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
220 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
221 #. type: TP
222 #. #-#-#-#-# opensuse-tumbleweed: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
223 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
224 #. type: TP
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid "I<MT-Unsafe>"
229 msgstr "I<MT-Unsafe>"
230
231 #
232 #
233 #
234 #
235 #
236 #
237 #. #-#-#-#-# archlinux: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
238 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
239 #. functions are not
240 #. safe to call within the safety contexts described above.
241 #. Calling them
242 #. within such contexts invokes undefined behavior.
243 #. Functions not explicitly documented as safe in a safety context should
244 #. be regarded as Unsafe.
245 #. .TP
246 #. .I Preliminary
247 #. .I Preliminary
248 #. safety properties are documented, indicating these
249 #. properties may
250 #. .I not
251 #. be counted on in future releases of
252 #. the GNU C Library.
253 #. Such preliminary properties are the result of an assessment of the
254 #. properties of our current implementation,
255 #. rather than of what is mandated and permitted
256 #. by current and future standards.
257 #. Although we strive to abide by the standards, in some cases our
258 #. implementation is safe even when the standard does not demand safety,
259 #. and in other cases our implementation does not meet the standard safety
260 #. requirements.
261 #. The latter are most likely bugs; the former, when marked
262 #. as
263 #. .IR Preliminary ,
264 #. should not be counted on: future standards may
265 #. require changes that are not compatible with the additional safety
266 #. properties afforded by the current implementation.
267 #. Furthermore,
268 #. the POSIX standard does not offer a detailed definition of safety.
269 #. We assume that, by "safe to call", POSIX means that,
270 #. as long as the program does not invoke undefined behavior,
271 #. the "safe to call" function behaves as specified,
272 #. and does not cause other functions to deviate from their specified behavior.
273 #. We have chosen to use its loose
274 #. definitions of safety, not because they are the best definitions to use,
275 #. but because choosing them harmonizes this manual with POSIX.
276 #. Please keep in mind that these are preliminary definitions and annotations,
277 #. and certain aspects of the definitions are still under
278 #. discussion and might be subject to clarification or change.
279 #. Over time,
280 #. we envision evolving the preliminary safety notes into stable commitments,
281 #. as stable as those of our interfaces.
282 #. As we do, we will remove the
283 #. .I Preliminary
284 #. keyword from safety notes.
285 #. As long as the keyword remains, however,
286 #. they are not to be regarded as a promise of future behavior.
287 #. type: Plain text
288 #. #-#-#-#-# debian-trixie: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
289 #. ", " AS-Unsafe ", " AC-Unsafe
290 #. functions are not
291 #. safe to call within the safety contexts described above.
292 #. Calling them
293 #. within such contexts invokes undefined behavior.
294 #. Functions not explicitly documented as safe in a safety context should
295 #. be regarded as Unsafe.
296 #. .TP
297 #. .I Preliminary
298 #. .I Preliminary
299 #. safety properties are documented, indicating these
300 #. properties may
301 #. .I not
302 #. be counted on in future releases of
303 #. the GNU C Library.
304 #. Such preliminary properties are the result of an assessment of the
305 #. properties of our current implementation,
306 #. rather than of what is mandated and permitted
307 #. by current and future standards.
308 #. Although we strive to abide by the standards, in some cases our
309 #. implementation is safe even when the standard does not demand safety,
310 #. and in other cases our implementation does not meet the standard safety
311 #. requirements.
312 #. The latter are most likely bugs; the former, when marked
313 #. as
314 #. .IR Preliminary ,
315 #. should not be counted on: future standards may
316 #. require changes that are not compatible with the additional safety
317 #. properties afforded by the current implementation.
318 #. Furthermore,
319 #. the POSIX standard does not offer a detailed definition of safety.
320 #. We assume that, by "safe to call", POSIX means that,
321 #. as long as the program does not invoke undefined behavior,
322 #. the "safe to call" function behaves as specified,
323 #. and does not cause other functions to deviate from their specified behavior.
324 #. We have chosen to use its loose
325 #. definitions of safety, not because they are the best definitions to use,
326 #. but because choosing them harmonizes this manual with POSIX.
327 #. Please keep in mind that these are preliminary definitions and annotations,
328 #. and certain aspects of the definitions are still under
329 #. discussion and might be subject to clarification or change.
330 #. Over time,
331 #. we envision evolving the preliminary safety notes into stable commitments,
332 #. as stable as those of our interfaces.
333 #. As we do, we will remove the
334 #. .I Preliminary
335 #. keyword from safety notes.
336 #. As long as the keyword remains, however,
337 #. they are not to be regarded as a promise of future behavior.
338 #. type: Plain text
339 #. #-#-#-#-# debian-unstable: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
340 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
341 #. functions are not
342 #. safe to call within the safety contexts described above.
343 #. Calling them
344 #. within such contexts invokes undefined behavior.
345 #. Functions not explicitly documented as safe in a safety context should
346 #. be regarded as Unsafe.
347 #. .TP
348 #. .I Preliminary
349 #. .I Preliminary
350 #. safety properties are documented, indicating these
351 #. properties may
352 #. .I not
353 #. be counted on in future releases of
354 #. the GNU C Library.
355 #. Such preliminary properties are the result of an assessment of the
356 #. properties of our current implementation,
357 #. rather than of what is mandated and permitted
358 #. by current and future standards.
359 #. Although we strive to abide by the standards, in some cases our
360 #. implementation is safe even when the standard does not demand safety,
361 #. and in other cases our implementation does not meet the standard safety
362 #. requirements.
363 #. The latter are most likely bugs; the former, when marked
364 #. as
365 #. .IR Preliminary ,
366 #. should not be counted on: future standards may
367 #. require changes that are not compatible with the additional safety
368 #. properties afforded by the current implementation.
369 #. Furthermore,
370 #. the POSIX standard does not offer a detailed definition of safety.
371 #. We assume that, by "safe to call", POSIX means that,
372 #. as long as the program does not invoke undefined behavior,
373 #. the "safe to call" function behaves as specified,
374 #. and does not cause other functions to deviate from their specified behavior.
375 #. We have chosen to use its loose
376 #. definitions of safety, not because they are the best definitions to use,
377 #. but because choosing them harmonizes this manual with POSIX.
378 #. Please keep in mind that these are preliminary definitions and annotations,
379 #. and certain aspects of the definitions are still under
380 #. discussion and might be subject to clarification or change.
381 #. Over time,
382 #. we envision evolving the preliminary safety notes into stable commitments,
383 #. as stable as those of our interfaces.
384 #. As we do, we will remove the
385 #. .I Preliminary
386 #. keyword from safety notes.
387 #. As long as the keyword remains, however,
388 #. they are not to be regarded as a promise of future behavior.
389 #. type: Plain text
390 #. #-#-#-#-# fedora-44: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
391 #. ", " AS-Unsafe ", " AC-Unsafe
392 #. functions are not
393 #. safe to call within the safety contexts described above.
394 #. Calling them
395 #. within such contexts invokes undefined behavior.
396 #. Functions not explicitly documented as safe in a safety context should
397 #. be regarded as Unsafe.
398 #. .TP
399 #. .I Preliminary
400 #. .I Preliminary
401 #. safety properties are documented, indicating these
402 #. properties may
403 #. .I not
404 #. be counted on in future releases of
405 #. the GNU C Library.
406 #. Such preliminary properties are the result of an assessment of the
407 #. properties of our current implementation,
408 #. rather than of what is mandated and permitted
409 #. by current and future standards.
410 #. Although we strive to abide by the standards, in some cases our
411 #. implementation is safe even when the standard does not demand safety,
412 #. and in other cases our implementation does not meet the standard safety
413 #. requirements.
414 #. The latter are most likely bugs; the former, when marked
415 #. as
416 #. .IR Preliminary ,
417 #. should not be counted on: future standards may
418 #. require changes that are not compatible with the additional safety
419 #. properties afforded by the current implementation.
420 #. Furthermore,
421 #. the POSIX standard does not offer a detailed definition of safety.
422 #. We assume that, by "safe to call", POSIX means that,
423 #. as long as the program does not invoke undefined behavior,
424 #. the "safe to call" function behaves as specified,
425 #. and does not cause other functions to deviate from their specified behavior.
426 #. We have chosen to use its loose
427 #. definitions of safety, not because they are the best definitions to use,
428 #. but because choosing them harmonizes this manual with POSIX.
429 #. Please keep in mind that these are preliminary definitions and annotations,
430 #. and certain aspects of the definitions are still under
431 #. discussion and might be subject to clarification or change.
432 #. Over time,
433 #. we envision evolving the preliminary safety notes into stable commitments,
434 #. as stable as those of our interfaces.
435 #. As we do, we will remove the
436 #. .I Preliminary
437 #. keyword from safety notes.
438 #. As long as the keyword remains, however,
439 #. they are not to be regarded as a promise of future behavior.
440 #. type: Plain text
441 #. #-#-#-#-# fedora-rawhide: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
442 #. ", " AS-Unsafe ", " AC-Unsafe
443 #. functions are not
444 #. safe to call within the safety contexts described above.
445 #. Calling them
446 #. within such contexts invokes undefined behavior.
447 #. Functions not explicitly documented as safe in a safety context should
448 #. be regarded as Unsafe.
449 #. .TP
450 #. .I Preliminary
451 #. .I Preliminary
452 #. safety properties are documented, indicating these
453 #. properties may
454 #. .I not
455 #. be counted on in future releases of
456 #. the GNU C Library.
457 #. Such preliminary properties are the result of an assessment of the
458 #. properties of our current implementation,
459 #. rather than of what is mandated and permitted
460 #. by current and future standards.
461 #. Although we strive to abide by the standards, in some cases our
462 #. implementation is safe even when the standard does not demand safety,
463 #. and in other cases our implementation does not meet the standard safety
464 #. requirements.
465 #. The latter are most likely bugs; the former, when marked
466 #. as
467 #. .IR Preliminary ,
468 #. should not be counted on: future standards may
469 #. require changes that are not compatible with the additional safety
470 #. properties afforded by the current implementation.
471 #. Furthermore,
472 #. the POSIX standard does not offer a detailed definition of safety.
473 #. We assume that, by "safe to call", POSIX means that,
474 #. as long as the program does not invoke undefined behavior,
475 #. the "safe to call" function behaves as specified,
476 #. and does not cause other functions to deviate from their specified behavior.
477 #. We have chosen to use its loose
478 #. definitions of safety, not because they are the best definitions to use,
479 #. but because choosing them harmonizes this manual with POSIX.
480 #. Please keep in mind that these are preliminary definitions and annotations,
481 #. and certain aspects of the definitions are still under
482 #. discussion and might be subject to clarification or change.
483 #. Over time,
484 #. we envision evolving the preliminary safety notes into stable commitments,
485 #. as stable as those of our interfaces.
486 #. As we do, we will remove the
487 #. .I Preliminary
488 #. keyword from safety notes.
489 #. As long as the keyword remains, however,
490 #. they are not to be regarded as a promise of future behavior.
491 #. type: Plain text
492 #. #-#-#-#-# mageia-cauldron: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
493 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
494 #. functions are not
495 #. safe to call within the safety contexts described above.
496 #. Calling them
497 #. within such contexts invokes undefined behavior.
498 #. Functions not explicitly documented as safe in a safety context should
499 #. be regarded as Unsafe.
500 #. .TP
501 #. .I Preliminary
502 #. .I Preliminary
503 #. safety properties are documented, indicating these
504 #. properties may
505 #. .I not
506 #. be counted on in future releases of
507 #. the GNU C Library.
508 #. Such preliminary properties are the result of an assessment of the
509 #. properties of our current implementation,
510 #. rather than of what is mandated and permitted
511 #. by current and future standards.
512 #. Although we strive to abide by the standards, in some cases our
513 #. implementation is safe even when the standard does not demand safety,
514 #. and in other cases our implementation does not meet the standard safety
515 #. requirements.
516 #. The latter are most likely bugs; the former, when marked
517 #. as
518 #. .IR Preliminary ,
519 #. should not be counted on: future standards may
520 #. require changes that are not compatible with the additional safety
521 #. properties afforded by the current implementation.
522 #. Furthermore,
523 #. the POSIX standard does not offer a detailed definition of safety.
524 #. We assume that, by "safe to call", POSIX means that,
525 #. as long as the program does not invoke undefined behavior,
526 #. the "safe to call" function behaves as specified,
527 #. and does not cause other functions to deviate from their specified behavior.
528 #. We have chosen to use its loose
529 #. definitions of safety, not because they are the best definitions to use,
530 #. but because choosing them harmonizes this manual with POSIX.
531 #. Please keep in mind that these are preliminary definitions and annotations,
532 #. and certain aspects of the definitions are still under
533 #. discussion and might be subject to clarification or change.
534 #. Over time,
535 #. we envision evolving the preliminary safety notes into stable commitments,
536 #. as stable as those of our interfaces.
537 #. As we do, we will remove the
538 #. .I Preliminary
539 #. keyword from safety notes.
540 #. As long as the keyword remains, however,
541 #. they are not to be regarded as a promise of future behavior.
542 #. type: Plain text
543 #. #-#-#-#-# opensuse-leap-16-1: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
544 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
545 #. functions are not
546 #. safe to call within the safety contexts described above.
547 #. Calling them
548 #. within such contexts invokes undefined behavior.
549 #. Functions not explicitly documented as safe in a safety context should
550 #. be regarded as Unsafe.
551 #. .TP
552 #. .I Preliminary
553 #. .I Preliminary
554 #. safety properties are documented, indicating these
555 #. properties may
556 #. .I not
557 #. be counted on in future releases of
558 #. the GNU C Library.
559 #. Such preliminary properties are the result of an assessment of the
560 #. properties of our current implementation,
561 #. rather than of what is mandated and permitted
562 #. by current and future standards.
563 #. Although we strive to abide by the standards, in some cases our
564 #. implementation is safe even when the standard does not demand safety,
565 #. and in other cases our implementation does not meet the standard safety
566 #. requirements.
567 #. The latter are most likely bugs; the former, when marked
568 #. as
569 #. .IR Preliminary ,
570 #. should not be counted on: future standards may
571 #. require changes that are not compatible with the additional safety
572 #. properties afforded by the current implementation.
573 #. Furthermore,
574 #. the POSIX standard does not offer a detailed definition of safety.
575 #. We assume that, by "safe to call", POSIX means that,
576 #. as long as the program does not invoke undefined behavior,
577 #. the "safe to call" function behaves as specified,
578 #. and does not cause other functions to deviate from their specified behavior.
579 #. We have chosen to use its loose
580 #. definitions of safety, not because they are the best definitions to use,
581 #. but because choosing them harmonizes this manual with POSIX.
582 #. Please keep in mind that these are preliminary definitions and annotations,
583 #. and certain aspects of the definitions are still under
584 #. discussion and might be subject to clarification or change.
585 #. Over time,
586 #. we envision evolving the preliminary safety notes into stable commitments,
587 #. as stable as those of our interfaces.
588 #. As we do, we will remove the
589 #. .I Preliminary
590 #. keyword from safety notes.
591 #. As long as the keyword remains, however,
592 #. they are not to be regarded as a promise of future behavior.
593 #. type: Plain text
594 #. #-#-#-#-# opensuse-tumbleweed: attributes.7.pot (PACKAGE VERSION) #-#-#-#-#
595 #. ,\~ AS-Unsafe ,\~ AC-Unsafe
596 #. functions are not
597 #. safe to call within the safety contexts described above.
598 #. Calling them
599 #. within such contexts invokes undefined behavior.
600 #. Functions not explicitly documented as safe in a safety context should
601 #. be regarded as Unsafe.
602 #. .TP
603 #. .I Preliminary
604 #. .I Preliminary
605 #. safety properties are documented, indicating these
606 #. properties may
607 #. .I not
608 #. be counted on in future releases of
609 #. the GNU C Library.
610 #. Such preliminary properties are the result of an assessment of the
611 #. properties of our current implementation,
612 #. rather than of what is mandated and permitted
613 #. by current and future standards.
614 #. Although we strive to abide by the standards, in some cases our
615 #. implementation is safe even when the standard does not demand safety,
616 #. and in other cases our implementation does not meet the standard safety
617 #. requirements.
618 #. The latter are most likely bugs; the former, when marked
619 #. as
620 #. .IR Preliminary ,
621 #. should not be counted on: future standards may
622 #. require changes that are not compatible with the additional safety
623 #. properties afforded by the current implementation.
624 #. Furthermore,
625 #. the POSIX standard does not offer a detailed definition of safety.
626 #. We assume that, by "safe to call", POSIX means that,
627 #. as long as the program does not invoke undefined behavior,
628 #. the "safe to call" function behaves as specified,
629 #. and does not cause other functions to deviate from their specified behavior.
630 #. We have chosen to use its loose
631 #. definitions of safety, not because they are the best definitions to use,
632 #. but because choosing them harmonizes this manual with POSIX.
633 #. Please keep in mind that these are preliminary definitions and annotations,
634 #. and certain aspects of the definitions are still under
635 #. discussion and might be subject to clarification or change.
636 #. Over time,
637 #. we envision evolving the preliminary safety notes into stable commitments,
638 #. as stable as those of our interfaces.
639 #. As we do, we will remove the
640 #. .I Preliminary
641 #. keyword from safety notes.
642 #. As long as the keyword remains, however,
643 #. they are not to be regarded as a promise of future behavior.
644 #. type: Plain text
645 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
646 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
647 msgid ""
648 "I<MT-Unsafe> functions are not safe to call in a multithreaded programs."
649 msgstr ""
650 "Les fonctions I<MT-Unsafe> ne sont pas sûres pour des appels dans des "
651 "programmes multithreadés."
652
653 #
654 #
655 #
656 #
657 #
658 #
659 #
660 #
661 #
662 #
663 #
664 #. .SS Unsafe features
665 #. Functions that are unsafe to call in certain contexts are annotated with
666 #. keywords that document their features that make them unsafe to call.
667 #. AS-Unsafe features in this section indicate the functions are never safe
668 #. to call when asynchronous signals are enabled.
669 #. AC-Unsafe features
670 #. indicate they are never safe to call when asynchronous cancelation is
671 #. .\" enabled.
672 #. There are no MT-Unsafe marks in this section.
673 #. .TP
674 #. .\" .I code
675 #. Functions marked with
676 #. .I lock
677 #. as an AS-Unsafe feature may be
678 #. .\" interrupted by a signal while holding a non-recursive lock.
679 #. If the signal handler calls another such function that takes the same lock,
680 #. the result is a deadlock.
681 #. Functions annotated with
682 #. .I lock
683 #. as an AC-Unsafe feature may, if canceled asynchronously,
684 #. fail to release a lock that would have been released if their execution
685 #. had not been interrupted by asynchronous thread cancelation.
686 #. Once a lock is left taken,
687 #. attempts to take that lock will block indefinitely.
688 #. .TP
689 #. .I corrupt
690 #. Functions marked with
691 #. .\" .I corrupt
692 #. as an AS-Unsafe feature may corrupt
693 #. data structures and misbehave when they interrupt,
694 #. or are interrupted by, another such function.
695 #. Unlike functions marked with
696 #. .IR lock ,
697 #. these take recursive locks to avoid MT-Safety problems,
698 #. but this is not enough to stop a signal handler from observing
699 #. a partially-updated data structure.
700 #. Further corruption may arise from the interrupted function's
701 #. failure to notice updates made by signal handlers.
702 #. Functions marked with
703 #. .I corrupt
704 #. as an AC-Unsafe feature may leave
705 #. data structures in a corrupt, partially updated state.
706 #. Subsequent uses of the data structure may misbehave.
707 #. .\" A special case, probably not worth documenting separately, involves
708 #. .\" reallocing, or even freeing pointers. Any case involving free could
709 #. .\" be easily turned into an ac-safe leak by resetting the pointer before
710 #. .\" releasing it; I don't think we have any case that calls for this sort
711 #. .\" of fixing. Fixing the realloc cases would require a new interface:
712 #. .\" instead of @code{ptr=realloc(ptr,size)} we'd have to introduce
713 #. .\" @code{acsafe_realloc(&ptr,size)} that would modify ptr before
714 #. .\" releasing the old memory. The ac-unsafe realloc could be implemented
715 #. .\" in terms of an internal interface with this semantics (say
716 #. .\" __acsafe_realloc), but since realloc can be overridden, the function
717 #. .\" we call to implement realloc should not be this internal interface,
718 #. .\" but another internal interface that calls __acsafe_realloc if realloc
719 #. .\" was not overridden, and calls the overridden realloc with async
720 #. .\" cancel disabled. --lxoliva
721 #. .TP
722 #. .I heap
723 #. Functions marked with
724 #. .I heap
725 #. may call heap memory management functions from the
726 #. .BR malloc (3)/ free (3)
727 #. family of functions and are only as safe as those functions.
728 #. This note is thus equivalent to:
729 #. | AS-Unsafe lock | AC-Unsafe lock fd mem |
730 #. .\" @sampsafety{@asunsafe{@asulock{}}@acunsafe{@aculock{} @acsfd{} @acsmem{}}}
731 #. .\"
732 #. .\" Check for cases that should have used plugin instead of or in
733 #. .\" addition to this. Then, after rechecking gettext, adjust i18n if
734 #. .\" needed.
735 #. .TP
736 #. .I dlopen
737 #. Functions marked with
738 #. .I dlopen
739 #. use the dynamic loader to load
740 #. shared libraries into the current execution image.
741 #. This involves opening files, mapping them into memory,
742 #. allocating additional memory, resolving symbols,
743 #. applying relocations and more,
744 #. all of this while holding internal dynamic loader locks.
745 #. The locks are enough for these functions to be AS-Unsafe and AC-Unsafe,
746 #. but other issues may arise.
747 #. At present this is a placeholder for all
748 #. potential safety issues raised by
749 #. .BR dlopen (3).
750 #. .\" dlopen runs init and fini sections of the module; does this mean
751 #. .\" dlopen always implies plugin?
752 #. .TP
753 #. .I plugin
754 #. Functions annotated with
755 #. .I plugin
756 #. may run code from plugins that
757 #. may be external to the GNU C Library.
758 #. Such plugin functions are assumed to be
759 #. MT-Safe, AS-Unsafe and AC-Unsafe.
760 #. Examples of such plugins are stack unwinding libraries,
761 #. name service switch (NSS) and character set conversion (iconv) back-ends.
762 #. Although the plugins mentioned as examples are all brought in by means
763 #. of dlopen, the
764 #. .I plugin
765 #. keyword does not imply any direct
766 #. involvement of the dynamic loader or the
767 #. .I libdl
768 #. interfaces,
769 #. those are covered by
770 #. .IR dlopen .
771 #. For example, if one function loads a module and finds the addresses
772 #. of some of its functions,
773 #. while another just calls those already-resolved functions,
774 #. the former will be marked with
775 #. .IR dlopen ,
776 #. whereas the latter will get the
777 #. .IR plugin .
778 #. When a single function takes all of these actions, then it gets both marks.
779 #. .TP
780 #. .I i18n
781 #. Functions marked with
782 #. .I i18n
783 #. may call internationalization
784 #. functions of the
785 #. .BR gettext (3)
786 #. family and will be only as safe as those
787 #. functions.
788 #. This note is thus equivalent to:
789 #. | MT-Safe env | AS-Unsafe corrupt heap dlopen | AC-Unsafe corrupt |
790 #. .\" @sampsafety{@mtsafe{@mtsenv{}}@asunsafe{@asucorrupt{} @ascuheap{} @ascudlopen{}}@acunsafe{@acucorrupt{}}}
791 #. .TP
792 #. .I timer
793 #. Functions marked with
794 #. .I timer
795 #. use the
796 #. .BR alarm (3)
797 #. function or
798 #. similar to set a time-out for a system call or a long-running operation.
799 #. In a multi-threaded program, there is a risk that the time-out signal
800 #. will be delivered to a different thread,
801 #. thus failing to interrupt the intended thread.
802 #. Besides being MT-Unsafe, such functions are always
803 #. AS-Unsafe, because calling them in signal handlers may interfere with
804 #. timers set in the interrupted code, and AC-Unsafe,
805 #. because there is no safe way to guarantee an earlier timer
806 #. will be reset in case of asynchronous cancelation.
807 #. type: Plain text
808 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
809 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
810 msgid ""
811 "Other keywords that appear in safety notes are defined in subsequent "
812 "sections."
813 msgstr ""
814 "D'autres mots-clefs qui apparaissent dans des notes de sûreté sont définis "
815 "dans les sections suivantes."
816
817 #. type: SS
818 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
819 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
820 #, no-wrap
821 msgid "Conditionally safe features"
822 msgstr "Fonctionnalités sûres sous condition"
823
824 #. type: Plain text
825 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
826 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
827 msgid ""
828 "For some features that make functions unsafe to call in certain contexts, "
829 "there are known ways to avoid the safety problem other than refraining from "
830 "calling the function altogether. The keywords that follow refer to such "
831 "features, and each of their definitions indicates how the whole program "
832 "needs to be constrained in order to remove the safety problem indicated by "
833 "the keyword. Only when all the reasons that make a function unsafe are "
834 "observed and addressed, by applying the documented constraints, does the "
835 "function become safe to call in a context."
836 msgstr ""
837 "Pour certaines fonctionnalités qui rendent non sûre l'appel de certaines "
838 "fonctions dans certains contextes, il existe des moyens connus pour éviter "
839 "un problème autres que de s'abstenir complètement d'appeler la fonction. Les "
840 "mots-clés qui suivent font référence à ces fonctionnalités et chacune des "
841 "définitions indique comment le programme dans son ensemble doit être "
842 "contraint de manière à supprimer le problème de sûreté indiqué par le mot-"
843 "clé. C'est seulement lorsque toutes les raisons qui rendent une fonction non "
844 "sûre ont été observées et traitées, en appliquant les contraintes "
845 "documentées, que l'appel d'une fonction devient sûr dans un contexte."
846
847 #. type: TP
848 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
849 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
850 #, no-wrap
851 msgid "I<init>"
852 msgstr "I<init>"
853
854 #. type: Plain text
855 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
856 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
857 msgid ""
858 "Functions marked with I<init> as an MT-Unsafe feature perform MT-Unsafe "
859 "initialization when they are first called."
860 msgstr ""
861 "Les fonctions marquées I<init> en tant que fonctionnalité I<MT-Unsafe> "
862 "réalisent une initialisation I<MT-Unsafe> quand elles sont appelées en "
863 "premier."
864
865 #
866 #
867 #
868 #
869 #
870 #. Functions marked with
871 #. .I init
872 #. as an AS-Unsafe or AC-Unsafe feature use the GNU C Library internal
873 #. .I libc_once
874 #. machinery or similar to initialize internal data structures.
875 #. If a signal handler interrupts such an initializer,
876 #. and calls any function that also performs
877 #. .I libc_once
878 #. initialization, it will deadlock if the thread library has been loaded.
879 #. Furthermore, if an initializer is partially complete before it is canceled
880 #. or interrupted by a signal whose handler requires the same initialization,
881 #. some or all of the initialization may be performed more than once,
882 #. leaking resources or even resulting in corrupt internal data.
883 #. Applications that need to call functions marked with
884 #. .I init
885 #. as an AS-Safety or AC-Unsafe feature should ensure
886 #. the initialization is performed
887 #. before configuring signal handlers or enabling cancelation,
888 #. so that the AS-Safety and AC-Safety issues related with
889 #. .I libc_once
890 #. do not arise.
891 #. .\" We may have to extend the annotations to cover conditions in which
892 #. .\" initialization may or may not occur, since an initial call in a safe
893 #. .\" context is no use if the initialization doesn't take place at that
894 #. .\" time: it doesn't remove the risk for later calls.
895 #. type: Plain text
896 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
897 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
898 msgid ""
899 "Calling such a function at least once in single-threaded mode removes this "
900 "specific cause for the function to be regarded as MT-Unsafe. If no other "
901 "cause for that remains, the function can then be safely called after other "
902 "threads are started."
903 msgstr ""
904 "L'appel d'une fonction de ce type au moins une fois en mode monothread "
905 "supprime cette raison spécifique qui fait considérer la fonction comme I<MT-"
906 "Unsafe>. S'il ne reste pas d'autre raison, la fonction peut alors être "
907 "appelée de façon sûre après le démarrage d'autres threads."
908
909 #. type: TP
910 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
911 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
912 #, no-wrap
913 msgid "I<race>"
914 msgstr "I<race>"
915
916 #
917 #
918 #
919 #
920 #
921 #
922 #
923 #. We consider access to objects passed as (indirect) arguments to
924 #. functions to be data race free.
925 #. The assurance of data race free objects
926 #. is the caller's responsibility.
927 #. We will not mark a function as MT-Unsafe or AS-Unsafe
928 #. if it misbehaves when users fail to take the measures required by
929 #. POSIX to avoid data races when dealing with such objects.
930 #. As a general rule, if a function is documented as reading from
931 #. an object passed (by reference) to it, or modifying it,
932 #. users ought to use memory synchronization primitives
933 #. to avoid data races just as they would should they perform
934 #. the accesses themselves rather than by calling the library function.
935 #. Standard I/O
936 #. .RI ( "FILE *" )
937 #. streams are the exception to the general rule,
938 #. in that POSIX mandates the library to guard against data races
939 #. in many functions that manipulate objects of this specific opaque type.
940 #. We regard this as a convenience provided to users,
941 #. rather than as a general requirement whose expectations
942 #. should extend to other types.
943 #. In order to remind users that guarding certain arguments is their
944 #. responsibility, we will annotate functions that take objects of certain
945 #. types as arguments.
946 #. We draw the line for objects passed by users as follows:
947 #. objects whose types are exposed to users,
948 #. and that users are expected to access directly,
949 #. such as memory buffers, strings,
950 #. and various user-visible structured types, do
951 #. .I not
952 #. give reason for functions to be annotated with
953 #. .IR race .
954 #. It would be noisy and redundant with the general requirement,
955 #. and not many would be surprised by the library's lack of internal
956 #. guards when accessing objects that can be accessed directly by users.
957 #. As for objects that are opaque or opaque-like,
958 #. in that they are to be manipulated only by passing them
959 #. to library functions (e.g.,
960 #. .IR FILE ,
961 #. .IR DIR ,
962 #. .IR obstack ,
963 #. .IR iconv_t ),
964 #. there might be additional expectations as to internal coordination
965 #. of access by the library.
966 #. We will annotate, with
967 #. .I race
968 #. followed by a colon and the argument name,
969 #. functions that take such objects but that do not take
970 #. care of synchronizing access to them by default.
971 #. For example,
972 #. .I FILE
973 #. stream
974 #. .I unlocked
975 #. functions
976 #. .RB ( unlocked_stdio (3))
977 #. will be annotated,
978 #. but those that perform implicit locking on
979 #. .I FILE
980 #. streams by default will not,
981 #. even though the implicit locking may be disabled on a per-stream basis.
982 #. In either case, we will not regard as MT-Unsafe functions that may
983 #. access user-supplied objects in unsafe ways should users fail to ensure
984 #. the accesses are well defined.
985 #. The notion prevails that users are expected to safeguard against
986 #. data races any user-supplied objects that the library accesses
987 #. on their behalf.
988 #. .\" The above describes @mtsrace; @mtasurace is described below.
989 #. This user responsibility does not apply, however,
990 #. to objects controlled by the library itself,
991 #. such as internal objects and static buffers used
992 #. to return values from certain calls.
993 #. When the library doesn't guard them against concurrent uses,
994 #. these cases are regarded as MT-Unsafe and AS-Unsafe (although the
995 #. .I race
996 #. mark under AS-Unsafe will be omitted
997 #. as redundant with the one under MT-Unsafe).
998 #. As in the case of user-exposed objects,
999 #. the mark may be followed by a colon and an identifier.
1000 #. The identifier groups all functions that operate on a
1001 #. certain unguarded object; users may avoid the MT-Safety issues related
1002 #. with unguarded concurrent access to such internal objects by creating a
1003 #. non-recursive mutex related with the identifier,
1004 #. and always holding the mutex when calling any function marked
1005 #. as racy on that identifier,
1006 #. as they would have to should the identifier be
1007 #. an object under user control.
1008 #. The non-recursive mutex avoids the MT-Safety issue,
1009 #. but it trades one AS-Safety issue for another,
1010 #. so use in asynchronous signals remains undefined.
1011 #. When the identifier relates to a static buffer used to hold return values,
1012 #. the mutex must be held for as long as the buffer remains in use
1013 #. by the caller.
1014 #. Many functions that return pointers to static buffers offer reentrant
1015 #. variants that store return values in caller-supplied buffers instead.
1016 #. In some cases, such as
1017 #. .BR tmpname (3),
1018 #. the variant is chosen not by calling an alternate entry point,
1019 #. but by passing a non-null pointer to the buffer in which the
1020 #. returned values are to be stored.
1021 #. These variants are generally preferable in multi-threaded programs,
1022 #. although some of them are not MT-Safe because of other internal buffers,
1023 #. also documented with
1024 #. .I race
1025 #. notes.
1026 #. type: Plain text
1027 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1028 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1029 msgid ""
1030 "Functions annotated with I<race> as an MT-Safety issue operate on objects in "
1031 "ways that may cause data races or similar forms of destructive interference "
1032 "out of concurrent execution. In some cases, the objects are passed to the "
1033 "functions by users; in others, they are used by the functions to return "
1034 "values to users; in others, they are not even exposed to users."
1035 msgstr ""
1036 "Les fonctions marquées I<race> en tant que problème d'état I<MT-Safe> "
1037 "opèrent sur des objets d'une façon qui peut provoquer des situations de "
1038 "concurrences de données ou des formes similaires d'interférences "
1039 "destructives provoquées par une exécution concurrente. Dans certains cas, "
1040 "les objets sont passés aux fonctions par les utilisateurs ; dans d'autres, "
1041 "ils sont utilisés par les fonctions pour renvoyer des valeurs aux "
1042 "utilisateurs ; dans d'autres encore, ils ne sont même pas exposés aux "
1043 "utilisateurs."
1044
1045 #. type: TP
1046 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1047 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1048 #, no-wrap
1049 msgid "I<const>"
1050 msgstr "I<const>"
1051
1052 #. and AS-Unsafe,
1053 #. equally
1054 #. and AS-Unsafe
1055 #. and AS-Safe
1056 #. type: Plain text
1057 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1058 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1059 msgid ""
1060 "Functions marked with I<const> as an MT-Safety issue non-atomically modify "
1061 "internal objects that are better regarded as constant, because a substantial "
1062 "portion of the GNU C Library accesses them without synchronization. Unlike "
1063 "I<race>, which causes both readers and writers of internal objects to be "
1064 "regarded as MT-Unsafe, this mark is applied to writers only. Writers remain "
1065 "MT-Unsafe to call, but the then-mandatory constness of objects they modify "
1066 "enables readers to be regarded as MT-Safe (as long as no other reasons for "
1067 "them to be unsafe remain), since the lack of synchronization is not a "
1068 "problem when the objects are effectively constant."
1069 msgstr ""
1070 "Les fonctions marquées I<const> en tant que problème d'état MT-Safe "
1071 "modifient de façon non-atomique les objets internes qui sont plutôt à "
1072 "considérer comme constants, parce qu'une partie importante de la "
1073 "bibliothèque GNU C y accède sans synchronisation. À la différence de I<race> "
1074 "qui fait qu'à la fois lecteurs et écrivains d'objets internes sont "
1075 "considérés comme I<MT-Unsafe>, cette marque ne s'applique qu'aux écrivains. "
1076 "Leur appel demeure I<MT-Unsafe>, mais le caractère constant alors "
1077 "obligatoire des objets qu'ils modifient permet de considérer les lecteurs "
1078 "comme I<MT-safe> (aussi longtemps qu'il n'y a pas d'autre raison pour qu'ils "
1079 "soient non sûrs), dans la mesure où l'absence de synchronisation n'est pas "
1080 "un problème quand les objets sont effectivement constants."
1081
1082 #
1083 #. The non-recursive locking removes the MT-Safety problem,
1084 #. but it trades one AS-Safety problem for another,
1085 #. so use in asynchronous signals remains undefined.
1086 #. .\" But what if, instead of marking modifiers with const:id and readers
1087 #. .\" with just id, we marked writers with race:id and readers with ro:id?
1088 #. .\" Instead of having to define each instance of 'id', we'd have a
1089 #. .\" general pattern governing all such 'id's, wherein race:id would
1090 #. .\" suggest the need for an exclusive/write lock to make the function
1091 #. .\" safe, whereas ro:id would indicate 'id' is expected to be read-only,
1092 #. .\" but if any modifiers are called (while holding an exclusive lock),
1093 #. .\" then ro:id-marked functions ought to be guarded with a read lock for
1094 #. .\" safe operation. ro:env or ro:locale, for example, seems to convey
1095 #. .\" more clearly the expectations and the meaning, than just env or
1096 #. .\" locale.
1097 #. type: Plain text
1098 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1099 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1100 msgid ""
1101 "The identifier that follows the I<const> mark will appear by itself as a "
1102 "safety note in readers. Programs that wish to work around this safety "
1103 "issue, so as to call writers, may use a non-recursive read-write lock "
1104 "associated with the identifier, and guard I<all> calls to functions marked "
1105 "with I<const> followed by the identifier with a write lock, and I<all> calls "
1106 "to functions marked with the identifier by itself with a read lock."
1107 msgstr ""
1108 "L'identifiant qui suit la marque I<const> apparaîtra lui-même conne une note "
1109 "de sûreté dans les lecteurs. Les programmes qui souhaitent contourner ce "
1110 "problème de sûreté, afin d'appeler les écrivains, peuvent utiliser un verrou "
1111 "en lecture et écriture non récursif associé à l'identifiant et garder la "
1112 "I<totalité> des appels à des fonctions marquées I<const> suivies de "
1113 "l'identifiant avec un verrou en écriture et la I<totalité> des appels à des "
1114 "fonctions marquées par l'identifiant lui-même avec un verrou en lecture."
1115
1116 #. type: TP
1117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1119 #, no-wrap
1120 msgid "I<sig>"
1121 msgstr "I<sig>"
1122
1123 #. (that implies an identical AS-Safety issue, omitted for brevity)
1124 #. type: Plain text
1125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1127 msgid ""
1128 "Functions marked with I<sig> as a MT-Safety issue may temporarily install a "
1129 "signal handler for internal purposes, which may interfere with other uses of "
1130 "the signal, identified after a colon."
1131 msgstr ""
1132 "Les fonctions marquées I<sig> en tant que problème d'état MT-Safe peuvent "
1133 "installer de façon temporaire un gestionnaire de signal à des fins internes "
1134 "qui peut interférer avec d'autres usages du signal, identifié après deux-"
1135 "points."
1136
1137 #
1138 #
1139 #
1140 #. There is no safe way to guarantee the original signal handler is
1141 #. restored in case of asynchronous cancelation,
1142 #. therefore so-marked functions are also AC-Unsafe.
1143 #. .\" fixme: at least deferred cancelation should get it right, and would
1144 #. .\" obviate the restoring bit below, and the qualifier above.
1145 #. Besides the measures recommended to work around the
1146 #. MT-Safety and AS-Safety problem,
1147 #. in order to avert the cancelation problem,
1148 #. disabling asynchronous cancelation
1149 #. .I and
1150 #. installing a cleanup handler to restore the signal to the desired state
1151 #. and to release the mutex are recommended.
1152 #. type: Plain text
1153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1155 msgid ""
1156 "This safety problem can be worked around by ensuring that no other uses of "
1157 "the signal will take place for the duration of the call. Holding a non-"
1158 "recursive mutex while calling all functions that use the same temporary "
1159 "signal; blocking that signal before the call and resetting its handler "
1160 "afterwards is recommended."
1161 msgstr ""
1162 "Le problème de sûreté peut être contourné en s'assurant qu'aucun autre usage "
1163 "du signal n'interviendra pendant la durée de l'appel. Il est recommandé de "
1164 "maintenir un mutex non récursif pendant l'appel de toutes les fonctions qui "
1165 "utilisent le même signal temporaire, de bloquer ce signal avant l'appel et "
1166 "de réinitialiser son gestionnaire après."
1167
1168 #. type: TP
1169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1171 #, no-wrap
1172 msgid "I<term>"
1173 msgstr "I<term>"
1174
1175 #. The same window enables changes made by asynchronous signals to be lost.
1176 #. These functions are also AS-Unsafe,
1177 #. but the corresponding mark is omitted as redundant.
1178 #. type: Plain text
1179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1181 msgid ""
1182 "Functions marked with I<term> as an MT-Safety issue may change the terminal "
1183 "settings in the recommended way, namely: call B<tcgetattr>(3), modify some "
1184 "flags, and then call B<tcsetattr>(3), this creates a window in which changes "
1185 "made by other threads are lost. Thus, functions marked with I<term> are MT-"
1186 "Unsafe."
1187 msgstr ""
1188 "Les fonctions marquées I<term> en tant que problème d'état MT-Safe peuvent "
1189 "modifier la configuration du terminal de la façon recommandée, c'est-à-"
1190 "dire : appel de B<tcgetattr>(3), modification de certains attributs puis "
1191 "appel de B<tcsetattr>(3), cela crée une fenêtre dans laquelle les "
1192 "modifications effectuées par d'autres threads sont perdues. Donc, les "
1193 "fonctions marquées I<term> sont I<MT-Unsafe>."
1194
1195 #
1196 #
1197 #
1198 #. Functions marked with
1199 #. .I term
1200 #. as an AC-Safety issue are supposed to
1201 #. restore terminal settings to their original state,
1202 #. after temporarily changing them, but they may fail to do so if canceled.
1203 #. .\" fixme: at least deferred cancelation should get it right, and would
1204 #. .\" obviate the restoring bit below, and the qualifier above.
1205 #. Besides the measures recommended to work around the
1206 #. MT-Safety and AS-Safety problem,
1207 #. in order to avert the cancelation problem,
1208 #. disabling asynchronous cancelation
1209 #. .I and
1210 #. installing a cleanup handler to
1211 #. restore the terminal settings to the original state and to release the
1212 #. mutex are recommended.
1213 #. type: Plain text
1214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1216 msgid ""
1217 "It is thus advisable for applications using the terminal to avoid concurrent "
1218 "and reentrant interactions with it, by not using it in signal handlers or "
1219 "blocking signals that might use it, and holding a lock while calling these "
1220 "functions and interacting with the terminal. This lock should also be used "
1221 "for mutual exclusion with functions marked with I<race:tcattr(fd)>, where "
1222 "I<fd> is a file descriptor for the controlling terminal. The caller may use "
1223 "a single mutex for simplicity, or use one mutex per terminal, even if "
1224 "referenced by different file descriptors."
1225 msgstr ""
1226 "Il est donc recommandé d'éviter, pour les applications utilisant le "
1227 "terminal, des interactions simultanées et réentrantes avec lui en "
1228 "nel'utilisant pas dans les gestionnaires de signal ou les signaux bloquants "
1229 "qui pourraient l'utiliser également, et de maintenir un verrou pendant "
1230 "l'utilisation de ces fonctions et l'interaction avec le terminal. Ce verrou "
1231 "devrait également être utilisé pour l'exclusion mutuelle avec les fonctions "
1232 "marquées I<race:tcattr(fd)> où I<fd> est un descripteur de fichier pour le "
1233 "terminal de contrôle. L'appelant peut utiliser un mutex unique pour "
1234 "simplifier ou utiliser un mutex par terminal même s'ils sont référencés par "
1235 "des descripteurs de fichier différents."
1236
1237 #. type: SS
1238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1240 #, no-wrap
1241 msgid "Other safety remarks"
1242 msgstr "Autres remarques sur la sûreté"
1243
1244 #. type: Plain text
1245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1247 msgid ""
1248 "Additional keywords may be attached to functions, indicating features that "
1249 "do not make a function unsafe to call, but that may need to be taken into "
1250 "account in certain classes of programs:"
1251 msgstr ""
1252 "Des mots clefs supplémentaires peuvent être ajoutés aux fonctions, indiquant "
1253 "des fonctionnalités qui ne rendent pas la fonction non sûre à appeler, mais "
1254 "il peut être nécessaire d'en tenir compte dans certaines classes de "
1255 "programmes."
1256
1257 #. type: TP
1258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1260 #, no-wrap
1261 msgid "I<locale>"
1262 msgstr "I<locale>"
1263
1264 #. type: Plain text
1265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1267 msgid ""
1268 "Functions annotated with I<locale> as an MT-Safety issue read from the "
1269 "locale object without any form of synchronization. Functions annotated with "
1270 "I<locale> called concurrently with locale changes may behave in ways that do "
1271 "not correspond to any of the locales active during their execution, but an "
1272 "unpredictable mix thereof."
1273 msgstr ""
1274 "Les fonctions marquées I<locale> en tant que problème d'état MT-Safe lisent "
1275 "à partir de l'objet locale sans aucune forme de synchronisation. Ces "
1276 "fonctions appelées en même temps que des modifications de I<locale> peuvent "
1277 "se comporter d'une manière qui ne correspond à aucune des I<locales> actives "
1278 "pendant leur exécution mais à un mélange imprévisible de celles-ci."
1279
1280 #. or AS-Unsafe,
1281 #. Should the locking strategy suggested under @code{const} be used,
1282 #. failure to guard locale uses is not as fatal as data races in
1283 #. general: unguarded uses will @emph{not} follow dangling pointers or
1284 #. access uninitialized, unmapped or recycled memory. Each access will
1285 #. read from a consistent locale object that is or was active at some
1286 #. point during its execution. Without synchronization, however, it
1287 #. cannot even be assumed that, after a change in locale, earlier
1288 #. locales will no longer be used, even after the newly-chosen one is
1289 #. used in the thread. Nevertheless, even though unguarded reads from
1290 #. the locale will not violate type safety, functions that access the
1291 #. locale multiple times may invoke all sorts of undefined behavior
1292 #. because of the unexpected locale changes.
1293 #. type: Plain text
1294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1296 msgid ""
1297 "We do not mark these functions as MT-Unsafe, however, because functions that "
1298 "modify the locale object are marked with I<const:locale> and regarded as "
1299 "unsafe. Being unsafe, the latter are not to be called when multiple threads "
1300 "are running or asynchronous signals are enabled, and so the locale can be "
1301 "considered effectively constant in these contexts, which makes the former "
1302 "safe."
1303 msgstr ""
1304 "Nous ne marquons pas ces fonctions comme I<MT-Unsafe> néanmoins, car les "
1305 "fonctions qui modifient l'objet I<locale> sont marquées I<const:locale> et "
1306 "considérées comme non sûres. Étant non sûres, ces dernières ne doivent pas "
1307 "être appelées quand plusieurs threads sont en exécution ou lorsque les "
1308 "signaux asynchrones sont activés, et ainsi la I<locale> peut être considérée "
1309 "comme effectivement constante dans ces contextes, ce qui rend les premières "
1310 "fonctions sûres."
1311
1312 #. type: TP
1313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1315 #, no-wrap
1316 msgid "I<env>"
1317 msgstr "I<env>"
1318
1319 #. type: Plain text
1320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1322 msgid ""
1323 "Functions marked with I<env> as an MT-Safety issue access the environment "
1324 "with B<getenv>(3) or similar, without any guards to ensure safety in the "
1325 "presence of concurrent modifications."
1326 msgstr ""
1327 "Les fonctions marquées I<env> en tant que problème d'état MT-Safe accèdent à "
1328 "l'environnement avec B<getenv>(3) ou une commande similaire sans aucune "
1329 "protection pour garantir la sûreté en présence de modifications simultanées."
1330
1331 #. or AS-Unsafe,
1332 #. type: Plain text
1333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1335 msgid ""
1336 "We do not mark these functions as MT-Unsafe, however, because functions that "
1337 "modify the environment are all marked with I<const:env> and regarded as "
1338 "unsafe. Being unsafe, the latter are not to be called when multiple threads "
1339 "are running or asynchronous signals are enabled, and so the environment can "
1340 "be considered effectively constant in these contexts, which makes the former "
1341 "safe."
1342 msgstr ""
1343 "Nous ne marquons pas ces fonctions comme I<MT-Unsafe> néanmoins, car les "
1344 "fonctions qui modifient l'environnement sont toutes marquées I<const:env> et "
1345 "considérées comme non sûres. Étant non sûres, ces dernières ne doivent pas "
1346 "être appelées quand plusieurs threads sont en exécution ou lorsque les "
1347 "signaux asynchrones sont activés, et ainsi l'environnement peut être "
1348 "considéré comme effectivement constant dans ces contextes, ce qui rend les "
1349 "premières fonctions sûres."
1350
1351 #. type: TP
1352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1354 #, no-wrap
1355 msgid "I<hostid>"
1356 msgstr "I<hostid>"
1357
1358 #. type: Plain text
1359 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1360 #: opensuse-leap-16-1 opensuse-tumbleweed
1361 msgid ""
1362 "Functions marked with I<hostid> as an MT-Safety issue read from the system-"
1363 "wide data structures that hold the \"host ID\" of the machine. These data "
1364 "structures cannot generally be modified atomically. Since it is expected "
1365 "that the \"host ID\" will not normally change, the function that reads from "
1366 "it (B<gethostid>(3)) is regarded as safe, whereas the function that "
1367 "modifies it (B<sethostid>(3)) is marked with I<const:hostid>, indicating it "
1368 "may require special care if it is to be called. In this specific case, the "
1369 "special care amounts to system-wide (not merely intra-process) coordination."
1370 msgstr ""
1371 "Les fonctions marquées I<hostid> en tant que problème d'état MT-Safe lisent "
1372 "à partir des structures de données communes à tout le système qui "
1373 "contiennent « l'ID d'hôte » de la machine. Ces structures de données ne "
1374 "peuvent pas en général être modifiées automatiquement. Dans la mesure où il "
1375 "est attendu que normalement « l'ID d'hôte » ne change pas, la fonction qui "
1376 "lit à partir d'elle (B<gethostid>(3)) est considérée comme sûre, tandis que "
1377 "la fonction qui la modifie (B<sethostid>(3)) est marquée I<const:hostid>, "
1378 "indiquant qu'elle requiert une attention particulière si elle doit être "
1379 "appelée. Dans ce cas particulier, cette attention particulière équivaut à "
1380 "une coordination à l'échelle de l'ensemble du système (pas seulement à "
1381 "l'intérieur du processus)."
1382
1383 #. type: TP
1384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1386 #, no-wrap
1387 msgid "I<sigintr>"
1388 msgstr "I<sigintr>"
1389
1390 #. type: Plain text
1391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1393 msgid ""
1394 "Functions marked with I<sigintr> as an MT-Safety issue access the GNU C "
1395 "Library I<_sigintr> internal data structure without any guards to ensure "
1396 "safety in the presence of concurrent modifications."
1397 msgstr ""
1398 "Les fonctions marquées I<sigintr> en tant que problème d'état MT-Safe "
1399 "accèdent à la structure de données interne I<_sigintr> de la bibliothèque "
1400 "GNU C sans aucune protection pour garantir la sûreté en présence de "
1401 "modifications simultanées."
1402
1403 #
1404 #
1405 #
1406 #
1407 #
1408 #. or AS-Unsafe,
1409 #. .TP
1410 #. .I fd
1411 #. Functions annotated with
1412 #. .I fd
1413 #. as an AC-Safety issue may leak file
1414 #. descriptors if asynchronous thread cancelation interrupts their
1415 #. execution.
1416 #. Functions that allocate or deallocate file descriptors will generally be
1417 #. marked as such.
1418 #. Even if they attempted to protect the file descriptor
1419 #. allocation and deallocation with cleanup regions,
1420 #. allocating a new descriptor and storing its number where the cleanup region
1421 #. could release it cannot be performed as a single atomic operation.
1422 #. Similarly,
1423 #. releasing the descriptor and taking it out of the data structure
1424 #. normally responsible for releasing it cannot be performed atomically.
1425 #. There will always be a window in which the descriptor cannot be released
1426 #. because it was not stored in the cleanup handler argument yet,
1427 #. or it was already taken out before releasing it.
1428 #. .\" It cannot be taken out after release:
1429 #. an open descriptor could mean either that the descriptor still
1430 #. has to be closed,
1431 #. or that it already did so but the descriptor was
1432 #. reallocated by another thread or signal handler.
1433 #. Such leaks could be internally avoided, with some performance penalty,
1434 #. by temporarily disabling asynchronous thread cancelation.
1435 #. However,
1436 #. since callers of allocation or deallocation functions would have to do
1437 #. this themselves, to avoid the same sort of leak in their own layer,
1438 #. it makes more sense for the library to assume they are taking care of it
1439 #. than to impose a performance penalty that is redundant when the problem
1440 #. is solved in upper layers, and insufficient when it is not.
1441 #. This remark by itself does not cause a function to be regarded as
1442 #. AC-Unsafe.
1443 #. However, cumulative effects of such leaks may pose a
1444 #. problem for some programs.
1445 #. If this is the case,
1446 #. suspending asynchronous cancelation for the duration of calls
1447 #. to such functions is recommended.
1448 #. .TP
1449 #. .I mem
1450 #. Functions annotated with
1451 #. .I mem
1452 #. as an AC-Safety issue may leak
1453 #. memory if asynchronous thread cancelation interrupts their execution.
1454 #. The problem is similar to that of file descriptors: there is no atomic
1455 #. interface to allocate memory and store its address in the argument to a
1456 #. cleanup handler,
1457 #. or to release it and remove its address from that argument,
1458 #. without at least temporarily disabling asynchronous cancelation,
1459 #. which these functions do not do.
1460 #. This remark does not by itself cause a function to be regarded as
1461 #. generally AC-Unsafe.
1462 #. However, cumulative effects of such leaks may be
1463 #. severe enough for some programs that disabling asynchronous cancelation
1464 #. for the duration of calls to such functions may be required.
1465 #. type: Plain text
1466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1468 msgid ""
1469 "We do not mark these functions as MT-Unsafe, however, because functions that "
1470 "modify this data structure are all marked with I<const:sigintr> and regarded "
1471 "as unsafe. Being unsafe, the latter are not to be called when multiple "
1472 "threads are running or asynchronous signals are enabled, and so the data "
1473 "structure can be considered effectively constant in these contexts, which "
1474 "makes the former safe."
1475 msgstr ""
1476 "Nous ne marquons pas ces fonctions comme I<MT-Unsafe> néanmoins, car les "
1477 "fonctions qui modifient cette structure de données sont toutes marquées "
1478 "I<const:sigintr> et considérées comme non sûres. Étant non sûres, ces "
1479 "dernières ne doivent pas être appelées quand plusieurs threads sont en "
1480 "exécution ou lorsque les signaux asynchrones sont activés, et ainsi "
1481 "l'environnement peut être considéré comme effectivement constant dans ces "
1482 "contextes, ce qui rend les premières fonctions sûres."
1483
1484 #. type: TP
1485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1487 #, no-wrap
1488 msgid "I<cwd>"
1489 msgstr "I<cwd>"
1490
1491 #. type: Plain text
1492 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1493 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1494 msgid ""
1495 "Functions marked with I<cwd> as an MT-Safety issue may temporarily change "
1496 "the current working directory during their execution, which may cause "
1497 "relative pathnames to be resolved in unexpected ways in other threads or "
1498 "within asynchronous signal or cancelation handlers."
1499 msgstr ""
1500 "Les fonctions marquées I<cwd> en tant que problème d'état MT-Safe peuvent "
1501 "changer temporairement le répertoire actif actuel durant leur exécution ce "
1502 "qui fait que les noms de chemin relatifs peuvent être résolus de façon "
1503 "inattendue dans les autres threads ou dans les gestionnaires de signal ou "
1504 "d'annulation asynchrones."
1505
1506 #
1507 #. or AS-Unsafe,
1508 #. .TP
1509 #. .I !posix
1510 #. This remark, as an MT-Safety, AS-Safety or AC-Safety
1511 #. note to a function,
1512 #. indicates the safety status of the function is known to differ
1513 #. from the specified status in the POSIX standard.
1514 #. For example, POSIX does not require a function to be Safe,
1515 #. but our implementation is, or vice-versa.
1516 #. For the time being, the absence of this remark does not imply the safety
1517 #. properties we documented are identical to those mandated by POSIX for
1518 #. the corresponding functions.
1519 #. type: Plain text
1520 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1521 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1522 msgid ""
1523 "This is not enough of a reason to mark so-marked functions as MT-Unsafe, but "
1524 "when this behavior is optional (e.g., B<nftw>(3) with B<FTW_CHDIR>), "
1525 "avoiding the option may be a good alternative to using full pathnames or "
1526 "file descriptor-relative (e.g., B<openat>(2)) system calls."
1527 msgstr ""
1528 "Ce n'est pas une raison suffisante pour marquer comme I<MT-Unsafe> les "
1529 "fonctions ainsi marquées, mais quand ce comportement est optionnel (par "
1530 "exemple, B<nftw>(3) avec B<FTW_CHDIR>), éviter l'option peut être une bonne "
1531 "alternative à l'utilisation des noms de chemin complets ou d'appels système "
1532 "relatifs au descripteur de fichier (par exemple, B<openat>(2))."
1533
1534 #. type: TP
1535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1537 #, no-wrap
1538 msgid "I<:identifier>"
1539 msgstr "I<:identifiant>"
1540
1541 #. type: Plain text
1542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1544 msgid ""
1545 "Annotations may sometimes be followed by identifiers, intended to group "
1546 "several functions that, for example, access the data structures in an unsafe "
1547 "way, as in I<race> and I<const>, or to provide more specific information, "
1548 "such as naming a signal in a function marked with I<sig>. It is envisioned "
1549 "that it may be applied to I<lock> and I<corrupt> as well in the future."
1550 msgstr ""
1551 "Les annotations peuvent parfois être suivies par des identifiants destinés à "
1552 "regrouper plusieurs fonctions qui, par exemple accèdent aux structures de "
1553 "données de façon non sûre, comme dans I<race> et I<const>, ou pour fournir "
1554 "des informations plus spécifiques, comme le nom d'un signal dans une "
1555 "fonction marquée I<sig>. Il est envisagé que cela pourrait aussi être "
1556 "appliqué à l'avenir à I<lock> et I<corrupt>."
1557
1558 #. type: Plain text
1559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1561 msgid ""
1562 "In most cases, the identifier will name a set of functions, but it may name "
1563 "global objects or function arguments, or identifiable properties or logical "
1564 "components associated with them, with a notation such as, for example, "
1565 "I<:buf(arg)> to denote a buffer associated with the argument I<arg>, or "
1566 "I<:tcattr(fd)> to denote the terminal attributes of a file descriptor I<fd>."
1567 msgstr ""
1568 "Dans la plupart des cas, l'identifiant désignera un ensemble de fonctions, "
1569 "mais il peut désigner des objets globaux ou des paramètres de fonction, des "
1570 "propriétés identifiables ou des composants logiques qui leur sont associés, "
1571 "avec une notation du type, par exemple, I<:buf(param)> pour désigner un "
1572 "tampon associé au paramètre I<param>, ou I<:tcattr(fd)> pour désigner les "
1573 "attributs de terminal d'un descripteur de fichier I<fd>."
1574
1575 #. type: Plain text
1576 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1577 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1578 msgid ""
1579 "The most common use for identifiers is to provide logical groups of "
1580 "functions and arguments that need to be protected by the same "
1581 "synchronization primitive in order to ensure safe operation in a given "
1582 "context."
1583 msgstr ""
1584 "L'utilisation la plus courante des identifiants est de fournir des groupes "
1585 "logiques de fonctions et de paramètres qui nécessitent d'être protégés par "
1586 "la même primitive de synchronisation afin d'assurer une opération sûre dans "
1587 "un contexte donné."
1588
1589 #. type: TP
1590 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1591 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1592 #, no-wrap
1593 msgid "I</condition>"
1594 msgstr "I</condition>"
1595
1596 #. Such conditions as
1597 #. .I /hurd
1598 #. or
1599 #. .I /!linux!bsd
1600 #. indicate the preceding marker only
1601 #. applies when the underlying kernel is the HURD,
1602 #. or when it is neither Linux nor a BSD kernel, respectively.
1603 #. type: Plain text
1604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1606 msgid ""
1607 "Some safety annotations may be conditional, in that they only apply if a "
1608 "boolean expression involving arguments, global variables or even the "
1609 "underlying kernel evaluates to true. For example, I</!ps> and I</"
1610 "one_per_line> indicate the preceding marker only applies when argument I<ps> "
1611 "is NULL, or global variable I<one_per_line> is nonzero."
1612 msgstr ""
1613 "Certaines annotations de sûreté peuvent être conditionnelles, dans le sens "
1614 "qu'elles ne s'appliquent que si une expression booléenne comprenant des "
1615 "paramètres, des variables globales ou même le noyau sous-jacent est évaluée "
1616 "vraie. Par exemple, I</!ps> et I</one_per_line> indiquent que le marqueur "
1617 "qui précède ne s'applique que si l'argument I<ps> est NULL ou la variable "
1618 "globale I<one_per_line> est différente de zéro.'"
1619
1620 #. type: Plain text
1621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1623 msgid ""
1624 "When all marks that render a function unsafe are adorned with such "
1625 "conditions, and none of the named conditions hold, then the function can be "
1626 "regarded as safe."
1627 msgstr ""
1628 "Quand toutes les marques qui rendent non sûre une fonction sont agrémentées "
1629 "de conditions de ce type, et qu'aucune des conditions nommées ne tient, "
1630 "alors, la fonction peut être considérée comme sûre."
1631
1632 #. type: SH
1633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1635 #, no-wrap
1636 msgid "SEE ALSO"
1637 msgstr "VOIR AUSSI"
1638
1639 #. type: Plain text
1640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1642 msgid "B<pthreads>(7), B<signal-safety>(7)"
1643 msgstr "B<pthreads>(7), B<signal-safety>(7)"
1644
1645 #. type: TH
1646 #: debian-trixie
1647 #, no-wrap
1648 msgid "2024-05-02"
1649 msgstr "2 mai 2024"
1650
1651 #. type: TH
1652 #: debian-trixie
1653 #, no-wrap
1654 msgid "Linux man-pages 6.9.1"
1655 msgstr "Pages du manuel de Linux 6.9.1"
1656
1657 #. type: Plain text
1658 #: debian-trixie
1659 msgid ""
1660 "The function marked with I<hostid> as an MT-Safety issue reads from the "
1661 "system-wide data structures that hold the \"host ID\" of the machine. These "
1662 "data structures cannot generally be modified atomically. Since it is "
1663 "expected that the \"host ID\" will not normally change, the function that "
1664 "reads from it (B<gethostid>(3)) is regarded as safe, whereas the function "
1665 "that modifies it (B<sethostid>(3)) is marked with I<const:hostid>, "
1666 "indicating it may require special care if it is to be called. In this "
1667 "specific case, the special care amounts to system-wide (not merely intra-"
1668 "process) coordination."
1669 msgstr ""
1670 "Les fonctions marquées I<hostid> en tant que problème d'état MT-Safe lisent "
1671 "à partir des structures de données communes à tout le système qui "
1672 "contiennent « l'ID d'hôte » de la machine. Ces structures de données ne "
1673 "peuvent pas en général être modifiées automatiquement. Dans la mesure où il "
1674 "est attendu que normalement « l'ID d'hôte » ne change pas, la fonction qui "
1675 "lit à partir d'elle (B<gethostid>(3)) est considérée comme sûre, tandis que "
1676 "la fonction qui la modifie (B<sethostid>(3)) est marquée I<const:hostid>, "
1677 "indiquant qu'elle requiert une attention particulière si elle doit être "
1678 "appelée. Dans ce cas particulier, cette attention particulière équivaut à "
1679 "une coordination à l'échelle de l'ensemble du système (pas seulement à "
1680 "l'intérieur du processus)."
1681
1682 #. type: TH
1683 #: fedora-44 fedora-rawhide
1684 #, no-wrap
1685 msgid "2024-11-17"
1686 msgstr "17 novembre 2024"
1687
1688 #. type: TH
1689 #: fedora-44 fedora-rawhide
1690 #, no-wrap
1691 msgid "Linux man-pages 6.13"
1692 msgstr "Pages du manuel de Linux 6.13"
1693
1694 #. type: TH
1695 #: mageia-cauldron
1696 #, no-wrap
1697 msgid "Linux man-pages 6.17"
1698 msgstr "Pages du manuel de Linux 6.17"
1699
1700 #. type: TH
1701 #: opensuse-leap-16-1 opensuse-tumbleweed
1702 #, no-wrap
1703 msgid "Linux man-pages (unreleased)"
1704 msgstr "Pages du manuel de Linux (non publiées)"