Debian Codegraph @

templates/man2/getrlimit.2.pot

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