Debian Codegraph @

po/pt_BR/man2/getrlimit.2.po

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