Debian Codegraph @

po/ru/man3/atexit.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 # Dmitry Bolkhovskikh <[email protected]>, 2017.
5 # Yuri Kozlov <[email protected]>, 2012-2019.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:18+0200\n"
10 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
11 "Last-Translator: Yuri Kozlov <[email protected]>\n"
12 "Language-Team: Russian <[email protected]>\n"
13 "Language: ru\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
18 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
19 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
20 "X-Generator: Lokalize 2.0\n"
21
22 #. type: TH
23 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
24 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
25 #, fuzzy, no-wrap
26 #| msgid "B<atexit>()"
27 msgid "atexit"
28 msgstr "B<atexit>()"
29
30 #. type: TH
31 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
32 #: opensuse-tumbleweed
33 #, no-wrap
34 msgid "2026-02-08"
35 msgstr "8 февраля 2026 г."
36
37 #. type: TH
38 #: archlinux debian-unstable
39 #, fuzzy, no-wrap
40 #| msgid "Linux man-pages 6.17"
41 msgid "Linux man-pages 6.18"
42 msgstr "Справочные страницы Linux 6.17"
43
44 #. type: SH
45 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
46 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
47 #, no-wrap
48 msgid "NAME"
49 msgstr "НАИМЕНОВАНИЕ"
50
51 #. type: Plain text
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 msgid "atexit - register a function to be called at normal process termination"
55 msgstr ""
56 "atexit - регистрирует функцию, вызываемую при обычном завершении программы"
57
58 #. type: SH
59 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
60 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
61 #, no-wrap
62 msgid "LIBRARY"
63 msgstr "БИБЛИОТЕКА"
64
65 #. type: Plain text
66 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
67 #: opensuse-leap-16-1 opensuse-tumbleweed
68 msgid "Standard C library (I<libc>,\\ I<-lc>)"
69 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
70
71 #. type: SH
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "SYNOPSIS"
76 msgstr "СИНТАКСИС"
77
78 #. type: Plain text
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid "B<#include E<lt>stdlib.hE<gt>>\n"
83 msgstr "B<#include E<lt>stdlib.hE<gt>>\n"
84
85 #. type: Plain text
86 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
87 #: opensuse-leap-16-1 opensuse-tumbleweed
88 #, fuzzy, no-wrap
89 #| msgid "B<int atexit(void (*>I<function>B<)(void));>\n"
90 msgid "B<int atexit(typeof(void (void)) *>I<function>B<);>\n"
91 msgstr "B<int atexit(void (*>I<function>B<)(void));>\n"
92
93 #. type: SH
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 #, no-wrap
97 msgid "DESCRIPTION"
98 msgstr "ОПИСАНИЕ"
99
100 #. type: Plain text
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 msgid ""
104 "The B<atexit>() function registers the given I<function> to be called at "
105 "normal process termination, either via B<exit>(3) or via return from the "
106 "program's I<main>(). Functions so registered are called in the reverse "
107 "order of their registration; no arguments are passed."
108 msgstr ""
109 "Функция B<atexit>() регистрирует передаваемую функцию I<function> в качестве "
110 "функции, вызываемой при нормальном завершении работы программы, например, с "
111 "помощью B<exit>(3), или при завершении работы функции I<main>. "
112 "Зарегистрированные функции вызываются в порядке, обратном регистрации; "
113 "никаких аргументов им не передаётся."
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid ""
119 "The same function may be registered multiple times: it is called once for "
120 "each registration."
121 msgstr ""
122 "Одна функция может быть зарегистрирована несколько раз: она вызывается один "
123 "раз для каждой регистрации."
124
125 #. POSIX.1-2001, POSIX.1-2008
126 #. type: Plain text
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 msgid ""
130 "POSIX.1 requires that an implementation allow at least B<ATEXIT_MAX> (32) "
131 "such functions to be registered. The actual limit supported by an "
132 "implementation can be obtained using B<sysconf>(3)."
133 msgstr ""
134 "В POSIX.1 требуется, чтобы реализация позволяла регистрировать не менее "
135 "B<ATEXIT_MAX> (32) таких функций. Установленный лимит, поддерживаемый "
136 "реализацией, можно определить с помощью B<sysconf>(3)."
137
138 #. type: Plain text
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 msgid ""
142 "When a child process is created via B<fork>(2), it inherits copies of its "
143 "parent's registrations. Upon a successful call to one of the B<exec>(3) "
144 "functions, all registrations are removed."
145 msgstr ""
146 "Когда дочерний процесс создаётся через B<fork>(2), он наследует копии "
147 "регистраций родителя. При успешном выполнении одной из функций B<exec>(3) "
148 "все регистрации снимаются."
149
150 #. type: SH
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 #, no-wrap
154 msgid "RETURN VALUE"
155 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
156
157 #. type: Plain text
158 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
159 #: opensuse-tumbleweed
160 #, fuzzy
161 #| msgid ""
162 #| "The B<atexit>() function returns the value 0 if successful; otherwise it "
163 #| "returns a nonzero value."
164 msgid ""
165 "The B<atexit>() function returns the value 0 if successful; otherwise, it "
166 "returns a nonzero value."
167 msgstr ""
168 "Функция B<atexit>() при успешном выполнении возвращает 0, в противном случае "
169 "— ненулевое значение."
170
171 #. type: SH
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 #, no-wrap
175 msgid "ATTRIBUTES"
176 msgstr "АТРИБУТЫ"
177
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 msgid ""
182 "For an explanation of the terms used in this section, see B<attributes>(7)."
183 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
184
185 #. type: tbl table
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid "Interface"
190 msgstr "Интерфейс"
191
192 #. type: tbl table
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, no-wrap
196 msgid "Attribute"
197 msgstr "Атрибут"
198
199 #. type: tbl table
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 #, no-wrap
203 msgid "Value"
204 msgstr "Значение"
205
206 #. type: tbl table
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 #, no-wrap
210 msgid ".na\n"
211 msgstr ".na\n"
212
213 #. type: tbl table
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, no-wrap
217 msgid ".nh\n"
218 msgstr ".nh\n"
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 "B<atexit>()"
225 msgstr "B<atexit>()"
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 "Thread safety"
232 msgstr "Безвредность в нитях"
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 "MT-Safe"
239 msgstr "MT-Safe"
240
241 #. type: SH
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 #, no-wrap
245 msgid "VERSIONS"
246 msgstr "ВЕРСИИ"
247
248 #. POSIX.1-2001, POSIX.1-2008
249 #. This can happen on OpenBSD 4.2 for example, and is documented
250 #. as occurring on FreeBSD as well.
251 #. glibc does "the Right Thing" -- invocation of the remaining
252 #. exit handlers carries on as normal.
253 #. type: Plain text
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 msgid ""
257 "POSIX.1 says that the result of calling B<exit>(3) more than once (i.e., "
258 "calling B<exit>(3) within a function registered using B<atexit>()) is "
259 "undefined. On some systems (but not Linux), this can result in an infinite "
260 "recursion; portable programs should not invoke B<exit>(3) inside a function "
261 "registered using B<atexit>()."
262 msgstr ""
263 "В POSIX.1 указано, что при многократном вызове B<exit>(3) (т. е., вызов "
264 "B<exit>(3) из функций, зарегистрированных B<atexit>()) состояние программы "
265 "не определено. В некоторых системах (не в Linux), это приводит к бесконечной "
266 "рекурсии; переносимые программы не должны вызывать B<exit>(3) из функций, "
267 "зарегистрированных через B<atexit>()."
268
269 #. type: SH
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "STANDARDS"
274 msgstr "СТАНДАРТЫ"
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid "C11, POSIX.1-2008."
280 msgstr "C11, POSIX.1-2008."
281
282 #. type: SH
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 #, no-wrap
286 msgid "HISTORY"
287 msgstr "ИСТОРИЯ"
288
289 #. type: Plain text
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 msgid "POSIX.1-2001, C89, C99, SVr4, 4.3BSD."
293 msgstr "POSIX.1-2001, C89, C99, SVr4, 4.3BSD."
294
295 #. type: SH
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 #, no-wrap
299 msgid "NOTES"
300 msgstr "ПРИМЕЧАНИЯ"
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 msgid ""
306 "Functions registered using B<atexit>() (and B<on_exit>(3)) are not called "
307 "if a process terminates abnormally because of the delivery of a signal."
308 msgstr ""
309 "Функции, зарегистрированные с помощью B<atexit>() (и B<on_exit>(3)) не "
310 "вызываются, если процесс завершился некорректно, например из-за полученного "
311 "сигнала."
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 "If one of the registered functions calls B<_exit>(2), then any remaining "
318 "functions are not invoked, and the other process termination steps performed "
319 "by B<exit>(3) are not performed."
320 msgstr ""
321 "Если одна из зарегистрированных функций вызывает B<_exit>(2), то оставшиеся "
322 "функции не вызываются, и другие шаги по завершению процесса, производимые "
323 "B<exit>(3), не выполняются."
324
325 #. type: Plain text
326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
328 msgid ""
329 "The B<atexit>() and B<on_exit>(3) functions register functions on the same "
330 "list: at normal process termination, the registered functions are invoked in "
331 "reverse order of their registration by these two functions."
332 msgstr ""
333 "Функции B<atexit>() и B<on_exit>(3) регистрируют функции в едином списке: "
334 "при нормальном завершении процесса зарегистрированные функции вызываются в "
335 "порядке обратном регистрации с помощью данных функций."
336
337 #. In glibc, things seem to be handled okay
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 msgid ""
342 "According to POSIX.1, the result is undefined if B<longjmp>(3) is used to "
343 "terminate execution of one of the functions registered using B<atexit>()."
344 msgstr ""
345 "Согласно POSIX.1 результат является не определённым, если при завершении "
346 "выполнения одной из функций, зарегистрированной с помощью B<atexit>(), "
347 "используется B<longjmp>(3)."
348
349 #. type: SS
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid "Linux notes"
354 msgstr "Замечания, касающиеся Linux"
355
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 msgid ""
360 "Since glibc 2.2.3, B<atexit>() (and B<on_exit>(3)) can be used within a "
361 "shared library to establish functions that are called when the shared "
362 "library is unloaded."
363 msgstr ""
364 "Начиная с glibc 2.2.3, функция B<atexit>() (и B<on_exit>(3)) может быть "
365 "использована в общей библиотеке для указания функций, который вызываются при "
366 "выгрузке общей библиотеки."
367
368 #. type: SH
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 #, no-wrap
372 msgid "EXAMPLES"
373 msgstr "ПРИМЕРЫ"
374
375 #. type: Plain text
376 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
377 #: opensuse-tumbleweed
378 #, no-wrap
379 msgid ""
380 "#include E<lt>stdio.hE<gt>\n"
381 "#include E<lt>stdlib.hE<gt>\n"
382 "#include E<lt>unistd.hE<gt>\n"
383 "\\&\n"
384 "static void\n"
385 "bye(void)\n"
386 "{\n"
387 " printf(\"That was all, folks\\[rs]n\");\n"
388 "}\n"
389 "\\&\n"
390 "int\n"
391 "main(void)\n"
392 "{\n"
393 " long a;\n"
394 " int i;\n"
395 "\\&\n"
396 " a = sysconf(_SC_ATEXIT_MAX);\n"
397 " printf(\"ATEXIT_MAX = %ld\\[rs]n\", a);\n"
398 "\\&\n"
399 " i = atexit(bye);\n"
400 " if (i != 0) {\n"
401 " fprintf(stderr, \"cannot set exit function\\[rs]n\");\n"
402 " exit(EXIT_FAILURE);\n"
403 " }\n"
404 "\\&\n"
405 " exit(EXIT_SUCCESS);\n"
406 "}\n"
407 msgstr ""
408
409 #. SRC END
410 #. type: SH
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, no-wrap
414 msgid "SEE ALSO"
415 msgstr "СМОТРИТЕ ТАКЖЕ"
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid "B<_exit>(2), B<dlopen>(3), B<exit>(3), B<on_exit>(3)"
421 msgstr "B<_exit>(2), B<dlopen>(3), B<exit>(3), B<on_exit>(3)"
422
423 #. type: TH
424 #: debian-trixie
425 #, no-wrap
426 msgid "2024-06-15"
427 msgstr "15 июня 2024 г."
428
429 #. type: TH
430 #: debian-trixie
431 #, no-wrap
432 msgid "Linux man-pages 6.9.1"
433 msgstr "Страницы руководства Linux 6.9.1"
434
435 #. type: Plain text
436 #: debian-trixie
437 msgid "Standard C library (I<libc>, I<-lc>)"
438 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
439
440 #. type: Plain text
441 #: debian-trixie
442 #, no-wrap
443 msgid "B<int atexit(void (*>I<function>B<)(void));>\n"
444 msgstr "B<int atexit(void (*>I<function>B<)(void));>\n"
445
446 #. type: Plain text
447 #: debian-trixie fedora-44 fedora-rawhide
448 msgid ""
449 "The B<atexit>() function returns the value 0 if successful; otherwise it "
450 "returns a nonzero value."
451 msgstr ""
452 "Функция B<atexit>() при успешном выполнении возвращает 0, в противном случае "
453 "— ненулевое значение."
454
455 #. type: Plain text
456 #: debian-trixie fedora-44 fedora-rawhide
457 #, no-wrap
458 msgid ""
459 "#include E<lt>stdio.hE<gt>\n"
460 "#include E<lt>stdlib.hE<gt>\n"
461 "#include E<lt>unistd.hE<gt>\n"
462 "\\&\n"
463 "void\n"
464 "bye(void)\n"
465 "{\n"
466 " printf(\"That was all, folks\\[rs]n\");\n"
467 "}\n"
468 "\\&\n"
469 "int\n"
470 "main(void)\n"
471 "{\n"
472 " long a;\n"
473 " int i;\n"
474 "\\&\n"
475 " a = sysconf(_SC_ATEXIT_MAX);\n"
476 " printf(\"ATEXIT_MAX = %ld\\[rs]n\", a);\n"
477 "\\&\n"
478 " i = atexit(bye);\n"
479 " if (i != 0) {\n"
480 " fprintf(stderr, \"cannot set exit function\\[rs]n\");\n"
481 " exit(EXIT_FAILURE);\n"
482 " }\n"
483 "\\&\n"
484 " exit(EXIT_SUCCESS);\n"
485 "}\n"
486 msgstr ""
487
488 #. type: TH
489 #: fedora-44 fedora-rawhide
490 #, no-wrap
491 msgid "2024-12-13"
492 msgstr "13 декабря 2024 г."
493
494 #. type: TH
495 #: fedora-44 fedora-rawhide
496 #, no-wrap
497 msgid "Linux man-pages 6.13"
498 msgstr "Страницы руководства Linux 6.13"
499
500 #. type: TH
501 #: mageia-cauldron
502 #, no-wrap
503 msgid "Linux man-pages 6.17"
504 msgstr "Страницы руководства Linux 6.17"
505
506 #. type: TH
507 #: opensuse-leap-16-1 opensuse-tumbleweed
508 #, no-wrap
509 msgid "Linux man-pages (unreleased)"
510 msgstr "Страницы руководства Linux (не выпущены)"