From 46abc8c6d8a5e9a5712bdc1312c0b6960eec65a4 Mon Sep 17 00:00:00 2001 From: Christoph Mathys Date: Tue, 3 Jul 2012 17:36:01 +0800 Subject: [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 --- src/miscbltin.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/miscbltin.c') diff --git a/src/miscbltin.c b/src/miscbltin.c index e354df4..b596fd2 100644 --- a/src/miscbltin.c +++ b/src/miscbltin.c @@ -391,6 +391,9 @@ static const struct limits limits[] = { #endif #ifdef RLIMIT_LOCKS { "locks", RLIMIT_LOCKS, 1, 'w' }, +#endif +#ifdef RLIMIT_RTPRIO + { "rtprio", RLIMIT_RTPRIO, 1, 'r' }, #endif { (char *) 0, 0, 0, '\0' } }; -- cgit 1.4.1