Module Name: src
Committed By: christos
Date: Sat Jun 9 02:51:50 UTC 2012
Modified Files:
src/bin/ksh: c_ulimit.c
Log Message:
support RLIMIT_NTHR
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/bin/ksh/c_ulimit.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/ksh/c_ulimit.c
diff -u src/bin/ksh/c_ulimit.c:1.9 src/bin/ksh/c_ulimit.c:1.10
--- src/bin/ksh/c_ulimit.c:1.9 Sun Sep 14 01:00:23 2008
+++ src/bin/ksh/c_ulimit.c Fri Jun 8 22:51:50 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: c_ulimit.c,v 1.9 2008/09/14 05:00:23 sjg Exp $ */
+/* $NetBSD: c_ulimit.c,v 1.10 2012/06/09 02:51:50 christos Exp $ */
/*
ulimit -- handle "ulimit" builtin
@@ -20,7 +20,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: c_ulimit.c,v 1.9 2008/09/14 05:00:23 sjg Exp $");
+__RCSID("$NetBSD: c_ulimit.c,v 1.10 2012/06/09 02:51:50 christos Exp $");
#endif
@@ -100,6 +100,9 @@ c_ulimit(wp)
#ifdef RLIMIT_NPROC
{ "processes", RLIMIT, RLIMIT_NPROC, RLIMIT_NPROC, 1, 'p' },
#endif
+#ifdef RLIMIT_NTHR
+ { "threads", RLIMIT, RLIMIT_NTHR, RLIMIT_NTHR, 1, 'r' },
+#endif
#ifdef RLIMIT_VMEM
{ "vmemory(kbytes)", RLIMIT, RLIMIT_VMEM, RLIMIT_VMEM, 1024, 'v' },
#else /* RLIMIT_VMEM */