Debian Codegraph @

po/ru/man3/pthread_attr_setguardsize.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 #, no-wrap
31 msgid "pthread_attr_setguardsize"
32 msgstr ""
33
34 #. type: TH
35 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
36 #: opensuse-tumbleweed
37 #, no-wrap
38 msgid "2025-05-17"
39 msgstr "17 мая 2025 г."
40
41 #. type: TH
42 #: archlinux debian-unstable
43 #, fuzzy, no-wrap
44 #| msgid "Linux man-pages 6.17"
45 msgid "Linux man-pages 6.18"
46 msgstr "Справочные страницы Linux 6.17"
47
48 #. type: SH
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 #, no-wrap
52 msgid "NAME"
53 msgstr "НАИМЕНОВАНИЕ"
54
55 #. type: Plain text
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 msgid ""
59 "pthread_attr_setguardsize, pthread_attr_getguardsize - set/get guard size "
60 "attribute in thread attributes object"
61 msgstr ""
62 "pthread_attr_setguardsize, pthread_attr_getguardsize - изменяет/возвращает "
63 "атрибут размера защиты у объекта атрибутов нити"
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "LIBRARY"
70 msgstr "БИБЛИОТЕКА"
71
72 #. type: Plain text
73 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
74 #: opensuse-leap-16-1 opensuse-tumbleweed
75 msgid "POSIX threads library (I<libpthread>,\\ I<-lpthread>)"
76 msgstr "Библиотека потоков POSIX (I<libpthread>,\\ I<-lpthread>)"
77
78 #. type: SH
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid "SYNOPSIS"
83 msgstr "СИНТАКСИС"
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 #, no-wrap
89 msgid "B<#include E<lt>pthread.hE<gt>>\n"
90 msgstr "B<#include E<lt>pthread.hE<gt>>\n"
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, fuzzy, no-wrap
96 #| msgid ""
97 #| "B<int pthread_attr_setguardsize(pthread_attr_t *>I<attr>B<, size_t >I<guardsize>B<);>\n"
98 #| "B<int pthread_attr_getguardsize(const pthread_attr_t *>I<attr>B<, size_t *>I<guardsize>B<);>\n"
99 msgid ""
100 "B<int pthread_attr_setguardsize(pthread_attr_t *>I<attr>B<, size_t >I<guardsize>B<);>\n"
101 "B<int pthread_attr_getguardsize(const pthread_attr_t *restrict >I<attr>B<,>\n"
102 "B< size_t *restrict >I<guardsize>B<);>\n"
103 msgstr ""
104 "B<int pthread_attr_setguardsize(pthread_attr_t *>I<attr>B<, size_t >I<guardsize>B<);>\n"
105 "B<int pthread_attr_getguardsize(const pthread_attr_t *>I<attr>B<, size_t *>I<guardsize>B<);>\n"
106
107 #. type: SH
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 #, no-wrap
111 msgid "DESCRIPTION"
112 msgstr "ОПИСАНИЕ"
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 msgid ""
118 "The B<pthread_attr_setguardsize>() function sets the guard size attribute "
119 "of the thread attributes object referred to by I<attr> to the value "
120 "specified in I<guardsize>."
121 msgstr ""
122 "Функция B<pthread_attr_setguardsize>() изменяет атрибут размера защиты у "
123 "объекта атрибутов нити, на который указывает I<attr>, в значение "
124 "I<guardsize>."
125
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 "If I<guardsize> is greater than 0, then for each new thread created using "
131 "I<attr> the system allocates an additional region of at least I<guardsize> "
132 "bytes at the end of the thread's stack to act as the guard area for the "
133 "stack (but see BUGS)."
134 msgstr ""
135 "Если I<guardsize> больше 0, то для каждой новой нити, созданной с "
136 "использованием атрибута I<attr>, система выделяет дополнительную область не "
137 "менее I<guardsize> байт в конце стека нити, которая служит как защитная "
138 "область стека (но смотрите ДЕФЕКТЫ)."
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "If I<guardsize> is 0, then new threads created with I<attr> will not have a "
145 "guard area."
146 msgstr ""
147 "Если I<guardsize> равно 0, то новые нити, создаваемые с использованием "
148 "I<attr>, не будут иметь защитной области."
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 "The default guard size is the same as the system page size."
154 msgstr "Размер защиты по умолчанию совпадает с размером системной страницы."
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 stack address attribute has been set in I<attr> (using "
161 "B<pthread_attr_setstack>(3) or B<pthread_attr_setstackaddr>(3)), meaning "
162 "that the caller is allocating the thread's stack, then the guard size "
163 "attribute is ignored (i.e., no guard area is created by the system): it is "
164 "the application's responsibility to handle stack overflow (perhaps by using "
165 "B<mprotect>(2) to manually define a guard area at the end of the stack that "
166 "it has allocated)."
167 msgstr ""
168 "Если в I<attr> установлен атрибут адреса стека (с помощью "
169 "B<pthread_attr_setstack>(3) или B<pthread_attr_setstackaddr>(3)), "
170 "означающий, что вызывающий выделяет стек для нити, то атрибут размера защиты "
171 "игнорируется (т. е., система не создаёт защитную область): само приложение "
172 "должно обрабатывать переполнение стека (возможно, с помощью B<mprotect>(2), "
173 "для задания защитной области в конце выделенного стека)."
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid ""
179 "The B<pthread_attr_getguardsize>() function returns the guard size "
180 "attribute of the thread attributes object referred to by I<attr> in the "
181 "buffer pointed to by I<guardsize>."
182 msgstr ""
183 "Функция B<pthread_attr_getguardsize>() возвращает атрибут размера защиты у "
184 "объекта атрибутов нити, на который указывает I<attr>, в буфер на который "
185 "указывает I<guardsize>."
186
187 #. type: SH
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 #, no-wrap
191 msgid "RETURN VALUE"
192 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 msgid ""
198 "On success, these functions return 0; on error, they return a nonzero error "
199 "number."
200 msgstr ""
201 "При успешном выполнении эти функции возвращают 0; при ошибке возвращается "
202 "ненулевой номер ошибки."
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 "ERRORS"
209 msgstr "ОШИБКИ"
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 "POSIX.1 documents an B<EINVAL> error if I<attr> or I<guardsize> is invalid. "
216 "On Linux these functions always succeed (but portable and future-proof "
217 "applications should nevertheless handle a possible error return)."
218 msgstr ""
219 "В POSIX.1 описана ошибка B<EINVAL> при некорректном значении I<attr> или "
220 "I<guardsize>. В Linux эти функции всегда выполняются успешно (тем не менее, "
221 "в переносимых приложениях нужно учитывать возможность возврата ошибки)."
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_attr_setguardsize>(),\n"
278 "B<pthread_attr_getguardsize>()"
279 msgstr ""
280 "B<pthread_attr_setguardsize>(),\n"
281 "B<pthread_attr_getguardsize>()"
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 msgid "POSIX.1-2008."
308 msgstr "POSIX.1-2008."
309
310 #. type: SH
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid "HISTORY"
315 msgstr "ИСТОРИЯ"
316
317 #. type: Plain text
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 msgid "glibc 2.1. POSIX.1-2001."
321 msgstr "glibc 2.1. POSIX.1-2001."
322
323 #. type: SH
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "NOTES"
328 msgstr "ПРИМЕЧАНИЯ"
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 msgid ""
334 "A guard area consists of virtual memory pages that are protected to prevent "
335 "read and write access. If a thread overflows its stack into the guard area, "
336 "then, on most hard architectures, it receives a B<SIGSEGV> signal, thus "
337 "notifying it of the overflow. Guard areas start on page boundaries, and the "
338 "guard size is internally rounded up to the system page size when creating a "
339 "thread. (Nevertheless, B<pthread_attr_getguardsize>() returns the guard "
340 "size that was set by B<pthread_attr_setguardsize>().)"
341 msgstr ""
342 "Защитная область состоит из страниц виртуальной памяти, которые защищены от "
343 "чтения и записи. Если нить переполнит свой стек и попадёт в защитную "
344 "область, то на большинстве аппаратных архитектур она получит сигнал "
345 "B<SIGSEGV> и таким образом узнает о переполнении. Защитные области "
346 "начинаются на границах страниц, а размер защиты внутри округляется до "
347 "размера системной страницы при создании нити (тем не менее, функция "
348 "B<pthread_attr_getguardsize>() возвращает размер защиты, установленный "
349 "B<pthread_attr_setguardsize>())."
350
351 #. type: Plain text
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 msgid ""
355 "Setting a guard size of 0 may be useful to save memory in an application "
356 "that creates many threads and knows that stack overflow can never occur."
357 msgstr ""
358 "Установка размера защиты в нулевое значение полезно для экономии памяти в "
359 "приложениях, которые создают много нитей и знают, что переполнение стека "
360 "никогда не произойдёт."
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid ""
366 "Choosing a guard size larger than the default size may be necessary for "
367 "detecting stack overflows if a thread allocates large data structures on the "
368 "stack."
369 msgstr ""
370 "Указание размера защиты больше чем размер по умолчанию может потребоваться "
371 "для обнаружения переполнений стека при выделении в нити больших структур "
372 "данных в стеке."
373
374 #. type: SH
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 #, no-wrap
378 msgid "BUGS"
379 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
380
381 #. type: Plain text
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 msgid ""
385 "As at glibc 2.8, the NPTL threading implementation includes the guard area "
386 "within the stack size allocation, rather than allocating extra space at the "
387 "end of the stack, as POSIX.1 requires. (This can result in an B<EINVAL> "
388 "error from B<pthread_create>(3) if the guard size value is too large, "
389 "leaving no space for the actual stack.)"
390 msgstr ""
391 "В glibc 2.8 реализация нитей NPTL добавляет защитную область к размеру "
392 "выделяемого стека, а не выделяет дополнительное пространство в конце стека "
393 "как требуется POSIX.1 (это может приводить к ошибке B<EINVAL> в "
394 "B<pthread_create>(3), если значение размера защиты слишком большое и не "
395 "оставляет место именно под стек)."
396
397 #. glibc includes the guardsize within the allocated stack size,
398 #. which looks pretty clearly to be in violation of POSIX.
399 #. Filed bug, 22 Oct 2008:
400 #. https://www.sourceware.org/bugzilla/show_bug.cgi?id=6973
401 #. Older reports:
402 #. https//bugzilla.redhat.com/show_bug.cgi?id=435337
403 #. Reportedly, LinuxThreads did the right thing, allocating
404 #. extra space at the end of the stack:
405 #. http://sourceware.org/ml/libc-alpha/2008-05/msg00086.html
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid ""
410 "The obsolete LinuxThreads implementation did the right thing, allocating "
411 "extra space at the end of the stack for the guard area."
412 msgstr ""
413 "Устаревшая реализация LinuxThreads делает это правильно, выделяя "
414 "дополнительное пространство в конце стека под защитную область."
415
416 #. type: SH
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 #, no-wrap
420 msgid "EXAMPLES"
421 msgstr "ПРИМЕРЫ"
422
423 #. type: Plain text
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 msgid "See B<pthread_getattr_np>(3)."
427 msgstr "См. B<pthread_getattr_np>(3)."
428
429 #. type: SH
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "SEE ALSO"
434 msgstr "СМОТРИТЕ ТАКЖЕ"
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 msgid ""
440 "B<mmap>(2), B<mprotect>(2), B<pthread_attr_init>(3), "
441 "B<pthread_attr_setstack>(3), B<pthread_attr_setstacksize>(3), "
442 "B<pthread_create>(3), B<pthreads>(7)"
443 msgstr ""
444 "B<mmap>(2), B<mprotect>(2), B<pthread_attr_init>(3), "
445 "B<pthread_attr_setstack>(3), B<pthread_attr_setstacksize>(3), "
446 "B<pthread_create>(3), B<pthreads>(7)"
447
448 #. type: TH
449 #: debian-trixie
450 #, no-wrap
451 msgid "2024-05-02"
452 msgstr "2 мая 2024 г."
453
454 #. type: TH
455 #: debian-trixie
456 #, no-wrap
457 msgid "Linux man-pages 6.9.1"
458 msgstr "Страницы руководства Linux 6.9.1"
459
460 #. type: Plain text
461 #: debian-trixie
462 msgid "POSIX threads library (I<libpthread>, I<-lpthread>)"
463 msgstr "Библиотека потоков POSIX (I<libpthread>, I<-lpthread>)"
464
465 #. type: TH
466 #: fedora-44 fedora-rawhide
467 #, no-wrap
468 msgid "2024-07-23"
469 msgstr "23 июля 2024 г."
470
471 #. type: TH
472 #: fedora-44 fedora-rawhide
473 #, no-wrap
474 msgid "Linux man-pages 6.13"
475 msgstr "Страницы руководства Linux 6.13"
476
477 #. type: TH
478 #: mageia-cauldron
479 #, no-wrap
480 msgid "Linux man-pages 6.17"
481 msgstr "Страницы руководства Linux 6.17"
482
483 #. type: TH
484 #: opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "Linux man-pages (unreleased)"
487 msgstr "Страницы руководства Linux (не выпущены)"