# 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: perkamon\n" "POT-Creation-Date: 2024-06-01 06:13+0200\n" "PO-Revision-Date: 2023-07-01 11:08+0200\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 22.12.3\n" #. type: TH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "pthread_setschedparam" msgstr "pthread_setschedparam" #. type: TH #: archlinux debian-unstable opensuse-tumbleweed #, no-wrap msgid "2024-05-02" msgstr "2 mai 2024" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.8" msgstr "Pages du manuel de Linux 6.8" #. 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_setschedparam, pthread_getschedparam - set/get scheduling policy and " "parameters of a thread" msgstr "" "pthread_setschedparam, pthread_getschedparam — Définir ou obtenir la " "politique et les paramètres d'ordonnancement d'un 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<#include Epthread.hE>\n" msgstr "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<, int >IB<,>\n" "B< const struct sched_param *>IB<);>\n" "BIB<, int *restrict >IB<,>\n" "B< struct sched_param *restrict >IB<);>\n" msgstr "" "BIB<, int >IB<,>\n" "B< const struct sched_param *>IB<);>\n" "BIB<, int *restrict >IB<,>\n" "B< struct sched_param *restrict >IB<);>\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 scheduling policy and " "parameters of the thread I." msgstr "" "La fonction B() définit la politique et les " "paramètres d'ordonnancement du thread I." #. FIXME . pthread_setschedparam() places no restriction on the policy, #. but pthread_attr_setschedpolicy() restricts policy to RR/FIFO/OTHER #. http://sourceware.org/bugzilla/show_bug.cgi?id=7013 #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "I specifies the new scheduling policy for I. The supported " "values for I, and their semantics, are described in B(7)." msgstr "" "L'argument I spécifie la politique d'ordonnancement pour " "I. Les valeurs possibles, ainsi que leur signification, sont " "décrites dans B(7)." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "The structure pointed to by I specifies the new scheduling parameters " "for I. Scheduling parameters are maintained in the following " "structure:" msgstr "" "La structure vers laquelle pointe I spécifie les nouveaux paramètres " "d'ordonnancement pour I. Les paramètres d'ordonnancement sont gérés " "dans la structure suivante\\ :" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "" "struct sched_param {\n" " int sched_priority; /* Scheduling priority */\n" "};\n" msgstr "" "struct sched_param {\n" " int sched_priority; /* Priorité d'ordonnancement */\n" "};\n" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "As can be seen, only one scheduling parameter is supported. For details of " "the permitted ranges for scheduling priorities in each scheduling policy, " "see B(7)." msgstr "" "Comme on peut le voir, un seul paramètre d'ordonnancement est pris en " "charge. Veuillez consulter B(7) pour plus de détails sur les valeurs " "possibles des priorités d'ordonnancement en fonction de chaque politique " "d'ordonnancement." #. FIXME . nptl/pthread_setschedparam.c has the following #. /* If the thread should have higher priority because of some #. PTHREAD_PRIO_PROTECT mutexes it holds, adjust the priority. */ #. Eventually (perhaps after writing the mutexattr pages), we #. may want to add something on the topic to this page. #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "The B() function returns the scheduling policy and " "parameters of the thread I, in the buffers pointed to by I " "and I, respectively. The returned priority value is that set by the " "most recent B(), B(3), or " "B(3) call that affected I. The returned priority " "does not reflect any temporary priority adjustments as a result of calls to " "any priority inheritance or priority ceiling functions (see, for example, " "B(3) and " "B(3))." msgstr "" "La fonction B() renvoie, dans les tampons pointés par " "I et I, respectivement la politique et les paramètres " "d'ordonnancement du thread I. La valeur de priorité renvoyée est " "celle utilisée lors de l'appel le plus récent à B(), " "B(3) ou B(3) qui touchait I. " "La priorité renvoyée ne reflète pas des ajustements de priorité temporaires " "qui peuvent résulter d'appels à une fonction qui modifie l'héritage ou " "plafonne la priorité d'ordonnancement (voir, par exemple, " "B(3) et " "B(3))." #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "VALEUR RENVOYÉE" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "On success, these functions return 0; on error, they return a nonzero error " "number. If B() fails, the scheduling policy and " "parameters of I are not changed." msgstr "" "En cas de réussite, ces fonctions renvoient B<0> ; en cas d'erreur, elles " "renvoient un numéro d'erreur non nul. Si B() échoue, " "la politique et les paramètres d'ordonnancement du thread ne sont pas " "modifiés." #. 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: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "Both of these functions can fail with the following error:" msgstr "Ces deux fonctions peuvent échouer avec l'erreur suivante :" #. 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 "No thread with the ID I could be found." msgstr "" "Aucun fil d’exécution avec pour identifiant I n'a pu être trouvé." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "B() may additionally fail with the following errors:" msgstr "" "B() peut également échouer avec les erreurs " "suivantes\\ :" #. 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 "" "I is not a recognized policy, or I does not make sense for " "the I." msgstr "" "I n'est pas une politique reconnue, ou I n'a pas de sens " "pour cette valeur de 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" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "The caller does not have appropriate privileges to set the specified " "scheduling policy and parameters." msgstr "" "L'appelant n'a pas les privilèges suffisants pour définir la politique et " "les paramètres d'ordonnancement indiqués." #. #-#-#-#-# archlinux: pthread_setschedparam.3.pot (PACKAGE VERSION) #-#-#-#-# #. type: Plain text #. #-#-#-#-# debian-bookworm: pthread_setschedparam.3.pot (PACKAGE VERSION) #-#-#-#-# #. .SH VERSIONS #. Available since glibc 2.0 #. type: Plain text #. #-#-#-#-# debian-unstable: pthread_setschedparam.3.pot (PACKAGE VERSION) #-#-#-#-# #. type: Plain text #. #-#-#-#-# fedora-40: pthread_setschedparam.3.pot (PACKAGE VERSION) #-#-#-#-# #. type: Plain text #. #-#-#-#-# fedora-rawhide: pthread_setschedparam.3.pot (PACKAGE VERSION) #-#-#-#-# #. type: Plain text #. #-#-#-#-# mageia-cauldron: pthread_setschedparam.3.pot (PACKAGE VERSION) #-#-#-#-# #. type: Plain text #. #-#-#-#-# opensuse-leap-15-6: pthread_setschedparam.3.pot (PACKAGE VERSION) #-#-#-#-# #. type: Plain text #. #-#-#-#-# opensuse-tumbleweed: pthread_setschedparam.3.pot (PACKAGE VERSION) #-#-#-#-# #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "POSIX.1 also documents an B (\"attempt was made to set the policy " "or scheduling parameters to an unsupported value\") error for " "B()." msgstr "" "POSIX.1 documente également une erreur B (tentative de définition " "de la politique ou de paramètres d'ordonnancement à une valeur non prise en " "charge) pour B()." #. 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 "POSIX.1-2008." msgstr "POSIX.1-2008." #. 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.0 POSIX.1-2001." msgstr "glibc 2.0 POSIX.1-2001." #. type: SH #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "NOTES" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "For a description of the permissions required to, and the effect of, " "changing a thread's scheduling policy and priority, and details of the " "permitted ranges for priorities in each scheduling policy, see B(7)." msgstr "" "Pour une description des permissions nécessaires pour modifier la politique " "et la priorité d'ordonnancement d'un thread (et leur effet), et les détails " "sur les valeurs possibles de priorités pour chacune des politiques " "d'ordonnancement, consultez B(7)." #. 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 demonstrates the use of B() and " "B(), as well as the use of a number of other " "scheduling-related pthreads functions." msgstr "" "Le programme ci-dessous montre l'utilisation de B() " "et B(), ainsi que d'un certain nombre d'autres " "fonctions de pthreads relatives à l'ordonnancement." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "In the following run, the main thread sets its scheduling policy to " "B with a priority of 10, and initializes a thread attributes " "object with a scheduling policy attribute of B and a scheduling " "priority attribute of 20. The program then sets (using " "B(3)) the inherit scheduler attribute of the " "thread attributes object to B, meaning that threads " "created using this attributes object should take their scheduling attributes " "from the thread attributes object. The program then creates a thread using " "the thread attributes object, and that thread displays its scheduling policy " "and priority." msgstr "" "Lors de l'exécution suivante, le thread principal définit sa politique " "d'ordonnancement à B avec une priorité de 10 et initialise un " "objet d'attributs de thread avec un attribut de politique d'ordonnancement " "mis à B et un attribut de priorité d'ordonnancement de 20. Le " "programme appelle alors B(3) pour définir à " "B l'attribut d'héritage de l'ordonnancement de " "l'objets d'attributs de thread, ce qui signifie que les threads créés avec " "cet objet d'attributs prendront les attributs d'ordonnancement dans l'objet " "d'attributs de thread. Le programme crée alors un thread en utilisant " "l'objets d'attributs de thread et ce thread affiche sa politique et sa " "priorité d'ordonnancement." #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed #, fuzzy, no-wrap #| msgid "" #| "$ B # Need privilege to set real-time scheduling policies\n" #| "Password:\n" #| "# B<./a.out -mf10 -ar20 -i e>\n" #| "Scheduler settings of main thread\n" #| " policy=SCHED_FIFO, priority=10\n" msgid "" "$ B # Need privilege to set real-time scheduling policies\n" "Password:\n" "# B<./a.out -mf10 -ar20 -i e>\n" "Scheduler settings of main thread\n" " policy=SCHED_FIFO, priority=10\n" "\\&\n" "Scheduler settings in \\[aq]attr\\[aq]\n" " policy=SCHED_RR, priority=20\n" " inheritsched is EXPLICIT\n" "\\&\n" "Scheduler attributes of new thread\n" " policy=SCHED_RR, priority=20\n" msgstr "" "$ B # Privilège requis pour définir les politiques\n" " # d'ordonnancement en temps réel\n" "Password:\n" "# B<./a.out -mf10 -ar20 -i e>\n" "Scheduler settings of main thread\n" " policy=SCHED_FIFO, priority=10\n" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "In the above output, one can see that the scheduling policy and priority " "were taken from the values specified in the thread attributes object." msgstr "" "Nous pouvons voir dans l'affichage ci-dessus que les politique et priorité " "d'ordonnancement ont pris comme valeurs celles de l'objets d'attributs de " "thread." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "The next run is the same as the previous, except that the inherit scheduler " "attribute is set to B, meaning that threads created " "using the thread attributes object should ignore the scheduling attributes " "specified in the attributes object and instead take their scheduling " "attributes from the creating thread." msgstr "" "L'exécution suivante est identique, sauf que l'attribut d'héritage " "d'ordonnancement est mis à B, ce qui signifie que les " "threads créés avec cet objet d'attributs devront ignorer les attributs " "d'ordonnancement de l'objets d'attributs de thread et prendre à la place les " "valeurs héritées du thread appelant." #. type: Plain text #: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed #, no-wrap msgid "" "# B<./a.out -mf10 -ar20 -i i>\n" "Scheduler settings of main thread\n" " policy=SCHED_FIFO, priority=10\n" "\\&\n" "Scheduler settings in \\[aq]attr\\[aq]\n" " policy=SCHED_RR, priority=20\n" " inheritsched is INHERIT\n" "\\&\n" "Scheduler attributes of new thread\n" " policy=SCHED_FIFO, priority=10\n" msgstr "" #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed msgid "" "In the above output, one can see that the scheduling policy and priority " "were taken from the creating thread, rather than the thread attributes " "object." msgstr "" "Nous pouvons voir dans l'affichage ci-dessus que les politique et priorité " "d'ordonnancement ont pris comme valeurs celles du thread appelant et non de " "l'objets d'attributs de thread." #. type: Plain text #: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide #: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed #, fuzzy #| msgid "" #| "Note that if we had omitted the I<-i\\~i> option, the output would have " #| "been the same, since B is the default for the " #| "inherit scheduler attribute." msgid "" "Note that if we had omitted the I<-i\\ i> option, the output would have been " "the same, since B is the default for the inherit " "scheduler attribute." msgstr "" "Veuillez noter que si l'option I<-i\\~i> n'avait pas été présente, " "l'affichage aurait été identique, car B est la valeur " "par défaut pour l'attribut d'héritage d'ordonnancement." #. 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 debian-unstable fedora-40 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed #, no-wrap msgid "" "/* pthreads_sched_test.c */\n" "\\&\n" "#include Eerrno.hE\n" "#include Epthread.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eunistd.hE\n" "\\&\n" "#define handle_error_en(en, msg) \\e\n" " do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)\n" "\\&\n" "[[noreturn]]\n" "static void\n" "usage(char *prog_name, char *msg)\n" "{\n" " if (msg != NULL)\n" " fputs(msg, stderr);\n" "\\&\n" " fprintf(stderr, \"Usage: %s [options]\\en\", prog_name);\n" " fprintf(stderr, \"Options are:\\en\");\n" "#define fpe(msg) fprintf(stderr, \"\\et%s\", msg) /* Shorter */\n" " fpe(\"-aEpolicyEEprioE Set scheduling policy and priority in\\en\");\n" " fpe(\" thread attributes object\\en\");\n" " fpe(\" EpolicyE can be\\en\");\n" " fpe(\" f SCHED_FIFO\\en\");\n" " fpe(\" r SCHED_RR\\en\");\n" " fpe(\" o SCHED_OTHER\\en\");\n" " fpe(\"-A Use default thread attributes object\\en\");\n" " fpe(\"-i {e|i} Set inherit scheduler attribute to\\en\");\n" " fpe(\" \\[aq]explicit\\[aq] or \\[aq]inherit\\[aq]\\en\");\n" " fpe(\"-mEpolicyEEprioE Set scheduling policy and priority on\\en\");\n" " fpe(\" main thread before pthread_create() call\\en\");\n" " exit(EXIT_FAILURE);\n" "}\n" "\\&\n" "static int\n" "get_policy(char p, int *policy)\n" "{\n" " switch (p) {\n" " case \\[aq]f\\[aq]: *policy = SCHED_FIFO; return 1;\n" " case \\[aq]r\\[aq]: *policy = SCHED_RR; return 1;\n" " case \\[aq]o\\[aq]: *policy = SCHED_OTHER; return 1;\n" " default: return 0;\n" " }\n" "}\n" "\\&\n" "static void\n" "display_sched_attr(int policy, const struct sched_param *param)\n" "{\n" " printf(\" policy=%s, priority=%d\\en\",\n" " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" " (policy == SCHED_RR) ? \"SCHED_RR\" :\n" " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" :\n" " \"???\",\n" " param-Esched_priority);\n" "}\n" "\\&\n" "static void\n" "display_thread_sched_attr(char *msg)\n" "{\n" " int policy, s;\n" " struct sched_param param;\n" "\\&\n" " s = pthread_getschedparam(pthread_self(), &policy, ¶m);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_getschedparam\");\n" "\\&\n" " printf(\"%s\\en\", msg);\n" " display_sched_attr(policy, ¶m);\n" "}\n" "\\&\n" "static void *\n" "thread_start(void *arg)\n" "{\n" " display_thread_sched_attr(\"Scheduler attributes of new thread\");\n" "\\&\n" " return NULL;\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int s, opt, inheritsched, use_null_attrib, policy;\n" " pthread_t thread;\n" " pthread_attr_t attr;\n" " pthread_attr_t *attrp;\n" " char *attr_sched_str, *main_sched_str, *inheritsched_str;\n" " struct sched_param param;\n" "\\&\n" " /* Process command-line options. */\n" "\\&\n" " use_null_attrib = 0;\n" " attr_sched_str = NULL;\n" " main_sched_str = NULL;\n" " inheritsched_str = NULL;\n" "\\&\n" " while ((opt = getopt(argc, argv, \"a:Ai:m:\")) != -1) {\n" " switch (opt) {\n" " case \\[aq]a\\[aq]: attr_sched_str = optarg; break;\n" " case \\[aq]A\\[aq]: use_null_attrib = 1; break;\n" " case \\[aq]i\\[aq]: inheritsched_str = optarg; break;\n" " case \\[aq]m\\[aq]: main_sched_str = optarg; break;\n" " default: usage(argv[0], \"Unrecognized option\\en\");\n" " }\n" " }\n" "\\&\n" " if (use_null_attrib\n" " && (inheritsched_str != NULL || attr_sched_str != NULL))\n" " {\n" " usage(argv[0], \"Can\\[aq]t specify -A with -i or -a\\en\");\n" " }\n" "\\&\n" " /* Optionally set scheduling attributes of main thread,\n" " and display the attributes. */\n" "\\&\n" " if (main_sched_str != NULL) {\n" " if (!get_policy(main_sched_str[0], &policy))\n" " usage(argv[0], \"Bad policy for main thread (-m)\\en\");\n" " param.sched_priority = strtol(&main_sched_str[1], NULL, 0);\n" "\\&\n" " s = pthread_setschedparam(pthread_self(), policy, ¶m);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_setschedparam\");\n" " }\n" "\\&\n" " display_thread_sched_attr(\"Scheduler settings of main thread\");\n" " printf(\"\\en\");\n" "\\&\n" " /* Initialize thread attributes object according to options. */\n" "\\&\n" " attrp = NULL;\n" "\\&\n" " if (!use_null_attrib) {\n" " s = pthread_attr_init(&attr);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_init\");\n" " attrp = &attr;\n" " }\n" "\\&\n" " if (inheritsched_str != NULL) {\n" " if (inheritsched_str[0] == \\[aq]e\\[aq])\n" " inheritsched = PTHREAD_EXPLICIT_SCHED;\n" " else if (inheritsched_str[0] == \\[aq]i\\[aq])\n" " inheritsched = PTHREAD_INHERIT_SCHED;\n" " else\n" " usage(argv[0], \"Value for -i must be \\[aq]e\\[aq] or \\[aq]i\\[aq]\\en\");\n" "\\&\n" " s = pthread_attr_setinheritsched(&attr, inheritsched);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_setinheritsched\");\n" " }\n" "\\&\n" " if (attr_sched_str != NULL) {\n" " if (!get_policy(attr_sched_str[0], &policy))\n" " usage(argv[0], \"Bad policy for \\[aq]attr\\[aq] (-a)\\en\");\n" " param.sched_priority = strtol(&attr_sched_str[1], NULL, 0);\n" "\\&\n" " s = pthread_attr_setschedpolicy(&attr, policy);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_setschedpolicy\");\n" " s = pthread_attr_setschedparam(&attr, ¶m);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_setschedparam\");\n" " }\n" "\\&\n" " /* If we initialized a thread attributes object, display\n" " the scheduling attributes that were set in the object. */\n" "\\&\n" " if (attrp != NULL) {\n" " s = pthread_attr_getschedparam(&attr, ¶m);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_getschedparam\");\n" " s = pthread_attr_getschedpolicy(&attr, &policy);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_getschedpolicy\");\n" "\\&\n" " printf(\"Scheduler settings in \\[aq]attr\\[aq]\\en\");\n" " display_sched_attr(policy, ¶m);\n" "\\&\n" " pthread_attr_getinheritsched(&attr, &inheritsched);\n" " printf(\" inheritsched is %s\\en\",\n" " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" " \"???\");\n" " printf(\"\\en\");\n" " }\n" "\\&\n" " /* Create a thread that will display its scheduling attributes. */\n" "\\&\n" " s = pthread_create(&thread, attrp, &thread_start, NULL);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_create\");\n" "\\&\n" " /* Destroy unneeded thread attributes object. */\n" "\\&\n" " if (!use_null_attrib) {\n" " s = pthread_attr_destroy(&attr);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_destroy\");\n" " }\n" "\\&\n" " s = pthread_join(thread, NULL);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_join\");\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" #. 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(2), B(2), B(3), " "B(3), B(3), " "B(3), B(3), B(3), " "B(3), B(7), B(7)" msgstr "" "B(2), B(2), B(3), " "B(3), B(3), " "B(3), B(3), B(3), " "B(3), B(7), 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: Plain text #: debian-bookworm msgid "POSIX.1-2001, POSIX.1-2008." msgstr "POSIX.1-2001, POSIX.1-2008." #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "$ B # Need privilege to set real-time scheduling policies\n" "Password:\n" "# B<./a.out -mf10 -ar20 -i e>\n" "Scheduler settings of main thread\n" " policy=SCHED_FIFO, priority=10\n" msgstr "" "$ B # Privilège requis pour définir les politiques\n" " # d'ordonnancement en temps réel\n" "Password:\n" "# B<./a.out -mf10 -ar20 -i e>\n" "Scheduler settings of main thread\n" " policy=SCHED_FIFO, priority=10\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "Scheduler settings in \\[aq]attr\\[aq]\n" " policy=SCHED_RR, priority=20\n" " inheritsched is EXPLICIT\n" msgstr "" "Scheduler settings in \\[aq]attr\\[aq]\n" " policy=SCHED_RR, priority=20\n" " inheritsched is EXPLICIT\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "Scheduler attributes of new thread\n" " policy=SCHED_RR, priority=20\n" msgstr "" "Scheduler attributes of new thread\n" " policy=SCHED_RR, priority=20\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "# B<./a.out -mf10 -ar20 -i i>\n" "Scheduler settings of main thread\n" " policy=SCHED_FIFO, priority=10\n" msgstr "" "# B<./a.out -mf10 -ar20 -i i>\n" "Scheduler settings of main thread\n" " policy=SCHED_FIFO, priority=10\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "Scheduler settings in \\[aq]attr\\[aq]\n" " policy=SCHED_RR, priority=20\n" " inheritsched is INHERIT\n" msgstr "" "Scheduler settings in \\[aq]attr\\[aq]\n" " policy=SCHED_RR, priority=20\n" " inheritsched is INHERIT\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "Scheduler attributes of new thread\n" " policy=SCHED_FIFO, priority=10\n" msgstr "" "Scheduler attributes of new thread\n" " policy=SCHED_FIFO, priority=10\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "/* pthreads_sched_test.c */\n" msgstr "/* pthreads_sched_test.c */\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "#include Eerrno.hE\n" "#include Epthread.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eunistd.hE\n" msgstr "" "#include Eerrno.hE\n" "#include Epthread.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eunistd.hE\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "#define handle_error_en(en, msg) \\e\n" " do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)\n" msgstr "" "#define handle_error_en(en, msg) \\e\n" " do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "static void\n" "usage(char *prog_name, char *msg)\n" "{\n" " if (msg != NULL)\n" " fputs(msg, stderr);\n" msgstr "" "static void\n" "usage(char *prog_name, char *msg)\n" "{\n" " if (msg != NULL)\n" " fputs(msg, stderr);\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " fprintf(stderr, \"Usage: %s [options]\\en\", prog_name);\n" " fprintf(stderr, \"Options are:\\en\");\n" "#define fpe(msg) fprintf(stderr, \"\\et%s\", msg) /* Shorter */\n" " fpe(\"-aEpolicyEEprioE Set scheduling policy and priority in\\en\");\n" " fpe(\" thread attributes object\\en\");\n" " fpe(\" EpolicyE can be\\en\");\n" " fpe(\" f SCHED_FIFO\\en\");\n" " fpe(\" r SCHED_RR\\en\");\n" " fpe(\" o SCHED_OTHER\\en\");\n" " fpe(\"-A Use default thread attributes object\\en\");\n" " fpe(\"-i {e|i} Set inherit scheduler attribute to\\en\");\n" " fpe(\" \\[aq]explicit\\[aq] or \\[aq]inherit\\[aq]\\en\");\n" " fpe(\"-mEpolicyEEprioE Set scheduling policy and priority on\\en\");\n" " fpe(\" main thread before pthread_create() call\\en\");\n" " exit(EXIT_FAILURE);\n" "}\n" msgstr "" " fprintf(stderr, \"Usage: %s [options]\\en\", prog_name);\n" " fprintf(stderr, \"Options are:\\en\");\n" "#define fpe(msg) fprintf(stderr, \"\\et%s\", msg); /* Plus court */\n" " fpe(\"-aEpolicyEEprioE Set scheduling policy and priority in\\en\");\n" " fpe(\" thread attributes object\\en\");\n" " fpe(\" EpolicyE can be\\en\");\n" " fpe(\" f SCHED_FIFO\\en\");\n" " fpe(\" r SCHED_RR\\en\");\n" " fpe(\" o SCHED_OTHER\\en\");\n" " fpe(\"-A Use default thread attributes object\\en\");\n" " fpe(\"-i {e|s} Set inherit scheduler attribute to\\en\");\n" " fpe(\" \\[aq]explicit\\[aq] or \\[aq]inherit\\[aq]\\en\");\n" " fpe(\"-mEpolicyEEprioE Set scheduling policy and priority on\\en\");\n" " fpe(\" main thread before pthread_create() call\\en\");\n" " exit(EXIT_FAILURE);\n" "}\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "static int\n" "get_policy(char p, int *policy)\n" "{\n" " switch (p) {\n" " case \\[aq]f\\[aq]: *policy = SCHED_FIFO; return 1;\n" " case \\[aq]r\\[aq]: *policy = SCHED_RR; return 1;\n" " case \\[aq]o\\[aq]: *policy = SCHED_OTHER; return 1;\n" " default: return 0;\n" " }\n" "}\n" msgstr "" "static int\n" "get_policy(char p, int *policy)\n" "{\n" " switch (p) {\n" " case \\[aq]f\\[aq]: *policy = SCHED_FIFO; return 1;\n" " case \\[aq]r\\[aq]: *policy = SCHED_RR; return 1;\n" " case \\[aq]o\\[aq]: *policy = SCHED_OTHER; return 1;\n" " default: return 0;\n" " }\n" "}\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "static void\n" "display_sched_attr(int policy, struct sched_param *param)\n" "{\n" " printf(\" policy=%s, priority=%d\\en\",\n" " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" " (policy == SCHED_RR) ? \"SCHED_RR\" :\n" " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" :\n" " \"???\",\n" " param-Esched_priority);\n" "}\n" msgstr "" "static void\n" "display_sched_attr(int policy, struct sched_param *param)\n" "{\n" " printf(\" policy=%s, priority=%d\\en\",\n" " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n" " (policy == SCHED_RR) ? \"SCHED_RR\" :\n" " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" :\n" " \"???\",\n" " param-Esched_priority);\n" "}\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "static void\n" "display_thread_sched_attr(char *msg)\n" "{\n" " int policy, s;\n" " struct sched_param param;\n" msgstr "" "static void\n" "display_thread_sched_attr(char *msg)\n" "{\n" " int policy, s;\n" " struct sched_param param;\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " s = pthread_getschedparam(pthread_self(), &policy, ¶m);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_getschedparam\");\n" msgstr "" " s = pthread_getschedparam(pthread_self(), &policy, ¶m);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_getschedparam\");\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " printf(\"%s\\en\", msg);\n" " display_sched_attr(policy, ¶m);\n" "}\n" msgstr "" " printf(\"%s\\en\", msg);\n" " display_sched_attr(policy, ¶m);\n" "}\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "static void *\n" "thread_start(void *arg)\n" "{\n" " display_thread_sched_attr(\"Scheduler attributes of new thread\");\n" msgstr "" "static void *\n" "thread_start(void *arg)\n" "{\n" " display_thread_sched_attr(\"Scheduler attributes of new thread\");\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " return NULL;\n" "}\n" msgstr "" " return NULL;\n" "}\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" "int\n" "main(int argc, char *argv[])\n" "{\n" " int s, opt, inheritsched, use_null_attrib, policy;\n" " pthread_t thread;\n" " pthread_attr_t attr;\n" " pthread_attr_t *attrp;\n" " char *attr_sched_str, *main_sched_str, *inheritsched_str;\n" " struct sched_param param;\n" msgstr "" "int\n" "main(int argc, char *argv[])\n" "{\n" " int s, opt, inheritsched, use_null_attrib, policy;\n" " pthread_t thread;\n" " pthread_attr_t attr;\n" " pthread_attr_t *attrp;\n" " char *attr_sched_str, *main_sched_str, *inheritsched_str;\n" " struct sched_param param;\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid " /* Process command-line options. */\n" msgstr " /* Traiter les options en ligne de commande. */\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " use_null_attrib = 0;\n" " attr_sched_str = NULL;\n" " main_sched_str = NULL;\n" " inheritsched_str = NULL;\n" msgstr "" " use_null_attrib = 0;\n" " attr_sched_str = NULL;\n" " main_sched_str = NULL;\n" " inheritsched_str = NULL;\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " while ((opt = getopt(argc, argv, \"a:Ai:m:\")) != -1) {\n" " switch (opt) {\n" " case \\[aq]a\\[aq]: attr_sched_str = optarg; break;\n" " case \\[aq]A\\[aq]: use_null_attrib = 1; break;\n" " case \\[aq]i\\[aq]: inheritsched_str = optarg; break;\n" " case \\[aq]m\\[aq]: main_sched_str = optarg; break;\n" " default: usage(argv[0], \"Unrecognized option\\en\");\n" " }\n" " }\n" msgstr "" " while ((opt = getopt(argc, argv, \"a:Ai:m:\")) != -1) {\n" " switch (opt) {\n" " case \\[aq]a\\[aq]: attr_sched_str = optarg; break;\n" " case \\[aq]A\\[aq]: use_null_attrib = 1; break;\n" " case \\[aq]i\\[aq]: inheritsched_str = optarg; break;\n" " case \\[aq]m\\[aq]: main_sched_str = optarg; break;\n" " default: usage(argv[0], \"Unrecognized option\\en\");\n" " }\n" " }\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " if (use_null_attrib\n" " && (inheritsched_str != NULL || attr_sched_str != NULL))\n" " {\n" " usage(argv[0], \"Can\\[aq]t specify -A with -i or -a\\en\");\n" " }\n" msgstr "" " if (use_null_attrib\n" " && (inheritsched_str != NULL || attr_sched_str != NULL))\n" " {\n" " usage(argv[0], \"Can\\[aq]t specify -A with -i or -a\\en\");\n" " }\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " /* Optionally set scheduling attributes of main thread,\n" " and display the attributes. */\n" msgstr "" " /* Définir de façon optionelle les attributs d'ordonnancement\n" " du thread principal et afficher les attributs. */\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " if (main_sched_str != NULL) {\n" " if (!get_policy(main_sched_str[0], &policy))\n" " usage(argv[0], \"Bad policy for main thread (-m)\\en\");\n" " param.sched_priority = strtol(&main_sched_str[1], NULL, 0);\n" msgstr "" " if (main_sched_str != NULL) {\n" " if (!get_policy(main_sched_str[0], &policy))\n" " usage(argv[0], \"Bad policy for main thread (-m)\\en\");\n" " param.sched_priority = strtol(&main_sched_str[1], NULL, 0);\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " s = pthread_setschedparam(pthread_self(), policy, ¶m);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_setschedparam\");\n" " }\n" msgstr "" " s = pthread_setschedparam(pthread_self(), policy, ¶m);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_setschedparam\");\n" " }\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " display_thread_sched_attr(\"Scheduler settings of main thread\");\n" " printf(\"\\en\");\n" msgstr "" " display_thread_sched_attr(\"Scheduler settings of main thread\");\n" " printf(\"\\en\");\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid " /* Initialize thread attributes object according to options. */\n" msgstr " /* Initialiser l'objet d'attributs du thread en fonction des options. */\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid " attrp = NULL;\n" msgstr " attrp = NULL;\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " if (!use_null_attrib) {\n" " s = pthread_attr_init(&attr);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_init\");\n" " attrp = &attr;\n" " }\n" msgstr "" " if (!use_null_attrib) {\n" " s = pthread_attr_init(&attr);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_init\");\n" " attrp = &attr;\n" " }\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " if (inheritsched_str != NULL) {\n" " if (inheritsched_str[0] == \\[aq]e\\[aq])\n" " inheritsched = PTHREAD_EXPLICIT_SCHED;\n" " else if (inheritsched_str[0] == \\[aq]i\\[aq])\n" " inheritsched = PTHREAD_INHERIT_SCHED;\n" " else\n" " usage(argv[0], \"Value for -i must be \\[aq]e\\[aq] or \\[aq]i\\[aq]\\en\");\n" msgstr "" " if (inheritsched_str != NULL) {\n" " if (inheritsched_str[0] == \\[aq]e\\[aq])\n" " inheritsched = PTHREAD_EXPLICIT_SCHED;\n" " else if (inheritsched_str[0] == \\[aq]i\\[aq])\n" " inheritsched = PTHREAD_INHERIT_SCHED;\n" " else\n" " usage(argv[0], \"Value for -i must be \\[aq]e\\[aq] or \\[aq]i\\[aq]\\en\");\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " s = pthread_attr_setinheritsched(&attr, inheritsched);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_setinheritsched\");\n" " }\n" msgstr "" " s = pthread_attr_setinheritsched(&attr, inheritsched);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_setinheritsched\");\n" " }\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " if (attr_sched_str != NULL) {\n" " if (!get_policy(attr_sched_str[0], &policy))\n" " usage(argv[0], \"Bad policy for \\[aq]attr\\[aq] (-a)\\en\");\n" " param.sched_priority = strtol(&attr_sched_str[1], NULL, 0);\n" msgstr "" " if (attr_sched_str != NULL) {\n" " if (!get_policy(attr_sched_str[0], &policy))\n" " usage(argv[0], \"Bad policy for \\[aq]attr\\[aq] (-a)\\en\");\n" " param.sched_priority = strtol(&attr_sched_str[1], NULL, 0);\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " s = pthread_attr_setschedpolicy(&attr, policy);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_setschedpolicy\");\n" " s = pthread_attr_setschedparam(&attr, ¶m);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_setschedparam\");\n" " }\n" msgstr "" " s = pthread_attr_setschedpolicy(&attr, policy);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_setschedpolicy\");\n" " s = pthread_attr_setschedparam(&attr, ¶m);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_setschedparam\");\n" " }\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " /* If we initialized a thread attributes object, display\n" " the scheduling attributes that were set in the object. */\n" msgstr "" " /* Si un objet d'attributs de thread est initialisé, afficher\n" " les attributs d'ordonnancement définis dans l'objet. */\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " if (attrp != NULL) {\n" " s = pthread_attr_getschedparam(&attr, ¶m);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_getschedparam\");\n" " s = pthread_attr_getschedpolicy(&attr, &policy);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_getschedpolicy\");\n" msgstr "" " if (attrp != NULL) {\n" " s = pthread_attr_getschedparam(&attr, ¶m);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_getschedparam\");\n" " s = pthread_attr_getschedpolicy(&attr, &policy);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_getschedpolicy\");\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " printf(\"Scheduler settings in \\[aq]attr\\[aq]\\en\");\n" " display_sched_attr(policy, ¶m);\n" msgstr "" " printf(\"Scheduler settings in \\[aq]attr\\[aq]\\en\");\n" " display_sched_attr(policy, ¶m);\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " pthread_attr_getinheritsched(&attr, &inheritsched);\n" " printf(\" inheritsched is %s\\en\",\n" " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" " \"???\");\n" " printf(\"\\en\");\n" " }\n" msgstr "" " pthread_attr_getinheritsched(&attr, &inheritsched);\n" " printf(\" inheritsched is %s\\en\",\n" " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n" " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n" " \"???\");\n" " printf(\"\\en\");\n" " }\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid " /* Create a thread that will display its scheduling attributes. */\n" msgstr " /* Créer un thread qui affichera ses attributs d'ordonnancement. */\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " s = pthread_create(&thread, attrp, &thread_start, NULL);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_create\");\n" msgstr "" " s = pthread_create(&thread, attrp, &thread_start, NULL);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_create\");\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid " /* Destroy unneeded thread attributes object. */\n" msgstr " /* Supprimer l'objet d'attributs de thread inutile. */\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " if (!use_null_attrib) {\n" " s = pthread_attr_destroy(&attr);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_destroy\");\n" " }\n" msgstr "" " if (!use_null_attrib) {\n" " s = pthread_attr_destroy(&attr);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_attr_destroy\");\n" " }\n" #. type: Plain text #: debian-bookworm opensuse-leap-15-6 #, no-wrap msgid "" " s = pthread_join(thread, NULL);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_join\");\n" msgstr "" " s = pthread_join(thread, NULL);\n" " if (s != 0)\n" " handle_error_en(s, \"pthread_join\");\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 #: fedora-40 fedora-rawhide mageia-cauldron #, no-wrap msgid "2023-10-31" msgstr "31 octobre 2023" #. type: TH #: fedora-40 mageia-cauldron #, no-wrap msgid "Linux man-pages 6.06" msgstr "Pages du manuel de Linux 6.06" #. type: TH #: fedora-rawhide #, no-wrap msgid "Linux man-pages 6.7" msgstr "Pages du manuel de Linux 6.7" #. 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" #. type: TH #: opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "Pages du manuel de Linux (non publiées)"