3 Add support for RLIMIT_NICE/RLIMIT_RTPRIO and add missing documentation
6 --- builtins/ulimit.def
7 +++ builtins/ulimit.def
9 -a all current limits are reported
10 -c the maximum size of core files created
11 -d the maximum size of a process's data segment
12 + -e the maximum scheduling priority (`nice')
13 -f the maximum size of files created by the shell
14 - -i the maximum number of pending signals
15 + -i the maximum number of pending signals
16 -l the maximum size a process may lock into memory
17 -m the maximum resident set size
18 -n the maximum number of open file descriptors
19 -p the pipe buffer size
20 - -q the maximum number of bytes in POSIX message queues
21 + -q the maximum number of bytes in POSIX message queues
22 + -r the maximum rt priority
23 -s the maximum stack size
24 -t the maximum amount of cpu time in seconds
25 -u the maximum number of user processes
26 -v the size of virtual memory
27 - -x the maximum number of file locks
28 + -x the maximum number of file locks
30 If LIMIT is given, it is the new value of the specified resource;
31 the special LIMIT values `soft', `hard', and `unlimited' stand for
34 { 'd', RLIMIT_DATA, 1024, "data seg size", "kbytes" },
37 + { 'e', RLIMIT_NICE, 1, "max nice", (char *)NULL},
39 { 'f', RLIMIT_FILESIZE, 1024, "file size", "blocks" },
40 #ifdef RLIMIT_SIGPENDING
41 { 'i', RLIMIT_SIGPENDING, 1, "pending signals", (char *)NULL },
43 #ifdef RLIMIT_MSGQUEUE
44 { 'q', RLIMIT_MSGQUEUE, 1, "POSIX message queues", "bytes" },
47 + { 'r', RLIMIT_RTPRIO, 1, "max rt priority", (char *)NULL},
50 { 's', RLIMIT_STACK, 1024, "stack size", "kbytes" },
58 -ulimit [-acdflmnpstuvSH] [@var{limit}]
59 +ulimit [-acdefilmnpqrstuvxSH] [@var{limit}]
61 @code{ulimit} provides control over the resources available to processes
62 started by the shell, on systems that allow such control. If an
63 @@ -3854,9 +3854,15 @@
65 The maximum size of a process's data segment.
68 +The maximum scheduling priority.
71 The maximum size of files created by the shell.
74 +The maximum number of pending signals.
77 The maximum size that may be locked into memory.
79 @@ -3869,6 +3875,12 @@
84 +The maximum number of bytes in POSIX message queues.
87 +The maximum RT priority.
90 The maximum stack size.
94 The maximum amount of virtual memory available to the process.
97 +The maximum amount of file locks.
101 If @var{limit} is given, it is the new value of the specified resource;
104 @@ -8484,7 +8484,7 @@
105 returns true if any of the arguments are found, false if
108 -\fBulimit\fP [\fB\-SHacdflmnpstuv\fP [\fIlimit\fP]]
109 +\fBulimit\fP [\fB\-SHacdefilmnpqrstuvx\fP [\fIlimit\fP]]
110 Provides control over the resources available to the shell and to
111 processes started by it, on systems that allow such control.
112 The \fB\-H\fP and \fB\-S\fP options specify that the hard or soft limit is
113 @@ -8520,9 +8520,15 @@
115 The maximum size of a process's data segment
118 +The maximum scheduling priority (`nice')
121 The maximum size of files created by the shell
124 +The maximum number of pending signals
127 The maximum size that may be locked into memory
129 @@ -8536,6 +8542,12 @@
131 The pipe size in 512-byte blocks (this may not be set)
134 +The maximum number of bytes in POSIX message queues
137 +The maximum rt priority
140 The maximum stack size
142 @@ -8547,6 +8559,9 @@
145 The maximum amount of virtual memory available to the shell
148 +The maximum number of file locks