about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2003-02-09 01:12:35 +0000
committerClint Adams <clint@users.sourceforge.net>2003-02-09 01:12:35 +0000
commitb5b1099023c4bbd8b12bf4898ef83ce8af4159ff (patch)
tree8086af55508ea003134edfc37d0535e0d570dfc0
parent4f3b9e43d28508b696984d848176196e57414c51 (diff)
downloadzsh-b5b1099023c4bbd8b12bf4898ef83ce8af4159ff.tar.gz
zsh-b5b1099023c4bbd8b12bf4898ef83ce8af4159ff.tar.xz
zsh-b5b1099023c4bbd8b12bf4898ef83ce8af4159ff.zip
18207: add maxfilelocks to ulimit output.
-rw-r--r--ChangeLog4
-rw-r--r--Src/Builtins/rlimits.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6a699cba0..fbd1ac3c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-02-08  Clint Adams  <clint@zsh.org>
+
+	* 18207: Src/Builtins/rlimits.c: add maxfilelocks to ulimit output.
+
 2003-02-07  Peter Stephenson  <pws@csr.com>
 
 	* 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)