| 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-2024. |
| 20 |
msgid "" |
| 21 |
msgstr "" |
| 22 |
"Project-Id-Version: manpages-l10n 4.22.0\n" |
| 23 |
"POT-Creation-Date: 2026-06-05 06:38+0200\n" |
| 24 |
"PO-Revision-Date: 2024-04-22 08:23+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_getattr_default_np" |
| 39 |
msgstr "pthread_getattr_default_np" |
| 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_getattr_default_np, pthread_setattr_default_np, - get or set default " |
| 66 |
"thread-creation attributes" |
| 67 |
msgstr "" |
| 68 |
"pthread_attr_setaffinity_np, pthread_attr_getaffinity_np – Définir ou " |
| 69 |
"obtenir les attributs de création de thread" |
| 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 "" |
| 96 |
"B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" |
| 97 |
"B<#include E<lt>pthread.hE<gt>>\n" |
| 98 |
msgstr "" |
| 99 |
"B<#define _GNU_SOURCE> /* Consultez feature_test_macros(7) */\n" |
| 100 |
"B<#include E<lt>pthread.hE<gt>>\n" |
| 101 |
|
| 102 |
#. type: Plain text |
| 103 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 104 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 105 |
#, no-wrap |
| 106 |
msgid "" |
| 107 |
"B<int pthread_getattr_default_np(pthread_attr_t *>I<attr>B<);>\n" |
| 108 |
"B<int pthread_setattr_default_np(const pthread_attr_t *>I<attr>B<);>\n" |
| 109 |
msgstr "" |
| 110 |
"B<int pthread_getattr_default_np(pthread_attr_t *>I<attr>B<);>\n" |
| 111 |
"B<int pthread_setattr_default_np(const pthread_attr_t *>I<attr>B<);>\n" |
| 112 |
|
| 113 |
#. type: SH |
| 114 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 115 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 116 |
#, no-wrap |
| 117 |
msgid "DESCRIPTION" |
| 118 |
msgstr "DESCRIPTION" |
| 119 |
|
| 120 |
#. type: Plain text |
| 121 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 122 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 123 |
msgid "" |
| 124 |
"The B<pthread_setattr_default_np>() function sets the default attributes " |
| 125 |
"used for creation of a new thread\\[em]that is, the attributes that are used " |
| 126 |
"when B<pthread_create>(3) is called with a second argument that is NULL. " |
| 127 |
"The default attributes are set using the attributes supplied in I<*attr>, a " |
| 128 |
"previously initialized thread attributes object. Note the following details " |
| 129 |
"about the supplied attributes object:" |
| 130 |
msgstr "" |
| 131 |
"La fonction B<pthread_setattr_default_np>() règle les attributs par défaut " |
| 132 |
"qui sont utilisés pour créer un nouveau thread \\[em]\\ c'est-à -dire les " |
| 133 |
"attributs qui sont utilisés quand B<pthread_create>(3) est appelé avec un " |
| 134 |
"second attribut de valeur NULL. Les attributs par défaut sont réglés avec " |
| 135 |
"les attributs fournis par I<*attr>, un objet d'attributs de thread " |
| 136 |
"initialisé auparavant. Veuillez noter les détails suivants sur l'objet " |
| 137 |
"d'attributs fourni :" |
| 138 |
|
| 139 |
#. type: IP |
| 140 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 141 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 142 |
#, no-wrap |
| 143 |
msgid "\\[bu]" |
| 144 |
msgstr "-" |
| 145 |
|
| 146 |
#. type: Plain text |
| 147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 148 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 149 |
msgid "The attribute settings in the object must be valid." |
| 150 |
msgstr "Les réglages d'attributs dans l'objet doivent être valables." |
| 151 |
|
| 152 |
#. type: Plain text |
| 153 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 154 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 155 |
msgid "The I<stack address> attribute must not be set in the object." |
| 156 |
msgstr "L'attribut I<adresse de pile> ne doit pas être défini dans l'objet." |
| 157 |
|
| 158 |
#. type: Plain text |
| 159 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 160 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 161 |
msgid "" |
| 162 |
"Setting the I<stack size> attribute to zero means leave the default stack " |
| 163 |
"size unchanged." |
| 164 |
msgstr "" |
| 165 |
"Régler l'attribut I<taille de pile> à zéro signifie laisser inchangée la " |
| 166 |
"taille de pile par défaut." |
| 167 |
|
| 168 |
#. type: Plain text |
| 169 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 170 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 171 |
msgid "" |
| 172 |
"The B<pthread_getattr_default_np>() function initializes the thread " |
| 173 |
"attributes object referred to by I<attr> so that it contains the default " |
| 174 |
"attributes used for thread creation." |
| 175 |
msgstr "" |
| 176 |
"La fonction B<pthread_getattr_default_np>() initialise l'objet d'attributs " |
| 177 |
"de thread auquel I<attr> fait référence de telle sorte qu'il contienne les " |
| 178 |
"valeurs d'attributs par défaut utilisées pour la création du thread." |
| 179 |
|
| 180 |
#. type: SH |
| 181 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 182 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 183 |
#, no-wrap |
| 184 |
msgid "ERRORS" |
| 185 |
msgstr "ERREURS" |
| 186 |
|
| 187 |
#. type: TP |
| 188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 189 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 190 |
#, no-wrap |
| 191 |
msgid "B<EINVAL>" |
| 192 |
msgstr "B<EINVAL>" |
| 193 |
|
| 194 |
#. type: Plain text |
| 195 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 196 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 197 |
msgid "" |
| 198 |
"(B<pthread_setattr_default_np>()) One of the attribute settings in I<attr> " |
| 199 |
"is invalid, or the stack address attribute is set in I<attr>." |
| 200 |
msgstr "" |
| 201 |
"(B<pthread_setattr_default_np>()) Un des réglages d'attribut dans I<attr> " |
| 202 |
"n'est pas valable ou l'attribut I<adresse de pile> est défini dans I<attr>." |
| 203 |
|
| 204 |
#. type: TP |
| 205 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 206 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 207 |
#, no-wrap |
| 208 |
msgid "B<ENOMEM>" |
| 209 |
msgstr "B<ENOMEM>" |
| 210 |
|
| 211 |
#. Can happen (but unlikely) while trying to allocate memory for cpuset |
| 212 |
#. type: Plain text |
| 213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 214 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 215 |
msgid "(B<pthread_setattr_default_np>()) Insufficient memory." |
| 216 |
msgstr "(B<pthread_setattr_default_np>()) Il n'y a pas assez de mémoire." |
| 217 |
|
| 218 |
#. type: SH |
| 219 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 220 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 221 |
#, no-wrap |
| 222 |
msgid "ATTRIBUTES" |
| 223 |
msgstr "ATTRIBUTS" |
| 224 |
|
| 225 |
#. type: Plain text |
| 226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 228 |
msgid "" |
| 229 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 230 |
msgstr "" |
| 231 |
"Pour une explication des termes utilisés dans cette section, consulter " |
| 232 |
"B<attributes>(7)." |
| 233 |
|
| 234 |
#. type: tbl table |
| 235 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 236 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 237 |
#, no-wrap |
| 238 |
msgid "Interface" |
| 239 |
msgstr "Interface" |
| 240 |
|
| 241 |
#. type: tbl table |
| 242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 243 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 244 |
#, no-wrap |
| 245 |
msgid "Attribute" |
| 246 |
msgstr "Attribut" |
| 247 |
|
| 248 |
#. type: tbl table |
| 249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 251 |
#, no-wrap |
| 252 |
msgid "Value" |
| 253 |
msgstr "Valeur" |
| 254 |
|
| 255 |
#. type: tbl table |
| 256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 258 |
#, no-wrap |
| 259 |
msgid ".na\n" |
| 260 |
msgstr ".na\n" |
| 261 |
|
| 262 |
#. type: tbl table |
| 263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 264 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 265 |
#, no-wrap |
| 266 |
msgid ".nh\n" |
| 267 |
msgstr ".nh\n" |
| 268 |
|
| 269 |
#. type: tbl table |
| 270 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 271 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 272 |
#, no-wrap |
| 273 |
msgid "" |
| 274 |
"B<pthread_getattr_default_np>(),\n" |
| 275 |
"B<pthread_setattr_default_np>()" |
| 276 |
msgstr "" |
| 277 |
"B<pthread_getattr_default_np>(),\n" |
| 278 |
"B<pthread_setattr_default_np>()" |
| 279 |
|
| 280 |
#. type: tbl table |
| 281 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 282 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 283 |
#, no-wrap |
| 284 |
msgid "Thread safety" |
| 285 |
msgstr "Sécurité des threads" |
| 286 |
|
| 287 |
#. type: tbl table |
| 288 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 289 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 290 |
#, no-wrap |
| 291 |
msgid "MT-Safe" |
| 292 |
msgstr "MT-Safe" |
| 293 |
|
| 294 |
#. type: SH |
| 295 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 296 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 297 |
#, no-wrap |
| 298 |
msgid "STANDARDS" |
| 299 |
msgstr "NORMES" |
| 300 |
|
| 301 |
#. type: Plain text |
| 302 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 303 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 304 |
msgid "GNU; hence the suffix \"_np\" (nonportable) in their names." |
| 305 |
msgstr "GNU ; c'est la raison du suffixe « _np » (non portable) dans leur nom." |
| 306 |
|
| 307 |
#. type: SH |
| 308 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 309 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 310 |
#, no-wrap |
| 311 |
msgid "HISTORY" |
| 312 |
msgstr "HISTORIQUE" |
| 313 |
|
| 314 |
#. type: Plain text |
| 315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 316 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 317 |
msgid "glibc 2.18." |
| 318 |
msgstr "glibc 2.18." |
| 319 |
|
| 320 |
#. type: SH |
| 321 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 322 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 323 |
#, no-wrap |
| 324 |
msgid "EXAMPLES" |
| 325 |
msgstr "EXEMPLES" |
| 326 |
|
| 327 |
#. type: Plain text |
| 328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 330 |
msgid "" |
| 331 |
"The program below uses B<pthread_getattr_default_np>() to fetch the default " |
| 332 |
"thread-creation attributes and then displays various settings from the " |
| 333 |
"returned thread attributes object. When running the program, we see the " |
| 334 |
"following output:" |
| 335 |
msgstr "" |
| 336 |
"Le programme ci-dessous utilise B<pthread_getattr_default_np>() pour " |
| 337 |
"récupérer les attributs par défaut de création de thread, puis affiche " |
| 338 |
"divers réglages de l'objet renvoyé d'attributs de thread. Lors de " |
| 339 |
"l'exécution du programme, la sortie suivante est affichée :" |
| 340 |
|
| 341 |
#. type: Plain text |
| 342 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 343 |
#: opensuse-tumbleweed |
| 344 |
#, fuzzy, no-wrap |
| 345 |
#| msgid "" |
| 346 |
#| "$ B<./a.out>\n" |
| 347 |
#| "Stack size: 8388608\n" |
| 348 |
#| "Guard size: 4096\n" |
| 349 |
#| "Scheduling policy: SCHED_OTHER\n" |
| 350 |
#| "Scheduling priority: 0\n" |
| 351 |
#| "Detach state: JOINABLE\n" |
| 352 |
#| "Inherit scheduler: INHERIT\n" |
| 353 |
msgid "" |
| 354 |
"$B< ./a.out>;\n" |
| 355 |
"Stack size: 8388608\n" |
| 356 |
"Guard size: 4096\n" |
| 357 |
"Scheduling policy: SCHED_OTHER\n" |
| 358 |
"Scheduling priority: 0\n" |
| 359 |
"Detach state: JOINABLE\n" |
| 360 |
"Inherit scheduler: INHERIT\n" |
| 361 |
msgstr "" |
| 362 |
"$ B<./a.out>\n" |
| 363 |
"Stack size: 8388608\n" |
| 364 |
"Guard size: 4096\n" |
| 365 |
"Scheduling policy: SCHED_OTHER\n" |
| 366 |
"Scheduling priority: 0\n" |
| 367 |
"Detach state: JOINABLE\n" |
| 368 |
"Inherit scheduler: INHERIT\n" |
| 369 |
|
| 370 |
#. type: SS |
| 371 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 372 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 373 |
#, no-wrap |
| 374 |
msgid "Program source" |
| 375 |
msgstr "Source du programme" |
| 376 |
|
| 377 |
#. type: Plain text |
| 378 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 379 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 380 |
#, fuzzy, no-wrap |
| 381 |
#| msgid "" |
| 382 |
#| "#define _GNU_SOURCE\n" |
| 383 |
#| "#include E<lt>err.hE<gt>\n" |
| 384 |
#| "#include E<lt>errno.hE<gt>\n" |
| 385 |
#| "#include E<lt>pthread.hE<gt>\n" |
| 386 |
#| "#include E<lt>stdio.hE<gt>\n" |
| 387 |
#| "#include E<lt>stdlib.hE<gt>\n" |
| 388 |
#| "\\&\n" |
| 389 |
#| "static void\n" |
| 390 |
#| "display_pthread_attr(pthread_attr_t *attr)\n" |
| 391 |
#| "{\n" |
| 392 |
#| " int s;\n" |
| 393 |
#| " size_t stacksize;\n" |
| 394 |
#| " size_t guardsize;\n" |
| 395 |
#| " int policy;\n" |
| 396 |
#| " struct sched_param schedparam;\n" |
| 397 |
#| " int detachstate;\n" |
| 398 |
#| " int inheritsched;\n" |
| 399 |
#| "\\&\n" |
| 400 |
#| " s = pthread_attr_getstacksize(attr, &stacksize);\n" |
| 401 |
#| " if (s != 0)\n" |
| 402 |
#| " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n" |
| 403 |
#| " printf(\"Stack size: %zu\\en\", stacksize);\n" |
| 404 |
#| "\\&\n" |
| 405 |
#| " s = pthread_attr_getguardsize(attr, &guardsize);\n" |
| 406 |
#| " if (s != 0)\n" |
| 407 |
#| " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n" |
| 408 |
#| " printf(\"Guard size: %zu\\en\", guardsize);\n" |
| 409 |
#| "\\&\n" |
| 410 |
#| " s = pthread_attr_getschedpolicy(attr, &policy);\n" |
| 411 |
#| " if (s != 0)\n" |
| 412 |
#| " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n" |
| 413 |
#| " printf(\"Scheduling policy: %s\\en\",\n" |
| 414 |
#| " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" |
| 415 |
#| " (policy == SCHED_RR) ? \"SCHED_RR\" :\n" |
| 416 |
#| " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n" |
| 417 |
#| "\\&\n" |
| 418 |
#| " s = pthread_attr_getschedparam(attr, &schedparam);\n" |
| 419 |
#| " if (s != 0)\n" |
| 420 |
#| " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n" |
| 421 |
#| " printf(\"Scheduling priority: %d\\en\", schedparam.sched_priority);\n" |
| 422 |
#| "\\&\n" |
| 423 |
#| " s = pthread_attr_getdetachstate(attr, &detachstate);\n" |
| 424 |
#| " if (s != 0)\n" |
| 425 |
#| " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n" |
| 426 |
#| " printf(\"Detach state: %s\\en\",\n" |
| 427 |
#| " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n" |
| 428 |
#| " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n" |
| 429 |
#| " \"???\");\n" |
| 430 |
#| "\\&\n" |
| 431 |
#| " s = pthread_attr_getinheritsched(attr, &inheritsched);\n" |
| 432 |
#| " if (s != 0)\n" |
| 433 |
#| " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n" |
| 434 |
#| " printf(\"Inherit scheduler: %s\\en\",\n" |
| 435 |
#| " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" |
| 436 |
#| " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" |
| 437 |
#| " \"???\");\n" |
| 438 |
#| "}\n" |
| 439 |
#| "\\&\n" |
| 440 |
#| "int\n" |
| 441 |
#| "main(void)\n" |
| 442 |
#| "{\n" |
| 443 |
#| " int s;\n" |
| 444 |
#| " pthread_attr_t attr;\n" |
| 445 |
#| "\\&\n" |
| 446 |
#| " s = pthread_getattr_default_np(&attr);\n" |
| 447 |
#| " if (s != 0)\n" |
| 448 |
#| " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n" |
| 449 |
#| "\\&\n" |
| 450 |
#| " display_pthread_attr(&attr);\n" |
| 451 |
#| "\\&\n" |
| 452 |
#| " exit(EXIT_SUCCESS);\n" |
| 453 |
#| "}\n" |
| 454 |
msgid "" |
| 455 |
"#define _GNU_SOURCE\n" |
| 456 |
"#include E<lt>err.hE<gt>\n" |
| 457 |
"#include E<lt>pthread.hE<gt>\n" |
| 458 |
"#include E<lt>sched.hE<gt>\n" |
| 459 |
"#include E<lt>stdio.hE<gt>\n" |
| 460 |
"#include E<lt>stdlib.hE<gt>\n" |
| 461 |
"\\&\n" |
| 462 |
"static void\n" |
| 463 |
"display_pthread_attr(pthread_attr_t *attr)\n" |
| 464 |
"{\n" |
| 465 |
" int s;\n" |
| 466 |
" size_t stacksize;\n" |
| 467 |
" size_t guardsize;\n" |
| 468 |
" int policy;\n" |
| 469 |
" struct sched_param schedparam;\n" |
| 470 |
" int detachstate;\n" |
| 471 |
" int inheritsched;\n" |
| 472 |
"\\&\n" |
| 473 |
" s = pthread_attr_getstacksize(attr, &stacksize);\n" |
| 474 |
" if (s != 0)\n" |
| 475 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n" |
| 476 |
" printf(\"Stack size: %zu\\[rs]n\", stacksize);\n" |
| 477 |
"\\&\n" |
| 478 |
" s = pthread_attr_getguardsize(attr, &guardsize);\n" |
| 479 |
" if (s != 0)\n" |
| 480 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n" |
| 481 |
" printf(\"Guard size: %zu\\[rs]n\", guardsize);\n" |
| 482 |
"\\&\n" |
| 483 |
" s = pthread_attr_getschedpolicy(attr, &policy);\n" |
| 484 |
" if (s != 0)\n" |
| 485 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n" |
| 486 |
" printf(\"Scheduling policy: %s\\[rs]n\",\n" |
| 487 |
" (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" |
| 488 |
" (policy == SCHED_RR) ? \"SCHED_RR\" :\n" |
| 489 |
" (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n" |
| 490 |
"\\&\n" |
| 491 |
" s = pthread_attr_getschedparam(attr, &schedparam);\n" |
| 492 |
" if (s != 0)\n" |
| 493 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n" |
| 494 |
" printf(\"Scheduling priority: %d\\[rs]n\", schedparam.sched_priority);\n" |
| 495 |
"\\&\n" |
| 496 |
" s = pthread_attr_getdetachstate(attr, &detachstate);\n" |
| 497 |
" if (s != 0)\n" |
| 498 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n" |
| 499 |
" printf(\"Detach state: %s\\[rs]n\",\n" |
| 500 |
" (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n" |
| 501 |
" (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n" |
| 502 |
" \"???\");\n" |
| 503 |
"\\&\n" |
| 504 |
" s = pthread_attr_getinheritsched(attr, &inheritsched);\n" |
| 505 |
" if (s != 0)\n" |
| 506 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n" |
| 507 |
" printf(\"Inherit scheduler: %s\\[rs]n\",\n" |
| 508 |
" (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" |
| 509 |
" (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" |
| 510 |
" \"???\");\n" |
| 511 |
"}\n" |
| 512 |
"\\&\n" |
| 513 |
"int\n" |
| 514 |
"main(void)\n" |
| 515 |
"{\n" |
| 516 |
" int s;\n" |
| 517 |
" pthread_attr_t attr;\n" |
| 518 |
"\\&\n" |
| 519 |
" s = pthread_getattr_default_np(&attr);\n" |
| 520 |
" if (s != 0)\n" |
| 521 |
" errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n" |
| 522 |
"\\&\n" |
| 523 |
" display_pthread_attr(&attr);\n" |
| 524 |
"\\&\n" |
| 525 |
" exit(EXIT_SUCCESS);\n" |
| 526 |
"}\n" |
| 527 |
msgstr "" |
| 528 |
"#define _GNU_SOURCE\n" |
| 529 |
"#include E<lt>err.hE<gt>\n" |
| 530 |
"#include E<lt>errno.hE<gt>\n" |
| 531 |
"#include E<lt>pthread.hE<gt>\n" |
| 532 |
"#include E<lt>stdio.hE<gt>\n" |
| 533 |
"#include E<lt>stdlib.hE<gt>\n" |
| 534 |
"\\&\n" |
| 535 |
"static void\n" |
| 536 |
"display_pthread_attr(pthread_attr_t *attr)\n" |
| 537 |
"{\n" |
| 538 |
" int s;\n" |
| 539 |
" size_t stacksize;\n" |
| 540 |
" size_t guardsize;\n" |
| 541 |
" int policy;\n" |
| 542 |
" struct sched_param schedparam;\n" |
| 543 |
" int detachstate;\n" |
| 544 |
" int inheritsched;\n" |
| 545 |
"\\&\n" |
| 546 |
" s = pthread_attr_getstacksize(attr, &stacksize);\n" |
| 547 |
" if (s != 0)\n" |
| 548 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n" |
| 549 |
" printf(\"Stack size: %zu\\en\", stacksize);\n" |
| 550 |
"\\&\n" |
| 551 |
" s = pthread_attr_getguardsize(attr, &guardsize);\n" |
| 552 |
" if (s != 0)\n" |
| 553 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n" |
| 554 |
" printf(\"Guard size: %zu\\en\", guardsize);\n" |
| 555 |
"\\&\n" |
| 556 |
" s = pthread_attr_getschedpolicy(attr, &policy);\n" |
| 557 |
" if (s != 0)\n" |
| 558 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n" |
| 559 |
" printf(\"Scheduling policy: %s\\en\",\n" |
| 560 |
" (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" |
| 561 |
" (policy == SCHED_RR) ? \"SCHED_RR\" :\n" |
| 562 |
" (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n" |
| 563 |
"\\&\n" |
| 564 |
" s = pthread_attr_getschedparam(attr, &schedparam);\n" |
| 565 |
" if (s != 0)\n" |
| 566 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n" |
| 567 |
" printf(\"Scheduling priority: %d\\en\", schedparam.sched_priority);\n" |
| 568 |
"\\&\n" |
| 569 |
" s = pthread_attr_getdetachstate(attr, &detachstate);\n" |
| 570 |
" if (s != 0)\n" |
| 571 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n" |
| 572 |
" printf(\"Detach state: %s\\en\",\n" |
| 573 |
" (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n" |
| 574 |
" (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n" |
| 575 |
" \"???\");\n" |
| 576 |
"\\&\n" |
| 577 |
" s = pthread_attr_getinheritsched(attr, &inheritsched);\n" |
| 578 |
" if (s != 0)\n" |
| 579 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n" |
| 580 |
" printf(\"Inherit scheduler: %s\\en\",\n" |
| 581 |
" (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" |
| 582 |
" (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" |
| 583 |
" \"???\");\n" |
| 584 |
"}\n" |
| 585 |
"\\&\n" |
| 586 |
"int\n" |
| 587 |
"main(void)\n" |
| 588 |
"{\n" |
| 589 |
" int s;\n" |
| 590 |
" pthread_attr_t attr;\n" |
| 591 |
"\\&\n" |
| 592 |
" s = pthread_getattr_default_np(&attr);\n" |
| 593 |
" if (s != 0)\n" |
| 594 |
" errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n" |
| 595 |
"\\&\n" |
| 596 |
" display_pthread_attr(&attr);\n" |
| 597 |
"\\&\n" |
| 598 |
" exit(EXIT_SUCCESS);\n" |
| 599 |
"}\n" |
| 600 |
|
| 601 |
#. SRC END |
| 602 |
#. type: SH |
| 603 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 604 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 605 |
#, no-wrap |
| 606 |
msgid "SEE ALSO" |
| 607 |
msgstr "VOIR AUSSI" |
| 608 |
|
| 609 |
#. type: Plain text |
| 610 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 611 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 612 |
msgid "" |
| 613 |
"B<pthread_attr_getaffinity_np>(3), B<pthread_attr_getdetachstate>(3), " |
| 614 |
"B<pthread_attr_getguardsize>(3), B<pthread_attr_getinheritsched>(3), " |
| 615 |
"B<pthread_attr_getschedparam>(3), B<pthread_attr_getschedpolicy>(3), " |
| 616 |
"B<pthread_attr_getscope>(3), B<pthread_attr_getstack>(3), " |
| 617 |
"B<pthread_attr_getstackaddr>(3), B<pthread_attr_getstacksize>(3), " |
| 618 |
"B<pthread_attr_init>(3), B<pthread_create>(3), B<pthreads>(7)" |
| 619 |
msgstr "" |
| 620 |
"B<pthread_attr_getaffinity_np>(3), B<pthread_attr_getdetachstate>(3), " |
| 621 |
"B<pthread_attr_getguardsize>(3), B<pthread_attr_getinheritsched>(3), " |
| 622 |
"B<pthread_attr_getschedparam>(3), B<pthread_attr_getschedpolicy>(3), " |
| 623 |
"B<pthread_attr_getscope>(3), B<pthread_attr_getstack>(3), " |
| 624 |
"B<pthread_attr_getstackaddr>(3), B<pthread_attr_getstacksize>(3), " |
| 625 |
"B<pthread_attr_init>(3), B<pthread_create>(3), B<pthreads>(7)" |
| 626 |
|
| 627 |
#. type: TH |
| 628 |
#: debian-trixie |
| 629 |
#, no-wrap |
| 630 |
msgid "2024-06-15" |
| 631 |
msgstr "15 juin 2024" |
| 632 |
|
| 633 |
#. type: TH |
| 634 |
#: debian-trixie |
| 635 |
#, no-wrap |
| 636 |
msgid "Linux man-pages 6.9.1" |
| 637 |
msgstr "Pages du manuel de Linux 6.9.1" |
| 638 |
|
| 639 |
#. type: Plain text |
| 640 |
#: debian-trixie |
| 641 |
msgid "POSIX threads library (I<libpthread>, I<-lpthread>)" |
| 642 |
msgstr "Bibliothèque de threads POSIX (I<libpthread>, I<-lpthread>)" |
| 643 |
|
| 644 |
#. type: Plain text |
| 645 |
#: debian-trixie fedora-44 fedora-rawhide |
| 646 |
#, no-wrap |
| 647 |
msgid "" |
| 648 |
"$ B<./a.out>\n" |
| 649 |
"Stack size: 8388608\n" |
| 650 |
"Guard size: 4096\n" |
| 651 |
"Scheduling policy: SCHED_OTHER\n" |
| 652 |
"Scheduling priority: 0\n" |
| 653 |
"Detach state: JOINABLE\n" |
| 654 |
"Inherit scheduler: INHERIT\n" |
| 655 |
msgstr "" |
| 656 |
"$ B<./a.out>\n" |
| 657 |
"Stack size: 8388608\n" |
| 658 |
"Guard size: 4096\n" |
| 659 |
"Scheduling policy: SCHED_OTHER\n" |
| 660 |
"Scheduling priority: 0\n" |
| 661 |
"Detach state: JOINABLE\n" |
| 662 |
"Inherit scheduler: INHERIT\n" |
| 663 |
|
| 664 |
#. type: Plain text |
| 665 |
#: debian-trixie |
| 666 |
#, fuzzy, no-wrap |
| 667 |
#| msgid "" |
| 668 |
#| "#define _GNU_SOURCE\n" |
| 669 |
#| "#include E<lt>err.hE<gt>\n" |
| 670 |
#| "#include E<lt>errno.hE<gt>\n" |
| 671 |
#| "#include E<lt>pthread.hE<gt>\n" |
| 672 |
#| "#include E<lt>stdio.hE<gt>\n" |
| 673 |
#| "#include E<lt>stdlib.hE<gt>\n" |
| 674 |
#| "\\&\n" |
| 675 |
#| "static void\n" |
| 676 |
#| "display_pthread_attr(pthread_attr_t *attr)\n" |
| 677 |
#| "{\n" |
| 678 |
#| " int s;\n" |
| 679 |
#| " size_t stacksize;\n" |
| 680 |
#| " size_t guardsize;\n" |
| 681 |
#| " int policy;\n" |
| 682 |
#| " struct sched_param schedparam;\n" |
| 683 |
#| " int detachstate;\n" |
| 684 |
#| " int inheritsched;\n" |
| 685 |
#| "\\&\n" |
| 686 |
#| " s = pthread_attr_getstacksize(attr, &stacksize);\n" |
| 687 |
#| " if (s != 0)\n" |
| 688 |
#| " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n" |
| 689 |
#| " printf(\"Stack size: %zu\\en\", stacksize);\n" |
| 690 |
#| "\\&\n" |
| 691 |
#| " s = pthread_attr_getguardsize(attr, &guardsize);\n" |
| 692 |
#| " if (s != 0)\n" |
| 693 |
#| " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n" |
| 694 |
#| " printf(\"Guard size: %zu\\en\", guardsize);\n" |
| 695 |
#| "\\&\n" |
| 696 |
#| " s = pthread_attr_getschedpolicy(attr, &policy);\n" |
| 697 |
#| " if (s != 0)\n" |
| 698 |
#| " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n" |
| 699 |
#| " printf(\"Scheduling policy: %s\\en\",\n" |
| 700 |
#| " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" |
| 701 |
#| " (policy == SCHED_RR) ? \"SCHED_RR\" :\n" |
| 702 |
#| " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n" |
| 703 |
#| "\\&\n" |
| 704 |
#| " s = pthread_attr_getschedparam(attr, &schedparam);\n" |
| 705 |
#| " if (s != 0)\n" |
| 706 |
#| " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n" |
| 707 |
#| " printf(\"Scheduling priority: %d\\en\", schedparam.sched_priority);\n" |
| 708 |
#| "\\&\n" |
| 709 |
#| " s = pthread_attr_getdetachstate(attr, &detachstate);\n" |
| 710 |
#| " if (s != 0)\n" |
| 711 |
#| " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n" |
| 712 |
#| " printf(\"Detach state: %s\\en\",\n" |
| 713 |
#| " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n" |
| 714 |
#| " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n" |
| 715 |
#| " \"???\");\n" |
| 716 |
#| "\\&\n" |
| 717 |
#| " s = pthread_attr_getinheritsched(attr, &inheritsched);\n" |
| 718 |
#| " if (s != 0)\n" |
| 719 |
#| " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n" |
| 720 |
#| " printf(\"Inherit scheduler: %s\\en\",\n" |
| 721 |
#| " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" |
| 722 |
#| " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" |
| 723 |
#| " \"???\");\n" |
| 724 |
#| "}\n" |
| 725 |
#| "\\&\n" |
| 726 |
#| "int\n" |
| 727 |
#| "main(void)\n" |
| 728 |
#| "{\n" |
| 729 |
#| " int s;\n" |
| 730 |
#| " pthread_attr_t attr;\n" |
| 731 |
#| "\\&\n" |
| 732 |
#| " s = pthread_getattr_default_np(&attr);\n" |
| 733 |
#| " if (s != 0)\n" |
| 734 |
#| " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n" |
| 735 |
#| "\\&\n" |
| 736 |
#| " display_pthread_attr(&attr);\n" |
| 737 |
#| "\\&\n" |
| 738 |
#| " exit(EXIT_SUCCESS);\n" |
| 739 |
#| "}\n" |
| 740 |
msgid "" |
| 741 |
"#define _GNU_SOURCE\n" |
| 742 |
"#include E<lt>err.hE<gt>\n" |
| 743 |
"#include E<lt>errno.hE<gt>\n" |
| 744 |
"#include E<lt>pthread.hE<gt>\n" |
| 745 |
"#include E<lt>stdio.hE<gt>\n" |
| 746 |
"#include E<lt>stdlib.hE<gt>\n" |
| 747 |
"\\&\n" |
| 748 |
"static void\n" |
| 749 |
"display_pthread_attr(pthread_attr_t *attr)\n" |
| 750 |
"{\n" |
| 751 |
" int s;\n" |
| 752 |
" size_t stacksize;\n" |
| 753 |
" size_t guardsize;\n" |
| 754 |
" int policy;\n" |
| 755 |
" struct sched_param schedparam;\n" |
| 756 |
" int detachstate;\n" |
| 757 |
" int inheritsched;\n" |
| 758 |
"\\&\n" |
| 759 |
" s = pthread_attr_getstacksize(attr, &stacksize);\n" |
| 760 |
" if (s != 0)\n" |
| 761 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n" |
| 762 |
" printf(\"Stack size: %zu\\[rs]n\", stacksize);\n" |
| 763 |
"\\&\n" |
| 764 |
" s = pthread_attr_getguardsize(attr, &guardsize);\n" |
| 765 |
" if (s != 0)\n" |
| 766 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n" |
| 767 |
" printf(\"Guard size: %zu\\[rs]n\", guardsize);\n" |
| 768 |
"\\&\n" |
| 769 |
" s = pthread_attr_getschedpolicy(attr, &policy);\n" |
| 770 |
" if (s != 0)\n" |
| 771 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n" |
| 772 |
" printf(\"Scheduling policy: %s\\[rs]n\",\n" |
| 773 |
" (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" |
| 774 |
" (policy == SCHED_RR) ? \"SCHED_RR\" :\n" |
| 775 |
" (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n" |
| 776 |
"\\&\n" |
| 777 |
" s = pthread_attr_getschedparam(attr, &schedparam);\n" |
| 778 |
" if (s != 0)\n" |
| 779 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n" |
| 780 |
" printf(\"Scheduling priority: %d\\[rs]n\", schedparam.sched_priority);\n" |
| 781 |
"\\&\n" |
| 782 |
" s = pthread_attr_getdetachstate(attr, &detachstate);\n" |
| 783 |
" if (s != 0)\n" |
| 784 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n" |
| 785 |
" printf(\"Detach state: %s\\[rs]n\",\n" |
| 786 |
" (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n" |
| 787 |
" (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n" |
| 788 |
" \"???\");\n" |
| 789 |
"\\&\n" |
| 790 |
" s = pthread_attr_getinheritsched(attr, &inheritsched);\n" |
| 791 |
" if (s != 0)\n" |
| 792 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n" |
| 793 |
" printf(\"Inherit scheduler: %s\\[rs]n\",\n" |
| 794 |
" (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" |
| 795 |
" (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" |
| 796 |
" \"???\");\n" |
| 797 |
"}\n" |
| 798 |
"\\&\n" |
| 799 |
"int\n" |
| 800 |
"main(void)\n" |
| 801 |
"{\n" |
| 802 |
" int s;\n" |
| 803 |
" pthread_attr_t attr;\n" |
| 804 |
"\\&\n" |
| 805 |
" s = pthread_getattr_default_np(&attr);\n" |
| 806 |
" if (s != 0)\n" |
| 807 |
" errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n" |
| 808 |
"\\&\n" |
| 809 |
" display_pthread_attr(&attr);\n" |
| 810 |
"\\&\n" |
| 811 |
" exit(EXIT_SUCCESS);\n" |
| 812 |
"}\n" |
| 813 |
msgstr "" |
| 814 |
"#define _GNU_SOURCE\n" |
| 815 |
"#include E<lt>err.hE<gt>\n" |
| 816 |
"#include E<lt>errno.hE<gt>\n" |
| 817 |
"#include E<lt>pthread.hE<gt>\n" |
| 818 |
"#include E<lt>stdio.hE<gt>\n" |
| 819 |
"#include E<lt>stdlib.hE<gt>\n" |
| 820 |
"\\&\n" |
| 821 |
"static void\n" |
| 822 |
"display_pthread_attr(pthread_attr_t *attr)\n" |
| 823 |
"{\n" |
| 824 |
" int s;\n" |
| 825 |
" size_t stacksize;\n" |
| 826 |
" size_t guardsize;\n" |
| 827 |
" int policy;\n" |
| 828 |
" struct sched_param schedparam;\n" |
| 829 |
" int detachstate;\n" |
| 830 |
" int inheritsched;\n" |
| 831 |
"\\&\n" |
| 832 |
" s = pthread_attr_getstacksize(attr, &stacksize);\n" |
| 833 |
" if (s != 0)\n" |
| 834 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n" |
| 835 |
" printf(\"Stack size: %zu\\en\", stacksize);\n" |
| 836 |
"\\&\n" |
| 837 |
" s = pthread_attr_getguardsize(attr, &guardsize);\n" |
| 838 |
" if (s != 0)\n" |
| 839 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n" |
| 840 |
" printf(\"Guard size: %zu\\en\", guardsize);\n" |
| 841 |
"\\&\n" |
| 842 |
" s = pthread_attr_getschedpolicy(attr, &policy);\n" |
| 843 |
" if (s != 0)\n" |
| 844 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n" |
| 845 |
" printf(\"Scheduling policy: %s\\en\",\n" |
| 846 |
" (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" |
| 847 |
" (policy == SCHED_RR) ? \"SCHED_RR\" :\n" |
| 848 |
" (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n" |
| 849 |
"\\&\n" |
| 850 |
" s = pthread_attr_getschedparam(attr, &schedparam);\n" |
| 851 |
" if (s != 0)\n" |
| 852 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n" |
| 853 |
" printf(\"Scheduling priority: %d\\en\", schedparam.sched_priority);\n" |
| 854 |
"\\&\n" |
| 855 |
" s = pthread_attr_getdetachstate(attr, &detachstate);\n" |
| 856 |
" if (s != 0)\n" |
| 857 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n" |
| 858 |
" printf(\"Detach state: %s\\en\",\n" |
| 859 |
" (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n" |
| 860 |
" (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n" |
| 861 |
" \"???\");\n" |
| 862 |
"\\&\n" |
| 863 |
" s = pthread_attr_getinheritsched(attr, &inheritsched);\n" |
| 864 |
" if (s != 0)\n" |
| 865 |
" errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n" |
| 866 |
" printf(\"Inherit scheduler: %s\\en\",\n" |
| 867 |
" (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" |
| 868 |
" (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" |
| 869 |
" \"???\");\n" |
| 870 |
"}\n" |
| 871 |
"\\&\n" |
| 872 |
"int\n" |
| 873 |
"main(void)\n" |
| 874 |
"{\n" |
| 875 |
" int s;\n" |
| 876 |
" pthread_attr_t attr;\n" |
| 877 |
"\\&\n" |
| 878 |
" s = pthread_getattr_default_np(&attr);\n" |
| 879 |
" if (s != 0)\n" |
| 880 |
" errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n" |
| 881 |
"\\&\n" |
| 882 |
" display_pthread_attr(&attr);\n" |
| 883 |
"\\&\n" |
| 884 |
" exit(EXIT_SUCCESS);\n" |
| 885 |
"}\n" |
| 886 |
|
| 887 |
#. type: TH |
| 888 |
#: fedora-44 fedora-rawhide |
| 889 |
#, no-wrap |
| 890 |
msgid "2024-11-03" |
| 891 |
msgstr "3 novembre 2024" |
| 892 |
|
| 893 |
#. type: TH |
| 894 |
#: fedora-44 fedora-rawhide |
| 895 |
#, no-wrap |
| 896 |
msgid "Linux man-pages 6.13" |
| 897 |
msgstr "Pages du manuel de Linux 6.13" |
| 898 |
|
| 899 |
#. type: TH |
| 900 |
#: mageia-cauldron |
| 901 |
#, no-wrap |
| 902 |
msgid "Linux man-pages 6.17" |
| 903 |
msgstr "Pages du manuel de Linux 6.17" |
| 904 |
|
| 905 |
#. type: TH |
| 906 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 907 |
#, no-wrap |
| 908 |
msgid "Linux man-pages (unreleased)" |
| 909 |
msgstr "Pages du manuel de Linux (non publiées)" |