# Arabic translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # زايد السعيدي , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.30.2\n" "POT-Creation-Date: 2026-06-05 06:38+0200\n" "PO-Revision-Date: 2026-06-02 19:38+0400\n" "Last-Translator: Zayed Al-Saidi \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "pthread_getattr_default_np" msgstr "pthread_getattr_default_np" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "8 فبراير 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "صفحات دليل لينكس 6.18" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "الاسم" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "pthread_getattr_default_np, pthread_setattr_default_np, - get or set default " "thread-creation attributes" msgstr "" "pthread_getattr_default_np, pthread_setattr_default_np, - الحصول على أو " "تعيين سمات إنشاء الخيط المبدئية" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "المكتبة" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "POSIX threads library (I,\\ I<-lpthread>)" msgstr "مكتبة مسالك POSIX (I،\\ I<-lpthread>)" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "موجز" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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> /* انظر feature_test_macros(7) */\n" "B<#include Epthread.hE>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "BIB<);>\n" "BIB<);>\n" msgstr "" "BIB<);>\n" "BIB<);>\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "الوصف" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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 "" "تضبط الدالة B() السمات المبدئية المستخدمة لإنشاء " "خيط جديد\\[em]أي السمات المستخدمة عند استدعاء B(3) بوسيطة " "ثانية قيمتها NULL. تُضبط السمات المبدئية باستخدام السمات المقدمة في I<*attr>، " "وهو كائن سمات خيط مُهيأ مسبقًا. لاحظ التفاصيل التالية حول كائن السمات المقدم:" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\[bu]" msgstr "\\[bu]" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The attribute settings in the object must be valid." msgstr "يجب أن تكون إعدادات السمات في الكائن صالحة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The I attribute must not be set in the object." msgstr "يجب ألا تُضبط سمة I<عنوان المكدس> في الكائن." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Setting the I attribute to zero means leave the default stack " "size unchanged." msgstr "ضبط سمة I<حجم المكدس> على الصفر يعني ترك حجم المكدس المبدئي دون تغيير." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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 "" "تهيئ الدالة B() كائن سمات الخيط المشار إليه بـ " "I بحيث يحتوي على السمات المبدئية المستخدمة لإنشاء الخيط." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "الأخطاء" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "(B()) One of the attribute settings in I " "is invalid, or the stack address attribute is set in I." msgstr "" "(B()) أحد إعدادات السمات في I غير صالح، " "أو سمة عنوان المكدس مضبوطة في I." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. Can happen (but unlikely) while trying to allocate memory for cpuset #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "(B()) Insufficient memory." msgstr "(B()) ذاكرة غير كافية." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ATTRIBUTES" msgstr "السمات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For an explanation of the terms used in this section, see B(7)." msgstr "" "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B(7)." #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Interface" msgstr "الواجهة" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Attribute" msgstr "السمة" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Value" msgstr "القيمة" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".na\n" msgstr ".na\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".nh\n" msgstr ".nh\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B(),\n" "B()" msgstr "" "B(),\n" "B()" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Thread safety" msgstr "سلامة الخيوط" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "MT-Safe" msgstr "MT-Safe" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "المعايير" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "GNU; hence the suffix \"_np\" (nonportable) in their names." msgstr "GNU؛ ومن هنا اللاحقة \"_np\" (غير محمولة) في أسمائها." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "التاريخ" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "glibc 2.18." msgstr "glibc 2.18." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "أمثلة" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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 "" "يستخدم البرنامج أدناه B() لجلب سمات إنشاء الخيط " "المبدئية ثم يعرض إعدادات متنوعة من كائن سمات الخيط المُعاد. عند تشغيل " "البرنامج، نرى المخرجات التالية:" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Program source" msgstr "مصدر البرنامج" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Eerr.hE\n" "#include Epthread.hE\n" "#include Esched.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\\[rs]n\", 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\\[rs]n\", 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\\[rs]n\",\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\\[rs]n\", 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\\[rs]n\",\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\\[rs]n\",\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 Epthread.hE\n" "#include Esched.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\\[rs]n\", 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\\[rs]n\", 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\\[rs]n\",\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\\[rs]n\", 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\\[rs]n\",\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\\[rs]n\",\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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "انظر أيضًا" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 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-trixie #, no-wrap msgid "2024-06-15" msgstr "15 يونيو 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "صفحات دليل لينكس 6.9.1" #. type: Plain text #: debian-trixie msgid "POSIX threads library (I, I<-lpthread>)" msgstr "مكتبة مسالك POSIX (I، I<-lpthread>)" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, 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: Plain text #: debian-trixie #, 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: %zu\\[rs]n\", 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\\[rs]n\", 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\\[rs]n\",\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\\[rs]n\", 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\\[rs]n\",\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\\[rs]n\",\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: %zu\\[rs]n\", 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\\[rs]n\", 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\\[rs]n\",\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\\[rs]n\", 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\\[rs]n\",\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\\[rs]n\",\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 #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-11-03" msgstr "3 نوفمبر 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "صفحات دليل لينكس 6.13" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "صفحات دليل لينكس 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "صفحات دليل لينكس (لم تصدر بعد)"