aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/shell_common.c12
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
291enum { 297enum {
@@ -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
333static void printlim(unsigned opts, const struct rlimit *limit, 345static void printlim(unsigned opts, const struct rlimit *limit,