diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-04-04 02:12:14 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-04-04 02:12:14 +0200 |
commit | e32d05b708a31716e0a788c43f81990436535140 (patch) | |
tree | d82202f954261a31326d8f2ac7714383fe74d55c /shell/shell_common.c | |
parent | 929f63e57cadb22905411f212809c14b160ec494 (diff) | |
download | busybox-w32-e32d05b708a31716e0a788c43f81990436535140.tar.gz busybox-w32-e32d05b708a31716e0a788c43f81990436535140.tar.bz2 busybox-w32-e32d05b708a31716e0a788c43f81990436535140.zip |
ash,hush: add ulimit -e -r (RLIMIT_NICE, RLIMIT_RTPRIO)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/shell_common.c')
-rw-r--r-- | shell/shell_common.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c index f02ed81ea..68659abd3 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c | |||
@@ -286,6 +286,12 @@ static const struct limits limits_tbl[] = { | |||
286 | #ifdef RLIMIT_LOCKS | 286 | #ifdef RLIMIT_LOCKS |
287 | { RLIMIT_LOCKS, 0, 'w', "locks" }, | 287 | { RLIMIT_LOCKS, 0, 'w', "locks" }, |
288 | #endif | 288 | #endif |
289 | #ifdef RLIMIT_NICE | ||
290 | { RLIMIT_NICE, 0, 'e', "scheduling priority" }, | ||
291 | #endif | ||
292 | #ifdef RLIMIT_RTPRIO | ||
293 | { RLIMIT_RTPRIO, 0, 'r', "real-time priority" }, | ||
294 | #endif | ||
289 | }; | 295 | }; |
290 | 296 | ||
291 | enum { | 297 | enum { |
@@ -328,6 +334,12 @@ static const char ulimit_opt_string[] = "-HSa" | |||
328 | #ifdef RLIMIT_LOCKS | 334 | #ifdef RLIMIT_LOCKS |
329 | "w::" | 335 | "w::" |
330 | #endif | 336 | #endif |
337 | #ifdef RLIMIT_NICE | ||
338 | "e::" | ||
339 | #endif | ||
340 | #ifdef RLIMIT_RTPRIO | ||
341 | "r::" | ||
342 | #endif | ||
331 | ; | 343 | ; |
332 | 344 | ||
333 | static void printlim(unsigned opts, const struct rlimit *limit, | 345 | static void printlim(unsigned opts, const struct rlimit *limit, |