Debian Codegraph @

po/ru/man2/getrlimit.2.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 # Azamat Hackimov <[email protected]>, 2013-2014, 2017.
5 # Dmitry Bolkhovskikh <[email protected]>, 2017.
6 # Vladislav <[email protected]>, 2015.
7 # Yuri Kozlov <[email protected]>, 2011-2019.
8 # Иван Павлов <[email protected]>, 2017, 2019.
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: manpages-l10n\n"
12 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
13 "PO-Revision-Date: 2024-12-21 19:49+0300\n"
14 "Last-Translator: Yuri Kozlov <[email protected]>\n"
15 "Language-Team: Russian <[email protected]>\n"
16 "Language: ru\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
21 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
22 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
23 "X-Generator: Lokalize 2.0\n"
24
25 #. type: TH
26 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
27 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
28 #, no-wrap
29 msgid "getrlimit"
30 msgstr "getrlimit"
31
32 #. type: TH
33 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
34 #: opensuse-tumbleweed
35 #, no-wrap
36 msgid "2026-02-08"
37 msgstr "8 февраля 2026 г."
38
39 #. type: TH
40 #: archlinux debian-unstable
41 #, fuzzy, no-wrap
42 #| msgid "Linux man-pages 6.17"
43 msgid "Linux man-pages 6.18"
44 msgstr "Справочные страницы Linux 6.17"
45
46 #. type: SH
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 #, no-wrap
50 msgid "NAME"
51 msgstr "НАИМЕНОВАНИЕ"
52
53 #. type: Plain text
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 msgid "getrlimit, setrlimit, prlimit - get/set resource limits"
57 msgstr ""
58 "getrlimit, setrlimit, prlimit - считывает/устанавливает ограничения "
59 "использования ресурсов"
60
61 #. type: SH
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 #, no-wrap
65 msgid "LIBRARY"
66 msgstr "БИБЛИОТЕКА"
67
68 #. type: Plain text
69 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
70 #: opensuse-leap-16-1 opensuse-tumbleweed
71 msgid "Standard C library (I<libc>,\\ I<-lc>)"
72 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
73
74 #. type: SH
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "SYNOPSIS"
79 msgstr "СИНТАКСИС"
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "B<#include E<lt>sys/resource.hE<gt>>\n"
86 msgstr "B<#include E<lt>sys/resource.hE<gt>>\n"
87
88 #. type: Plain text
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid ""
93 "B<int getrlimit(int >I<resource>B<, struct rlimit *>I<rlim>B<);>\n"
94 "B<int setrlimit(int >I<resource>B<, const struct rlimit *>I<rlim>B<);>\n"
95 msgstr ""
96 "B<int getrlimit(int >I<resource>B<, struct rlimit *>I<rlim>B<);>\n"
97 "B<int setrlimit(int >I<resource>B<, const struct rlimit *>I<rlim>B<);>\n"
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 #, fuzzy, no-wrap
103 #| msgid ""
104 #| "B<int prlimit(pid_t >I<pid>B<, int >I<resource>B<, const struct rlimit *>I<new_limit>B<,>\n"
105 #| "B< struct rlimit *>I<old_limit>B<);>\n"
106 msgid ""
107 "B<int prlimit(pid_t >I<pid>B<, int >I<resource>B<,>\n"
108 "B< const struct rlimit *_Nullable >I<new_limit>B<,>\n"
109 "B< struct rlimit *_Nullable >I<old_limit>B<);>\n"
110 msgstr ""
111 "B<int prlimit(pid_t >I<pid>B<, int >I<resource>B<, const struct rlimit *>I<new_limit>B<,>\n"
112 "B< struct rlimit *>I<old_limit>B<);>\n"
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 #, fuzzy, no-wrap
118 #| msgid ""
119 #| "struct rlimit {\n"
120 #| " rlim_t rlim_cur; /* Soft limit */\n"
121 #| " rlim_t rlim_max; /* Hard limit (ceiling for rlim_cur) */\n"
122 #| "};\n"
123 msgid ""
124 "B<struct rlimit {>\n"
125 "B< rlim_t rlim_cur;> /* Soft limit */\n"
126 "B< rlim_t rlim_max;> /* Hard limit (ceiling for rlim_cur) */\n"
127 "B<};>\n"
128 msgstr ""
129 "struct rlimit {\n"
130 " rlim_t rlim_cur; /* мягкое ограничение */\n"
131 " rlim_t rlim_max; /* жёсткое ограничение (максимум для rlim_cur) */\n"
132 "};\n"
133
134 #. type: Plain text
135 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
136 #: opensuse-tumbleweed
137 #, no-wrap
138 msgid "B<typedef> /* ...\\& */ B<rlim_t;> /* Unsigned integer type */\n"
139 msgstr ""
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 msgid ""
145 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
146 msgstr ""
147 "Требования макроса тестирования свойств для glibc (см. "
148 "B<feature_test_macros>(7)):"
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 "B<prlimit>():"
154 msgstr "B<prlimit>():"
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 #, no-wrap
160 msgid " _GNU_SOURCE\n"
161 msgstr " _GNU_SOURCE\n"
162
163 #. type: SH
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 #, no-wrap
167 msgid "DESCRIPTION"
168 msgstr "ОПИСАНИЕ"
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 #, fuzzy
174 #| msgid ""
175 #| "The B<getrlimit>() and B<setrlimit>() system calls get and set resource "
176 #| "limits. Each resource has an associated soft and hard limit, as defined "
177 #| "by the I<rlimit> structure:"
178 msgid ""
179 "The B<getrlimit>() and B<setrlimit>() system calls get and set resource "
180 "limits. Each resource has an associated soft and hard limit, as defined by "
181 "the I<rlimit> structure."
182 msgstr ""
183 "Системные вызовы B<getrlimit>() и B<setrlimit>() получают и устанавливают "
184 "ограничения использования ресурсов. Каждому ресурсу назначается мягкое и "
185 "жёсткое ограничение, определяемое структурой I<rlimit>:"
186
187 #. type: Plain text
188 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
189 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
190 msgid ""
191 "The soft limit is the value that the kernel enforces for the corresponding "
192 "resource. The hard limit acts as a ceiling for the soft limit: an "
193 "unprivileged process may set only its soft limit to a value in the range "
194 "from 0 up to the hard limit, and (irreversibly) lower its hard limit. A "
195 "privileged process (under Linux: one with the B<CAP_SYS_RESOURCE> capability "
196 "in the initial user namespace) may make arbitrary changes to either limit "
197 "value."
198 msgstr ""
199 "Мягким ограничением является значение, принудительно устанавливаемое ядром "
200 "для соответствующего ресурса. Жёсткое ограничение работает как максимальное "
201 "значение для мягкого ограничения: непривилегированные процессы могут "
202 "определять только свои мягкие ограничения в диапазоне от 0 до жёсткого "
203 "ограничения, то есть однозначно меньше жёсткого ограничения. "
204 "Привилегированные процессы (в Linux: имеющие мандат B<CAP_SYS_RESOURCE> в "
205 "начальном пространстве имён пользователя) могут устанавливать произвольные "
206 "значения в любых пределах."
207
208 #. type: Plain text
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 msgid ""
212 "The value B<RLIM_INFINITY> denotes no limit on a resource (both in the "
213 "structure returned by B<getrlimit>() and in the structure passed to "
214 "B<setrlimit>())."
215 msgstr ""
216 "Значение B<RLIM_INFINITY> означает отсутствие ограничений для ресурса (в "
217 "структуре, возвращаемой B<getrlimit>() и в структуре, передаваемой в "
218 "B<setrlimit>())."
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid "The I<resource> argument must be one of:"
224 msgstr "Значение I<resource> должно быть одним из:"
225
226 #. type: TP
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid "B<RLIMIT_AS>"
231 msgstr "B<RLIMIT_AS>"
232
233 #. since Linux 2.0.27 / Linux 2.1.12
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid ""
238 "This is the maximum size of the process's virtual memory (address space). "
239 "The limit is specified in bytes, and is rounded down to the system page "
240 "size. This limit affects calls to B<brk>(2), B<mmap>(2), and B<mremap>(2), "
241 "which fail with the error B<ENOMEM> upon exceeding this limit. In addition, "
242 "automatic stack expansion fails (and generates a B<SIGSEGV> that kills the "
243 "process if no alternate stack has been made available via "
244 "B<sigaltstack>(2)). Since the value is a I<long>, on machines with a 32-bit "
245 "I<long> either this limit is at most 2\\ GiB, or this resource is unlimited."
246 msgstr ""
247 "Максимальный размер виртуальной памяти (адресного пространства) процесса. "
248 "Данное ограничение задаётся в байтах и округляется в меньшую сторону к "
249 "размеру системной страницы. Учитывается в вызовах B<brk>(2), B<mmap>(2) и "
250 "B<mremap>(2), которые завершатся с ошибкой B<ENOMEM>, если будет превышено "
251 "это ограничение. К тому же завершается ошибкой автоматическое расширение "
252 "стека (и генерируется сигнал B<SIGSEGV>, по которому процесс завершится, "
253 "если не было создано с помощью B<sigaltstack>(2) альтернативного стека). Так "
254 "как значение имеет тип I<long>, на машинах с 32-битным I<long> максимальное "
255 "значение ограничения будет около 2\\ ГиБ, или этот ресурс не ограничивается."
256
257 #. type: TP
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 #, no-wrap
261 msgid "B<RLIMIT_CORE>"
262 msgstr "B<RLIMIT_CORE>"
263
264 #. type: Plain text
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 msgid ""
268 "This is the maximum size of a I<core> file (see B<core>(5)) in bytes that "
269 "the process may dump. When 0 no core dump files are created. When nonzero, "
270 "larger dumps are truncated to this size."
271 msgstr ""
272 "Максимальный размер файла I<core> (смотрите B<core>(5)) в байтах, который "
273 "может получиться из процесса. Если значение равно 0, то файлы core не "
274 "создаются. Если значение больше нуля, то создаваемые дампы обрезаются до "
275 "этого размера."
276
277 #. type: TP
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "B<RLIMIT_CPU>"
282 msgstr "B<RLIMIT_CPU>"
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 "This is a limit, in seconds, on the amount of CPU time that the process can "
289 "consume. When the process reaches the soft limit, it is sent a B<SIGXCPU> "
290 "signal. The default action for this signal is to terminate the process. "
291 "However, the signal can be caught, and the handler can return control to the "
292 "main program. If the process continues to consume CPU time, it will be sent "
293 "B<SIGXCPU> once per second until the hard limit is reached, at which time it "
294 "is sent B<SIGKILL>. (This latter point describes Linux behavior. "
295 "Implementations vary in how they treat processes which continue to consume "
296 "CPU time after reaching the soft limit. Portable applications that need to "
297 "catch this signal should perform an orderly termination upon first receipt "
298 "of B<SIGXCPU>.)"
299 msgstr ""
300 "Ограничение времени выполнения процесса на ЦП в секундах. Когда процесс "
301 "достигает своего мягкого ограничения, то ему отправляется сигнал B<SIGX "
302 "CPU>. Действием по умолчанию для этого сигнала является завершение процесса. "
303 "Однако, этот сигнал может быть перехвачен, и обработчик может передать "
304 "управление в основную программу. Если процесс продолжает потреблять "
305 "процессорное время, то ему будет отправляться B<SIGXCPU> раз в секунду до "
306 "тех пор, пока не будет достигнуто жёсткое ограничение, и тогда процессу "
307 "будет послан сигнал B<SIGKILL> (последний пункт описывает поведение Linux. В "
308 "разных реализациях действия над потребляющими процессорное время после "
309 "прохождения мягкого ограничения процессами различаются. Переносимые "
310 "приложения, где требуется перехват сигнала, должны выполнять корректное "
311 "завершение процесса после первого получения B<SIGXCPU>)."
312
313 #. type: TP
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "B<RLIMIT_DATA>"
318 msgstr "B<RLIMIT_DATA>"
319
320 #. commits 84638335900f1995495838fe1bd4870c43ec1f67
321 #. ("mm: rework virtual memory accounting"),
322 #. f4fcd55841fc9e46daac553b39361572453c2b88
323 #. (mm: enable RLIMIT_DATA by default with workaround for valgrind).
324 #. type: Plain text
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 msgid ""
328 "This is the maximum size of the process's data segment (initialized data, "
329 "uninitialized data, and heap). The limit is specified in bytes, and is "
330 "rounded down to the system page size. This limit affects calls to "
331 "B<brk>(2), B<sbrk>(2), and (since Linux 4.7) B<mmap>(2), which fail with "
332 "the error B<ENOMEM> upon encountering the soft limit of this resource."
333 msgstr ""
334 "Максимальный размер сегмента данных процесса (инициализированные данные, "
335 "неинициализированные данные, куча). Данное ограничение задаётся в байтах и "
336 "округляется в меньшую сторону к размеру системной страницы. Это ограничение "
337 "учитывается в вызовах B<brk>(2), B<sbrk>(2) и (начиная с Linux 4.7) "
338 "B<mmap>(2), которые завершатся с ошибкой B<ENOMEM> при достижении мягкого "
339 "ограничения этого ресурса."
340
341 #. type: TP
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 #, no-wrap
345 msgid "B<RLIMIT_FSIZE>"
346 msgstr "B<RLIMIT_FSIZE>"
347
348 #. type: Plain text
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 msgid ""
352 "This is the maximum size in bytes of files that the process may create. "
353 "Attempts to extend a file beyond this limit result in delivery of a "
354 "B<SIGXFSZ> signal. By default, this signal terminates a process, but a "
355 "process can catch this signal instead, in which case the relevant system "
356 "call (e.g., B<write>(2), B<truncate>(2)) fails with the error B<EFBIG>."
357 msgstr ""
358 "Максимальный размер (в байтах) файлов, создаваемых процессом. Попытки "
359 "расширить файл сверх этого ограничения приведёт к доставке сигнала "
360 "B<SIGXFSZ>. По умолчанию по этому сигналу процесс завершается, но процесс "
361 "может перехватить этот сигнал и в этом случае выполнявшийся системный вызов "
362 "(например, B<write>(2), B<truncate>(2)) завершится с ошибкой B<EFBIG>."
363
364 #. type: TP
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 #, no-wrap
368 msgid "B<RLIMIT_LOCKS> (Linux 2.4.0 to Linux 2.4.24)"
369 msgstr "B<RLIMIT_LOCKS> (Linux 2.4.0 - Linux 2.4.24)"
370
371 #. to be precise: Linux 2.4.0-test9; no longer in Linux 2.4.25 / Linux 2.5.65
372 #. type: Plain text
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 msgid ""
376 "This is a limit on the combined number of B<flock>(2) locks and "
377 "B<fcntl>(2) leases that this process may establish."
378 msgstr ""
379 "Ограничение на общее количество блокировок B<flock>(2) и аренд B<fcntl>(2), "
380 "которое может установить процесс."
381
382 #. type: TP
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "B<RLIMIT_MEMLOCK>"
387 msgstr "B<RLIMIT_MEMLOCK>"
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid ""
393 "This is the maximum number of bytes of memory that may be locked into RAM. "
394 "This limit is in effect rounded down to the nearest multiple of the system "
395 "page size. This limit affects B<mlock>(2), B<mlockall>(2), and the "
396 "B<mmap>(2) B<MAP_LOCKED> operation. Since Linux 2.6.9, it also affects the "
397 "B<shmctl>(2) B<SHM_LOCK> operation, where it sets a maximum on the total "
398 "bytes in shared memory segments (see B<shmget>(2)) that may be locked by "
399 "the real user ID of the calling process. The B<shmctl>(2) B<SHM_LOCK> "
400 "locks are accounted for separately from the per-process memory locks "
401 "established by B<mlock>(2), B<mlockall>(2), and B<mmap>(2) B<MAP_LOCKED>; a "
402 "process can lock bytes up to this limit in each of these two categories."
403 msgstr ""
404 "Максимальное количество байт памяти, которое может быть заблокировано в ОЗУ. "
405 "В целях эффективности это ограничение округляется в меньшую сторону до "
406 "ближайшего значения, кратного размеру системной страницы. Это ограничение "
407 "учитывается в B<mlock>(2), B<mlockall>(2) и в B<mmap>(2) при операции "
408 "B<MAP_LOCKED>. Начиная с Linux 2.6.9, оно также учитывается в B<shmctl>(2) "
409 "при операции B<SHM_LOCK>, где определяет максимальное количество байт всех "
410 "общих сегментов памяти (смотрите B<shmget>(2)), которые могут быть "
411 "заблокированы вызывающим процессом с реальным идентификатором пользователя. "
412 "Блокировки по операции B<SHM_LOCK> у B<shmctl>(2) учитываются отдельно от "
413 "попроцессных блокировок памяти, устанавливаемых B<mlock>(2), B<mlockall>(2) "
414 "и B<mmap>(2) с операцией B<MAP_LOCKED>; процесс может заблокировать "
415 "пространство до этого значения заданного ограничения байт в каждой из этих "
416 "двух категорий."
417
418 #. type: Plain text
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 #, fuzzy
422 #| msgid ""
423 #| "In Linux kernels before 2.6.9, this limit controlled the amount of memory "
424 #| "that could be locked by a privileged process. Since Linux 2.6.9, no "
425 #| "limits are placed on the amount of memory that a privileged process may "
426 #| "lock, and this limit instead governs the amount of memory that an "
427 #| "unprivileged process may lock."
428 msgid ""
429 "Before Linux 2.6.9, this limit controlled the amount of memory that could be "
430 "locked by a privileged process. Since Linux 2.6.9, no limits are placed on "
431 "the amount of memory that a privileged process may lock, and this limit "
432 "instead governs the amount of memory that an unprivileged process may lock."
433 msgstr ""
434 "В ядрах Linux до версии 2.6.9 этим ограничением контролировалось количество "
435 "памяти, которое можно было блокировать привилегированному процессу. Начиная "
436 "с Linux 2.6.9 привилегированный процесс не ограничен по количеству памяти, и "
437 "теперь это ограничение управляет количеством памяти, которое может "
438 "блокировать непривилегированный процесс."
439
440 #. type: TP
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 #, no-wrap
444 msgid "B<RLIMIT_MSGQUEUE> (since Linux 2.6.8)"
445 msgstr "B<RLIMIT_MSGQUEUE> (начиная с Linux 2.6.8)"
446
447 #. type: Plain text
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 msgid ""
451 "This is a limit on the number of bytes that can be allocated for POSIX "
452 "message queues for the real user ID of the calling process. This limit is "
453 "enforced for B<mq_open>(3). Each message queue that the user creates counts "
454 "(until it is removed) against this limit according to the formula:"
455 msgstr ""
456 "Ограничение на количество байт, которое может выделяться для очередей "
457 "сообщений POSIX для вызывающего процесса с реальным идентификатором "
458 "пользователя. Это ограничение учитывается в B<mq_open>(3). Каждая очередь "
459 "сообщений, которую создаёт пользователь, учитывается (пока не будет удалена) "
460 "в формуле:"
461
462 #. type: Plain text
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 msgid "Since Linux 3.5:"
466 msgstr "Начиная Linux 3.5:"
467
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 #, no-wrap
472 msgid ""
473 "bytes = attr.mq_maxmsg * sizeof(struct msg_msg) +\n"
474 " MIN(attr.mq_maxmsg, MQ_PRIO_MAX) *\n"
475 " sizeof(struct posix_msg_tree_node)+\n"
476 " /* For overhead */\n"
477 " attr.mq_maxmsg * attr.mq_msgsize;\n"
478 " /* For message data */\n"
479 msgstr ""
480 "bytes = attr.mq_maxmsg * sizeof(struct msg_msg) +\n"
481 " MIN(attr.mq_maxmsg, MQ_PRIO_MAX) *\n"
482 " sizeof(struct posix_msg_tree_node)+\n"
483 " /* издержки */\n"
484 " attr.mq_maxmsg * attr.mq_msgsize;\n"
485 " /* данные из сообщения */\n"
486
487 #. type: Plain text
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 msgid "Linux 3.4 and earlier:"
491 msgstr "Linux версии 3.4 и более ранние:"
492
493 #. type: Plain text
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 #, no-wrap
497 msgid ""
498 "bytes = attr.mq_maxmsg * sizeof(struct msg_msg *) +\n"
499 " /* For overhead */\n"
500 " attr.mq_maxmsg * attr.mq_msgsize;\n"
501 " /* For message data */\n"
502 msgstr ""
503 "bytes = attr.mq_maxmsg * sizeof(struct msg_msg *) +\n"
504 " /* издержки */\n"
505 " attr.mq_maxmsg * attr.mq_msgsize;\n"
506 " /* данные из сообщения */\n"
507
508 #. type: Plain text
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 msgid ""
512 "where I<attr> is the I<mq_attr> structure specified as the fourth argument "
513 "to B<mq_open>(3), and the I<msg_msg> and I<posix_msg_tree_node> structures "
514 "are kernel-internal structures."
515 msgstr ""
516 "где I<attr> — структура I<mq_attr>, указанная в четвёртом аргументе "
517 "B<mq_open>(3), а I<msg_msg> и I<posix_msg_tree_node> — внутренние структуры "
518 "ядра."
519
520 #. type: Plain text
521 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
522 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
523 msgid ""
524 "The \"overhead\" addend in the formula accounts for overhead bytes required "
525 "by the implementation and ensures that the user cannot create an unlimited "
526 "number of zero-length messages (such messages nevertheless each consume some "
527 "system memory for bookkeeping overhead)."
528 msgstr ""
529 "Дополнение «издержки» (overhead) в формуле нужно учитывает байты расходов "
530 "требуемые в реализации на то, чтобы пользователь не смог создать бесконечное "
531 "количество сообщений нулевой длины (для таких сообщений, тем не менее, "
532 "потребляется системная память для учёта использования системных ресурсов)."
533
534 #. type: TP
535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
537 #, no-wrap
538 msgid "B<RLIMIT_NICE> (since Linux 2.6.12, but see BUGS below)"
539 msgstr "B<RLIMIT_NICE> (начиная с Linux 2.6.12, см. ДЕФЕКТЫ далее)"
540
541 #. type: Plain text
542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
544 msgid ""
545 "This specifies a ceiling to which the process's nice value can be raised "
546 "using B<setpriority>(2) or B<nice>(2). The actual ceiling for the nice "
547 "value is calculated as I<20\\ -\\ rlim_cur>. The useful range for this "
548 "limit is thus from 1 (corresponding to a nice value of 19) to 40 "
549 "(corresponding to a nice value of -20). This unusual choice of range was "
550 "necessary because negative numbers cannot be specified as resource limit "
551 "values, since they typically have special meanings. For example, "
552 "B<RLIM_INFINITY> typically is the same as -1. For more detail on the nice "
553 "value, see B<sched>(7)."
554 msgstr ""
555 "Определяет максимум, до которого может быть увеличено значение уступчивости "
556 "процесса с помощью B<setpriority>(2) или B<nice>(2). Действительный максимум "
557 "значения уступчивости высчитывается по формуле: I<20\\ -\\ rlim_cur>. "
558 "Полезным диапазоном этого ограничения являются значения от 1 (соответствует "
559 "значению уступчивости 19) до 40 (соответствует значению уступчивости -20). "
560 "Так пришлось поступить из-за того, что отрицательные числа нельзя указывать "
561 "в значениях ограничений ресурсов, так как они, обычно, имеют специальное "
562 "предназначение. Например, B<RLIM_INFINITY>, обычно равно -1. Более подробно "
563 "о значениях уступчивости описано в B<sched>(7)."
564
565 #. type: TP
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, no-wrap
569 msgid "B<RLIMIT_NOFILE>"
570 msgstr "B<RLIMIT_NOFILE>"
571
572 #. type: Plain text
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 msgid ""
576 "This specifies a value one greater than the maximum file descriptor number "
577 "that can be opened by this process. Attempts (B<open>(2), B<pipe>(2), "
578 "B<dup>(2), etc.) to exceed this limit yield the error B<EMFILE>. "
579 "(Historically, this limit was named B<RLIMIT_OFILE> on BSD.)"
580 msgstr ""
581 "Определяет значение, на 1 больше максимального количества дескрипторов "
582 "файлов, которое может открыть этот процесс. Попытки (B<open>(2), B<pipe>(2), "
583 "B<dup>(2) и т.п.) превысить это ограничение приведут к ошибке B<EMFILE> "
584 "(раньше это ограничение в BSD называлось B<RLIMIT_OFILE>)."
585
586 #. type: Plain text
587 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
588 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
589 msgid ""
590 "Since Linux 4.5, this limit also defines the maximum number of file "
591 "descriptors that an unprivileged process (one without the "
592 "B<CAP_SYS_RESOURCE> capability) may have \"in flight\" to other processes, "
593 "by being passed across UNIX domain sockets. This limit applies to the "
594 "B<sendmsg>(2) system call. For further details, see B<unix>(7)."
595 msgstr ""
596 "Начиная с Linux 4.5, это ограничение также определяет максимальное "
597 "количество файловых дескрипторов, которое непривилегированный процесс (не "
598 "имеющий мандата B<CAP_SYS_RESOURCE>) может держать «пересылать» (in flight) "
599 "другим процессам через доменные сокеты UNIX. Данное ограничение применяется "
600 "только к системному вызову B<sendmsg>(2). Дополнительную информацию смотрите "
601 "в B<unix>(7)."
602
603 #. type: TP
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 #, no-wrap
607 msgid "B<RLIMIT_NPROC>"
608 msgstr "B<RLIMIT_NPROC>"
609
610 #. type: Plain text
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 msgid ""
614 "This is a limit on the number of extant process (or, more precisely on "
615 "Linux, threads) for the real user ID of the calling process. So long as "
616 "the current number of processes belonging to this process's real user ID is "
617 "greater than or equal to this limit, B<fork>(2) fails with the error "
618 "B<EAGAIN>."
619 msgstr ""
620 "Ограничивает количество живущих (extant) процессов (или, более точно для "
621 "Linux, нитей), для реального идентификатора пользователя вызывающего "
622 "процесса. Как только текущее количество процессов, принадлежащих реальному "
623 "идентификатору пользователя вызывающего процесса, станет больше или равно "
624 "этому ограничению B<fork>(2) начнёт завершаться с ошибкой B<EAGAIN>."
625
626 #. type: Plain text
627 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
628 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
629 #, fuzzy
630 #| msgid ""
631 #| "The B<RLIMIT_NPROC> limit is not enforced for processes that have either "
632 #| "the B<CAP_SYS_ADMIN> or the B<CAP_SYS_RESOURCE> capability."
633 msgid ""
634 "The B<RLIMIT_NPROC> limit is not enforced for processes that have either the "
635 "B<CAP_SYS_ADMIN> or the B<CAP_SYS_RESOURCE> capability, or run with real "
636 "user ID 0."
637 msgstr ""
638 "Данное ограничение не учитываются процессы, имеющие мандат B<CAP_SYS_ADMIN> "
639 "или B<CAP_SYS_RESOURCE>."
640
641 #. type: TP
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 #, no-wrap
645 msgid "B<RLIMIT_RSS>"
646 msgstr "B<RLIMIT_RSS>"
647
648 #. As at Linux 2.6.12, this limit still does nothing in Linux 2.6 though
649 #. talk of making it do something has surfaced from time to time in LKML
650 #. -- MTK, Jul 05
651 #. type: Plain text
652 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
653 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
654 msgid ""
655 "This is a limit (in bytes) on the process's resident set (the number of "
656 "virtual pages resident in RAM). This limit has effect only in Linux 2.4.x, "
657 "x E<lt> 30, and there affects only calls to B<madvise>(2) specifying "
658 "B<MADV_WILLNEED>."
659 msgstr ""
660 "Максимальное ограничение (в байтах) размера постоянного присутствия процесса "
661 "(числа виртуальных страниц, постоянно присутствующих в ОЗУ). Это ограничение "
662 "учитывается только начиная с версии Linux 2.4.x, x E<lt> 30, и только в "
663 "вызовах B<madvise>(2) со значением B<MADV_WILLNEED>."
664
665 #. type: TP
666 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
667 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
668 #, no-wrap
669 msgid "B<RLIMIT_RTPRIO> (since Linux 2.6.12, but see BUGS)"
670 msgstr "B<RLIMIT_RTPRIO> (начиная с Linux 2.6.12, смотрите ДЕФЕКТЫ)"
671
672 #. type: Plain text
673 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
674 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
675 msgid ""
676 "This specifies a ceiling on the real-time priority that may be set for this "
677 "process using B<sched_setscheduler>(2) and B<sched_setparam>(2)."
678 msgstr ""
679 "Определяет максимум для приоритета реального времени, который можно "
680 "установить для процесса с помощью B<sched_setscheduler>(2) и "
681 "B<sched_setparam>(2)."
682
683 #. type: Plain text
684 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
685 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
686 msgid "For further details on real-time scheduling policies, see B<sched>(7)"
687 msgstr ""
688 "Дополнительную информацию об алгоритмах планирования реального времени "
689 "смотрите в B<sched>(7)."
690
691 #. type: TP
692 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
693 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
694 #, no-wrap
695 msgid "B<RLIMIT_RTTIME> (since Linux 2.6.25)"
696 msgstr "B<RLIMIT_RTTIME> (начиная с Linux 2.6.25)"
697
698 #. type: Plain text
699 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
700 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
701 msgid ""
702 "This is a limit (in microseconds) on the amount of CPU time that a process "
703 "scheduled under a real-time scheduling policy may consume without making a "
704 "blocking system call. For the purpose of this limit, each time a process "
705 "makes a blocking system call, the count of its consumed CPU time is reset to "
706 "zero. The CPU time count is not reset if the process continues trying to "
707 "use the CPU but is preempted, its time slice expires, or it calls "
708 "B<sched_yield>(2)."
709 msgstr ""
710 "Определяет ограничение (в микросекундах) на количество времени ЦП, которое "
711 "процесс может быть запланирован выполняться в условиях реального времени без "
712 "выполнения блокирующего системного вызова. Для работы ограничения, всякий "
713 "раз когда процесс делает блокирующий системный вызов счётчик использованного "
714 "времени ЦП сбрасывается в ноль. Счётчик времени ЦП не сбрасывается, если "
715 "процесс продолжает пытаться использовать ЦП, но был вытеснен, его выделенное "
716 "время на исполнение истекло или он вызвал B<sched_yield>(2)."
717
718 #. type: Plain text
719 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
720 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
721 msgid ""
722 "Upon reaching the soft limit, the process is sent a B<SIGXCPU> signal. If "
723 "the process catches or ignores this signal and continues consuming CPU time, "
724 "then B<SIGXCPU> will be generated once each second until the hard limit is "
725 "reached, at which point the process is sent a B<SIGKILL> signal."
726 msgstr ""
727 "При достижении мягкого ограничения процессу посылается сигнал B<SIGXCPU>. "
728 "Если процесс перехватил сигнал, проигнорировал его и продолжает потреблять "
729 "время ЦП, то раз в секунду будет генерироваться сигнал B<SIGXCPU> до тех "
730 "пор, пока не будет достигнуто жёсткое ограничение, и процессу не будет "
731 "послан сигнал B<SIGKILL>."
732
733 #. type: Plain text
734 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
735 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
736 msgid ""
737 "The intended use of this limit is to stop a runaway real-time process from "
738 "locking up the system."
739 msgstr ""
740 "Это ограничение предназначено для предотвращения блокировки системы "
741 "вышедшими из под контроля процессами реального времени."
742
743 #. type: TP
744 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
745 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
746 #, no-wrap
747 msgid "B<RLIMIT_SIGPENDING> (since Linux 2.6.8)"
748 msgstr "B<RLIMIT_SIGPENDING> (начиная с Linux 2.6.8)"
749
750 #. This replaces the /proc/sys/kernel/rtsig-max system-wide limit
751 #. that was present in Linux <= 2.6.7. MTK Dec 04
752 #. type: Plain text
753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
755 msgid ""
756 "This is a limit on the number of signals that may be queued for the real "
757 "user ID of the calling process. Both standard and real-time signals are "
758 "counted for the purpose of checking this limit. However, the limit is "
759 "enforced only for B<sigqueue>(3); it is always possible to use B<kill>(2) "
760 "to queue one instance of any of the signals that are not already queued to "
761 "the process."
762 msgstr ""
763 "Определяет ограничение на количество сигналов, которые могут быть поставлены "
764 "в очередь вызывающего процесса с реальным пользовательским идентификатором. "
765 "При проверке ограничения учитываются обычные сигналы и сигналы реального "
766 "времени. Однако ограничение учитывается только в B<sigqueue>(3); всегда "
767 "возможно использовать B<kill>(2) для постановки в очередь любого сигнала, "
768 "которого ещё нет в очереди процесса."
769
770 #. type: TP
771 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
772 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
773 #, no-wrap
774 msgid "B<RLIMIT_STACK>"
775 msgstr "B<RLIMIT_STACK>"
776
777 #. type: Plain text
778 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
779 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
780 msgid ""
781 "This is the maximum size of the process stack, in bytes. Upon reaching this "
782 "limit, a B<SIGSEGV> signal is generated. To handle this signal, a process "
783 "must employ an alternate signal stack (B<sigaltstack>(2))."
784 msgstr ""
785 "Максимальный размер стека процесса в байтах. При достижении этого "
786 "ограничения генерируется сигнал B<SIGSEGV>. Для обработки этого сигнала "
787 "процесс должен использовать альтернативный стек сигналов (B<sigaltstack>(2))."
788
789 #. type: Plain text
790 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
791 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
792 msgid ""
793 "Since Linux 2.6.23, this limit also determines the amount of space used for "
794 "the process's command-line arguments and environment variables; for details, "
795 "see B<execve>(2)."
796 msgstr ""
797 "Начиная с Linux 2.6.23, это ограничение также определяет количество места, "
798 "используемого для аргументов командной строки процесса и его переменных "
799 "окружения; подробней об этом смотрите в B<execve>(2)."
800
801 #. type: SS
802 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
803 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
804 #, no-wrap
805 msgid "prlimit()"
806 msgstr "prlimit()"
807
808 #. commit c022a0acad534fd5f5d5f17280f6d4d135e74e81
809 #. Author: Jiri Slaby <[email protected]>
810 #. Date: Tue May 4 18:03:50 2010 +0200
811 #. rlimits: implement prlimit64 syscall
812 #. commit 6a1d5e2c85d06da35cdfd93f1a27675bfdc3ad8c
813 #. Author: Jiri Slaby <[email protected]>
814 #. Date: Wed Mar 24 17:06:58 2010 +0100
815 #. rlimits: add rlimit64 structure
816 #. type: Plain text
817 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
818 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
819 msgid ""
820 "The Linux-specific B<prlimit>() system call combines and extends the "
821 "functionality of B<setrlimit>() and B<getrlimit>(). It can be used to both "
822 "set and get the resource limits of an arbitrary process."
823 msgstr ""
824 "Системный вызов B<prlimit>(), который есть только в Linux объединяет и "
825 "расширяет функции B<setrlimit>() и B<getrlimit>(). Он может использоваться "
826 "для задания и получения ограничений ресурсов произвольного процесса."
827
828 #. type: Plain text
829 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
830 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
831 msgid ""
832 "The I<resource> argument has the same meaning as for B<setrlimit>() and "
833 "B<getrlimit>()."
834 msgstr ""
835 "Аргумент I<resource> имеет тот же смысл что и в B<setrlimit>() и "
836 "B<getrlimit>()."
837
838 #. type: Plain text
839 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
840 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
841 msgid ""
842 "If the I<new_limit> argument is not NULL, then the I<rlimit> structure to "
843 "which it points is used to set new values for the soft and hard limits for "
844 "I<resource>. If the I<old_limit> argument is not NULL, then a successful "
845 "call to B<prlimit>() places the previous soft and hard limits for "
846 "I<resource> in the I<rlimit> structure pointed to by I<old_limit>."
847 msgstr ""
848 "Если значение аргумента I<new_limit> не равно NULL, то структура I<rlimit>, "
849 "на которую он указывает, используется для задания новых значений мягкий и "
850 "жёстких ограничений для I<resource>. Если значение аргумента I<old_limit> не "
851 "равно NULL, то успешный вызов B<prlimit>() помещает текущие значения мягких "
852 "и жёстких ограничений для I<resource> в структуру I<rlimit>, на которую "
853 "указывает I<old_limit>."
854
855 #. FIXME . this permission check is strange
856 #. Asked about this on LKML, 7 Nov 2010
857 #. "Inconsistent credential checking in prlimit() syscall"
858 #. type: Plain text
859 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
860 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
861 msgid ""
862 "The I<pid> argument specifies the ID of the process on which the call is to "
863 "operate. If I<pid> is 0, then the call applies to the calling process. To "
864 "set or get the resources of a process other than itself, the caller must "
865 "have the B<CAP_SYS_RESOURCE> capability in the user namespace of the process "
866 "whose resource limits are being changed, or the real, effective, and saved "
867 "set user IDs of the target process must match the real user ID of the caller "
868 "I<and> the real, effective, and saved set group IDs of the target process "
869 "must match the real group ID of the caller."
870 msgstr ""
871 "В аргументе I<pid> задаётся идентификатор процесса с которым работает вызов. "
872 "Если I<pid> равно 0, то вызов применяется к вызывающему процессу. Для "
873 "установки и получения ресурсов не своего процесса, вызывающий должен иметь "
874 "мандат B<CAP_SYS_RESOURCE> в пользовательском пространстве имён процесса, "
875 "ограничения ресурсов которого изменяются или реальный, эффективный и "
876 "сохранённый идентификатор пользователя процесса назначения должен совпадать "
877 "с реальным идентификатором пользователя вызывающего I<и> реальный, "
878 "эффективный и сохранённый идентификатор группы процесса назначения должны "
879 "совпадать с реальным идентификатором группы вызывающего."
880
881 #. type: SH
882 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
883 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
884 #, no-wrap
885 msgid "RETURN VALUE"
886 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
887
888 #. type: Plain text
889 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
890 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
891 #, fuzzy
892 #| msgid ""
893 #| "On success, these system calls return 0. On error, -1 is returned, and "
894 #| "I<errno> is set appropriately."
895 msgid ""
896 "On success, these system calls return 0. On error, -1 is returned, and "
897 "I<errno> is set to indicate the error."
898 msgstr ""
899 "При успешном выполнении возвращается 0. В случае ошибки возвращается -1, а "
900 "I<errno> устанавливается в соответствующее значение."
901
902 #. type: SH
903 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
904 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
905 #, no-wrap
906 msgid "ERRORS"
907 msgstr "ОШИБКИ"
908
909 #. type: TP
910 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
911 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
912 #, no-wrap
913 msgid "B<EFAULT>"
914 msgstr "B<EFAULT>"
915
916 #. type: Plain text
917 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
918 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
919 msgid ""
920 "A pointer argument points to a location outside the accessible address space."
921 msgstr ""
922 "Аргумент-указатель указывает за пределы доступного адресного пространства."
923
924 #. type: TP
925 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
926 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
927 #, no-wrap
928 msgid "B<EINVAL>"
929 msgstr "B<EINVAL>"
930
931 #. type: Plain text
932 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
933 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
934 msgid ""
935 "The value specified in I<resource> is not valid; or, for B<setrlimit>() or "
936 "B<prlimit>(): I<rlim-E<gt>rlim_cur> was greater than I<rlim-E<gt>rlim_max>."
937 msgstr ""
938 "Указано некорректное значение I<resource>; или для B<setrlimit>() или "
939 "B<prlimit>(): I<rlim-E<gt>rlim_cur> больше чем I<rlim-E<gt>rlim_max>."
940
941 #. type: TP
942 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
943 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
944 #, no-wrap
945 msgid "B<EPERM>"
946 msgstr "B<EPERM>"
947
948 #. type: Plain text
949 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
950 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
951 msgid ""
952 "An unprivileged process tried to raise the hard limit; the "
953 "B<CAP_SYS_RESOURCE> capability is required to do this."
954 msgstr ""
955 "Непривилегированный процесс пытался увеличить жёсткое ограничение; для этого "
956 "требуется мандат B<CAP_SYS_RESOURCE>."
957
958 #. type: Plain text
959 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
960 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
961 msgid ""
962 "The caller tried to increase the hard B<RLIMIT_NOFILE> limit above the "
963 "maximum defined by I</proc/sys/fs/nr_open> (see B<proc>(5))"
964 msgstr ""
965 "Вызывающий пытался увеличить жёсткое ограничение B<RLIMIT_NOFILE>, превышая "
966 "максимум, заданный в I</proc/sys/fs/nr_open> (смотрите B<proc>(5))."
967
968 #. type: Plain text
969 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
970 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
971 msgid ""
972 "(B<prlimit>()) The calling process did not have permission to set limits "
973 "for the process specified by I<pid>."
974 msgstr ""
975 "Вызывающий процесс не имеет прав для назначения ограничений процессу, "
976 "указанному в I<pid>."
977
978 #. type: TP
979 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
980 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
981 #, no-wrap
982 msgid "B<ESRCH>"
983 msgstr "B<ESRCH>"
984
985 #. type: Plain text
986 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
987 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
988 msgid "Could not find a process with the ID specified in I<pid>."
989 msgstr "Не удалось найти процесс с идентификатором, указанном в I<pid>."
990
991 #. type: SH
992 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
993 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
994 #, no-wrap
995 msgid "ATTRIBUTES"
996 msgstr "АТРИБУТЫ"
997
998 #. type: Plain text
999 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1000 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1001 msgid ""
1002 "For an explanation of the terms used in this section, see B<attributes>(7)."
1003 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
1004
1005 #. type: tbl table
1006 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1007 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1008 #, no-wrap
1009 msgid "Interface"
1010 msgstr "Интерфейс"
1011
1012 #. type: tbl table
1013 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1014 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1015 #, no-wrap
1016 msgid "Attribute"
1017 msgstr "Атрибут"
1018
1019 #. type: tbl table
1020 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1021 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1022 #, no-wrap
1023 msgid "Value"
1024 msgstr "Значение"
1025
1026 #. type: tbl table
1027 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1028 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1029 #, no-wrap
1030 msgid ".na\n"
1031 msgstr ".na\n"
1032
1033 #. type: tbl table
1034 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1035 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1036 #, no-wrap
1037 msgid ".nh\n"
1038 msgstr ".nh\n"
1039
1040 #. type: tbl table
1041 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1042 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1043 #, no-wrap
1044 msgid ""
1045 "B<getrlimit>(),\n"
1046 "B<setrlimit>(),\n"
1047 "B<prlimit>()"
1048 msgstr ""
1049 "B<getrlimit>(),\n"
1050 "B<setrlimit>(),\n"
1051 "B<prlimit>()"
1052
1053 #. type: tbl table
1054 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1055 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1056 #, no-wrap
1057 msgid "Thread safety"
1058 msgstr "Безвредность в нитях"
1059
1060 #. type: tbl table
1061 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1062 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1063 #, no-wrap
1064 msgid "MT-Safe"
1065 msgstr "MT-Safe"
1066
1067 #. type: SH
1068 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1069 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1070 #, no-wrap
1071 msgid "STANDARDS"
1072 msgstr "СТАНДАРТЫ"
1073
1074 #. type: TP
1075 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1076 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1077 #, no-wrap
1078 msgid "B<getrlimit>()"
1079 msgstr "B<getrlimit>()"
1080
1081 #. type: TQ
1082 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1083 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1084 #, no-wrap
1085 msgid "B<setrlimit>()"
1086 msgstr "B<setrlimit>()"
1087
1088 #. type: Plain text
1089 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1090 #: opensuse-tumbleweed
1091 msgid "POSIX.1-2024."
1092 msgstr "POSIX.1-2024."
1093
1094 #. type: TP
1095 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1096 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1097 #, no-wrap
1098 msgid "B<prlimit>()"
1099 msgstr "B<prlimit>()"
1100
1101 #. type: Plain text
1102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1104 msgid "Linux."
1105 msgstr "Linux."
1106
1107 #. type: Plain text
1108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1110 #, fuzzy
1111 #| msgid ""
1112 #| "B<RLIMIT_MEMLOCK> and B<RLIMIT_NPROC> derive from BSD and are not "
1113 #| "specified in POSIX.1; they are present on the BSDs and Linux, but on few "
1114 #| "other implementations. B<RLIMIT_RSS> derives from BSD and is not "
1115 #| "specified in POSIX.1; it is nevertheless present on most "
1116 #| "implementations. B<RLIMIT_MSGQUEUE>, B<RLIMIT_NICE>, B<RLIMIT_RTPRIO>, "
1117 #| "B<RLIMIT_RTTIME>, and B<RLIMIT_SIGPENDING> are Linux-specific."
1118 msgid ""
1119 "B<RLIMIT_MEMLOCK> and B<RLIMIT_NPROC> derive from BSD and are not specified "
1120 "in POSIX.1; they are present on the BSDs and Linux, but on few other "
1121 "implementations. B<RLIMIT_RSS> derives from BSD and is not specified in "
1122 "POSIX.1; it is nevertheless present on most implementations. B<\\"
1123 "%RLIMIT_MSGQUEUE>, B<RLIMIT_NICE>, B<RLIMIT_RTPRIO>, B<RLIMIT_RTTIME>, and "
1124 "B<\\%RLIMIT_SIGPENDING> are Linux-specific."
1125 msgstr ""
1126 "Ограничение B<RLIMIT_MEMLOCK> и B<RLIMIT_NPROC> появились из BSD и их нет в "
1127 "POSIX.1; они есть в BSD и Linux, но реализации несколько различны. "
1128 "Ограничение B<RLIMIT_RSS> появилось из BSD и его нет в POSIX.1; тем не менее "
1129 "оно есть в большинстве реализаций. Ограничения B<RLIMIT_MSGQUEUE>, "
1130 "B<RLIMIT_NICE>, B<RLIMIT_RTPRIO>, B<RLIMIT_RTTIME> и B<RLIMIT_SIGPENDING> "
1131 "есть только в Linux."
1132
1133 #. type: SH
1134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1136 #, no-wrap
1137 msgid "HISTORY"
1138 msgstr "ИСТОРИЯ"
1139
1140 #. type: Plain text
1141 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1142 #: opensuse-tumbleweed
1143 #, fuzzy
1144 #| msgid "4.4BSD, SVr4, POSIX.1-2001."
1145 msgid "4.3BSD, SVr4, SUSv1, POSIX.1-2001 XSI, POSIX.1-2024."
1146 msgstr "4.4BSD, SVr4, POSIX.1-2001."
1147
1148 #. type: Plain text
1149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1151 msgid "Linux 2.6.36, glibc 2.13."
1152 msgstr ""
1153
1154 #. type: SH
1155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1157 #, no-wrap
1158 msgid "NOTES"
1159 msgstr "ПРИМЕЧАНИЯ"
1160
1161 #. type: Plain text
1162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1164 msgid ""
1165 "A child process created via B<fork>(2) inherits its parent's resource "
1166 "limits. Resource limits are preserved across B<execve>(2)."
1167 msgstr ""
1168 "Дочерний процесс, созданный B<fork>(2), наследует ограничения ресурсов "
1169 "родителя. Ограничения ресурсов сохраняются при B<execve>(2)."
1170
1171 #. type: Plain text
1172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1174 msgid ""
1175 "Resource limits are per-process attributes that are shared by all of the "
1176 "threads in a process."
1177 msgstr ""
1178 "Атрибуты ограничения ресурсов есть у каждого процесса, они являются общими "
1179 "для всех нитей процесса."
1180
1181 #. type: Plain text
1182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1184 msgid ""
1185 "Lowering the soft limit for a resource below the process's current "
1186 "consumption of that resource will succeed (but will prevent the process from "
1187 "further increasing its consumption of the resource)."
1188 msgstr ""
1189 "Уменьшение мягкого ограничения ресурса ниже текущего потребления процесса "
1190 "будет выполнено (но в дальнейшем процесс не сможет увеличить потребление "
1191 "ресурса)."
1192
1193 #. type: Plain text
1194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1196 msgid ""
1197 "One can set the resource limits of the shell using the built-in I<ulimit> "
1198 "command (I<limit> in B<csh>(1)). The shell's resource limits are inherited "
1199 "by the processes that it creates to execute commands."
1200 msgstr ""
1201 "Ограничения ресурсов интерпретатора командной строки можно устанавливать с "
1202 "помощью встроенной команды I<ulimit> (I<limit> в B<csh>(1)). Ограничения "
1203 "ресурсов интерпретатора наследуются дочерними процессами, которые он создаёт "
1204 "при выполнении команд."
1205
1206 #. type: Plain text
1207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1209 msgid ""
1210 "Since Linux 2.6.24, the resource limits of any process can be inspected via "
1211 "I</proc/>pidI</limits>; see B<proc>(5)."
1212 msgstr ""
1213 "Начиная с Linux 2.6.24, ограничения ресурсов любого процесса можно узнать с "
1214 "помощью I</proc/>pidI</limits>; смотрите B<proc>(5)."
1215
1216 #. type: Plain text
1217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1219 msgid ""
1220 "Ancient systems provided a B<vlimit>() function with a similar purpose to "
1221 "B<setrlimit>(). For backward compatibility, glibc also provides "
1222 "B<vlimit>(). All new applications should be written using B<setrlimit>()."
1223 msgstr ""
1224 "В старых системах была функция B<vlimit>() с подобным B<setrlimit>() "
1225 "назначением. Для обратной совместимости в glibc также есть функция "
1226 "B<vlimit>(). Во всех новых приложениях должен быть использован "
1227 "B<setrlimit>()."
1228
1229 #. type: SS
1230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1232 #, no-wrap
1233 msgid "C library/kernel ABI differences"
1234 msgstr "Отличия между библиотекой C и ABI ядра"
1235
1236 #. type: Plain text
1237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1239 #, fuzzy
1240 #| msgid ""
1241 #| "Since version 2.13, the glibc B<getrlimit>() and B<setrlimit>() wrapper "
1242 #| "functions no longer invoke the corresponding system calls, but instead "
1243 #| "employ B<prlimit>(), for the reasons described in BUGS."
1244 msgid ""
1245 "Since glibc 2.13, the glibc B<getrlimit>() and B<setrlimit>() wrapper "
1246 "functions no longer invoke the corresponding system calls, but instead "
1247 "employ B<prlimit>(), for the reasons described in BUGS."
1248 msgstr ""
1249 "Начиная с версии 2.13, обёрточные функции glibc B<getrlimit>() и "
1250 "B<setrlimit>() больше не вызывают соответствующие системные вызовы, вместо "
1251 "этого вызывается B<prlimit>() по причинам, описанным в разделе ДЕФЕКТЫ."
1252
1253 #. type: Plain text
1254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1256 msgid ""
1257 "The name of the glibc wrapper function is B<prlimit>(); the underlying "
1258 "system call is B<prlimit64>()."
1259 msgstr ""
1260 "Обёрточная функция в glibc называется B<prlimit>(); нижележащий системный "
1261 "вызов называется B<prlimit64>()."
1262
1263 #. type: SH
1264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1266 #, no-wrap
1267 msgid "BUGS"
1268 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
1269
1270 #. type: Plain text
1271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1273 #, fuzzy
1274 #| msgid ""
1275 #| "In older Linux kernels, the B<SIGXCPU> and B<SIGKILL> signals delivered "
1276 #| "when a process encountered the soft and hard B<RLIMIT_CPU> limits were "
1277 #| "delivered one (CPU) second later than they should have been. This was "
1278 #| "fixed in kernel 2.6.8."
1279 msgid ""
1280 "In older Linux kernels, the B<SIGXCPU> and B<SIGKILL> signals delivered when "
1281 "a process encountered the soft and hard B<RLIMIT_CPU> limits were delivered "
1282 "one (CPU) second later than they should have been. This was fixed in Linux "
1283 "2.6.8."
1284 msgstr ""
1285 "В старых ядрах Linux сигналы B<SIGXCPU> и B<SIGKILL>, посылаемые когда у "
1286 "процесса обнаруживается достижение мягкого и жёсткого ограничения "
1287 "B<RLIMIT_CPU>, доставляются на одну секунду (ЦП) позднее чем это должно "
1288 "быть. Это исправлено в ядре версии 2.6.8."
1289
1290 #. see http://marc.theaimsgroup.com/?l=linux-kernel&m=114008066530167&w=2
1291 #. type: Plain text
1292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1294 #, fuzzy
1295 #| msgid ""
1296 #| "In 2.6.x kernels before 2.6.17, a B<RLIMIT_CPU> limit of 0 is wrongly "
1297 #| "treated as \"no limit\" (like B<RLIM_INFINITY>). Since Linux 2.6.17, "
1298 #| "setting a limit of 0 does have an effect, but is actually treated as a "
1299 #| "limit of 1 second."
1300 msgid ""
1301 "In Linux 2.6.x kernels before Linux 2.6.17, a B<RLIMIT_CPU> limit of 0 is "
1302 "wrongly treated as \"no limit\" (like B<RLIM_INFINITY>). Since Linux "
1303 "2.6.17, setting a limit of 0 does have an effect, but is actually treated as "
1304 "a limit of 1 second."
1305 msgstr ""
1306 "В ядрах 2.6.x до версии 2.6.17, ограничение B<RLIMIT_CPU> равное 0, "
1307 "неправильно воспринималось как «без ограничения» (подобно B<RLIM_INFINITY>). "
1308 "Начиная с Linux 2.6.17, установка ограничения в 0 действует, но реально "
1309 "обрабатывается как ограничение в 1 секунду."
1310
1311 #. See https://lwn.net/Articles/145008/
1312 #. type: Plain text
1313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1315 #, fuzzy
1316 #| msgid ""
1317 #| "A kernel bug means that B<RLIMIT_RTPRIO> does not work in kernel 2.6.12; "
1318 #| "the problem is fixed in kernel 2.6.13."
1319 msgid ""
1320 "A kernel bug means that B<RLIMIT_RTPRIO> does not work in Linux 2.6.12; the "
1321 "problem is fixed in Linux 2.6.13."
1322 msgstr ""
1323 "Из-за дефекта ядра B<RLIMIT_RTPRIO> не работает в версии 2.6.12; это "
1324 "исправлено в ядре 2.6.13."
1325
1326 #. see http://marc.theaimsgroup.com/?l=linux-kernel&m=112256338703880&w=2
1327 #. type: Plain text
1328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1330 #, fuzzy
1331 #| msgid ""
1332 #| "In kernel 2.6.12, there was an off-by-one mismatch between the priority "
1333 #| "ranges returned by B<getpriority>(2) and B<RLIMIT_NICE>. This had the "
1334 #| "effect that the actual ceiling for the nice value was calculated as "
1335 #| "I<19\\ -\\ rlim_cur>. This was fixed in kernel 2.6.13."
1336 msgid ""
1337 "In Linux 2.6.12, there was an off-by-one mismatch between the priority "
1338 "ranges returned by B<getpriority>(2) and B<RLIMIT_NICE>. This had the "
1339 "effect that the actual ceiling for the nice value was calculated as I<19\\ -"
1340 "\\ rlim_cur>. This was fixed in Linux 2.6.13."
1341 msgstr ""
1342 "В ядре 2.6.12 было несоответствие в единицу между диапазонами приоритетов, "
1343 "возвращаемых B<getpriority>(2) и B<RLIMIT_NICE>. Это приводило к тому, что "
1344 "реальный максимум значения nice вычислялся как I<19\\ - \\ rlim_cur>. "
1345 "Исправлено в ядре 2.6.13."
1346
1347 #. The relevant patch, sent to LKML, seems to be
1348 #. http://thread.gmane.org/gmane.linux.kernel/273462
1349 #. From: Roland McGrath <roland <at> redhat.com>
1350 #. Subject: [PATCH 7/7] make RLIMIT_CPU/SIGXCPU per-process
1351 #. Date: 2005-01-23 23:27:46 GMT
1352 #. Tested Solaris 10, FreeBSD 9, OpenBSD 5.0
1353 #. FIXME . https://bugzilla.kernel.org/show_bug.cgi?id=50951
1354 #. type: Plain text
1355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1357 msgid ""
1358 "Since Linux 2.6.12, if a process reaches its soft B<RLIMIT_CPU> limit and "
1359 "has a handler installed for B<SIGXCPU>, then, in addition to invoking the "
1360 "signal handler, the kernel increases the soft limit by one second. This "
1361 "behavior repeats if the process continues to consume CPU time, until the "
1362 "hard limit is reached, at which point the process is killed. Other "
1363 "implementations do not change the B<RLIMIT_CPU> soft limit in this manner, "
1364 "and the Linux behavior is probably not standards conformant; portable "
1365 "applications should avoid relying on this Linux-specific behavior. The "
1366 "Linux-specific B<RLIMIT_RTTIME> limit exhibits the same behavior when the "
1367 "soft limit is encountered."
1368 msgstr ""
1369 "Начиная с Linux 2.6.12, если процесс имеет мягкое ограничение B<RLIMIT_CPU> "
1370 "и установлен обработчик для B<SIGXCPU>, то, помимо вызова обработчика "
1371 "сигнала, ядро увеличивает мягкое ограничение на одну секунду. Такое "
1372 "поведение повторяется, если процесс продолжает потреблять процессорное "
1373 "время, и происходит это до тех пор, пока не будет достигнуто жёсткое "
1374 "ограничение, после чего процесс будет завершён. В других реализациях мягкое "
1375 "ограничение B<RLIMIT_CPU> не меняется подобным образом, и поведение Linux, "
1376 "вероятно, нестандартно; переносимые приложения не должны полагаться на "
1377 "данную специфику Linux. Ограничение Linux B<RLIMIT_RTTIME> демонстрирует "
1378 "такое же поведение, при исчерпании мягкого ограничения."
1379
1380 #. d3561f78fd379a7110e46c87964ba7aa4120235c
1381 #. type: Plain text
1382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1384 #, fuzzy
1385 #| msgid ""
1386 #| "Kernels before 2.4.22 did not diagnose the error B<EINVAL> for "
1387 #| "B<setrlimit>() when I<rlim-E<gt>rlim_cur> was greater than I<rlim-"
1388 #| "E<gt>rlim_max>."
1389 msgid ""
1390 "Kernels before Linux 2.4.22 did not diagnose the error B<EINVAL> for "
1391 "B<setrlimit>() when I<rlim-E<gt>rlim_cur> was greater than I<rlim-"
1392 "E<gt>rlim_max>."
1393 msgstr ""
1394 "В ядрах до 2.4.22 не определялась ошибка B<EINVAL> в B<setrlimit>(), если "
1395 "значение I<rlim-E<gt>rlim_cur> было больше I<rlim-E<gt>rlim_max>."
1396
1397 #. type: Plain text
1398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1400 msgid ""
1401 "Linux doesn't return an error when an attempt to set B<RLIMIT_CPU> has "
1402 "failed, for compatibility reasons."
1403 msgstr ""
1404 "В целях совместимости, Linux не возвращает ошибку при неудачной попытке "
1405 "назначения B<RLIMIT_CPU>."
1406
1407 #. type: SS
1408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1410 #, fuzzy, no-wrap
1411 #| msgid "Representation of \"large\" resource limit values on 32-bit platforms"
1412 msgid "Representation of \\[dq]large\\[dq] resource limit values on 32-bit platforms"
1413 msgstr "Представление «больших» значений ограничений ресурсов на 32-битных платформах"
1414
1415 #. #-#-#-#-# archlinux: getrlimit.2.pot (PACKAGE VERSION) #-#-#-#-#
1416 #. Linux still uses long for limits internally:
1417 #. c022a0acad534fd5f5d5f17280f6d4d135e74e81
1418 #. kernel/sys.c:do_prlimit() still uses struct rlimit which
1419 #. uses kernel_ulong_t for its members, i.e., 32-bit on 32-bit kernel.
1420 #. https://bugzilla.kernel.org/show_bug.cgi?id=5042
1421 #. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12201
1422 #. type: Plain text
1423 #. #-#-#-#-# debian-trixie: getrlimit.2.pot (PACKAGE VERSION) #-#-#-#-#
1424 #. Linux still uses long for limits internally:
1425 #. c022a0acad534fd5f5d5f17280f6d4d135e74e81
1426 #. kernel/sys.c:do_prlimit() still uses struct rlimit which
1427 #. uses kernel_ulong_t for its members, i.e. 32-bit on 32-bit kernel.
1428 #. https://bugzilla.kernel.org/show_bug.cgi?id=5042
1429 #. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12201
1430 #. type: Plain text
1431 #. #-#-#-#-# debian-unstable: getrlimit.2.pot (PACKAGE VERSION) #-#-#-#-#
1432 #. Linux still uses long for limits internally:
1433 #. c022a0acad534fd5f5d5f17280f6d4d135e74e81
1434 #. kernel/sys.c:do_prlimit() still uses struct rlimit which
1435 #. uses kernel_ulong_t for its members, i.e., 32-bit on 32-bit kernel.
1436 #. https://bugzilla.kernel.org/show_bug.cgi?id=5042
1437 #. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12201
1438 #. type: Plain text
1439 #. #-#-#-#-# fedora-44: getrlimit.2.pot (PACKAGE VERSION) #-#-#-#-#
1440 #. Linux still uses long for limits internally:
1441 #. c022a0acad534fd5f5d5f17280f6d4d135e74e81
1442 #. kernel/sys.c:do_prlimit() still uses struct rlimit which
1443 #. uses kernel_ulong_t for its members, i.e. 32-bit on 32-bit kernel.
1444 #. https://bugzilla.kernel.org/show_bug.cgi?id=5042
1445 #. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12201
1446 #. type: Plain text
1447 #. #-#-#-#-# fedora-rawhide: getrlimit.2.pot (PACKAGE VERSION) #-#-#-#-#
1448 #. Linux still uses long for limits internally:
1449 #. c022a0acad534fd5f5d5f17280f6d4d135e74e81
1450 #. kernel/sys.c:do_prlimit() still uses struct rlimit which
1451 #. uses kernel_ulong_t for its members, i.e. 32-bit on 32-bit kernel.
1452 #. https://bugzilla.kernel.org/show_bug.cgi?id=5042
1453 #. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12201
1454 #. type: Plain text
1455 #. #-#-#-#-# mageia-cauldron: getrlimit.2.pot (PACKAGE VERSION) #-#-#-#-#
1456 #. Linux still uses long for limits internally:
1457 #. c022a0acad534fd5f5d5f17280f6d4d135e74e81
1458 #. kernel/sys.c:do_prlimit() still uses struct rlimit which
1459 #. uses kernel_ulong_t for its members, i.e., 32-bit on 32-bit kernel.
1460 #. https://bugzilla.kernel.org/show_bug.cgi?id=5042
1461 #. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12201
1462 #. type: Plain text
1463 #. #-#-#-#-# opensuse-leap-16-1: getrlimit.2.pot (PACKAGE VERSION) #-#-#-#-#
1464 #. Linux still uses long for limits internally:
1465 #. c022a0acad534fd5f5d5f17280f6d4d135e74e81
1466 #. kernel/sys.c:do_prlimit() still uses struct rlimit which
1467 #. uses kernel_ulong_t for its members, i.e., 32-bit on 32-bit kernel.
1468 #. https://bugzilla.kernel.org/show_bug.cgi?id=5042
1469 #. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12201
1470 #. type: Plain text
1471 #. #-#-#-#-# opensuse-tumbleweed: getrlimit.2.pot (PACKAGE VERSION) #-#-#-#-#
1472 #. Linux still uses long for limits internally:
1473 #. c022a0acad534fd5f5d5f17280f6d4d135e74e81
1474 #. kernel/sys.c:do_prlimit() still uses struct rlimit which
1475 #. uses kernel_ulong_t for its members, i.e., 32-bit on 32-bit kernel.
1476 #. https://bugzilla.kernel.org/show_bug.cgi?id=5042
1477 #. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12201
1478 #. type: Plain text
1479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1481 #, fuzzy
1482 #| msgid ""
1483 #| "The glibc B<getrlimit>() and B<setrlimit>() wrapper functions use a 64-"
1484 #| "bit I<rlim_t> data type, even on 32-bit platforms. However, the "
1485 #| "I<rlim_t> data type used in the B<getrlimit>() and B<setrlimit>() "
1486 #| "system calls is a (32-bit) I<unsigned long>. Furthermore, in Linux, the "
1487 #| "kernel represents resource limits on 32-bit platforms as I<unsigned "
1488 #| "long>. However, a 32-bit data type is not wide enough. The most "
1489 #| "pertinent limit here is B<RLIMIT_FSIZE>, which specifies the maximum size "
1490 #| "to which a file can grow: to be useful, this limit must be represented "
1491 #| "using a type that is as wide as the type used to represent file offsets\\"
1492 #| "(emthat is, as wide as a 64-bit B<off_t> (assuming a program compiled "
1493 #| "with I<_FILE_OFFSET_BITS=64>)."
1494 msgid ""
1495 "The glibc B<getrlimit>() and B<setrlimit>() wrapper functions use a 64-bit "
1496 "I<rlim_t> data type, even on 32-bit platforms. However, the I<rlim_t> data "
1497 "type used in the B<getrlimit>() and B<setrlimit>() system calls is a (32-"
1498 "bit) I<unsigned long>. Furthermore, in Linux, the kernel represents "
1499 "resource limits on 32-bit platforms as I<unsigned long>. However, a 32-bit "
1500 "data type is not wide enough. The most pertinent limit here is B<\\"
1501 "%RLIMIT_FSIZE>, which specifies the maximum size to which a file can grow: "
1502 "to be useful, this limit must be represented using a type that is as wide as "
1503 "the type used to represent file offsets\\[em]that is, as wide as a 64-bit "
1504 "B<off_t> (assuming a program compiled with I<_FILE_OFFSET_BITS=64>)."
1505 msgstr ""
1506 "В обёрточных функциях glibc B<getrlimit>() и B<setrlimit>() используется 64-"
1507 "битный тип данных I<rlim_t>, даже на 32-битных платформах. Однако в "
1508 "системных вызовах B<getrlimit>() и B<setrlimit>() тип данных I<rlim_t> "
1509 "приводится к I<unsigned long> (32-битному). Кроме этого, в ядре Linux "
1510 "ограничители ресурсов на 32-битных платформах представлены типом I<unsigned "
1511 "long>. Однако 32-битный тип данных недостаточно велик. Для этого больше "
1512 "подходит B<RLIMIT_FSIZE>, который определяет максимальный размер на который "
1513 "можно увеличить файл; чтобы его можно было использовать, данное ограничение "
1514 "должно быть представлено типом, соразмерным с типом, используемым для "
1515 "представления файловых смещений — 64-битным B<off_t> (предполагается, что "
1516 "программа компилируется в параметром I<_FILE_OFFSET_BITS=64>)."
1517
1518 #. type: Plain text
1519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1521 msgid ""
1522 "To work around this kernel limitation, if a program tried to set a resource "
1523 "limit to a value larger than can be represented in a 32-bit I<unsigned "
1524 "long>, then the glibc B<setrlimit>() wrapper function silently converted "
1525 "the limit value to B<RLIM_INFINITY>. In other words, the requested resource "
1526 "limit setting was silently ignored."
1527 msgstr ""
1528 "Если программа пытается задать ограничение ресурса значением, большим чем "
1529 "можно представить 32-битным I<unsigned long>, то, чтобы обойти это "
1530 "ограничение ядра, обёрточная функция glibc B<setrlimit>() просто преобразует "
1531 "значение ограничения в B<RLIM_INFINITY>. Иначе говоря, запрашиваемое "
1532 "назначение ограничения ресурса просто игнорируется."
1533
1534 #. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12201
1535 #. type: Plain text
1536 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1537 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1538 #, fuzzy
1539 #| msgid ""
1540 #| "Since version 2.13, glibc works around the limitations of the "
1541 #| "B<getrlimit>() and B<setrlimit>() system calls by implementing "
1542 #| "B<setrlimit>() and B<getrlimit>() as wrapper functions that call "
1543 #| "B<prlimit>()."
1544 msgid ""
1545 "Since glibc 2.13, glibc works around the limitations of the B<\\"
1546 "%getrlimit>() and B<setrlimit>() system calls by implementing "
1547 "B<setrlimit>() and B<\\%getrlimit>() as wrapper functions that call "
1548 "B<prlimit>()."
1549 msgstr ""
1550 "Начиная с версии 2.13, в glibc для обхода ограничений системных вызовов "
1551 "B<getrlimit>() и B<setrlimit>() для реализации обёрточных функций "
1552 "B<setrlimit>() и B<getrlimit>() используется вызов B<prlimit>()."
1553
1554 #. type: SH
1555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1557 #, no-wrap
1558 msgid "EXAMPLES"
1559 msgstr "ПРИМЕРЫ"
1560
1561 #. type: Plain text
1562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1564 msgid "The program below demonstrates the use of B<prlimit>()."
1565 msgstr "Представленная ниже программа показывает использование B<prlimit>()."
1566
1567 #. type: Plain text
1568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1570 #, no-wrap
1571 msgid ""
1572 "#define _GNU_SOURCE\n"
1573 "#define _FILE_OFFSET_BITS 64\n"
1574 "#include E<lt>err.hE<gt>\n"
1575 "#include E<lt>stdint.hE<gt>\n"
1576 "#include E<lt>stdio.hE<gt>\n"
1577 "#include E<lt>stdlib.hE<gt>\n"
1578 "#include E<lt>sys/resource.hE<gt>\n"
1579 "#include E<lt>time.hE<gt>\n"
1580 "\\&\n"
1581 "int\n"
1582 "main(int argc, char *argv[])\n"
1583 "{\n"
1584 " pid_t pid;\n"
1585 " struct rlimit old, new;\n"
1586 " struct rlimit *newp;\n"
1587 "\\&\n"
1588 " if (!(argc == 2 || argc == 4)) {\n"
1589 " fprintf(stderr, \"Usage: %s E<lt>pidE<gt> [E<lt>new-soft-limitE<gt> \"\n"
1590 " \"E<lt>new-hard-limitE<gt>]\\[rs]n\", argv[0]);\n"
1591 " exit(EXIT_FAILURE);\n"
1592 " }\n"
1593 "\\&\n"
1594 " pid = atoi(argv[1]); /* PID of target process */\n"
1595 "\\&\n"
1596 " newp = NULL;\n"
1597 " if (argc == 4) {\n"
1598 " new.rlim_cur = atoi(argv[2]);\n"
1599 " new.rlim_max = atoi(argv[3]);\n"
1600 " newp = &new;\n"
1601 " }\n"
1602 "\\&\n"
1603 " /* Set CPU time limit of target process; retrieve and display\n"
1604 " previous limit */\n"
1605 "\\&\n"
1606 " if (prlimit(pid, RLIMIT_CPU, newp, &old) == -1)\n"
1607 " err(EXIT_FAILURE, \"prlimit-1\");\n"
1608 " printf(\"Previous limits: soft=%jd; hard=%jd\\[rs]n\",\n"
1609 " (intmax_t) old.rlim_cur, (intmax_t) old.rlim_max);\n"
1610 "\\&\n"
1611 " /* Retrieve and display new CPU time limit */\n"
1612 "\\&\n"
1613 " if (prlimit(pid, RLIMIT_CPU, NULL, &old) == -1)\n"
1614 " err(EXIT_FAILURE, \"prlimit-2\");\n"
1615 " printf(\"New limits: soft=%jd; hard=%jd\\[rs]n\",\n"
1616 " (intmax_t) old.rlim_cur, (intmax_t) old.rlim_max);\n"
1617 "\\&\n"
1618 " exit(EXIT_SUCCESS);\n"
1619 "}\n"
1620 msgstr ""
1621
1622 #. SRC END
1623 #. type: SH
1624 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1625 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1626 #, no-wrap
1627 msgid "SEE ALSO"
1628 msgstr "СМОТРИТЕ ТАКЖЕ"
1629
1630 #. type: Plain text
1631 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1632 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1633 msgid ""
1634 "B<prlimit>(1), B<dup>(2), B<fcntl>(2), B<fork>(2), B<getrusage>(2), "
1635 "B<mlock>(2), B<mmap>(2), B<open>(2), B<quotactl>(2), B<sbrk>(2), "
1636 "B<shmctl>(2), B<malloc>(3), B<sigqueue>(3), B<ulimit>(3), B<core>(5), "
1637 "B<capabilities>(7), B<cgroups>(7), B<credentials>(7), B<signal>(7)"
1638 msgstr ""
1639 "B<prlimit>(1), B<dup>(2), B<fcntl>(2), B<fork>(2), B<getrusage>(2), "
1640 "B<mlock>(2), B<mmap>(2), B<open>(2), B<quotactl>(2), B<sbrk>(2), "
1641 "B<shmctl>(2), B<malloc>(3), B<sigqueue>(3), B<ulimit>(3), B<core>(5), "
1642 "B<capabilities>(7), B<cgroups>(7), B<credentials>(7), B<signal>(7)"
1643
1644 #. type: TH
1645 #: debian-trixie
1646 #, no-wrap
1647 msgid "2024-06-17"
1648 msgstr "17 июня 2024 г."
1649
1650 #. type: TH
1651 #: debian-trixie
1652 #, no-wrap
1653 msgid "Linux man-pages 6.9.1"
1654 msgstr "Страницы руководства Linux 6.9.1"
1655
1656 #. type: Plain text
1657 #: debian-trixie
1658 msgid "Standard C library (I<libc>, I<-lc>)"
1659 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
1660
1661 #. type: Plain text
1662 #: debian-trixie fedora-44 fedora-rawhide
1663 #, no-wrap
1664 msgid "B<typedef> /* ... */ B<rlim_t;> /* Unsigned integer type */\n"
1665 msgstr ""
1666
1667 #. type: Plain text
1668 #: debian-trixie fedora-44 fedora-rawhide
1669 msgid "POSIX.1-2008."
1670 msgstr "POSIX.1-2008."
1671
1672 #. type: Plain text
1673 #: debian-trixie fedora-44 fedora-rawhide
1674 msgid "POSIX.1-2001, SVr4, 4.3BSD."
1675 msgstr "POSIX.1-2001, SVr4, 4.3BSD."
1676
1677 #. type: TH
1678 #: fedora-44 fedora-rawhide
1679 #, no-wrap
1680 msgid "2024-07-23"
1681 msgstr "23 июля 2024 г."
1682
1683 #. type: TH
1684 #: fedora-44 fedora-rawhide
1685 #, no-wrap
1686 msgid "Linux man-pages 6.13"
1687 msgstr "Страницы руководства Linux 6.13"
1688
1689 #. type: TH
1690 #: mageia-cauldron
1691 #, no-wrap
1692 msgid "Linux man-pages 6.17"
1693 msgstr "Страницы руководства Linux 6.17"
1694
1695 #. type: TH
1696 #: opensuse-leap-16-1 opensuse-tumbleweed
1697 #, no-wrap
1698 msgid "Linux man-pages (unreleased)"
1699 msgstr "Страницы руководства Linux (не выпущены)"