aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Mathys <eraserix@gmail.com>2012-07-03 17:36:01 +0800
committermaximilian attems <max@stro.at>2012-10-01 15:14:32 +0200
commita756665f42b1f160714039f2562868bb5ba340e0 (patch)
tree2020852a31caba8d7f1b808ac8682802b5631b0b
parent127b17bb38dbfc95386a52b2159f059221d33497 (diff)
downloadklibc-a756665f42b1f160714039f2562868bb5ba340e0.tar.gz
[klibc] [BUILTIN] Add support for ulimit -r
I recently found myself in need to have dash support 'ulimit -r' to set maximum realtime priority. Attached is a patch that adds the parameter to the builtin ulimit command and updates the manpage. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r--usr/dash/miscbltin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/dash/miscbltin.c b/usr/dash/miscbltin.c
index 8be613a428b96..09282be529c46 100644
--- a/usr/dash/miscbltin.c
+++ b/usr/dash/miscbltin.c
@@ -447,6 +447,9 @@ static const struct limits limits[] = {
#ifdef RLIMIT_LOCKS
{ "locks", RLIMIT_LOCKS, 1, 'w' },
#endif
+#ifdef RLIMIT_RTPRIO
+ { "rtprio", RLIMIT_RTPRIO, 1, 'r' },
+#endif
{ (char *) 0, 0, 0, '\0' }
};