# French translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # Christophe Blaess , 1996-2003. # Stéphan Rafin , 2002. # Thierry Vignaud , 1999, 2002. # François Micaux, 2002. # Alain Portal , 2003-2008. # Jean-Philippe Guérard , 2005-2006. # Jean-Luc Coulon (f5ibh) , 2006-2007. # Julien Cristau , 2006-2007. # Thomas Huriaux , 2006-2008. # Nicolas François , 2006-2008. # Florentin Duneau , 2006-2010. # Simon Paillard , 2006. # Denis Barbier , 2006, 2010. # David Prévot , 2010, 2012. # Frédéric Hantrais , 2013, 2014. # Jean-Pierre Giraud , 2023. msgid "" msgstr "" "Project-Id-Version: manpages-l10n\n" "POT-Creation-Date: 2024-03-01 17:04+0100\n" "PO-Revision-Date: 2023-12-05 00:46+0100\n" "Last-Translator: Jean-Pierre Giraud \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n > 1;\n" "X-Generator: Lokalize 2.0\n" #. type: TH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "pthread_getattr_default_np" msgstr "pthread_getattr_default_np" #. type: TH #: archlinux fedora-40 fedora-rawhide mageia-cauldron #, no-wrap msgid "2023-10-31" msgstr "31 octobre 2023" #. type: TH #: archlinux fedora-40 fedora-rawhide mageia-cauldron #, no-wrap msgid "Linux man-pages 6.06" msgstr "Pages du manuel de Linux 6.06" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "NOM" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "pthread_getattr_default_np, pthread_setattr_default_np, - get or set default " "thread-creation attributes" msgstr "" "pthread_attr_setaffinity_np, pthread_attr_getaffinity_np – Définir ou " "obtenir les attributs de création de thread" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "BIBLIOTHÈQUE" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "POSIX threads library (I, I<-lpthread>)" msgstr "Bibliothèque de threads POSIX (I, I<-lpthread>)" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "SYNOPSIS" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "" "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" "B<#include Epthread.hE>\n" msgstr "" "B<#define _GNU_SOURCE> /* Consultez feature_test_macros(7) */\n" "B<#include Epthread.hE>\n" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "" "BIB<);>\n" "BIB<);>\n" msgstr "" "BIB<);>\n" "BIB<);>\n" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "DESCRIPTION" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "The B() function sets the default attributes " "used for creation of a new thread\\[em]that is, the attributes that are used " "when B(3) is called with a second argument that is NULL. " "The default attributes are set using the attributes supplied in I<*attr>, a " "previously initialized thread attributes object. Note the following details " "about the supplied attributes object:" msgstr "" "La fonction B() règle les attributs par défaut " "qui sont utilisés pour créer un nouveau thread \\[em]\\ c'est-à-dire les " "attributs qui sont utilisés quand B(3) est appelé avec un " "second attribut de valeur NULL. Les attributs par défaut sont réglés avec " "les attributs fournis par I<*attr>, un objet d'attributs de thread " "initialisé auparavant. Veuillez noter les détails suivants sur l'objet " "d'attributs fourni :" #. type: IP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "\\[bu]" msgstr "-" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "The attribute settings in the object must be valid." msgstr "Les réglages d'attributs dans l'objet doivent être valables." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "The I attribute must not be set in the object." msgstr "L'attribut I ne doit pas être défini dans l'objet." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "Setting the I attribute to zero means leave the default stack " "size unchanged." msgstr "" "Régler l'attribut I à zéro signifie laisser inchangée la " "taille de pile par défaut." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "The B() function initializes the thread " "attributes object referred to by I so that it contains the default " "attributes used for thread creation." msgstr "" "La fonction B() initialise l'objet d'attributs " "de thread auquel I fait référence de telle sorte qu'il contienne les " "valeurs d'attributs par défaut utilisées pour la création du thread." #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "ERREURS" #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "(B()) One of the attribute settings in I " "is invalid, or the stack address attribute is set in I." msgstr "" "(B()) Un des réglages d'attribut dans I " "n'est pas valable ou l'attribut I est défini dans I." #. type: TP #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. Can happen (but unlikely) while trying to allocate memory for cpuset #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "(B()) Insufficient memory." msgstr "(B()) Il n'y a pas assez de mémoire." #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "ATTRIBUTES" msgstr "ATTRIBUTS" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "For an explanation of the terms used in this section, see B(7)." msgstr "" "Pour une explication des termes utilisés dans cette section, consulter " "B(7)." #. type: tbl table #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "Interface" msgstr "Interface" #. type: tbl table #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "Attribute" msgstr "Attribut" #. type: tbl table #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "Value" msgstr "Valeur" #. type: tbl table #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed #, no-wrap msgid ".na\n" msgstr ".na\n" #. type: tbl table #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed #, no-wrap msgid ".nh\n" msgstr ".nh\n" #. type: tbl table #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "" "B(),\n" "B()" msgstr "" "B(),\n" "B()" #. type: tbl table #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "Thread safety" msgstr "Sécurité des threads" #. type: tbl table #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "MT-Safe" msgstr "MT-Safe" #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "STANDARDS" #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-leap-15-6 opensuse-tumbleweed msgid "GNU; hence the suffix \"_np\" (nonportable) in their names." msgstr "GNU ; c'est la raison du suffixe « _np » (non portable) dans leur nom." #. type: SH #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "HISTORIQUE" #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-leap-15-6 opensuse-tumbleweed msgid "glibc 2.18." msgstr "glibc 2.18." #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "EXEMPLES" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "The program below uses B() to fetch the default " "thread-creation attributes and then displays various settings from the " "returned thread attributes object. When running the program, we see the " "following output:" msgstr "" "Le programme ci-dessous utilise B() pour " "récupérer les attributs par défaut de création de thread, puis affiche " "divers réglages de l'objet renvoyé d'attributs de thread. Lors de " "l'exécution du programme, la sortie suivante est affichée :" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "" "$ B<./a.out>\n" "Stack size: 8388608\n" "Guard size: 4096\n" "Scheduling policy: SCHED_OTHER\n" "Scheduling priority: 0\n" "Detach state: JOINABLE\n" "Inherit scheduler: INHERIT\n" msgstr "" "$ B<./a.out>\n" "Stack size: 8388608\n" "Guard size: 4096\n" "Scheduling policy: SCHED_OTHER\n" "Scheduling priority: 0\n" "Detach state: JOINABLE\n" "Inherit scheduler: INHERIT\n" #. type: SS #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "Program source" msgstr "Source du programme" #. type: Plain text #: archlinux fedora-40 fedora-rawhide mageia-cauldron #, fuzzy, no-wrap #| msgid "" #| "#define _GNU_SOURCE\n" #| "#include Eerr.hE\n" #| "#include Eerrno.hE\n" #| "#include Epthread.hE\n" #| "#include Estdio.hE\n" #| "#include Estdlib.hE\n" #| "\\&\n" #| "static void\n" #| "display_pthread_attr(pthread_attr_t *attr)\n" #| "{\n" #| " int s;\n" #| " size_t stacksize;\n" #| " size_t guardsize;\n" #| " int policy;\n" #| " struct sched_param schedparam;\n" #| " int detachstate;\n" #| " int inheritsched;\n" #| "\\&\n" #| " s = pthread_attr_getstacksize(attr, &stacksize);\n" #| " if (s != 0)\n" #| " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n" #| " printf(\"Stack size: %zd\\en\", stacksize);\n" #| "\\&\n" #| " s = pthread_attr_getguardsize(attr, &guardsize);\n" #| " if (s != 0)\n" #| " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n" #| " printf(\"Guard size: %zd\\en\", guardsize);\n" #| "\\&\n" #| " s = pthread_attr_getschedpolicy(attr, &policy);\n" #| " if (s != 0)\n" #| " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n" #| " printf(\"Scheduling policy: %s\\en\",\n" #| " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" #| " (policy == SCHED_RR) ? \"SCHED_RR\" :\n" #| " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n" #| "\\&\n" #| " s = pthread_attr_getschedparam(attr, &schedparam);\n" #| " if (s != 0)\n" #| " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n" #| " printf(\"Scheduling priority: %d\\en\", schedparam.sched_priority);\n" #| "\\&\n" #| " s = pthread_attr_getdetachstate(attr, &detachstate);\n" #| " if (s != 0)\n" #| " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n" #| " printf(\"Detach state: %s\\en\",\n" #| " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n" #| " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n" #| " \"???\");\n" #| "\\&\n" #| " s = pthread_attr_getinheritsched(attr, &inheritsched);\n" #| " if (s != 0)\n" #| " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n" #| " printf(\"Inherit scheduler: %s\\en\",\n" #| " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" #| " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" #| " \"???\");\n" #| "}\n" #| "\\&\n" #| "int\n" #| "main(void)\n" #| "{\n" #| " int s;\n" #| " pthread_attr_t attr;\n" #| "\\&\n" #| " s = pthread_getattr_default_np(&attr);\n" #| " if (s != 0)\n" #| " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n" #| "\\&\n" #| " display_pthread_attr(&attr);\n" #| "\\&\n" #| " exit(EXIT_SUCCESS);\n" #| "}\n" msgid "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Eerrno.hE\n" "#include Epthread.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "static void\n" "display_pthread_attr(pthread_attr_t *attr)\n" "{\n" " int s;\n" " size_t stacksize;\n" " size_t guardsize;\n" " int policy;\n" " struct sched_param schedparam;\n" " int detachstate;\n" " int inheritsched;\n" "\\&\n" " s = pthread_attr_getstacksize(attr, &stacksize);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n" " printf(\"Stack size: %zu\\en\", stacksize);\n" "\\&\n" " s = pthread_attr_getguardsize(attr, &guardsize);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n" " printf(\"Guard size: %zu\\en\", guardsize);\n" "\\&\n" " s = pthread_attr_getschedpolicy(attr, &policy);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n" " printf(\"Scheduling policy: %s\\en\",\n" " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" " (policy == SCHED_RR) ? \"SCHED_RR\" :\n" " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n" "\\&\n" " s = pthread_attr_getschedparam(attr, &schedparam);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n" " printf(\"Scheduling priority: %d\\en\", schedparam.sched_priority);\n" "\\&\n" " s = pthread_attr_getdetachstate(attr, &detachstate);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n" " printf(\"Detach state: %s\\en\",\n" " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n" " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n" " \"???\");\n" "\\&\n" " s = pthread_attr_getinheritsched(attr, &inheritsched);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n" " printf(\"Inherit scheduler: %s\\en\",\n" " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" " \"???\");\n" "}\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int s;\n" " pthread_attr_t attr;\n" "\\&\n" " s = pthread_getattr_default_np(&attr);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n" "\\&\n" " display_pthread_attr(&attr);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Eerrno.hE\n" "#include Epthread.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "static void\n" "display_pthread_attr(pthread_attr_t *attr)\n" "{\n" " int s;\n" " size_t stacksize;\n" " size_t guardsize;\n" " int policy;\n" " struct sched_param schedparam;\n" " int detachstate;\n" " int inheritsched;\n" "\\&\n" " s = pthread_attr_getstacksize(attr, &stacksize);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n" " printf(\"Stack size: %zd\\en\", stacksize);\n" "\\&\n" " s = pthread_attr_getguardsize(attr, &guardsize);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n" " printf(\"Guard size: %zd\\en\", guardsize);\n" "\\&\n" " s = pthread_attr_getschedpolicy(attr, &policy);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n" " printf(\"Scheduling policy: %s\\en\",\n" " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" " (policy == SCHED_RR) ? \"SCHED_RR\" :\n" " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n" "\\&\n" " s = pthread_attr_getschedparam(attr, &schedparam);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n" " printf(\"Scheduling priority: %d\\en\", schedparam.sched_priority);\n" "\\&\n" " s = pthread_attr_getdetachstate(attr, &detachstate);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n" " printf(\"Detach state: %s\\en\",\n" " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n" " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n" " \"???\");\n" "\\&\n" " s = pthread_attr_getinheritsched(attr, &inheritsched);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n" " printf(\"Inherit scheduler: %s\\en\",\n" " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" " \"???\");\n" "}\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int s;\n" " pthread_attr_t attr;\n" "\\&\n" " s = pthread_getattr_default_np(&attr);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n" "\\&\n" " display_pthread_attr(&attr);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. SRC END #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "VOIR AUSSI" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "B(3), B(3), " "B(3), B(3), " "B(3), B(3), " "B(3), B(3), " "B(3), B(3), " "B(3), B(3), B(7)" msgstr "" "B(3), B(3), " "B(3), B(3), " "B(3), B(3), " "B(3), B(3), " "B(3), B(3), " "B(3), B(3), B(7)" #. type: TH #: debian-bookworm #, no-wrap msgid "2023-02-05" msgstr "5 février 2023" #. type: TH #: debian-bookworm #, no-wrap msgid "Linux man-pages 6.03" msgstr "Pages du manuel de Linux 6.03" #. type: SH #: debian-bookworm #, no-wrap msgid "VERSIONS" msgstr "VERSIONS" #. type: Plain text #: debian-bookworm msgid "These functions are available since glibc 2.18." msgstr "Ces fonctions sont disponibles depuis la glibc 2.18." #. type: Plain text #: debian-bookworm msgid "" "These functions are nonstandard GNU extensions; hence the suffix " "\"_np\" (nonportable) in their names." msgstr "" "Ces fonctions sont des extensions non standard GNU ; c'est la raison du " "suffixe « _np » (non portable) dans leur nom." #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Eerrno.hE\n" "#include Epthread.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" msgstr "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Eerrno.hE\n" "#include Epthread.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "static void\n" "display_pthread_attr(pthread_attr_t *attr)\n" "{\n" " int s;\n" " size_t stacksize;\n" " size_t guardsize;\n" " int policy;\n" " struct sched_param schedparam;\n" " int detachstate;\n" " int inheritsched;\n" msgstr "" "static void\n" "display_pthread_attr(pthread_attr_t *attr)\n" "{\n" " int s;\n" " size_t stacksize;\n" " size_t guardsize;\n" " int policy;\n" " struct sched_param schedparam;\n" " int detachstate;\n" " int inheritsched;\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " s = pthread_attr_getstacksize(attr, &stacksize);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n" " printf(\"Stack size: %zd\\en\", stacksize);\n" msgstr "" " s = pthread_attr_getstacksize(attr, &stacksize);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n" " printf(\"Stack size: %zd\\en\", stacksize);\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " s = pthread_attr_getguardsize(attr, &guardsize);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n" " printf(\"Guard size: %zd\\en\", guardsize);\n" msgstr "" " s = pthread_attr_getguardsize(attr, &guardsize);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n" " printf(\"Guard size: %zd\\en\", guardsize);\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " s = pthread_attr_getschedpolicy(attr, &policy);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n" " printf(\"Scheduling policy: %s\\en\",\n" " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" " (policy == SCHED_RR) ? \"SCHED_RR\" :\n" " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n" msgstr "" " s = pthread_attr_getschedpolicy(attr, &policy);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n" " printf(\"Scheduling policy: %s\\en\",\n" " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" " (policy == SCHED_RR) ? \"SCHED_RR\" :\n" " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " s = pthread_attr_getschedparam(attr, &schedparam);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n" " printf(\"Scheduling priority: %d\\en\", schedparam.sched_priority);\n" msgstr "" " s = pthread_attr_getschedparam(attr, &schedparam);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n" " printf(\"Scheduling priority: %d\\en\", schedparam.sched_priority);\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " s = pthread_attr_getdetachstate(attr, &detachstate);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n" " printf(\"Detach state: %s\\en\",\n" " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n" " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n" " \"???\");\n" msgstr "" " s = pthread_attr_getdetachstate(attr, &detachstate);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n" " printf(\"Detach state: %s\\en\",\n" " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n" " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n" " \"???\");\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " s = pthread_attr_getinheritsched(attr, &inheritsched);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n" " printf(\"Inherit scheduler: %s\\en\",\n" " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" " \"???\");\n" "}\n" msgstr "" " s = pthread_attr_getinheritsched(attr, &inheritsched);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n" " printf(\"Inherit scheduler: %s\\en\",\n" " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" " \"???\");\n" "}\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "int\n" "main(void)\n" "{\n" " int s;\n" " pthread_attr_t attr;\n" msgstr "" "int\n" "main(void)\n" "{\n" " int s;\n" " pthread_attr_t attr;\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " s = pthread_getattr_default_np(&attr);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n" msgstr "" " s = pthread_getattr_default_np(&attr);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid " display_pthread_attr(&attr);\n" msgstr " display_pthread_attr(&attr);\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: debian-unstable opensuse-tumbleweed #, no-wrap msgid "2023-07-20" msgstr "20 juillet 2023" #. type: TH #: debian-unstable opensuse-tumbleweed #, no-wrap msgid "Linux man-pages 6.05.01" msgstr "Pages du manuel de Linux 6.05.01" #. type: Plain text #: debian-unstable opensuse-tumbleweed #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Eerrno.hE\n" "#include Epthread.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "static void\n" "display_pthread_attr(pthread_attr_t *attr)\n" "{\n" " int s;\n" " size_t stacksize;\n" " size_t guardsize;\n" " int policy;\n" " struct sched_param schedparam;\n" " int detachstate;\n" " int inheritsched;\n" "\\&\n" " s = pthread_attr_getstacksize(attr, &stacksize);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n" " printf(\"Stack size: %zd\\en\", stacksize);\n" "\\&\n" " s = pthread_attr_getguardsize(attr, &guardsize);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n" " printf(\"Guard size: %zd\\en\", guardsize);\n" "\\&\n" " s = pthread_attr_getschedpolicy(attr, &policy);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n" " printf(\"Scheduling policy: %s\\en\",\n" " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" " (policy == SCHED_RR) ? \"SCHED_RR\" :\n" " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n" "\\&\n" " s = pthread_attr_getschedparam(attr, &schedparam);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n" " printf(\"Scheduling priority: %d\\en\", schedparam.sched_priority);\n" "\\&\n" " s = pthread_attr_getdetachstate(attr, &detachstate);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n" " printf(\"Detach state: %s\\en\",\n" " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n" " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n" " \"???\");\n" "\\&\n" " s = pthread_attr_getinheritsched(attr, &inheritsched);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n" " printf(\"Inherit scheduler: %s\\en\",\n" " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" " \"???\");\n" "}\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int s;\n" " pthread_attr_t attr;\n" "\\&\n" " s = pthread_getattr_default_np(&attr);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n" "\\&\n" " display_pthread_attr(&attr);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Eerrno.hE\n" "#include Epthread.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "\\&\n" "static void\n" "display_pthread_attr(pthread_attr_t *attr)\n" "{\n" " int s;\n" " size_t stacksize;\n" " size_t guardsize;\n" " int policy;\n" " struct sched_param schedparam;\n" " int detachstate;\n" " int inheritsched;\n" "\\&\n" " s = pthread_attr_getstacksize(attr, &stacksize);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n" " printf(\"Stack size: %zd\\en\", stacksize);\n" "\\&\n" " s = pthread_attr_getguardsize(attr, &guardsize);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n" " printf(\"Guard size: %zd\\en\", guardsize);\n" "\\&\n" " s = pthread_attr_getschedpolicy(attr, &policy);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n" " printf(\"Scheduling policy: %s\\en\",\n" " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" " (policy == SCHED_RR) ? \"SCHED_RR\" :\n" " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n" "\\&\n" " s = pthread_attr_getschedparam(attr, &schedparam);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n" " printf(\"Scheduling priority: %d\\en\", schedparam.sched_priority);\n" "\\&\n" " s = pthread_attr_getdetachstate(attr, &detachstate);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n" " printf(\"Detach state: %s\\en\",\n" " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n" " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n" " \"???\");\n" "\\&\n" " s = pthread_attr_getinheritsched(attr, &inheritsched);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n" " printf(\"Inherit scheduler: %s\\en\",\n" " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" " \"???\");\n" "}\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int s;\n" " pthread_attr_t attr;\n" "\\&\n" " s = pthread_getattr_default_np(&attr);\n" " if (s != 0)\n" " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n" "\\&\n" " display_pthread_attr(&attr);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: opensuse-leap-15-6 #, no-wrap msgid "2023-03-30" msgstr "30 mars 2023" #. type: TH #: opensuse-leap-15-6 #, no-wrap msgid "Linux man-pages 6.04" msgstr "Pages du manuel de Linux 6.04"