diff options
Diffstat (limited to 'templates/man3/pthread_getattr_default_np.3.pot')
-rw-r--r-- | templates/man3/pthread_getattr_default_np.3.pot | 678 |
1 files changed, 678 insertions, 0 deletions
diff --git a/templates/man3/pthread_getattr_default_np.3.pot b/templates/man3/pthread_getattr_default_np.3.pot new file mode 100644 index 00000000..25d058f9 --- /dev/null +++ b/templates/man3/pthread_getattr_default_np.3.pot @@ -0,0 +1,678 @@ +# SOME DESCRIPTIVE TITLE +# Copyright (C) YEAR Free Software Foundation, Inc. +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2024-03-01 17:04+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\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 "" + +#. type: TH +#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "2023-10-31" +msgstr "" + +#. type: TH +#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "Linux man-pages 6.06" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "NAME" +msgstr "" + +#. 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 "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "LIBRARY" +msgstr "" + +#. 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<libpthread>, I<-lpthread>)" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "SYNOPSIS" +msgstr "" + +#. 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 E<lt>pthread.hE<gt>>\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"B<int pthread_getattr_default_np(pthread_attr_t *>I<attr>B<);>\n" +"B<int pthread_setattr_default_np(const pthread_attr_t *>I<attr>B<);>\n" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "DESCRIPTION" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The B<pthread_setattr_default_np>() function sets the default attributes " +"used for creation of a new thread\\[em]that is, the attributes that are used " +"when B<pthread_create>(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 "" + +#. 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 "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "The I<stack address> attribute must not be set in the object." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Setting the I<stack size> attribute to zero means leave the default stack " +"size unchanged." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The B<pthread_getattr_default_np>() function initializes the thread " +"attributes object referred to by I<attr> so that it contains the default " +"attributes used for thread creation." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "ERRORS" +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<EINVAL>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"(B<pthread_setattr_default_np>()) One of the attribute settings in I<attr> " +"is invalid, or the stack address attribute is set in I<attr>." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<ENOMEM>" +msgstr "" + +#. 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<pthread_setattr_default_np>()) Insufficient memory." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "ATTRIBUTES" +msgstr "" + +#. 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<attributes>(7)." +msgstr "" + +#. 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 "" + +#. 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 "" + +#. 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 "" + +#. type: tbl table +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid ".na\n" +msgstr "" + +#. type: tbl table +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid ".nh\n" +msgstr "" + +#. type: tbl table +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"B<pthread_getattr_default_np>(),\n" +"B<pthread_setattr_default_np>()" +msgstr "" + +#. 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 "" + +#. 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 "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "STANDARDS" +msgstr "" + +#. 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 "" + +#. type: SH +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "HISTORY" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "glibc 2.18." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "EXAMPLES" +msgstr "" + +#. 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<pthread_getattr_default_np>() 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 "" + +#. 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 "" + +#. 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 "" + +#. type: Plain text +#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "" +"#define _GNU_SOURCE\n" +"#include E<lt>err.hE<gt>\n" +"#include E<lt>errno.hE<gt>\n" +"#include E<lt>pthread.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\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 "" + +#. 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 "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"B<pthread_attr_getaffinity_np>(3), B<pthread_attr_getdetachstate>(3), " +"B<pthread_attr_getguardsize>(3), B<pthread_attr_getinheritsched>(3), " +"B<pthread_attr_getschedparam>(3), B<pthread_attr_getschedpolicy>(3), " +"B<pthread_attr_getscope>(3), B<pthread_attr_getstack>(3), " +"B<pthread_attr_getstackaddr>(3), B<pthread_attr_getstacksize>(3), " +"B<pthread_attr_init>(3), B<pthread_create>(3), B<pthreads>(7)" +msgstr "" + +#. type: TH +#: debian-bookworm +#, no-wrap +msgid "2023-02-05" +msgstr "" + +#. type: TH +#: debian-bookworm +#, no-wrap +msgid "Linux man-pages 6.03" +msgstr "" + +#. type: SH +#: debian-bookworm +#, no-wrap +msgid "VERSIONS" +msgstr "" + +#. type: Plain text +#: debian-bookworm +msgid "These functions are available since glibc 2.18." +msgstr "" + +#. type: Plain text +#: debian-bookworm +msgid "" +"These functions are nonstandard GNU extensions; hence the suffix " +"\"_np\" (nonportable) in their names." +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"#define _GNU_SOURCE\n" +"#include E<lt>err.hE<gt>\n" +"#include E<lt>errno.hE<gt>\n" +"#include E<lt>pthread.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +msgstr "" + +#. 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 "" + +#. 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 "" + +#. 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 "" + +#. 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 "" + +#. 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 "" + +#. 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 "" + +#. 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 "" + +#. 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 "" + +#. 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 "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid " display_pthread_attr(&attr);\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" + +#. type: TH +#: debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "2023-07-20" +msgstr "" + +#. type: TH +#: debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "Linux man-pages 6.05.01" +msgstr "" + +#. type: Plain text +#: debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "" +"#define _GNU_SOURCE\n" +"#include E<lt>err.hE<gt>\n" +"#include E<lt>errno.hE<gt>\n" +"#include E<lt>pthread.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\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 "" + +#. type: TH +#: opensuse-leap-15-6 +#, no-wrap +msgid "2023-03-30" +msgstr "" + +#. type: TH +#: opensuse-leap-15-6 +#, no-wrap +msgid "Linux man-pages 6.04" +msgstr "" |