Debian Codegraph @

templates/man3/pthread_getattr_default_np.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:38+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "pthread_getattr_default_np"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid ""
50 "pthread_getattr_default_np, pthread_setattr_default_np, - get or set default "
51 "thread-creation attributes"
52 msgstr ""
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr ""
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "POSIX threads library (I<libpthread>,\\ I<-lpthread>)"
65 msgstr ""
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr ""
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid ""
79 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
80 "B<#include E<lt>pthread.hE<gt>>\n"
81 msgstr ""
82
83 #. type: Plain text
84 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
85 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<int pthread_getattr_default_np(pthread_attr_t *>I<attr>B<);>\n"
89 "B<int pthread_setattr_default_np(const pthread_attr_t *>I<attr>B<);>\n"
90 msgstr ""
91
92 #. type: SH
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, no-wrap
96 msgid "DESCRIPTION"
97 msgstr ""
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 msgid ""
103 "The B<pthread_setattr_default_np>() function sets the default attributes "
104 "used for creation of a new thread\\[em]that is, the attributes that are used "
105 "when B<pthread_create>(3) is called with a second argument that is NULL. "
106 "The default attributes are set using the attributes supplied in I<*attr>, a "
107 "previously initialized thread attributes object. Note the following details "
108 "about the supplied attributes object:"
109 msgstr ""
110
111 #. type: IP
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 #, no-wrap
115 msgid "\\[bu]"
116 msgstr ""
117
118 #. type: Plain text
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 msgid "The attribute settings in the object must be valid."
122 msgstr ""
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 msgid "The I<stack address> attribute must not be set in the object."
128 msgstr ""
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid ""
134 "Setting the I<stack size> attribute to zero means leave the default stack "
135 "size unchanged."
136 msgstr ""
137
138 #. type: Plain text
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 msgid ""
142 "The B<pthread_getattr_default_np>() function initializes the thread "
143 "attributes object referred to by I<attr> so that it contains the default "
144 "attributes used for thread creation."
145 msgstr ""
146
147 #. type: SH
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 #, no-wrap
151 msgid "ERRORS"
152 msgstr ""
153
154 #. type: TP
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 #, no-wrap
158 msgid "B<EINVAL>"
159 msgstr ""
160
161 #. type: Plain text
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 msgid ""
165 "(B<pthread_setattr_default_np>()) One of the attribute settings in I<attr> "
166 "is invalid, or the stack address attribute is set in I<attr>."
167 msgstr ""
168
169 #. type: TP
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, no-wrap
173 msgid "B<ENOMEM>"
174 msgstr ""
175
176 #. Can happen (but unlikely) while trying to allocate memory for cpuset
177 #. type: Plain text
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 msgid "(B<pthread_setattr_default_np>()) Insufficient memory."
181 msgstr ""
182
183 #. type: SH
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 #, no-wrap
187 msgid "ATTRIBUTES"
188 msgstr ""
189
190 #. type: Plain text
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 msgid ""
194 "For an explanation of the terms used in this section, see B<attributes>(7)."
195 msgstr ""
196
197 #. type: tbl table
198 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
199 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
200 #, no-wrap
201 msgid "Interface"
202 msgstr ""
203
204 #. type: tbl table
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 #, no-wrap
208 msgid "Attribute"
209 msgstr ""
210
211 #. type: tbl table
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 #, no-wrap
215 msgid "Value"
216 msgstr ""
217
218 #. type: tbl table
219 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
220 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
221 #, no-wrap
222 msgid ".na\n"
223 msgstr ""
224
225 #. type: tbl table
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 #, no-wrap
229 msgid ".nh\n"
230 msgstr ""
231
232 #. type: tbl table
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 #, no-wrap
236 msgid ""
237 "B<pthread_getattr_default_np>(),\n"
238 "B<pthread_setattr_default_np>()"
239 msgstr ""
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 "Thread safety"
246 msgstr ""
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 "MT-Safe"
253 msgstr ""
254
255 #. type: SH
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 #, no-wrap
259 msgid "STANDARDS"
260 msgstr ""
261
262 #. type: Plain text
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 msgid "GNU; hence the suffix \"_np\" (nonportable) in their names."
266 msgstr ""
267
268 #. type: SH
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 #, no-wrap
272 msgid "HISTORY"
273 msgstr ""
274
275 #. type: Plain text
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 msgid "glibc 2.18."
279 msgstr ""
280
281 #. type: SH
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "EXAMPLES"
286 msgstr ""
287
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 msgid ""
292 "The program below uses B<pthread_getattr_default_np>() to fetch the default "
293 "thread-creation attributes and then displays various settings from the "
294 "returned thread attributes object. When running the program, we see the "
295 "following output:"
296 msgstr ""
297
298 #. type: Plain text
299 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
300 #: opensuse-tumbleweed
301 #, no-wrap
302 msgid ""
303 "$B< ./a.out>;\n"
304 "Stack size: 8388608\n"
305 "Guard size: 4096\n"
306 "Scheduling policy: SCHED_OTHER\n"
307 "Scheduling priority: 0\n"
308 "Detach state: JOINABLE\n"
309 "Inherit scheduler: INHERIT\n"
310 msgstr ""
311
312 #. type: SS
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 #, no-wrap
316 msgid "Program source"
317 msgstr ""
318
319 #. type: Plain text
320 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
321 #: opensuse-leap-16-1 opensuse-tumbleweed
322 #, no-wrap
323 msgid ""
324 "#define _GNU_SOURCE\n"
325 "#include E<lt>err.hE<gt>\n"
326 "#include E<lt>pthread.hE<gt>\n"
327 "#include E<lt>sched.hE<gt>\n"
328 "#include E<lt>stdio.hE<gt>\n"
329 "#include E<lt>stdlib.hE<gt>\n"
330 "\\&\n"
331 "static void\n"
332 "display_pthread_attr(pthread_attr_t *attr)\n"
333 "{\n"
334 " int s;\n"
335 " size_t stacksize;\n"
336 " size_t guardsize;\n"
337 " int policy;\n"
338 " struct sched_param schedparam;\n"
339 " int detachstate;\n"
340 " int inheritsched;\n"
341 "\\&\n"
342 " s = pthread_attr_getstacksize(attr, &stacksize);\n"
343 " if (s != 0)\n"
344 " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n"
345 " printf(\"Stack size: %zu\\[rs]n\", stacksize);\n"
346 "\\&\n"
347 " s = pthread_attr_getguardsize(attr, &guardsize);\n"
348 " if (s != 0)\n"
349 " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n"
350 " printf(\"Guard size: %zu\\[rs]n\", guardsize);\n"
351 "\\&\n"
352 " s = pthread_attr_getschedpolicy(attr, &policy);\n"
353 " if (s != 0)\n"
354 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n"
355 " printf(\"Scheduling policy: %s\\[rs]n\",\n"
356 " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n"
357 " (policy == SCHED_RR) ? \"SCHED_RR\" :\n"
358 " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n"
359 "\\&\n"
360 " s = pthread_attr_getschedparam(attr, &schedparam);\n"
361 " if (s != 0)\n"
362 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n"
363 " printf(\"Scheduling priority: %d\\[rs]n\", schedparam.sched_priority);\n"
364 "\\&\n"
365 " s = pthread_attr_getdetachstate(attr, &detachstate);\n"
366 " if (s != 0)\n"
367 " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n"
368 " printf(\"Detach state: %s\\[rs]n\",\n"
369 " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n"
370 " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n"
371 " \"???\");\n"
372 "\\&\n"
373 " s = pthread_attr_getinheritsched(attr, &inheritsched);\n"
374 " if (s != 0)\n"
375 " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n"
376 " printf(\"Inherit scheduler: %s\\[rs]n\",\n"
377 " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n"
378 " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n"
379 " \"???\");\n"
380 "}\n"
381 "\\&\n"
382 "int\n"
383 "main(void)\n"
384 "{\n"
385 " int s;\n"
386 " pthread_attr_t attr;\n"
387 "\\&\n"
388 " s = pthread_getattr_default_np(&attr);\n"
389 " if (s != 0)\n"
390 " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n"
391 "\\&\n"
392 " display_pthread_attr(&attr);\n"
393 "\\&\n"
394 " exit(EXIT_SUCCESS);\n"
395 "}\n"
396 msgstr ""
397
398 #. SRC END
399 #. type: SH
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 #, no-wrap
403 msgid "SEE ALSO"
404 msgstr ""
405
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid ""
410 "B<pthread_attr_getaffinity_np>(3), B<pthread_attr_getdetachstate>(3), "
411 "B<pthread_attr_getguardsize>(3), B<pthread_attr_getinheritsched>(3), "
412 "B<pthread_attr_getschedparam>(3), B<pthread_attr_getschedpolicy>(3), "
413 "B<pthread_attr_getscope>(3), B<pthread_attr_getstack>(3), "
414 "B<pthread_attr_getstackaddr>(3), B<pthread_attr_getstacksize>(3), "
415 "B<pthread_attr_init>(3), B<pthread_create>(3), B<pthreads>(7)"
416 msgstr ""
417
418 #. type: TH
419 #: debian-trixie
420 #, no-wrap
421 msgid "2024-06-15"
422 msgstr ""
423
424 #. type: TH
425 #: debian-trixie
426 #, no-wrap
427 msgid "Linux man-pages 6.9.1"
428 msgstr ""
429
430 #. type: Plain text
431 #: debian-trixie
432 msgid "POSIX threads library (I<libpthread>, I<-lpthread>)"
433 msgstr ""
434
435 #. type: Plain text
436 #: debian-trixie fedora-44 fedora-rawhide
437 #, no-wrap
438 msgid ""
439 "$ B<./a.out>\n"
440 "Stack size: 8388608\n"
441 "Guard size: 4096\n"
442 "Scheduling policy: SCHED_OTHER\n"
443 "Scheduling priority: 0\n"
444 "Detach state: JOINABLE\n"
445 "Inherit scheduler: INHERIT\n"
446 msgstr ""
447
448 #. type: Plain text
449 #: debian-trixie
450 #, no-wrap
451 msgid ""
452 "#define _GNU_SOURCE\n"
453 "#include E<lt>err.hE<gt>\n"
454 "#include E<lt>errno.hE<gt>\n"
455 "#include E<lt>pthread.hE<gt>\n"
456 "#include E<lt>stdio.hE<gt>\n"
457 "#include E<lt>stdlib.hE<gt>\n"
458 "\\&\n"
459 "static void\n"
460 "display_pthread_attr(pthread_attr_t *attr)\n"
461 "{\n"
462 " int s;\n"
463 " size_t stacksize;\n"
464 " size_t guardsize;\n"
465 " int policy;\n"
466 " struct sched_param schedparam;\n"
467 " int detachstate;\n"
468 " int inheritsched;\n"
469 "\\&\n"
470 " s = pthread_attr_getstacksize(attr, &stacksize);\n"
471 " if (s != 0)\n"
472 " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n"
473 " printf(\"Stack size: %zu\\[rs]n\", stacksize);\n"
474 "\\&\n"
475 " s = pthread_attr_getguardsize(attr, &guardsize);\n"
476 " if (s != 0)\n"
477 " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n"
478 " printf(\"Guard size: %zu\\[rs]n\", guardsize);\n"
479 "\\&\n"
480 " s = pthread_attr_getschedpolicy(attr, &policy);\n"
481 " if (s != 0)\n"
482 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n"
483 " printf(\"Scheduling policy: %s\\[rs]n\",\n"
484 " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n"
485 " (policy == SCHED_RR) ? \"SCHED_RR\" :\n"
486 " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n"
487 "\\&\n"
488 " s = pthread_attr_getschedparam(attr, &schedparam);\n"
489 " if (s != 0)\n"
490 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n"
491 " printf(\"Scheduling priority: %d\\[rs]n\", schedparam.sched_priority);\n"
492 "\\&\n"
493 " s = pthread_attr_getdetachstate(attr, &detachstate);\n"
494 " if (s != 0)\n"
495 " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n"
496 " printf(\"Detach state: %s\\[rs]n\",\n"
497 " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n"
498 " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n"
499 " \"???\");\n"
500 "\\&\n"
501 " s = pthread_attr_getinheritsched(attr, &inheritsched);\n"
502 " if (s != 0)\n"
503 " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n"
504 " printf(\"Inherit scheduler: %s\\[rs]n\",\n"
505 " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n"
506 " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n"
507 " \"???\");\n"
508 "}\n"
509 "\\&\n"
510 "int\n"
511 "main(void)\n"
512 "{\n"
513 " int s;\n"
514 " pthread_attr_t attr;\n"
515 "\\&\n"
516 " s = pthread_getattr_default_np(&attr);\n"
517 " if (s != 0)\n"
518 " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n"
519 "\\&\n"
520 " display_pthread_attr(&attr);\n"
521 "\\&\n"
522 " exit(EXIT_SUCCESS);\n"
523 "}\n"
524 msgstr ""
525
526 #. type: TH
527 #: fedora-44 fedora-rawhide
528 #, no-wrap
529 msgid "2024-11-03"
530 msgstr ""
531
532 #. type: TH
533 #: fedora-44 fedora-rawhide
534 #, no-wrap
535 msgid "Linux man-pages 6.13"
536 msgstr ""
537
538 #. type: TH
539 #: mageia-cauldron
540 #, no-wrap
541 msgid "Linux man-pages 6.17"
542 msgstr ""
543
544 #. type: TH
545 #: opensuse-leap-16-1 opensuse-tumbleweed
546 #, no-wrap
547 msgid "Linux man-pages (unreleased)"
548 msgstr ""