diff options
author | Denys Vlasenko | 2011-04-04 02:12:14 +0200 |
---|---|---|
committer | Denys Vlasenko | 2011-04-04 02:12:14 +0200 |
commit | e32d05b708a31716e0a788c43f81990436535140 (patch) | |
tree | d82202f954261a31326d8f2ac7714383fe74d55c /shell/shell_common.c | |
parent | 929f63e57cadb22905411f212809c14b160ec494 (diff) | |
download | busybox-e32d05b708a31716e0a788c43f81990436535140.zip busybox-e32d05b708a31716e0a788c43f81990436535140.tar.gz |
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 f02ed81..68659ab 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c @@ -286,6 +286,12 @@ static const struct limits limits_tbl[] = { #ifdef RLIMIT_LOCKS { RLIMIT_LOCKS, 0, 'w', "locks" }, #endif +#ifdef RLIMIT_NICE + { RLIMIT_NICE, 0, 'e', "scheduling priority" }, +#endif +#ifdef RLIMIT_RTPRIO + { RLIMIT_RTPRIO, 0, 'r', "real-time priority" }, +#endif }; enum { @@ -328,6 +334,12 @@ static const char ulimit_opt_string[] = "-HSa" #ifdef RLIMIT_LOCKS "w::" #endif +#ifdef RLIMIT_NICE + "e::" +#endif +#ifdef RLIMIT_RTPRIO + "r::" +#endif ; static void printlim(unsigned opts, const struct rlimit *limit, |