From b5b1099023c4bbd8b12bf4898ef83ce8af4159ff Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 9 Feb 2003 01:12:35 +0000 Subject: [PATCH] 18207: add maxfilelocks to ulimit output. --- ChangeLog | 4 ++++ Src/Builtins/rlimits.c | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6a699cba0..fbd1ac3c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-02-08 Clint Adams + + * 18207: Src/Builtins/rlimits.c: add maxfilelocks to ulimit output. + 2003-02-07 Peter Stephenson * 18204: Doc/Zsh/builtins.yo, Src/builtin.c: KSH_ARRAYS gives diff --git a/Src/Builtins/rlimits.c b/Src/Builtins/rlimits.c index 228bba344..c18e65543 100644 --- a/Src/Builtins/rlimits.c +++ b/Src/Builtins/rlimits.c @@ -257,6 +257,12 @@ printulimit(int lim, int hard, int head) printf("threads per process "); break; # endif /* RLIMIT_PTHREAD */ +# ifdef RLIMIT_LOCKS + case RLIMIT_LOCKS: + if (head) + printf("file locks "); + break; +# endif /* RLIMIT_LOCKS */ } /* display the limit */ if (limit == RLIM_INFINITY)