about summary refs log tree commit diff
diff options
context:
space:
mode:
-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)