Debian Codegraph @

po/ro/man3/pthread_getattr_default_np.3.po

raw
1 # Romanian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Remus-Gabriel Chelu <[email protected]>, 2024, 2025.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.23.1\n"
8 "POT-Creation-Date: 2026-06-05 06:38+0200\n"
9 "PO-Revision-Date: 2025-06-03 08:25+0200\n"
10 "Last-Translator: Remus-Gabriel Chelu <[email protected]>\n"
11 "Language-Team: Romanian <[email protected]>\n"
12 "Language: ro\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=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
17 "20)) ? 1 : 2;\n"
18 "X-Generator: Poedit 3.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 februarie 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "Pagini de manual de Linux 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 "NUME"
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, - obține sau "
55 "stabilește atributele implicite de creare a firelor"
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 "BIBLIOTECA"
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 "Biblioteca de fire de execuție 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 "SINOPSIS"
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> /* Consultați 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 "DESCRIERE"
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 "Funcția B<pthread_setattr_default_np>() stabilește atributele implicite "
118 "utilizate pentru crearea unui nou fir -- adică atributele care sunt "
119 "utilizate atunci când B<pthread_create>(3) este apelat cu un al doilea "
120 "argument care este NULL. Atributele implicite sunt stabilite folosind "
121 "atributele furnizate în I<*attr>, un obiect de atribute de fir inițializat "
122 "anterior. Rețineți următoarele detalii despre obiectul de atribute furnizat:"
123
124 #. type: IP
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid "\\[bu]"
129 msgstr "\\[bu]"
130
131 #. type: Plain text
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 msgid "The attribute settings in the object must be valid."
135 msgstr "Valorile atributelor din obiect trebuie să fie valide."
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid "The I<stack address> attribute must not be set in the object."
141 msgstr "Atributul I<stack address> nu trebuie să fie definit în obiect."
142
143 #. type: Plain text
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 msgid ""
147 "Setting the I<stack size> attribute to zero means leave the default stack "
148 "size unchanged."
149 msgstr ""
150 "Stabilirea atributului I<stack size> la zero înseamnă păstrarea neschimbată "
151 "a dimensiunii implicite a stivei."
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid ""
157 "The B<pthread_getattr_default_np>() function initializes the thread "
158 "attributes object referred to by I<attr> so that it contains the default "
159 "attributes used for thread creation."
160 msgstr ""
161 "Funcția B<pthread_getattr_default_np>() inițializează obiectul atributelor "
162 "firului la care face referire I<attr> astfel încât să conțină atributele "
163 "implicite utilizate pentru crearea firului."
164
165 #. type: SH
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 #, no-wrap
169 msgid "ERRORS"
170 msgstr "ERORI-IEȘIRE"
171
172 #. type: TP
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 #, no-wrap
176 msgid "B<EINVAL>"
177 msgstr "B<EINVAL>"
178
179 #. type: Plain text
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 msgid ""
183 "(B<pthread_setattr_default_np>()) One of the attribute settings in I<attr> "
184 "is invalid, or the stack address attribute is set in I<attr>."
185 msgstr ""
186 "(B<pthread_setattr_default_np>()) Una dintre valorile atributelor din "
187 "I<attr> nu este valabilă sau atributul adresei stivei este definit în "
188 "I<attr>."
189
190 #. type: TP
191 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
192 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
193 #, no-wrap
194 msgid "B<ENOMEM>"
195 msgstr "B<ENOMEM>"
196
197 #. Can happen (but unlikely) while trying to allocate memory for cpuset
198 #. type: Plain text
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 msgid "(B<pthread_setattr_default_np>()) Insufficient memory."
202 msgstr "(B<pthread_setattr_default_np>()) Memorie insuficientă."
203
204 #. type: SH
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 #, no-wrap
208 msgid "ATTRIBUTES"
209 msgstr "ATRIBUTE"
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 msgid ""
215 "For an explanation of the terms used in this section, see B<attributes>(7)."
216 msgstr ""
217 "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea "
218 "B<attributes>(7)."
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 "Interface"
225 msgstr "Interfață"
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 "Attribute"
232 msgstr "Atribut"
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 "Value"
239 msgstr "Valoare"
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 ".na\n"
246 msgstr ".na\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 ".nh\n"
253 msgstr ".nh\n"
254
255 #. type: tbl table
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 #, no-wrap
259 msgid ""
260 "B<pthread_getattr_default_np>(),\n"
261 "B<pthread_setattr_default_np>()"
262 msgstr ""
263 "B<pthread_getattr_default_np>(),\n"
264 "B<pthread_setattr_default_np>()"
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 "Thread safety"
271 msgstr "Siguranța firelor"
272
273 #. type: tbl table
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 #, no-wrap
277 msgid "MT-Safe"
278 msgstr "MT-Safe"
279
280 #. type: SH
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 #, no-wrap
284 msgid "STANDARDS"
285 msgstr "STANDARDE"
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 msgid "GNU; hence the suffix \"_np\" (nonportable) in their names."
291 msgstr "GNU; de aici și sufixul „_np” (neportabil) din numele acestora."
292
293 #. type: SH
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid "HISTORY"
298 msgstr "ISTORIC"
299
300 #. type: Plain text
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 msgid "glibc 2.18."
304 msgstr "glibc 2.18."
305
306 #. type: SH
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, no-wrap
310 msgid "EXAMPLES"
311 msgstr "EXEMPLE"
312
313 #. type: Plain text
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 msgid ""
317 "The program below uses B<pthread_getattr_default_np>() to fetch the default "
318 "thread-creation attributes and then displays various settings from the "
319 "returned thread attributes object. When running the program, we see the "
320 "following output:"
321 msgstr ""
322 "Programul de mai jos utilizează B<pthread_getattr_default_np>() pentru a "
323 "obține atributele implicite de creare a firelor și apoi afișează diverse "
324 "configurări din obiectul returnat al atributelor firelor. La rularea "
325 "programului, vedem următoarea ieșire:"
326
327 #. type: Plain text
328 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
329 #: opensuse-tumbleweed
330 #, no-wrap
331 msgid ""
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 msgstr ""
340 "$B< ./a.out>;\n"
341 "Stack size: 8388608\n"
342 "Guard size: 4096\n"
343 "Scheduling policy: SCHED_OTHER\n"
344 "Scheduling priority: 0\n"
345 "Detach state: JOINABLE\n"
346 "Inherit scheduler: INHERIT\n"
347
348 #. type: SS
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 #, no-wrap
352 msgid "Program source"
353 msgstr "Sursa programului"
354
355 #. type: Plain text
356 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
357 #: opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid ""
360 "#define _GNU_SOURCE\n"
361 "#include E<lt>err.hE<gt>\n"
362 "#include E<lt>pthread.hE<gt>\n"
363 "#include E<lt>sched.hE<gt>\n"
364 "#include E<lt>stdio.hE<gt>\n"
365 "#include E<lt>stdlib.hE<gt>\n"
366 "\\&\n"
367 "static void\n"
368 "display_pthread_attr(pthread_attr_t *attr)\n"
369 "{\n"
370 " int s;\n"
371 " size_t stacksize;\n"
372 " size_t guardsize;\n"
373 " int policy;\n"
374 " struct sched_param schedparam;\n"
375 " int detachstate;\n"
376 " int inheritsched;\n"
377 "\\&\n"
378 " s = pthread_attr_getstacksize(attr, &stacksize);\n"
379 " if (s != 0)\n"
380 " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n"
381 " printf(\"Stack size: %zu\\[rs]n\", stacksize);\n"
382 "\\&\n"
383 " s = pthread_attr_getguardsize(attr, &guardsize);\n"
384 " if (s != 0)\n"
385 " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n"
386 " printf(\"Guard size: %zu\\[rs]n\", guardsize);\n"
387 "\\&\n"
388 " s = pthread_attr_getschedpolicy(attr, &policy);\n"
389 " if (s != 0)\n"
390 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n"
391 " printf(\"Scheduling policy: %s\\[rs]n\",\n"
392 " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n"
393 " (policy == SCHED_RR) ? \"SCHED_RR\" :\n"
394 " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n"
395 "\\&\n"
396 " s = pthread_attr_getschedparam(attr, &schedparam);\n"
397 " if (s != 0)\n"
398 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n"
399 " printf(\"Scheduling priority: %d\\[rs]n\", schedparam.sched_priority);\n"
400 "\\&\n"
401 " s = pthread_attr_getdetachstate(attr, &detachstate);\n"
402 " if (s != 0)\n"
403 " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n"
404 " printf(\"Detach state: %s\\[rs]n\",\n"
405 " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n"
406 " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n"
407 " \"???\");\n"
408 "\\&\n"
409 " s = pthread_attr_getinheritsched(attr, &inheritsched);\n"
410 " if (s != 0)\n"
411 " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n"
412 " printf(\"Inherit scheduler: %s\\[rs]n\",\n"
413 " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n"
414 " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n"
415 " \"???\");\n"
416 "}\n"
417 "\\&\n"
418 "int\n"
419 "main(void)\n"
420 "{\n"
421 " int s;\n"
422 " pthread_attr_t attr;\n"
423 "\\&\n"
424 " s = pthread_getattr_default_np(&attr);\n"
425 " if (s != 0)\n"
426 " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n"
427 "\\&\n"
428 " display_pthread_attr(&attr);\n"
429 "\\&\n"
430 " exit(EXIT_SUCCESS);\n"
431 "}\n"
432 msgstr ""
433 "#define _GNU_SOURCE\n"
434 "#include E<lt>err.hE<gt>\n"
435 "#include E<lt>pthread.hE<gt>\n"
436 "#include E<lt>sched.hE<gt>\n"
437 "#include E<lt>stdio.hE<gt>\n"
438 "#include E<lt>stdlib.hE<gt>\n"
439 "\\&\n"
440 "static void\n"
441 "display_pthread_attr(pthread_attr_t *attr)\n"
442 "{\n"
443 " int s;\n"
444 " size_t stacksize;\n"
445 " size_t guardsize;\n"
446 " int policy;\n"
447 " struct sched_param schedparam;\n"
448 " int detachstate;\n"
449 " int inheritsched;\n"
450 "\\&\n"
451 " s = pthread_attr_getstacksize(attr, &stacksize);\n"
452 " if (s != 0)\n"
453 " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n"
454 " printf(\"Stack size: %zu\\[rs]n\", stacksize);\n"
455 "\\&\n"
456 " s = pthread_attr_getguardsize(attr, &guardsize);\n"
457 " if (s != 0)\n"
458 " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n"
459 " printf(\"Guard size: %zu\\[rs]n\", guardsize);\n"
460 "\\&\n"
461 " s = pthread_attr_getschedpolicy(attr, &policy);\n"
462 " if (s != 0)\n"
463 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n"
464 " printf(\"Scheduling policy: %s\\[rs]n\",\n"
465 " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n"
466 " (policy == SCHED_RR) ? \"SCHED_RR\" :\n"
467 " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n"
468 "\\&\n"
469 " s = pthread_attr_getschedparam(attr, &schedparam);\n"
470 " if (s != 0)\n"
471 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n"
472 " printf(\"Scheduling priority: %d\\[rs]n\", schedparam.sched_priority);\n"
473 "\\&\n"
474 " s = pthread_attr_getdetachstate(attr, &detachstate);\n"
475 " if (s != 0)\n"
476 " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n"
477 " printf(\"Detach state: %s\\[rs]n\",\n"
478 " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n"
479 " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n"
480 " \"???\");\n"
481 "\\&\n"
482 " s = pthread_attr_getinheritsched(attr, &inheritsched);\n"
483 " if (s != 0)\n"
484 " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n"
485 " printf(\"Inherit scheduler: %s\\[rs]n\",\n"
486 " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n"
487 " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n"
488 " \"???\");\n"
489 "}\n"
490 "\\&\n"
491 "int\n"
492 "main(void)\n"
493 "{\n"
494 " int s;\n"
495 " pthread_attr_t attr;\n"
496 "\\&\n"
497 " s = pthread_getattr_default_np(&attr);\n"
498 " if (s != 0)\n"
499 " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n"
500 "\\&\n"
501 " display_pthread_attr(&attr);\n"
502 "\\&\n"
503 " exit(EXIT_SUCCESS);\n"
504 "}\n"
505
506 #. SRC END
507 #. type: SH
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 #, no-wrap
511 msgid "SEE ALSO"
512 msgstr "CONSULTAȚI ȘI"
513
514 #. type: Plain text
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 msgid ""
518 "B<pthread_attr_getaffinity_np>(3), B<pthread_attr_getdetachstate>(3), "
519 "B<pthread_attr_getguardsize>(3), B<pthread_attr_getinheritsched>(3), "
520 "B<pthread_attr_getschedparam>(3), B<pthread_attr_getschedpolicy>(3), "
521 "B<pthread_attr_getscope>(3), B<pthread_attr_getstack>(3), "
522 "B<pthread_attr_getstackaddr>(3), B<pthread_attr_getstacksize>(3), "
523 "B<pthread_attr_init>(3), B<pthread_create>(3), B<pthreads>(7)"
524 msgstr ""
525 "B<pthread_attr_getaffinity_np>(3), B<pthread_attr_getdetachstate>(3), "
526 "B<pthread_attr_getguardsize>(3), B<pthread_attr_getinheritsched>(3), "
527 "B<pthread_attr_getschedparam>(3), B<pthread_attr_getschedpolicy>(3), "
528 "B<pthread_attr_getscope>(3), B<pthread_attr_getstack>(3), "
529 "B<pthread_attr_getstackaddr>(3), B<pthread_attr_getstacksize>(3), "
530 "B<pthread_attr_init>(3), B<pthread_create>(3), B<pthreads>(7)"
531
532 #. type: TH
533 #: debian-trixie
534 #, no-wrap
535 msgid "2024-06-15"
536 msgstr "15 iunie 2024"
537
538 #. type: TH
539 #: debian-trixie
540 #, no-wrap
541 msgid "Linux man-pages 6.9.1"
542 msgstr "Pagini de manual de Linux 6.9.1"
543
544 #. type: Plain text
545 #: debian-trixie
546 msgid "POSIX threads library (I<libpthread>, I<-lpthread>)"
547 msgstr "Biblioteca de fire de execuție POSIX (I<libpthread>, I<-lpthread>)"
548
549 #. type: Plain text
550 #: debian-trixie fedora-44 fedora-rawhide
551 #, no-wrap
552 msgid ""
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 msgstr ""
561 "$ B<./a.out>\n"
562 "Stack size: 8388608\n"
563 "Guard size: 4096\n"
564 "Scheduling policy: SCHED_OTHER\n"
565 "Scheduling priority: 0\n"
566 "Detach state: JOINABLE\n"
567 "Inherit scheduler: INHERIT\n"
568
569 #. type: Plain text
570 #: debian-trixie
571 #, no-wrap
572 msgid ""
573 "#define _GNU_SOURCE\n"
574 "#include E<lt>err.hE<gt>\n"
575 "#include E<lt>errno.hE<gt>\n"
576 "#include E<lt>pthread.hE<gt>\n"
577 "#include E<lt>stdio.hE<gt>\n"
578 "#include E<lt>stdlib.hE<gt>\n"
579 "\\&\n"
580 "static void\n"
581 "display_pthread_attr(pthread_attr_t *attr)\n"
582 "{\n"
583 " int s;\n"
584 " size_t stacksize;\n"
585 " size_t guardsize;\n"
586 " int policy;\n"
587 " struct sched_param schedparam;\n"
588 " int detachstate;\n"
589 " int inheritsched;\n"
590 "\\&\n"
591 " s = pthread_attr_getstacksize(attr, &stacksize);\n"
592 " if (s != 0)\n"
593 " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n"
594 " printf(\"Stack size: %zu\\[rs]n\", stacksize);\n"
595 "\\&\n"
596 " s = pthread_attr_getguardsize(attr, &guardsize);\n"
597 " if (s != 0)\n"
598 " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n"
599 " printf(\"Guard size: %zu\\[rs]n\", guardsize);\n"
600 "\\&\n"
601 " s = pthread_attr_getschedpolicy(attr, &policy);\n"
602 " if (s != 0)\n"
603 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n"
604 " printf(\"Scheduling policy: %s\\[rs]n\",\n"
605 " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n"
606 " (policy == SCHED_RR) ? \"SCHED_RR\" :\n"
607 " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n"
608 "\\&\n"
609 " s = pthread_attr_getschedparam(attr, &schedparam);\n"
610 " if (s != 0)\n"
611 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n"
612 " printf(\"Scheduling priority: %d\\[rs]n\", schedparam.sched_priority);\n"
613 "\\&\n"
614 " s = pthread_attr_getdetachstate(attr, &detachstate);\n"
615 " if (s != 0)\n"
616 " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n"
617 " printf(\"Detach state: %s\\[rs]n\",\n"
618 " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n"
619 " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n"
620 " \"???\");\n"
621 "\\&\n"
622 " s = pthread_attr_getinheritsched(attr, &inheritsched);\n"
623 " if (s != 0)\n"
624 " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n"
625 " printf(\"Inherit scheduler: %s\\[rs]n\",\n"
626 " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n"
627 " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n"
628 " \"???\");\n"
629 "}\n"
630 "\\&\n"
631 "int\n"
632 "main(void)\n"
633 "{\n"
634 " int s;\n"
635 " pthread_attr_t attr;\n"
636 "\\&\n"
637 " s = pthread_getattr_default_np(&attr);\n"
638 " if (s != 0)\n"
639 " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n"
640 "\\&\n"
641 " display_pthread_attr(&attr);\n"
642 "\\&\n"
643 " exit(EXIT_SUCCESS);\n"
644 "}\n"
645 msgstr ""
646 "#define _GNU_SOURCE\n"
647 "#include E<lt>err.hE<gt>\n"
648 "#include E<lt>errno.hE<gt>\n"
649 "#include E<lt>pthread.hE<gt>\n"
650 "#include E<lt>stdio.hE<gt>\n"
651 "#include E<lt>stdlib.hE<gt>\n"
652 "\\&\n"
653 "static void\n"
654 "display_pthread_attr(pthread_attr_t *attr)\n"
655 "{\n"
656 " int s;\n"
657 " size_t stacksize;\n"
658 " size_t guardsize;\n"
659 " int policy;\n"
660 " struct sched_param schedparam;\n"
661 " int detachstate;\n"
662 " int inheritsched;\n"
663 "\\&\n"
664 " s = pthread_attr_getstacksize(attr, &stacksize);\n"
665 " if (s != 0)\n"
666 " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n"
667 " printf(\"Stack size: %zu\\[rs]n\", stacksize);\n"
668 "\\&\n"
669 " s = pthread_attr_getguardsize(attr, &guardsize);\n"
670 " if (s != 0)\n"
671 " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n"
672 " printf(\"Guard size: %zu\\[rs]n\", guardsize);\n"
673 "\\&\n"
674 " s = pthread_attr_getschedpolicy(attr, &policy);\n"
675 " if (s != 0)\n"
676 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n"
677 " printf(\"Scheduling policy: %s\\[rs]n\",\n"
678 " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n"
679 " (policy == SCHED_RR) ? \"SCHED_RR\" :\n"
680 " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n"
681 "\\&\n"
682 " s = pthread_attr_getschedparam(attr, &schedparam);\n"
683 " if (s != 0)\n"
684 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n"
685 " printf(\"Scheduling priority: %d\\[rs]n\", schedparam.sched_priority);\n"
686 "\\&\n"
687 " s = pthread_attr_getdetachstate(attr, &detachstate);\n"
688 " if (s != 0)\n"
689 " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n"
690 " printf(\"Detach state: %s\\[rs]n\",\n"
691 " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n"
692 " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n"
693 " \"???\");\n"
694 "\\&\n"
695 " s = pthread_attr_getinheritsched(attr, &inheritsched);\n"
696 " if (s != 0)\n"
697 " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n"
698 " printf(\"Inherit scheduler: %s\\[rs]n\",\n"
699 " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n"
700 " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n"
701 " \"???\");\n"
702 "}\n"
703 "\\&\n"
704 "int\n"
705 "main(void)\n"
706 "{\n"
707 " int s;\n"
708 " pthread_attr_t attr;\n"
709 "\\&\n"
710 " s = pthread_getattr_default_np(&attr);\n"
711 " if (s != 0)\n"
712 " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n"
713 "\\&\n"
714 " display_pthread_attr(&attr);\n"
715 "\\&\n"
716 " exit(EXIT_SUCCESS);\n"
717 "}\n"
718
719 #. type: TH
720 #: fedora-44 fedora-rawhide
721 #, no-wrap
722 msgid "2024-11-03"
723 msgstr "3 noiembrie 2024"
724
725 #. type: TH
726 #: fedora-44 fedora-rawhide
727 #, no-wrap
728 msgid "Linux man-pages 6.13"
729 msgstr "Pagini de manual de Linux 6.13"
730
731 #. type: TH
732 #: mageia-cauldron
733 #, no-wrap
734 msgid "Linux man-pages 6.17"
735 msgstr "Pagini de manual de Linux 6.17"
736
737 #. type: TH
738 #: opensuse-leap-16-1 opensuse-tumbleweed
739 #, no-wrap
740 msgid "Linux man-pages (unreleased)"
741 msgstr "Pagini de manual Linux (nepublicate)"