Debian Codegraph @

po/ru/man3/pthread_getattr_default_np.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Alexey, 2016.
5 # Azamat Hackimov <[email protected]>, 2014-2017.
6 # kogamatranslator49 <[email protected]>, 2015.
7 # Darima Kogan <[email protected]>, 2014.
8 # Max Is <[email protected]>, 2016.
9 # Yuri Kozlov <[email protected]>, 2011-2019.
10 # Иван Павлов <[email protected]>, 2017.
11 msgid ""
12 msgstr ""
13 "Project-Id-Version: manpages-l10n\n"
14 "POT-Creation-Date: 2026-06-05 06:38+0200\n"
15 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
16 "Last-Translator: Yuri Kozlov <[email protected]>\n"
17 "Language-Team: Russian <[email protected]>\n"
18 "Language: ru\n"
19 "MIME-Version: 1.0\n"
20 "Content-Type: text/plain; charset=UTF-8\n"
21 "Content-Transfer-Encoding: 8bit\n"
22 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
23 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
24 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
25 "X-Generator: Lokalize 2.0\n"
26
27 #. type: TH
28 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
29 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
30 #, fuzzy, no-wrap
31 #| msgid "(B<pthread_setattr_default_np>()) Insufficient memory."
32 msgid "pthread_getattr_default_np"
33 msgstr "(B<pthread_setattr_default_np>()) Недостаточно памяти."
34
35 #. type: TH
36 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
37 #: opensuse-tumbleweed
38 #, no-wrap
39 msgid "2026-02-08"
40 msgstr "8 февраля 2026 г."
41
42 #. type: TH
43 #: archlinux debian-unstable
44 #, fuzzy, no-wrap
45 #| msgid "Linux man-pages 6.17"
46 msgid "Linux man-pages 6.18"
47 msgstr "Справочные страницы Linux 6.17"
48
49 #. type: SH
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 #, no-wrap
53 msgid "NAME"
54 msgstr "НАИМЕНОВАНИЕ"
55
56 #. type: Plain text
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 msgid ""
60 "pthread_getattr_default_np, pthread_setattr_default_np, - get or set default "
61 "thread-creation attributes"
62 msgstr ""
63 "pthread_getattr_default_np, pthread_setattr_default_np - возврат или "
64 "изменение атрибутов создания нити по умолчанию"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "LIBRARY"
71 msgstr "БИБЛИОТЕКА"
72
73 #. type: Plain text
74 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
75 #: opensuse-leap-16-1 opensuse-tumbleweed
76 msgid "POSIX threads library (I<libpthread>,\\ I<-lpthread>)"
77 msgstr "Библиотека потоков POSIX (I<libpthread>,\\ I<-lpthread>)"
78
79 #. type: SH
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "SYNOPSIS"
84 msgstr "СИНТАКСИС"
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid ""
91 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
92 "B<#include E<lt>pthread.hE<gt>>\n"
93 msgstr ""
94 "B<#define _GNU_SOURCE> /* Смотрите feature_test_macros(7) */\n"
95 "B<#include E<lt>pthread.hE<gt>>\n"
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 #, fuzzy, no-wrap
101 #| msgid ""
102 #| "B<int pthread_getattr_default_np(pthread_attr_t *>I<attr>B<);>\n"
103 #| "B<int pthread_setattr_default_np(pthread_attr_t *>I<attr>B<);>\n"
104 msgid ""
105 "B<int pthread_getattr_default_np(pthread_attr_t *>I<attr>B<);>\n"
106 "B<int pthread_setattr_default_np(const pthread_attr_t *>I<attr>B<);>\n"
107 msgstr ""
108 "B<int pthread_getattr_default_np(pthread_attr_t *>I<attr>B<);>\n"
109 "B<int pthread_setattr_default_np(pthread_attr_t *>I<attr>B<);>\n"
110
111 #. type: SH
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 #, no-wrap
115 msgid "DESCRIPTION"
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 #, fuzzy
122 #| msgid ""
123 #| "The B<pthread_setattr_default_np>() function sets the default attributes "
124 #| "used for creation of a new thread\\(emthat is, the attributes that are "
125 #| "used when B<pthread_create>(3) is called with a second argument that is "
126 #| "NULL. The default attributes are set using the attributes supplied in "
127 #| "I<*attr>, a previously initialized thread attributes object. Note the "
128 #| "following details about the supplied attributes object:"
129 msgid ""
130 "The B<pthread_setattr_default_np>() function sets the default attributes "
131 "used for creation of a new thread\\[em]that is, the attributes that are used "
132 "when B<pthread_create>(3) is called with a second argument that is NULL. "
133 "The default attributes are set using the attributes supplied in I<*attr>, a "
134 "previously initialized thread attributes object. Note the following details "
135 "about the supplied attributes object:"
136 msgstr ""
137 "Функция B<pthread_setattr_default_np>() изменяет атрибуты по умолчанию, "
138 "используемые при создании новой нити — то есть атрибуты, которые "
139 "используются при вызове B<pthread_create>(3) со вторым аргументом, равным "
140 "NULL. Атрибуты по умолчанию изменяются в соответствии с атрибутами, "
141 "переданными в I<*attr> — объекте атрибутов нити, инициализированном ранее. "
142 "Вот, что нужно знать об объекте атрибутов:"
143
144 #. type: IP
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 #, no-wrap
148 msgid "\\[bu]"
149 msgstr "\\[bu]"
150
151 #. type: Plain text
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 msgid "The attribute settings in the object must be valid."
155 msgstr "Значения атрибутов в объекте должны быть корректными."
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 msgid "The I<stack address> attribute must not be set in the object."
161 msgstr "Атрибут I<stack address> не должен быть указан в объекте."
162
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 msgid ""
167 "Setting the I<stack size> attribute to zero means leave the default stack "
168 "size unchanged."
169 msgstr ""
170 "Значение нуля в I<stack size> означает, что размер стека по умолчанию "
171 "остаётся без изменения."
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 msgid ""
177 "The B<pthread_getattr_default_np>() function initializes the thread "
178 "attributes object referred to by I<attr> so that it contains the default "
179 "attributes used for thread creation."
180 msgstr ""
181 "Функция B<pthread_getattr_default_np>() инициализирует объект атрибутов "
182 "нити, на который указывает I<attr>, так, что он содержит значения атрибутов "
183 "по умолчанию, использованные при создании нити."
184
185 #. type: SH
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid "ERRORS"
190 msgstr "ОШИБКИ"
191
192 #. type: TP
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, no-wrap
196 msgid "B<EINVAL>"
197 msgstr "B<EINVAL>"
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid ""
203 "(B<pthread_setattr_default_np>()) One of the attribute settings in I<attr> "
204 "is invalid, or the stack address attribute is set in I<attr>."
205 msgstr ""
206 "(B<pthread_setattr_default_np>()) Одно из значений атрибутов в I<attr> "
207 "неверно или в I<attr> изменён атрибут адреса стека."
208
209 #. type: TP
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 #, no-wrap
213 msgid "B<ENOMEM>"
214 msgstr "B<ENOMEM>"
215
216 #. Can happen (but unlikely) while trying to allocate memory for cpuset
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 msgid "(B<pthread_setattr_default_np>()) Insufficient memory."
221 msgstr "(B<pthread_setattr_default_np>()) Недостаточно памяти."
222
223 #. type: SH
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 #, no-wrap
227 msgid "ATTRIBUTES"
228 msgstr "АТРИБУТЫ"
229
230 #. type: Plain text
231 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
232 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
233 msgid ""
234 "For an explanation of the terms used in this section, see B<attributes>(7)."
235 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
236
237 #. type: tbl table
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 #, no-wrap
241 msgid "Interface"
242 msgstr "Интерфейс"
243
244 #. type: tbl table
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "Attribute"
249 msgstr "Атрибут"
250
251 #. type: tbl table
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, no-wrap
255 msgid "Value"
256 msgstr "Значение"
257
258 #. type: tbl table
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 #, no-wrap
262 msgid ".na\n"
263 msgstr ".na\n"
264
265 #. type: tbl table
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid ".nh\n"
270 msgstr ".nh\n"
271
272 #. type: tbl table
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid ""
277 "B<pthread_getattr_default_np>(),\n"
278 "B<pthread_setattr_default_np>()"
279 msgstr ""
280 "B<pthread_getattr_default_np>(),\n"
281 "B<pthread_setattr_default_np>()"
282
283 #. type: tbl table
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, no-wrap
287 msgid "Thread safety"
288 msgstr "Безвредность в нитях"
289
290 #. type: tbl table
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "MT-Safe"
295 msgstr "MT-Safe"
296
297 #. type: SH
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, no-wrap
301 msgid "STANDARDS"
302 msgstr "СТАНДАРТЫ"
303
304 #. type: Plain text
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, fuzzy
308 #| msgid ""
309 #| "These functions are nonstandard GNU extensions; hence the suffix \"_np\" "
310 #| "(nonportable) in their names."
311 msgid "GNU; hence the suffix \"_np\" (nonportable) in their names."
312 msgstr ""
313 "Данные функции являются не стандартизированными расширениями GNU, о чём "
314 "свидетельствует наличие суффикса «_np» (nonportable)."
315
316 #. type: SH
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "HISTORY"
321 msgstr "ИСТОРИЯ"
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid "glibc 2.18."
327 msgstr "glibc 2.18."
328
329 #. type: SH
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 #, no-wrap
333 msgid "EXAMPLES"
334 msgstr "ПРИМЕРЫ"
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 msgid ""
340 "The program below uses B<pthread_getattr_default_np>() to fetch the default "
341 "thread-creation attributes and then displays various settings from the "
342 "returned thread attributes object. When running the program, we see the "
343 "following output:"
344 msgstr ""
345 "В программе, показанной далее, используется B<pthread_getattr_default_np()> "
346 "для получения атрибутов создания нити по умолчанию, а затем выводятся "
347 "различные параметры полученного объекта. Вывод работы программы:"
348
349 #. type: Plain text
350 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
351 #: opensuse-tumbleweed
352 #, fuzzy, no-wrap
353 #| msgid ""
354 #| "$ B<./a.out>\n"
355 #| "Stack size: 8388608\n"
356 #| "Guard size: 4096\n"
357 #| "Scheduling policy: SCHED_OTHER\n"
358 #| "Scheduling priority: 0\n"
359 #| "Detach state: JOINABLE\n"
360 #| "Inherit scheduler: INHERIT\n"
361 msgid ""
362 "$B< ./a.out>;\n"
363 "Stack size: 8388608\n"
364 "Guard size: 4096\n"
365 "Scheduling policy: SCHED_OTHER\n"
366 "Scheduling priority: 0\n"
367 "Detach state: JOINABLE\n"
368 "Inherit scheduler: INHERIT\n"
369 msgstr ""
370 "$ B<./a.out>\n"
371 "Размер стека: 8388608\n"
372 "Размер защиты: 4096\n"
373 "Алгоритм планирования: SCHED_OTHER\n"
374 "Приоритет планирования: 0\n"
375 "Состояние отсоединения: JOINABLE\n"
376 "Наследование планировщика: INHERIT\n"
377
378 #. type: SS
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 #, no-wrap
382 msgid "Program source"
383 msgstr "Исходный код программы"
384
385 #. type: Plain text
386 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
387 #: opensuse-leap-16-1 opensuse-tumbleweed
388 #, no-wrap
389 msgid ""
390 "#define _GNU_SOURCE\n"
391 "#include E<lt>err.hE<gt>\n"
392 "#include E<lt>pthread.hE<gt>\n"
393 "#include E<lt>sched.hE<gt>\n"
394 "#include E<lt>stdio.hE<gt>\n"
395 "#include E<lt>stdlib.hE<gt>\n"
396 "\\&\n"
397 "static void\n"
398 "display_pthread_attr(pthread_attr_t *attr)\n"
399 "{\n"
400 " int s;\n"
401 " size_t stacksize;\n"
402 " size_t guardsize;\n"
403 " int policy;\n"
404 " struct sched_param schedparam;\n"
405 " int detachstate;\n"
406 " int inheritsched;\n"
407 "\\&\n"
408 " s = pthread_attr_getstacksize(attr, &stacksize);\n"
409 " if (s != 0)\n"
410 " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n"
411 " printf(\"Stack size: %zu\\[rs]n\", stacksize);\n"
412 "\\&\n"
413 " s = pthread_attr_getguardsize(attr, &guardsize);\n"
414 " if (s != 0)\n"
415 " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n"
416 " printf(\"Guard size: %zu\\[rs]n\", guardsize);\n"
417 "\\&\n"
418 " s = pthread_attr_getschedpolicy(attr, &policy);\n"
419 " if (s != 0)\n"
420 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n"
421 " printf(\"Scheduling policy: %s\\[rs]n\",\n"
422 " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n"
423 " (policy == SCHED_RR) ? \"SCHED_RR\" :\n"
424 " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n"
425 "\\&\n"
426 " s = pthread_attr_getschedparam(attr, &schedparam);\n"
427 " if (s != 0)\n"
428 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n"
429 " printf(\"Scheduling priority: %d\\[rs]n\", schedparam.sched_priority);\n"
430 "\\&\n"
431 " s = pthread_attr_getdetachstate(attr, &detachstate);\n"
432 " if (s != 0)\n"
433 " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n"
434 " printf(\"Detach state: %s\\[rs]n\",\n"
435 " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n"
436 " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n"
437 " \"???\");\n"
438 "\\&\n"
439 " s = pthread_attr_getinheritsched(attr, &inheritsched);\n"
440 " if (s != 0)\n"
441 " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n"
442 " printf(\"Inherit scheduler: %s\\[rs]n\",\n"
443 " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n"
444 " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n"
445 " \"???\");\n"
446 "}\n"
447 "\\&\n"
448 "int\n"
449 "main(void)\n"
450 "{\n"
451 " int s;\n"
452 " pthread_attr_t attr;\n"
453 "\\&\n"
454 " s = pthread_getattr_default_np(&attr);\n"
455 " if (s != 0)\n"
456 " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n"
457 "\\&\n"
458 " display_pthread_attr(&attr);\n"
459 "\\&\n"
460 " exit(EXIT_SUCCESS);\n"
461 "}\n"
462 msgstr ""
463
464 #. SRC END
465 #. type: SH
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 #, no-wrap
469 msgid "SEE ALSO"
470 msgstr "СМОТРИТЕ ТАКЖЕ"
471
472 #. type: Plain text
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 msgid ""
476 "B<pthread_attr_getaffinity_np>(3), B<pthread_attr_getdetachstate>(3), "
477 "B<pthread_attr_getguardsize>(3), B<pthread_attr_getinheritsched>(3), "
478 "B<pthread_attr_getschedparam>(3), B<pthread_attr_getschedpolicy>(3), "
479 "B<pthread_attr_getscope>(3), B<pthread_attr_getstack>(3), "
480 "B<pthread_attr_getstackaddr>(3), B<pthread_attr_getstacksize>(3), "
481 "B<pthread_attr_init>(3), B<pthread_create>(3), B<pthreads>(7)"
482 msgstr ""
483 "B<pthread_attr_getaffinity_np>(3), B<pthread_attr_getdetachstate>(3), "
484 "B<pthread_attr_getguardsize>(3), B<pthread_attr_getinheritsched>(3), "
485 "B<pthread_attr_getschedparam>(3), B<pthread_attr_getschedpolicy>(3), "
486 "B<pthread_attr_getscope>(3), B<pthread_attr_getstack>(3), "
487 "B<pthread_attr_getstackaddr>(3), B<pthread_attr_getstacksize>(3), "
488 "B<pthread_attr_init>(3), B<pthread_create>(3), B<pthreads>(7)"
489
490 #. type: TH
491 #: debian-trixie
492 #, no-wrap
493 msgid "2024-06-15"
494 msgstr "15 июня 2024 г."
495
496 #. type: TH
497 #: debian-trixie
498 #, no-wrap
499 msgid "Linux man-pages 6.9.1"
500 msgstr "Страницы руководства Linux 6.9.1"
501
502 #. type: Plain text
503 #: debian-trixie
504 msgid "POSIX threads library (I<libpthread>, I<-lpthread>)"
505 msgstr "Библиотека потоков POSIX (I<libpthread>, I<-lpthread>)"
506
507 #. type: Plain text
508 #: debian-trixie fedora-44 fedora-rawhide
509 #, no-wrap
510 msgid ""
511 "$ B<./a.out>\n"
512 "Stack size: 8388608\n"
513 "Guard size: 4096\n"
514 "Scheduling policy: SCHED_OTHER\n"
515 "Scheduling priority: 0\n"
516 "Detach state: JOINABLE\n"
517 "Inherit scheduler: INHERIT\n"
518 msgstr ""
519 "$ B<./a.out>\n"
520 "Размер стека: 8388608\n"
521 "Размер защиты: 4096\n"
522 "Алгоритм планирования: SCHED_OTHER\n"
523 "Приоритет планирования: 0\n"
524 "Состояние отсоединения: JOINABLE\n"
525 "Наследование планировщика: INHERIT\n"
526
527 #. type: Plain text
528 #: debian-trixie
529 #, no-wrap
530 msgid ""
531 "#define _GNU_SOURCE\n"
532 "#include E<lt>err.hE<gt>\n"
533 "#include E<lt>errno.hE<gt>\n"
534 "#include E<lt>pthread.hE<gt>\n"
535 "#include E<lt>stdio.hE<gt>\n"
536 "#include E<lt>stdlib.hE<gt>\n"
537 "\\&\n"
538 "static void\n"
539 "display_pthread_attr(pthread_attr_t *attr)\n"
540 "{\n"
541 " int s;\n"
542 " size_t stacksize;\n"
543 " size_t guardsize;\n"
544 " int policy;\n"
545 " struct sched_param schedparam;\n"
546 " int detachstate;\n"
547 " int inheritsched;\n"
548 "\\&\n"
549 " s = pthread_attr_getstacksize(attr, &stacksize);\n"
550 " if (s != 0)\n"
551 " errc(EXIT_FAILURE, s, \"pthread_attr_getstacksize\");\n"
552 " printf(\"Stack size: %zu\\[rs]n\", stacksize);\n"
553 "\\&\n"
554 " s = pthread_attr_getguardsize(attr, &guardsize);\n"
555 " if (s != 0)\n"
556 " errc(EXIT_FAILURE, s, \"pthread_attr_getguardsize\");\n"
557 " printf(\"Guard size: %zu\\[rs]n\", guardsize);\n"
558 "\\&\n"
559 " s = pthread_attr_getschedpolicy(attr, &policy);\n"
560 " if (s != 0)\n"
561 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedpolicy\");\n"
562 " printf(\"Scheduling policy: %s\\[rs]n\",\n"
563 " (policy == SCHED_FIFO) ? \"SCHED_FIFO\" :\n"
564 " (policy == SCHED_RR) ? \"SCHED_RR\" :\n"
565 " (policy == SCHED_OTHER) ? \"SCHED_OTHER\" : \"[unknown]\");\n"
566 "\\&\n"
567 " s = pthread_attr_getschedparam(attr, &schedparam);\n"
568 " if (s != 0)\n"
569 " errc(EXIT_FAILURE, s, \"pthread_attr_getschedparam\");\n"
570 " printf(\"Scheduling priority: %d\\[rs]n\", schedparam.sched_priority);\n"
571 "\\&\n"
572 " s = pthread_attr_getdetachstate(attr, &detachstate);\n"
573 " if (s != 0)\n"
574 " errc(EXIT_FAILURE, s, \"pthread_attr_getdetachstate\");\n"
575 " printf(\"Detach state: %s\\[rs]n\",\n"
576 " (detachstate == PTHREAD_CREATE_DETACHED) ? \"DETACHED\" :\n"
577 " (detachstate == PTHREAD_CREATE_JOINABLE) ? \"JOINABLE\" :\n"
578 " \"???\");\n"
579 "\\&\n"
580 " s = pthread_attr_getinheritsched(attr, &inheritsched);\n"
581 " if (s != 0)\n"
582 " errc(EXIT_FAILURE, s, \"pthread_attr_getinheritsched\");\n"
583 " printf(\"Inherit scheduler: %s\\[rs]n\",\n"
584 " (inheritsched == PTHREAD_INHERIT_SCHED) ? \"INHERIT\" :\n"
585 " (inheritsched == PTHREAD_EXPLICIT_SCHED) ? \"EXPLICIT\" :\n"
586 " \"???\");\n"
587 "}\n"
588 "\\&\n"
589 "int\n"
590 "main(void)\n"
591 "{\n"
592 " int s;\n"
593 " pthread_attr_t attr;\n"
594 "\\&\n"
595 " s = pthread_getattr_default_np(&attr);\n"
596 " if (s != 0)\n"
597 " errc(EXIT_FAILURE, s, \"pthread_getattr_default_np\");\n"
598 "\\&\n"
599 " display_pthread_attr(&attr);\n"
600 "\\&\n"
601 " exit(EXIT_SUCCESS);\n"
602 "}\n"
603 msgstr ""
604
605 #. type: TH
606 #: fedora-44 fedora-rawhide
607 #, no-wrap
608 msgid "2024-11-03"
609 msgstr "3 ноября 2024 г."
610
611 #. type: TH
612 #: fedora-44 fedora-rawhide
613 #, no-wrap
614 msgid "Linux man-pages 6.13"
615 msgstr "Страницы руководства Linux 6.13"
616
617 #. type: TH
618 #: mageia-cauldron
619 #, no-wrap
620 msgid "Linux man-pages 6.17"
621 msgstr "Страницы руководства Linux 6.17"
622
623 #. type: TH
624 #: opensuse-leap-16-1 opensuse-tumbleweed
625 #, no-wrap
626 msgid "Linux man-pages (unreleased)"
627 msgstr "Страницы руководства Linux (не выпущены)"