about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2003-02-09 01:13:53 +0000
committerClint Adams <clint@users.sourceforge.net>2003-02-09 01:13:53 +0000
commita8feefe8e813ced4b2e311b749682f38ebbf64e6 (patch)
tree82f80ca4419b6d16038a17921f2481238a08ef17
parentf13c7a3a2438e3a8f61123a3561ac031508f8e10 (diff)
downloadzsh-a8feefe8e813ced4b2e311b749682f38ebbf64e6.tar.gz
zsh-a8feefe8e813ced4b2e311b749682f38ebbf64e6.tar.xz
zsh-a8feefe8e813ced4b2e311b749682f38ebbf64e6.zip
* 18207: Src/Builtins/rlimits.c: 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 c6ce79da3..fec9ba3c0 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-06  Clint Adams  <clint@zsh.org>
 
 	* unposted: Completion/compinit: conjugate "need" properly.
diff --git a/Src/Builtins/rlimits.c b/Src/Builtins/rlimits.c
index f19cdfab9..8eb83c487 100644
--- a/Src/Builtins/rlimits.c
+++ b/Src/Builtins/rlimits.c
@@ -252,6 +252,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)