Debian Codegraph @

po/ru/man3/pthread_sigmask.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_sigmask>()"
32 msgid "pthread_sigmask"
33 msgstr "B<pthread_sigmask>()"
34
35 #. type: TH
36 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
37 #: opensuse-tumbleweed
38 #, no-wrap
39 msgid "2025-09-21"
40 msgstr "21 сентября 2025 г."
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 "pthread_sigmask - examine and change mask of blocked signals"
60 msgstr "pthread_sigmask - проверяет и изменяет маску заблокированных сигналов"
61
62 #. type: SH
63 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
64 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
65 #, no-wrap
66 msgid "LIBRARY"
67 msgstr "БИБЛИОТЕКА"
68
69 #. type: Plain text
70 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
71 #: opensuse-leap-16-1 opensuse-tumbleweed
72 msgid "POSIX threads library (I<libpthread>,\\ I<-lpthread>)"
73 msgstr "Библиотека потоков POSIX (I<libpthread>,\\ I<-lpthread>)"
74
75 #. type: SH
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "SYNOPSIS"
80 msgstr "СИНТАКСИС"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid "B<#include E<lt>signal.hE<gt>>\n"
87 msgstr "B<#include E<lt>signal.hE<gt>>\n"
88
89 #. type: Plain text
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 #, no-wrap
93 msgid "B<int pthread_sigmask(int >I<how>B<, const sigset_t *>I<set>B<, sigset_t *>I<oldset>B<);>\n"
94 msgstr "B<int pthread_sigmask(int >I<how>B<, const sigset_t *>I<set>B<, sigset_t *>I<oldset>B<);>\n"
95
96 #. type: Plain text
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 msgid ""
100 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
101 msgstr ""
102 "Требования макроса тестирования свойств для glibc (см. "
103 "B<feature_test_macros>(7)):"
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid "B<pthread_sigmask>():"
109 msgstr "B<pthread_sigmask>():"
110
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 #, no-wrap
115 msgid " _POSIX_C_SOURCE E<gt>= 199506L || _XOPEN_SOURCE E<gt>= 500\n"
116 msgstr " _POSIX_C_SOURCE E<gt>= 199506L || _XOPEN_SOURCE E<gt>= 500\n"
117
118 #. type: SH
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 #, no-wrap
122 msgid "DESCRIPTION"
123 msgstr "ОПИСАНИЕ"
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid ""
129 "The B<pthread_sigmask>() function is just like B<sigprocmask>(2), with the "
130 "difference that its use in multithreaded programs is explicitly specified by "
131 "POSIX.1. Other differences are noted in this page."
132 msgstr ""
133 "Функция B<pthread_sigmask>() подобна B<sigprocmask>(2), но используется в "
134 "многонитевых программах, что явно указано в POSIX.1. Другие отличия "
135 "приведены в этой странице."
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 ""
141 "For a description of the arguments and operation of this function, see "
142 "B<sigprocmask>(2)."
143 msgstr "Описание аргументов и работы функции смотрите в B<sigprocmask>(2)."
144
145 #. type: SH
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 #, no-wrap
149 msgid "RETURN VALUE"
150 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
151
152 #. type: Plain text
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
155 msgid ""
156 "On success, B<pthread_sigmask>() returns 0; on error, it returns an error "
157 "number."
158 msgstr ""
159 "При успешном выполнении B<pthread_sigmask>() возвращается 0; при ошибке "
160 "возвращается номер ошибки."
161
162 #. type: SH
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 #, no-wrap
166 msgid "ERRORS"
167 msgstr "ОШИБКИ"
168
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 msgid "See B<sigprocmask>(2)."
173 msgstr "Смотрите B<sigprocmask>(2)."
174
175 #. type: SH
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 #, no-wrap
179 msgid "ATTRIBUTES"
180 msgstr "АТРИБУТЫ"
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid ""
186 "For an explanation of the terms used in this section, see B<attributes>(7)."
187 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
188
189 #. type: tbl table
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 #, no-wrap
193 msgid "Interface"
194 msgstr "Интерфейс"
195
196 #. type: tbl table
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 #, no-wrap
200 msgid "Attribute"
201 msgstr "Атрибут"
202
203 #. type: tbl table
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 #, no-wrap
207 msgid "Value"
208 msgstr "Значение"
209
210 #. type: tbl table
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 #, no-wrap
214 msgid ".na\n"
215 msgstr ".na\n"
216
217 #. type: tbl table
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 #, no-wrap
221 msgid ".nh\n"
222 msgstr ".nh\n"
223
224 #. type: tbl table
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid "B<pthread_sigmask>()"
229 msgstr "B<pthread_sigmask>()"
230
231 #. type: tbl table
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 #, no-wrap
235 msgid "Thread safety"
236 msgstr "Безвредность в нитях"
237
238 #. type: tbl table
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, no-wrap
242 msgid "MT-Safe"
243 msgstr "MT-Safe"
244
245 #. type: SH
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 #, no-wrap
249 msgid "STANDARDS"
250 msgstr "СТАНДАРТЫ"
251
252 #. type: Plain text
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 msgid "POSIX.1-2008."
256 msgstr "POSIX.1-2008."
257
258 #. type: SH
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 #, no-wrap
262 msgid "HISTORY"
263 msgstr "ИСТОРИЯ"
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 msgid "POSIX.1-2001."
269 msgstr "POSIX.1-2001."
270
271 #. type: SH
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid "NOTES"
276 msgstr "ПРИМЕЧАНИЯ"
277
278 #. type: Plain text
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 msgid "A new thread inherits a copy of its creator's signal mask."
282 msgstr "Новая нить наследует копию маски сигналов своего создателя."
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 msgid ""
288 "The glibc B<pthread_sigmask>() function silently ignores attempts to block "
289 "the two real-time signals that are used internally by the NPTL threading "
290 "implementation. See B<nptl>(7) for details."
291 msgstr ""
292 "Функция glibc B<pthread_sigmask>() просто игнорирует попытки блокирования "
293 "двух сигналов реального времени, которые используются внутри реализации "
294 "NPTL. Подробности смотрите в B<nptl>(7)."
295
296 #. type: SH
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid "EXAMPLES"
301 msgstr "ПРИМЕРЫ"
302
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid ""
307 "The program below blocks some signals in the main thread, and then creates a "
308 "dedicated thread to fetch those signals via B<sigwait>(3). The following "
309 "shell session demonstrates its use:"
310 msgstr ""
311 "Показанная далее программа блокирует некоторые сигналы в главной нити, а "
312 "затем создаёт отдельную нить для получения этих сигналов с помощью "
313 "B<sigwait>(3). Пример работы программы:"
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 #, no-wrap
319 msgid ""
320 "$B< ./a.out &>\n"
321 "[1] 5423\n"
322 "$B< kill -QUIT %1>\n"
323 "Signal handling thread got signal 3\n"
324 "$B< kill -USR1 %1>\n"
325 "Signal handling thread got signal 10\n"
326 "$B< kill -TERM %1>\n"
327 "[1]+ Terminated ./a.out\n"
328 msgstr ""
329 "$B< ./a.out &>\n"
330 "[1] 5423\n"
331 "$B< kill -QUIT %1>\n"
332 "Нить обработки сигналов получила сигнал 3\n"
333 "$B< kill -USR1 %1>\n"
334 "Нить обработки сигналов получила сигнал 10\n"
335 "$B< kill -TERM %1>\n"
336 "[1]+ Terminated ./a.out\n"
337
338 #. type: SS
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid "Program source"
343 msgstr "Исходный код программы"
344
345 #. type: Plain text
346 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
347 #: opensuse-tumbleweed
348 #, no-wrap
349 msgid ""
350 "#include E<lt>err.hE<gt>\n"
351 "#include E<lt>errno.hE<gt>\n"
352 "#include E<lt>pthread.hE<gt>\n"
353 "#include E<lt>signal.hE<gt>\n"
354 "#include E<lt>stdio.hE<gt>\n"
355 "#include E<lt>stdlib.hE<gt>\n"
356 "#include E<lt>unistd.hE<gt>\n"
357 "\\&\n"
358 "/* Simple error handling functions */\n"
359 "\\&\n"
360 "static void *\n"
361 "sig_thread(void *arg)\n"
362 "{\n"
363 " sigset_t *set = arg;\n"
364 " int s, sig;\n"
365 "\\&\n"
366 " for (;;) {\n"
367 " s = sigwait(set, &sig);\n"
368 " if (s != 0)\n"
369 " errc(EXIT_FAILURE, s, \"sigwait\");\n"
370 " printf(\"Signal handling thread got signal %d\\[rs]n\", sig);\n"
371 " }\n"
372 "}\n"
373 "\\&\n"
374 "int\n"
375 "main(void)\n"
376 "{\n"
377 " pthread_t thread;\n"
378 " sigset_t set;\n"
379 " int s;\n"
380 "\\&\n"
381 " /* Block SIGQUIT and SIGUSR1; other threads created by main()\n"
382 " will inherit a copy of the signal mask. */\n"
383 "\\&\n"
384 " sigemptyset(&set);\n"
385 " sigaddset(&set, SIGQUIT);\n"
386 " sigaddset(&set, SIGUSR1);\n"
387 " s = pthread_sigmask(SIG_BLOCK, &set, NULL);\n"
388 " if (s != 0)\n"
389 " errc(EXIT_FAILURE, s, \"pthread_sigmask\");\n"
390 "\\&\n"
391 " s = pthread_create(&thread, NULL, &sig_thread, &set);\n"
392 " if (s != 0)\n"
393 " errc(EXIT_FAILURE, s, \"pthread_create\");\n"
394 "\\&\n"
395 " /* Main thread carries on to create other threads and/or do\n"
396 " other work. */\n"
397 "\\&\n"
398 " pause(); /* Dummy pause so we can test program */\n"
399 "}\n"
400 msgstr ""
401
402 #. SRC END
403 #. type: SH
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 #, no-wrap
407 msgid "SEE ALSO"
408 msgstr "СМОТРИТЕ ТАКЖЕ"
409
410 #. type: Plain text
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, fuzzy
414 #| msgid ""
415 #| "B<sigaction>(2), B<sigpending>(2), B<sigprocmask>(2), "
416 #| "B<pthread_create>(3), B<pthread_kill>(3), B<sigsetops>(3), "
417 #| "B<pthreads>(7), B<signal>(7)"
418 msgid ""
419 "B<sigaction>(2), B<sigpending>(2), B<sigprocmask>(2), "
420 "B<pthread_attr_setsigmask_np>(3), B<pthread_create>(3), B<pthread_kill>(3), "
421 "B<sigsetops>(3), B<pthreads>(7), B<signal>(7)"
422 msgstr ""
423 "B<sigaction>(2), B<sigpending>(2), B<sigprocmask>(2), B<pthread_create>(3), "
424 "B<pthread_kill>(3), B<sigsetops>(3), B<pthreads>(7), B<signal>(7)"
425
426 #. type: TH
427 #: debian-trixie
428 #, no-wrap
429 msgid "2024-06-15"
430 msgstr "15 июня 2024 г."
431
432 #. type: TH
433 #: debian-trixie
434 #, no-wrap
435 msgid "Linux man-pages 6.9.1"
436 msgstr "Страницы руководства Linux 6.9.1"
437
438 #. type: Plain text
439 #: debian-trixie
440 msgid "POSIX threads library (I<libpthread>, I<-lpthread>)"
441 msgstr "Библиотека потоков POSIX (I<libpthread>, I<-lpthread>)"
442
443 #. type: Plain text
444 #: debian-trixie fedora-44 fedora-rawhide
445 #, no-wrap
446 msgid ""
447 "#include E<lt>errno.hE<gt>\n"
448 "#include E<lt>pthread.hE<gt>\n"
449 "#include E<lt>signal.hE<gt>\n"
450 "#include E<lt>stdio.hE<gt>\n"
451 "#include E<lt>stdlib.hE<gt>\n"
452 "#include E<lt>unistd.hE<gt>\n"
453 "\\&\n"
454 "/* Simple error handling functions */\n"
455 "\\&\n"
456 "#define handle_error_en(en, msg) \\[rs]\n"
457 " do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)\n"
458 "\\&\n"
459 "static void *\n"
460 "sig_thread(void *arg)\n"
461 "{\n"
462 " sigset_t *set = arg;\n"
463 " int s, sig;\n"
464 "\\&\n"
465 " for (;;) {\n"
466 " s = sigwait(set, &sig);\n"
467 " if (s != 0)\n"
468 " handle_error_en(s, \"sigwait\");\n"
469 " printf(\"Signal handling thread got signal %d\\[rs]n\", sig);\n"
470 " }\n"
471 "}\n"
472 "\\&\n"
473 "int\n"
474 "main(void)\n"
475 "{\n"
476 " pthread_t thread;\n"
477 " sigset_t set;\n"
478 " int s;\n"
479 "\\&\n"
480 " /* Block SIGQUIT and SIGUSR1; other threads created by main()\n"
481 " will inherit a copy of the signal mask. */\n"
482 "\\&\n"
483 " sigemptyset(&set);\n"
484 " sigaddset(&set, SIGQUIT);\n"
485 " sigaddset(&set, SIGUSR1);\n"
486 " s = pthread_sigmask(SIG_BLOCK, &set, NULL);\n"
487 " if (s != 0)\n"
488 " handle_error_en(s, \"pthread_sigmask\");\n"
489 "\\&\n"
490 " s = pthread_create(&thread, NULL, &sig_thread, &set);\n"
491 " if (s != 0)\n"
492 " handle_error_en(s, \"pthread_create\");\n"
493 "\\&\n"
494 " /* Main thread carries on to create other threads and/or do\n"
495 " other work. */\n"
496 "\\&\n"
497 " pause(); /* Dummy pause so we can test program */\n"
498 "}\n"
499 msgstr ""
500
501 #. type: TH
502 #: fedora-44 fedora-rawhide
503 #, no-wrap
504 msgid "2024-07-23"
505 msgstr "23 июля 2024 г."
506
507 #. type: TH
508 #: fedora-44 fedora-rawhide
509 #, no-wrap
510 msgid "Linux man-pages 6.13"
511 msgstr "Страницы руководства Linux 6.13"
512
513 #. type: TH
514 #: mageia-cauldron
515 #, no-wrap
516 msgid "Linux man-pages 6.17"
517 msgstr "Страницы руководства Linux 6.17"
518
519 #. type: TH
520 #: opensuse-leap-16-1 opensuse-tumbleweed
521 #, no-wrap
522 msgid "Linux man-pages (unreleased)"
523 msgstr "Страницы руководства Linux (не выпущены)"