| 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 |
# Alexander Golubev <[email protected]>, 2018. |
| 5 |
# Azamat Hackimov <[email protected]>, 2011, 2014-2016. |
| 6 |
# Hotellook, 2014. |
| 7 |
# Nikita <[email protected]>, 2014. |
| 8 |
# Spiros Georgaras <[email protected]>, 2016. |
| 9 |
# Vladislav <[email protected]>, 2015. |
| 10 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 11 |
# Иван Павлов <[email protected]>, 2017. |
| 12 |
msgid "" |
| 13 |
msgstr "" |
| 14 |
"Project-Id-Version: manpages-l10n\n" |
| 15 |
"POT-Creation-Date: 2026-06-05 06:43+0200\n" |
| 16 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 17 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 18 |
"Language-Team: Russian <[email protected]>\n" |
| 19 |
"Language: ru\n" |
| 20 |
"MIME-Version: 1.0\n" |
| 21 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 22 |
"Content-Transfer-Encoding: 8bit\n" |
| 23 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 24 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 25 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 26 |
"X-Generator: Lokalize 2.0\n" |
| 27 |
|
| 28 |
#. type: TH |
| 29 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 30 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 31 |
#, no-wrap |
| 32 |
msgid "signal" |
| 33 |
msgstr "signal" |
| 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 "signal - ANSI C signal handling" |
| 60 |
msgstr "signal - работа с сигналами ANSI C" |
| 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 "Standard C library (I<libc>,\\ I<-lc>)" |
| 73 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 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-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 91 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 92 |
#, fuzzy, no-wrap |
| 93 |
#| msgid "B<typedef void (*sighandler_t)(int);>\n" |
| 94 |
msgid "B<typedef typeof(void (int)) *sighandler_t;>\n" |
| 95 |
msgstr "B<typedef void (*sighandler_t)(int);>\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 |
#, no-wrap |
| 101 |
msgid "B<sighandler_t signal(int >I<signum>B<, sighandler_t >I<handler>B<);>\n" |
| 102 |
msgstr "B<sighandler_t signal(int >I<signum>B<, sighandler_t >I<handler>B<);>\n" |
| 103 |
|
| 104 |
#. type: SH |
| 105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 107 |
#, no-wrap |
| 108 |
msgid "DESCRIPTION" |
| 109 |
msgstr "ОПИСАНИЕ" |
| 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 |
msgid "" |
| 115 |
"B<WARNING>: the behavior of B<signal>() varies across UNIX versions, and " |
| 116 |
"has also varied historically across different versions of Linux. B<Avoid " |
| 117 |
"its use>: use B<sigaction>(2) instead. See I<Portability> below." |
| 118 |
msgstr "" |
| 119 |
"B<ВНИМАНИЕ>: поведение B<signal>() различается в разных версиях UNIX и " |
| 120 |
"исторически менялось в разных версиях Linux. B<Избегайте его использования>: " |
| 121 |
"вместо этого используйте B<sigaction>(2). См. раздел I<Переносимость> ниже." |
| 122 |
|
| 123 |
#. type: Plain text |
| 124 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 125 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 126 |
msgid "" |
| 127 |
"B<signal>() sets the disposition of the signal I<signum> to I<handler>, " |
| 128 |
"which is either B<SIG_IGN>, B<SIG_DFL>, or the address of a programmer-" |
| 129 |
"defined function (a \"signal handler\")." |
| 130 |
msgstr "" |
| 131 |
"Вызов B<signal>() устанавливает обработчик сигнала с номером I<signum> в " |
| 132 |
"соответствии с параметром I<handler>, который может быть равен B<SIG_IGN>, " |
| 133 |
"B<SIG_DFL> или адресу функции пользователя (\"обработчик сигнала\")." |
| 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 "" |
| 139 |
"If the signal I<signum> is delivered to the process, then one of the " |
| 140 |
"following happens:" |
| 141 |
msgstr "Если сигнал I<signum> доставляется процессу, то происходит следующее:" |
| 142 |
|
| 143 |
#. type: TP |
| 144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 145 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 146 |
#, no-wrap |
| 147 |
msgid "*" |
| 148 |
msgstr "*" |
| 149 |
|
| 150 |
#. type: Plain text |
| 151 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 152 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 153 |
msgid "If the disposition is set to B<SIG_IGN>, then the signal is ignored." |
| 154 |
msgstr "Если значение обработчика равно B<SIG_IGN>, то сигнал игнорируется." |
| 155 |
|
| 156 |
#. type: Plain text |
| 157 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 158 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 159 |
msgid "" |
| 160 |
"If the disposition is set to B<SIG_DFL>, then the default action associated " |
| 161 |
"with the signal (see B<signal>(7)) occurs." |
| 162 |
msgstr "" |
| 163 |
"Если значение обработчика равно B<SIG_DFL>, то выполняется стандартное " |
| 164 |
"действие, связанное с сигналом (см. B<signal>(7))." |
| 165 |
|
| 166 |
#. type: Plain text |
| 167 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 168 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 169 |
msgid "" |
| 170 |
"If the disposition is set to a function, then first either the disposition " |
| 171 |
"is reset to B<SIG_DFL>, or the signal is blocked (see I<Portability> below), " |
| 172 |
"and then I<handler> is called with argument I<signum>. If invocation of the " |
| 173 |
"handler caused the signal to be blocked, then the signal is unblocked upon " |
| 174 |
"return from the handler." |
| 175 |
msgstr "" |
| 176 |
"Если значение обработчика равно адресу функции, то сначала значение " |
| 177 |
"обработчика сбрасывается в B<SIG_DFL> или сигнал блокируется (см. " |
| 178 |
"I<Переносимость> далее), а затем вызывается функция I<handler> с аргументом " |
| 179 |
"I<signum>. Если вызов обработчика приводит к блокировке сигнала, то сигнал " |
| 180 |
"разблокируется после возврата из обработчика." |
| 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 "The signals B<SIGKILL> and B<SIGSTOP> cannot be caught or ignored." |
| 186 |
msgstr "" |
| 187 |
"Сигналы B<SIGKILL> и B<SIGSTOP> не могут быть перехвачены или игнорированы." |
| 188 |
|
| 189 |
#. type: SH |
| 190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 191 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 192 |
#, no-wrap |
| 193 |
msgid "RETURN VALUE" |
| 194 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 195 |
|
| 196 |
#. type: Plain text |
| 197 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 198 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 199 |
msgid "" |
| 200 |
"B<signal>() returns the previous value of the signal handler. On failure, " |
| 201 |
"it returns B<SIG_ERR>, and I<errno> is set to indicate the error." |
| 202 |
msgstr "" |
| 203 |
"Функция B<signal>() возвращает предыдущее значение обработчика сигнала. В " |
| 204 |
"случае сбоя она возвращает B<SIG_ERR>, и I<errno> устанавливается, чтобы " |
| 205 |
"указать на ошибку." |
| 206 |
|
| 207 |
#. type: SH |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
#, no-wrap |
| 211 |
msgid "ERRORS" |
| 212 |
msgstr "ОШИБКИ" |
| 213 |
|
| 214 |
#. type: TP |
| 215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 216 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 217 |
#, no-wrap |
| 218 |
msgid "B<EINVAL>" |
| 219 |
msgstr "B<EINVAL>" |
| 220 |
|
| 221 |
#. type: Plain text |
| 222 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 223 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 224 |
msgid "I<signum> is invalid." |
| 225 |
msgstr "Неверное значение I<signum>." |
| 226 |
|
| 227 |
#. type: SH |
| 228 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 229 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 230 |
#, no-wrap |
| 231 |
msgid "VERSIONS" |
| 232 |
msgstr "ВЕРСИИ" |
| 233 |
|
| 234 |
#. libc4 and libc5 define |
| 235 |
#. .IR SignalHandler ; |
| 236 |
#. type: Plain text |
| 237 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 238 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 239 |
#, fuzzy |
| 240 |
#| msgid "" |
| 241 |
#| "The use of I<sighandler_t> is a GNU extension, exposed if B<_GNU_SOURCE> " |
| 242 |
#| "is defined; glibc also defines (the BSD-derived) I<sig_t> if " |
| 243 |
#| "B<_BSD_SOURCE> (glibc 2.19 and earlier) or B<_DEFAULT_SOURCE> (glibc " |
| 244 |
#| "2.19 and later) is defined. Without use of such a type, the declaration " |
| 245 |
#| "of B<signal>() is the somewhat harder to read:" |
| 246 |
msgid "" |
| 247 |
"The use of I<sighandler_t> is a GNU extension, exposed if B<_GNU_SOURCE> is " |
| 248 |
"defined; glibc also defines (the BSD-derived) I<sig_t> if B<_BSD_SOURCE> " |
| 249 |
"(glibc 2.19 and earlier) or B<_DEFAULT_SOURCE> (glibc 2.19 and later) is " |
| 250 |
"defined. The standard definition of B<signal>() is:" |
| 251 |
msgstr "" |
| 252 |
"Используемый I<sighandler_t> является расширением GNU, который определён, " |
| 253 |
"если существует макрос B<_GNU_SOURCE>; в glibc также есть I<sig_t>, если " |
| 254 |
"определён B<_BSD_SOURCE> (glibc 2.19 и старее) или B<_DEFAULT_SOURCE> (glibc " |
| 255 |
"2.19 и новее). Без использования этого типа объявление B<signal>() сложнее " |
| 256 |
"читать:" |
| 257 |
|
| 258 |
#. type: Plain text |
| 259 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 260 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 261 |
#, fuzzy, no-wrap |
| 262 |
#| msgid "B<void ( *>I<signal>B<(int >I<signum>B<, void (*>I<handler>B<)(int)) ) (int);>\n" |
| 263 |
msgid "B<typeof(void (int)) *signal(int >I<signum>B<, typeof(void (int)) *>I<handler>B<);>\n" |
| 264 |
msgstr "B<void ( *>I<signal>B<(int >I<signum>B<, void (*>I<handler>B<)(int)) ) (int);>\n" |
| 265 |
|
| 266 |
#. type: SS |
| 267 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 268 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 269 |
#, no-wrap |
| 270 |
msgid "Portability" |
| 271 |
msgstr "Переносимость" |
| 272 |
|
| 273 |
#. type: Plain text |
| 274 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 275 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 276 |
msgid "" |
| 277 |
"The only portable use of B<signal>() is to set a signal's disposition to " |
| 278 |
"B<SIG_DFL> or B<SIG_IGN>. The semantics when using B<signal>() to " |
| 279 |
"establish a signal handler vary across systems (and POSIX.1 explicitly " |
| 280 |
"permits this variation); B<do not use it for this purpose.>" |
| 281 |
msgstr "" |
| 282 |
"Вызов B<signal>() считается переносимым, если обработчик сигнала равен " |
| 283 |
"B<SIG_DFL> или B<SIG_IGN>. Семантика при использовании B<signal>() для " |
| 284 |
"установки обработчика сигнала отличается в различных системах (и в POSIX.1 " |
| 285 |
"явно разрешена такая перемена); B<не используйте данный вызов для этой цели.>" |
| 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 "" |
| 291 |
"POSIX.1 solved the portability mess by specifying B<sigaction>(2), which " |
| 292 |
"provides explicit control of the semantics when a signal handler is invoked; " |
| 293 |
"use that interface instead of B<signal>()." |
| 294 |
msgstr "" |
| 295 |
"В POSIX.1 проблема переносимости решена введением B<sigaction>(2), который " |
| 296 |
"предоставляет явное управление семантикой при вызове обработчика сигнала; " |
| 297 |
"используйте этот интерфейс вместо B<signal>()." |
| 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 "STANDARDS" |
| 304 |
msgstr "СТАНДАРТЫ" |
| 305 |
|
| 306 |
#. type: Plain text |
| 307 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 308 |
#: opensuse-tumbleweed |
| 309 |
#, fuzzy |
| 310 |
#| msgid "C11, POSIX.1-2008." |
| 311 |
msgid "C11, POSIX.1-2024." |
| 312 |
msgstr "C11, POSIX.1-2008." |
| 313 |
|
| 314 |
#. type: SH |
| 315 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 316 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 317 |
#, no-wrap |
| 318 |
msgid "HISTORY" |
| 319 |
msgstr "ИСТОРИЯ" |
| 320 |
|
| 321 |
#. type: Plain text |
| 322 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 323 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 324 |
msgid "C89, POSIX.1-2001." |
| 325 |
msgstr "C89, POSIX.1-2001." |
| 326 |
|
| 327 |
#. type: Plain text |
| 328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 330 |
msgid "" |
| 331 |
"In the original UNIX systems, when a handler that was established using " |
| 332 |
"B<signal>() was invoked by the delivery of a signal, the disposition of the " |
| 333 |
"signal would be reset to B<SIG_DFL>, and the system did not block delivery " |
| 334 |
"of further instances of the signal. This is equivalent to calling " |
| 335 |
"B<sigaction>(2) with the following flags:" |
| 336 |
msgstr "" |
| 337 |
"В первых системах UNIX, когда обработчик, установленный с помощью " |
| 338 |
"B<signal>(), вызывался по получению сигнала, обработчик сигнала был бы " |
| 339 |
"сброшен в B<SIG_DFL>, и система не заблокировала бы доставку этого сигнала в " |
| 340 |
"последующие экземпляры." |
| 341 |
|
| 342 |
#. type: Plain text |
| 343 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 344 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 345 |
#, no-wrap |
| 346 |
msgid "sa.sa_flags = SA_RESETHAND | SA_NODEFER;\n" |
| 347 |
msgstr "sa.sa_flags = SA_RESETHAND | SA_NODEFER;\n" |
| 348 |
|
| 349 |
#. type: Plain text |
| 350 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 351 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 352 |
msgid "" |
| 353 |
"System\\ V also provides these semantics for B<signal>(). This was bad " |
| 354 |
"because the signal might be delivered again before the handler had a chance " |
| 355 |
"to reestablish itself. Furthermore, rapid deliveries of the same signal " |
| 356 |
"could result in recursive invocations of the handler." |
| 357 |
msgstr "" |
| 358 |
"System\\ V также предоставляет эту семантику B<signal>(). Это плохо, так как " |
| 359 |
"сигнал может быть доставлен снова, до того как обработчик сможет получить " |
| 360 |
"шанс его переустановить. Кроме того, скоростные доставки одного сигнала " |
| 361 |
"приводили к рекурсивным вызовам обработчика." |
| 362 |
|
| 363 |
#. type: Plain text |
| 364 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 365 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 366 |
msgid "" |
| 367 |
"BSD improved on this situation, but unfortunately also changed the semantics " |
| 368 |
"of the existing B<signal>() interface while doing so. On BSD, when a " |
| 369 |
"signal handler is invoked, the signal disposition is not reset, and further " |
| 370 |
"instances of the signal are blocked from being delivered while the handler " |
| 371 |
"is executing. Furthermore, certain blocking system calls are automatically " |
| 372 |
"restarted if interrupted by a signal handler (see B<signal>(7)). The BSD " |
| 373 |
"semantics are equivalent to calling B<sigaction>(2) with the following " |
| 374 |
"flags:" |
| 375 |
msgstr "" |
| 376 |
"В BSD улучшили эту ситуацию, но, к сожалению, изменили существующую " |
| 377 |
"семантику для установки обработчика с помощью B<signal>(). В BSD при вызове " |
| 378 |
"обработчика сигнала обработчик сигнала не сбрасывается, и дальнейшие " |
| 379 |
"экземпляры сигнала блокируются и не доставляются пока выполняется " |
| 380 |
"обработчик. Кроме этого, некоторые блокирующие системные вызовы " |
| 381 |
"автоматически перезапускаются при прерывании обработчиком сигнала (смотрите " |
| 382 |
"B<signal>(7)). Семантика BSD эквивалентна вызову B<sigaction>(2) со " |
| 383 |
"следующими флагами:" |
| 384 |
|
| 385 |
#. type: Plain text |
| 386 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 387 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 388 |
#, no-wrap |
| 389 |
msgid "sa.sa_flags = SA_RESTART;\n" |
| 390 |
msgstr "sa.sa_flags = SA_RESTART;\n" |
| 391 |
|
| 392 |
#. type: Plain text |
| 393 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 394 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 395 |
msgid "The situation on Linux is as follows:" |
| 396 |
msgstr "Ситуация в Linux:" |
| 397 |
|
| 398 |
#. type: IP |
| 399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 401 |
#, no-wrap |
| 402 |
msgid "\\[bu]" |
| 403 |
msgstr "\\[bu]" |
| 404 |
|
| 405 |
#. type: Plain text |
| 406 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 407 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 408 |
msgid "The kernel's B<signal>() system call provides System\\ V semantics." |
| 409 |
msgstr "Системный вызов ядра B<signal>() предоставляет семантику System\\ V." |
| 410 |
|
| 411 |
#. System V semantics are also provided if one uses the separate |
| 412 |
#. .BR sysv_signal (3) |
| 413 |
#. function. |
| 414 |
#. .IP \[bu] |
| 415 |
#. The |
| 416 |
#. .BR signal () |
| 417 |
#. function in Linux libc4 and libc5 provide System\ V semantics. |
| 418 |
#. If one on a libc5 system includes |
| 419 |
#. .I <bsd/signal.h> |
| 420 |
#. instead of |
| 421 |
#. .IR <signal.h> , |
| 422 |
#. then |
| 423 |
#. .BR signal () |
| 424 |
#. provides BSD semantics. |
| 425 |
#. type: Plain text |
| 426 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 427 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 428 |
msgid "" |
| 429 |
"By default, in glibc 2 and later, the B<signal>() wrapper function does not " |
| 430 |
"invoke the kernel system call. Instead, it calls B<sigaction>(2) using " |
| 431 |
"flags that supply BSD semantics. This default behavior is provided as long " |
| 432 |
"as a suitable feature test macro is defined: B<_BSD_SOURCE> on glibc 2.19 " |
| 433 |
"and earlier or B<_DEFAULT_SOURCE> in glibc 2.19 and later. (By default, " |
| 434 |
"these macros are defined; see B<feature_test_macros>(7) for details.) If " |
| 435 |
"such a feature test macro is not defined, then B<signal>() provides " |
| 436 |
"System\\ V semantics." |
| 437 |
msgstr "" |
| 438 |
"По умолчанию в glibc 2 и новее обёрточная функция B<signal>() не вызывает " |
| 439 |
"системный вызов ядра. Вместо этого она вызывает B<sigaction>(2) с флагами, " |
| 440 |
"которые активируют семантику BSD. Такое поведение по умолчанию " |
| 441 |
"устанавливается, если определён макрос тестирования свойств B<_BSD_SOURCE> в " |
| 442 |
"glibc 2.19 и старее или B<_DEFAULT_SOURCE> в glibc 2.19 и новее (по " |
| 443 |
"умолчанию эти макросы определены; подробности смотрите в " |
| 444 |
"B<feature_test_macros>(7)) . Если этот макрос тестирования свойств не " |
| 445 |
"определён, B<signal>() работает согласно семантики System\\ V." |
| 446 |
|
| 447 |
#. type: SH |
| 448 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 449 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 450 |
#, no-wrap |
| 451 |
msgid "NOTES" |
| 452 |
msgstr "ПРИМЕЧАНИЯ" |
| 453 |
|
| 454 |
#. type: Plain text |
| 455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 456 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 457 |
msgid "The effects of B<signal>() in a multithreaded process are unspecified." |
| 458 |
msgstr "" |
| 459 |
"Результат работы B<signal>() в многонитевом процессе не регламентирован." |
| 460 |
|
| 461 |
#. type: Plain text |
| 462 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 463 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 464 |
msgid "" |
| 465 |
"According to POSIX, the behavior of a process is undefined after it ignores " |
| 466 |
"a B<SIGFPE>, B<SIGILL>, or B<SIGSEGV> signal that was not generated by " |
| 467 |
"B<kill>(2) or B<raise>(3). Integer division by zero has undefined result. " |
| 468 |
"On some architectures it will generate a B<SIGFPE> signal. (Also dividing " |
| 469 |
"the most negative integer by -1 may generate B<SIGFPE>.) Ignoring this " |
| 470 |
"signal might lead to an endless loop." |
| 471 |
msgstr "" |
| 472 |
"В соответствии с POSIX поведение процесса после игнорирования сигнала " |
| 473 |
"B<SIGFPE>, B<SIGILL> или B<SIGSEGV> не определено, если эти сигналы не были " |
| 474 |
"посланы при помощи функций B<kill>(2) или B<raise>(3). Деление целого числа " |
| 475 |
"на ноль имеет непредсказуемый результат. В некоторых архитектурах это " |
| 476 |
"приводит к появлению сигнала B<SIGFPE>. (Также, деление самого большого по " |
| 477 |
"модулю отрицательного числа на -1 тоже может приводить к B<SIGFPE>.) " |
| 478 |
"Игнорирование этого сигнала может привести к появлению бесконечного цикла." |
| 479 |
|
| 480 |
#. type: Plain text |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
msgid "" |
| 484 |
"See B<sigaction>(2) for details on what happens when the disposition " |
| 485 |
"B<SIGCHLD> is set to B<SIG_IGN>." |
| 486 |
msgstr "" |
| 487 |
"О том, что происходит когда обработчик B<SIGCHLD> приравнивается к " |
| 488 |
"B<SIG_IGN>, смотрите на странице B<sigaction>(2)." |
| 489 |
|
| 490 |
#. type: Plain text |
| 491 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 492 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 493 |
msgid "" |
| 494 |
"See B<signal-safety>(7) for a list of the async-signal-safe functions that " |
| 495 |
"can be safely called from inside a signal handler." |
| 496 |
msgstr "" |
| 497 |
"Список асинхронных функций работы с сигналами, которые можно безопасно " |
| 498 |
"вызывать из обработчика сигналов, смотрите на странице B<signal-safety>(7)." |
| 499 |
|
| 500 |
#. type: SH |
| 501 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 502 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 503 |
#, no-wrap |
| 504 |
msgid "SEE ALSO" |
| 505 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 506 |
|
| 507 |
#. type: Plain text |
| 508 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 509 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 510 |
msgid "" |
| 511 |
"B<kill>(1), B<alarm>(2), B<kill>(2), B<pause>(2), B<sigaction>(2), " |
| 512 |
"B<signalfd>(2), B<sigpending>(2), B<sigprocmask>(2), B<sigsuspend>(2), " |
| 513 |
"B<bsd_signal>(3), B<killpg>(3), B<raise>(3), B<siginterrupt>(3), " |
| 514 |
"B<sigqueue>(3), B<sigsetops>(3), B<sigvec>(3), B<sysv_signal>(3), " |
| 515 |
"B<signal>(7)" |
| 516 |
msgstr "" |
| 517 |
"B<kill>(1), B<alarm>(2), B<kill>(2), B<pause>(2), B<sigaction>(2), " |
| 518 |
"B<signalfd>(2), B<sigpending>(2), B<sigprocmask>(2), B<sigsuspend>(2), " |
| 519 |
"B<bsd_signal>(3), B<killpg>(3), B<raise>(3), B<siginterrupt>(3), " |
| 520 |
"B<sigqueue>(3), B<sigsetops>(3), B<sigvec>(3), B<sysv_signal>(3), " |
| 521 |
"B<signal>(7)" |
| 522 |
|
| 523 |
#. type: TH |
| 524 |
#: debian-trixie |
| 525 |
#, no-wrap |
| 526 |
msgid "2024-05-02" |
| 527 |
msgstr "2 мая 2024 г." |
| 528 |
|
| 529 |
#. type: TH |
| 530 |
#: debian-trixie |
| 531 |
#, no-wrap |
| 532 |
msgid "Linux man-pages 6.9.1" |
| 533 |
msgstr "Страницы руководства Linux 6.9.1" |
| 534 |
|
| 535 |
#. type: Plain text |
| 536 |
#: debian-trixie |
| 537 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 538 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 539 |
|
| 540 |
#. type: Plain text |
| 541 |
#: debian-trixie |
| 542 |
#, no-wrap |
| 543 |
msgid "B<typedef void (*sighandler_t)(int);>\n" |
| 544 |
msgstr "B<typedef void (*sighandler_t)(int);>\n" |
| 545 |
|
| 546 |
#. libc4 and libc5 define |
| 547 |
#. .IR SignalHandler ; |
| 548 |
#. type: Plain text |
| 549 |
#: debian-trixie |
| 550 |
msgid "" |
| 551 |
"The use of I<sighandler_t> is a GNU extension, exposed if B<_GNU_SOURCE> is " |
| 552 |
"defined; glibc also defines (the BSD-derived) I<sig_t> if B<_BSD_SOURCE> " |
| 553 |
"(glibc 2.19 and earlier) or B<_DEFAULT_SOURCE> (glibc 2.19 and later) is " |
| 554 |
"defined. Without use of such a type, the declaration of B<signal>() is the " |
| 555 |
"somewhat harder to read:" |
| 556 |
msgstr "" |
| 557 |
"Используемый I<sighandler_t> является расширением GNU, который определён, " |
| 558 |
"если существует макрос B<_GNU_SOURCE>; в glibc также есть I<sig_t>, если " |
| 559 |
"определён B<_BSD_SOURCE> (glibc 2.19 и старее) или B<_DEFAULT_SOURCE> (glibc " |
| 560 |
"2.19 и новее). Без использования этого типа объявление B<signal>() сложнее " |
| 561 |
"читать:" |
| 562 |
|
| 563 |
#. type: Plain text |
| 564 |
#: debian-trixie |
| 565 |
#, no-wrap |
| 566 |
msgid "B<void ( *>I<signal>B<(int >I<signum>B<, void (*>I<handler>B<)(int)) ) (int);>\n" |
| 567 |
msgstr "B<void ( *>I<signal>B<(int >I<signum>B<, void (*>I<handler>B<)(int)) ) (int);>\n" |
| 568 |
|
| 569 |
#. type: Plain text |
| 570 |
#: debian-trixie fedora-44 fedora-rawhide |
| 571 |
msgid "C11, POSIX.1-2008." |
| 572 |
msgstr "C11, POSIX.1-2008." |
| 573 |
|
| 574 |
#. type: TH |
| 575 |
#: fedora-44 fedora-rawhide |
| 576 |
#, no-wrap |
| 577 |
msgid "2025-01-05" |
| 578 |
msgstr "5 января 2025 г." |
| 579 |
|
| 580 |
#. type: TH |
| 581 |
#: fedora-44 fedora-rawhide |
| 582 |
#, no-wrap |
| 583 |
msgid "Linux man-pages 6.13" |
| 584 |
msgstr "Страницы руководства Linux 6.13" |
| 585 |
|
| 586 |
#. type: TH |
| 587 |
#: mageia-cauldron |
| 588 |
#, no-wrap |
| 589 |
msgid "Linux man-pages 6.17" |
| 590 |
msgstr "Страницы руководства Linux 6.17" |
| 591 |
|
| 592 |
#. type: TH |
| 593 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 594 |
#, no-wrap |
| 595 |
msgid "Linux man-pages (unreleased)" |
| 596 |
msgstr "Страницы руководства Linux (не выпущены)" |