Debian Codegraph @

po/ar/man3/pthread_getattr_default_np.3.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:38+0200\n"
9 "PO-Revision-Date: 2026-06-02 19:38+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
17 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
18 "X-Generator: Lokalize 23.08.5\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "pthread_getattr_default_np"
25 msgstr "pthread_getattr_default_np"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 فبراير 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "صفحات دليل لينكس 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "الاسم"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid ""
51 "pthread_getattr_default_np, pthread_setattr_default_np, - get or set default "
52 "thread-creation attributes"
53 msgstr ""
54 "pthread_getattr_default_np, pthread_setattr_default_np, - الحصول على أو "
55 "تعيين سمات إنشاء الخيط المبدئية"
56
57 #. type: SH
58 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
59 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
60 #, no-wrap
61 msgid "LIBRARY"
62 msgstr "المكتبة"
63
64 #. type: Plain text
65 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
66 #: opensuse-leap-16-1 opensuse-tumbleweed
67 msgid "POSIX threads library (I<libpthread>,\\ I<-lpthread>)"
68 msgstr "مكتبة مسالك POSIX (I<libpthread>،\\ I<-lpthread>)"
69
70 #. type: SH
71 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
72 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
73 #, no-wrap
74 msgid "SYNOPSIS"
75 msgstr "موجز"
76
77 #. type: Plain text
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid ""
82 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
83 "B<#include E<lt>pthread.hE<gt>>\n"
84 msgstr ""
85 "B<#define _GNU_SOURCE> /* انظر feature_test_macros(7) */\n"
86 "B<#include E<lt>pthread.hE<gt>>\n"
87
88 #. type: Plain text
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid ""
93 "B<int pthread_getattr_default_np(pthread_attr_t *>I<attr>B<);>\n"
94 "B<int pthread_setattr_default_np(const pthread_attr_t *>I<attr>B<);>\n"
95 msgstr ""
96 "B<int pthread_getattr_default_np(pthread_attr_t *>I<attr>B<);>\n"
97 "B<int pthread_setattr_default_np(const pthread_attr_t *>I<attr>B<);>\n"
98
99 #. type: SH
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 #, no-wrap
103 msgid "DESCRIPTION"
104 msgstr "الوصف"
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 msgid ""
110 "The B<pthread_setattr_default_np>() function sets the default attributes "
111 "used for creation of a new thread\\[em]that is, the attributes that are used "
112 "when B<pthread_create>(3) is called with a second argument that is NULL. "
113 "The default attributes are set using the attributes supplied in I<*attr>, a "
114 "previously initialized thread attributes object. Note the following details "
115 "about the supplied attributes object:"
116 msgstr ""
117 "تضبط الدالة B<pthread_setattr_default_np>() السمات المبدئية المستخدمة لإنشاء "
118 "خيط جديد\\[em]أي السمات المستخدمة عند استدعاء B<pthread_create>(3) بوسيطة "
119 "ثانية قيمتها NULL. تُضبط السمات المبدئية باستخدام السمات المقدمة في I<*attr>، "
120 "وهو كائن سمات خيط مُهيأ مسبقًا. لاحظ التفاصيل التالية حول كائن السمات المقدم:"
121
122 #. type: IP
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 #, no-wrap
126 msgid "\\[bu]"
127 msgstr "\\[bu]"
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 msgid "The attribute settings in the object must be valid."
133 msgstr "يجب أن تكون إعدادات السمات في الكائن صالحة."
134
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 msgid "The I<stack address> attribute must not be set in the object."
139 msgstr "يجب ألا تُضبط سمة I<عنوان المكدس> في الكائن."
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 msgid ""
145 "Setting the I<stack size> attribute to zero means leave the default stack "
146 "size unchanged."
147 msgstr "ضبط سمة I<حجم المكدس> على الصفر يعني ترك حجم المكدس المبدئي دون تغيير."
148
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 msgid ""
153 "The B<pthread_getattr_default_np>() function initializes the thread "
154 "attributes object referred to by I<attr> so that it contains the default "
155 "attributes used for thread creation."
156 msgstr ""
157 "تهيئ الدالة B<pthread_getattr_default_np>() كائن سمات الخيط المشار إليه بـ "
158 "I<attr> بحيث يحتوي على السمات المبدئية المستخدمة لإنشاء الخيط."
159
160 #. type: SH
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 #, no-wrap
164 msgid "ERRORS"
165 msgstr "الأخطاء"
166
167 #. type: TP
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 #, no-wrap
171 msgid "B<EINVAL>"
172 msgstr "B<EINVAL>"
173
174 #. type: Plain text
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 msgid ""
178 "(B<pthread_setattr_default_np>()) One of the attribute settings in I<attr> "
179 "is invalid, or the stack address attribute is set in I<attr>."
180 msgstr ""
181 "(B<pthread_setattr_default_np>()) أحد إعدادات السمات في I<attr> غير صالح، "
182 "أو سمة عنوان المكدس مضبوطة في I<attr>."
183
184 #. type: TP
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 #, no-wrap
188 msgid "B<ENOMEM>"
189 msgstr "B<ENOMEM>"
190
191 #. Can happen (but unlikely) while trying to allocate memory for cpuset
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid "(B<pthread_setattr_default_np>()) Insufficient memory."
196 msgstr "(B<pthread_setattr_default_np>()) ذاكرة غير كافية."
197
198 #. type: SH
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 #, no-wrap
202 msgid "ATTRIBUTES"
203 msgstr "السمات"
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 msgid ""
209 "For an explanation of the terms used in this section, see B<attributes>(7)."
210 msgstr ""
211 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
212
213 #. type: tbl table
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, no-wrap
217 msgid "Interface"
218 msgstr "الواجهة"
219
220 #. type: tbl table
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 #, no-wrap
224 msgid "Attribute"
225 msgstr "السمة"
226
227 #. type: tbl table
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 #, no-wrap
231 msgid "Value"
232 msgstr "القيمة"
233
234 #. type: tbl table
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 #, no-wrap
238 msgid ".na\n"
239 msgstr ".na\n"
240
241 #. type: tbl table
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 #, no-wrap
245 msgid ".nh\n"
246 msgstr ".nh\n"
247
248 #. type: tbl table
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 #, no-wrap
252 msgid ""
253 "B<pthread_getattr_default_np>(),\n"
254 "B<pthread_setattr_default_np>()"
255 msgstr ""
256 "B<pthread_getattr_default_np>(),\n"
257 "B<pthread_setattr_default_np>()"
258
259 #. type: tbl table
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid "Thread safety"
264 msgstr "سلامة الخيوط"
265
266 #. type: tbl table
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "MT-Safe"
271 msgstr "MT-Safe"
272
273 #. type: SH
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 #, no-wrap
277 msgid "STANDARDS"
278 msgstr "المعايير"
279
280 #. type: Plain text
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 msgid "GNU; hence the suffix \"_np\" (nonportable) in their names."
284 msgstr "GNU؛ ومن هنا اللاحقة \"_np\" (غير محمولة) في أسمائها."
285
286 #. type: SH
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 #, no-wrap
290 msgid "HISTORY"
291 msgstr "التاريخ"
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 msgid "glibc 2.18."
297 msgstr "glibc 2.18."
298
299 #. type: SH
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, no-wrap
303 msgid "EXAMPLES"
304 msgstr "أمثلة"
305
306 #. type: Plain text
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 msgid ""
310 "The program below uses B<pthread_getattr_default_np>() to fetch the default "
311 "thread-creation attributes and then displays various settings from the "
312 "returned thread attributes object. When running the program, we see the "
313 "following output:"
314 msgstr ""
315 "يستخدم البرنامج أدناه B<pthread_getattr_default_np>() لجلب سمات إنشاء الخيط "
316 "المبدئية ثم يعرض إعدادات متنوعة من كائن سمات الخيط المُعاد. عند تشغيل "
317 "البرنامج، نرى المخرجات التالية:"
318
319 #. type: Plain text
320 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
321 #: opensuse-tumbleweed
322 #, no-wrap
323 msgid ""
324 "$B< ./a.out>;\n"
325 "Stack size: 8388608\n"
326 "Guard size: 4096\n"
327 "Scheduling policy: SCHED_OTHER\n"
328 "Scheduling priority: 0\n"
329 "Detach state: JOINABLE\n"
330 "Inherit scheduler: INHERIT\n"
331 msgstr ""
332 "$B< ./a.out>;\n"
333 "Stack size: 8388608\n"
334 "Guard size: 4096\n"
335 "Scheduling policy: SCHED_OTHER\n"
336 "Scheduling priority: 0\n"
337 "Detach state: JOINABLE\n"
338 "Inherit scheduler: INHERIT\n"
339
340 #. type: SS
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "Program source"
345 msgstr "مصدر البرنامج"
346
347 #. type: Plain text
348 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
349 #: opensuse-leap-16-1 opensuse-tumbleweed
350 #, no-wrap
351 msgid ""
352 "#define _GNU_SOURCE\n"
353 "#include E<lt>err.hE<gt>\n"
354 "#include E<lt>pthread.hE<gt>\n"
355 "#include E<lt>sched.hE<gt>\n"
356 "#include E<lt>stdio.hE<gt>\n"
357 "#include E<lt>stdlib.hE<gt>\n"
358 "\\&\n"
359 "static void\n"
360 "display_pthread_attr(pthread_attr_t *attr)\n"
361 "{\n"
362 " int s;\n"
363 " size_t stacksize;\n"
364 " size_t guardsize;\n"
365 " int policy;\n"
366 " struct sched_param schedparam;\n"
367 " int detachstate;\n"
368 " int inheritsched;\n"
369 "\\&\n"
370 " s = pthread_attr_getstacksize(attr, &stacksize);\n"
371 " if (s != 0)\n"
372 " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n"
373 " printf(\"Stack size: %zu\\[rs]n\", stacksize);\n"
374 "\\&\n"
375 " s = pthread_attr_getguardsize(attr, &guardsize);\n"
376 " if (s != 0)\n"
377 " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n"
378 " printf(\"Guard size: %zu\\[rs]n\", guardsize);\n"
379 "\\&\n"
380 " s = pthread_attr_getschedpolicy(attr, &policy);\n"
381 " if (s != 0)\n"
382 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n"
383 " printf(\"Scheduling policy: %s\\[rs]n\",\n"
384 " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n"
385 " (policy == SCHED_RR) ? \"SCHED_RR\" :\n"
386 " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n"
387 "\\&\n"
388 " s = pthread_attr_getschedparam(attr, &schedparam);\n"
389 " if (s != 0)\n"
390 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n"
391 " printf(\"Scheduling priority: %d\\[rs]n\", schedparam.sched_priority);\n"
392 "\\&\n"
393 " s = pthread_attr_getdetachstate(attr, &detachstate);\n"
394 " if (s != 0)\n"
395 " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n"
396 " printf(\"Detach state: %s\\[rs]n\",\n"
397 " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n"
398 " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n"
399 " \"???\");\n"
400 "\\&\n"
401 " s = pthread_attr_getinheritsched(attr, &inheritsched);\n"
402 " if (s != 0)\n"
403 " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n"
404 " printf(\"Inherit scheduler: %s\\[rs]n\",\n"
405 " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n"
406 " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n"
407 " \"???\");\n"
408 "}\n"
409 "\\&\n"
410 "int\n"
411 "main(void)\n"
412 "{\n"
413 " int s;\n"
414 " pthread_attr_t attr;\n"
415 "\\&\n"
416 " s = pthread_getattr_default_np(&attr);\n"
417 " if (s != 0)\n"
418 " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n"
419 "\\&\n"
420 " display_pthread_attr(&attr);\n"
421 "\\&\n"
422 " exit(EXIT_SUCCESS);\n"
423 "}\n"
424 msgstr ""
425 "#define _GNU_SOURCE\n"
426 "#include E<lt>err.hE<gt>\n"
427 "#include E<lt>pthread.hE<gt>\n"
428 "#include E<lt>sched.hE<gt>\n"
429 "#include E<lt>stdio.hE<gt>\n"
430 "#include E<lt>stdlib.hE<gt>\n"
431 "\\&\n"
432 "static void\n"
433 "display_pthread_attr(pthread_attr_t *attr)\n"
434 "{\n"
435 " int s;\n"
436 " size_t stacksize;\n"
437 " size_t guardsize;\n"
438 " int policy;\n"
439 " struct sched_param schedparam;\n"
440 " int detachstate;\n"
441 " int inheritsched;\n"
442 "\\&\n"
443 " s = pthread_attr_getstacksize(attr, &stacksize);\n"
444 " if (s != 0)\n"
445 " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n"
446 " printf(\"Stack size: %zu\\[rs]n\", stacksize);\n"
447 "\\&\n"
448 " s = pthread_attr_getguardsize(attr, &guardsize);\n"
449 " if (s != 0)\n"
450 " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n"
451 " printf(\"Guard size: %zu\\[rs]n\", guardsize);\n"
452 "\\&\n"
453 " s = pthread_attr_getschedpolicy(attr, &policy);\n"
454 " if (s != 0)\n"
455 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n"
456 " printf(\"Scheduling policy: %s\\[rs]n\",\n"
457 " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n"
458 " (policy == SCHED_RR) ? \"SCHED_RR\" :\n"
459 " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n"
460 "\\&\n"
461 " s = pthread_attr_getschedparam(attr, &schedparam);\n"
462 " if (s != 0)\n"
463 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n"
464 " printf(\"Scheduling priority: %d\\[rs]n\", schedparam.sched_priority);\n"
465 "\\&\n"
466 " s = pthread_attr_getdetachstate(attr, &detachstate);\n"
467 " if (s != 0)\n"
468 " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n"
469 " printf(\"Detach state: %s\\[rs]n\",\n"
470 " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n"
471 " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n"
472 " \"???\");\n"
473 "\\&\n"
474 " s = pthread_attr_getinheritsched(attr, &inheritsched);\n"
475 " if (s != 0)\n"
476 " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n"
477 " printf(\"Inherit scheduler: %s\\[rs]n\",\n"
478 " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n"
479 " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n"
480 " \"???\");\n"
481 "}\n"
482 "\\&\n"
483 "int\n"
484 "main(void)\n"
485 "{\n"
486 " int s;\n"
487 " pthread_attr_t attr;\n"
488 "\\&\n"
489 " s = pthread_getattr_default_np(&attr);\n"
490 " if (s != 0)\n"
491 " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n"
492 "\\&\n"
493 " display_pthread_attr(&attr);\n"
494 "\\&\n"
495 " exit(EXIT_SUCCESS);\n"
496 "}\n"
497
498 #. SRC END
499 #. type: SH
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, no-wrap
503 msgid "SEE ALSO"
504 msgstr "انظر أيضًا"
505
506 #. type: Plain text
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 msgid ""
510 "B<pthread_attr_getaffinity_np>(3), B<pthread_attr_getdetachstate>(3), "
511 "B<pthread_attr_getguardsize>(3), B<pthread_attr_getinheritsched>(3), "
512 "B<pthread_attr_getschedparam>(3), B<pthread_attr_getschedpolicy>(3), "
513 "B<pthread_attr_getscope>(3), B<pthread_attr_getstack>(3), "
514 "B<pthread_attr_getstackaddr>(3), B<pthread_attr_getstacksize>(3), "
515 "B<pthread_attr_init>(3), B<pthread_create>(3), B<pthreads>(7)"
516 msgstr ""
517 "B<pthread_attr_getaffinity_np>(3)، B<pthread_attr_getdetachstate>(3)، "
518 "B<pthread_attr_getguardsize>(3)، B<pthread_attr_getinheritsched>(3)، "
519 "B<pthread_attr_getschedparam>(3)، B<pthread_attr_getschedpolicy>(3)، "
520 "B<pthread_attr_getscope>(3)، B<pthread_attr_getstack>(3)، "
521 "B<pthread_attr_getstackaddr>(3)، B<pthread_attr_getstacksize>(3)، "
522 "B<pthread_attr_init>(3)، B<pthread_create>(3)، B<pthreads>(7)"
523
524 #. type: TH
525 #: debian-trixie
526 #, no-wrap
527 msgid "2024-06-15"
528 msgstr "15 يونيو 2024"
529
530 #. type: TH
531 #: debian-trixie
532 #, no-wrap
533 msgid "Linux man-pages 6.9.1"
534 msgstr "صفحات دليل لينكس 6.9.1"
535
536 #. type: Plain text
537 #: debian-trixie
538 msgid "POSIX threads library (I<libpthread>, I<-lpthread>)"
539 msgstr "مكتبة مسالك POSIX (I<libpthread>، I<-lpthread>)"
540
541 #. type: Plain text
542 #: debian-trixie fedora-44 fedora-rawhide
543 #, no-wrap
544 msgid ""
545 "$ B<./a.out>\n"
546 "Stack size: 8388608\n"
547 "Guard size: 4096\n"
548 "Scheduling policy: SCHED_OTHER\n"
549 "Scheduling priority: 0\n"
550 "Detach state: JOINABLE\n"
551 "Inherit scheduler: INHERIT\n"
552 msgstr ""
553 "$ B<./a.out>\n"
554 "Stack size: 8388608\n"
555 "Guard size: 4096\n"
556 "Scheduling policy: SCHED_OTHER\n"
557 "Scheduling priority: 0\n"
558 "Detach state: JOINABLE\n"
559 "Inherit scheduler: INHERIT\n"
560
561 #. type: Plain text
562 #: debian-trixie
563 #, no-wrap
564 msgid ""
565 "#define _GNU_SOURCE\n"
566 "#include E<lt>err.hE<gt>\n"
567 "#include E<lt>errno.hE<gt>\n"
568 "#include E<lt>pthread.hE<gt>\n"
569 "#include E<lt>stdio.hE<gt>\n"
570 "#include E<lt>stdlib.hE<gt>\n"
571 "\\&\n"
572 "static void\n"
573 "display_pthread_attr(pthread_attr_t *attr)\n"
574 "{\n"
575 " int s;\n"
576 " size_t stacksize;\n"
577 " size_t guardsize;\n"
578 " int policy;\n"
579 " struct sched_param schedparam;\n"
580 " int detachstate;\n"
581 " int inheritsched;\n"
582 "\\&\n"
583 " s = pthread_attr_getstacksize(attr, &stacksize);\n"
584 " if (s != 0)\n"
585 " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n"
586 " printf(\"Stack size: %zu\\[rs]n\", stacksize);\n"
587 "\\&\n"
588 " s = pthread_attr_getguardsize(attr, &guardsize);\n"
589 " if (s != 0)\n"
590 " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n"
591 " printf(\"Guard size: %zu\\[rs]n\", guardsize);\n"
592 "\\&\n"
593 " s = pthread_attr_getschedpolicy(attr, &policy);\n"
594 " if (s != 0)\n"
595 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n"
596 " printf(\"Scheduling policy: %s\\[rs]n\",\n"
597 " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n"
598 " (policy == SCHED_RR) ? \"SCHED_RR\" :\n"
599 " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n"
600 "\\&\n"
601 " s = pthread_attr_getschedparam(attr, &schedparam);\n"
602 " if (s != 0)\n"
603 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n"
604 " printf(\"Scheduling priority: %d\\[rs]n\", schedparam.sched_priority);\n"
605 "\\&\n"
606 " s = pthread_attr_getdetachstate(attr, &detachstate);\n"
607 " if (s != 0)\n"
608 " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n"
609 " printf(\"Detach state: %s\\[rs]n\",\n"
610 " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n"
611 " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n"
612 " \"???\");\n"
613 "\\&\n"
614 " s = pthread_attr_getinheritsched(attr, &inheritsched);\n"
615 " if (s != 0)\n"
616 " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n"
617 " printf(\"Inherit scheduler: %s\\[rs]n\",\n"
618 " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n"
619 " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n"
620 " \"???\");\n"
621 "}\n"
622 "\\&\n"
623 "int\n"
624 "main(void)\n"
625 "{\n"
626 " int s;\n"
627 " pthread_attr_t attr;\n"
628 "\\&\n"
629 " s = pthread_getattr_default_np(&attr);\n"
630 " if (s != 0)\n"
631 " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n"
632 "\\&\n"
633 " display_pthread_attr(&attr);\n"
634 "\\&\n"
635 " exit(EXIT_SUCCESS);\n"
636 "}\n"
637 msgstr ""
638 "#define _GNU_SOURCE\n"
639 "#include E<lt>err.hE<gt>\n"
640 "#include E<lt>errno.hE<gt>\n"
641 "#include E<lt>pthread.hE<gt>\n"
642 "#include E<lt>stdio.hE<gt>\n"
643 "#include E<lt>stdlib.hE<gt>\n"
644 "\\&\n"
645 "static void\n"
646 "display_pthread_attr(pthread_attr_t *attr)\n"
647 "{\n"
648 " int s;\n"
649 " size_t stacksize;\n"
650 " size_t guardsize;\n"
651 " int policy;\n"
652 " struct sched_param schedparam;\n"
653 " int detachstate;\n"
654 " int inheritsched;\n"
655 "\\&\n"
656 " s = pthread_attr_getstacksize(attr, &stacksize);\n"
657 " if (s != 0)\n"
658 " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n"
659 " printf(\"Stack size: %zu\\[rs]n\", stacksize);\n"
660 "\\&\n"
661 " s = pthread_attr_getguardsize(attr, &guardsize);\n"
662 " if (s != 0)\n"
663 " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n"
664 " printf(\"Guard size: %zu\\[rs]n\", guardsize);\n"
665 "\\&\n"
666 " s = pthread_attr_getschedpolicy(attr, &policy);\n"
667 " if (s != 0)\n"
668 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n"
669 " printf(\"Scheduling policy: %s\\[rs]n\",\n"
670 " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n"
671 " (policy == SCHED_RR) ? \"SCHED_RR\" :\n"
672 " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n"
673 "\\&\n"
674 " s = pthread_attr_getschedparam(attr, &schedparam);\n"
675 " if (s != 0)\n"
676 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n"
677 " printf(\"Scheduling priority: %d\\[rs]n\", schedparam.sched_priority);\n"
678 "\\&\n"
679 " s = pthread_attr_getdetachstate(attr, &detachstate);\n"
680 " if (s != 0)\n"
681 " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n"
682 " printf(\"Detach state: %s\\[rs]n\",\n"
683 " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n"
684 " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n"
685 " \"???\");\n"
686 "\\&\n"
687 " s = pthread_attr_getinheritsched(attr, &inheritsched);\n"
688 " if (s != 0)\n"
689 " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n"
690 " printf(\"Inherit scheduler: %s\\[rs]n\",\n"
691 " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n"
692 " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n"
693 " \"???\");\n"
694 "}\n"
695 "\\&\n"
696 "int\n"
697 "main(void)\n"
698 "{\n"
699 " int s;\n"
700 " pthread_attr_t attr;\n"
701 "\\&\n"
702 " s = pthread_getattr_default_np(&attr);\n"
703 " if (s != 0)\n"
704 " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n"
705 "\\&\n"
706 " display_pthread_attr(&attr);\n"
707 "\\&\n"
708 " exit(EXIT_SUCCESS);\n"
709 "}\n"
710
711 #. type: TH
712 #: fedora-44 fedora-rawhide
713 #, no-wrap
714 msgid "2024-11-03"
715 msgstr "3 نوفمبر 2024"
716
717 #. type: TH
718 #: fedora-44 fedora-rawhide
719 #, no-wrap
720 msgid "Linux man-pages 6.13"
721 msgstr "صفحات دليل لينكس 6.13"
722
723 #. type: TH
724 #: mageia-cauldron
725 #, no-wrap
726 msgid "Linux man-pages 6.17"
727 msgstr "صفحات دليل لينكس 6.17"
728
729 #. type: TH
730 #: opensuse-leap-16-1 opensuse-tumbleweed
731 #, no-wrap
732 msgid "Linux man-pages (unreleased)"
733 msgstr "صفحات دليل لينكس (لم تصدر بعد)"