Module Name:    src
Committed By:   christos
Date:           Sat Jun  9 02:49:48 UTC 2012

Modified Files:
        src/bin/sh: miscbltin.c

Log Message:
support RLIMIT_NTHR.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/bin/sh/miscbltin.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/sh/miscbltin.c
diff -u src/bin/sh/miscbltin.c:1.40 src/bin/sh/miscbltin.c:1.41
--- src/bin/sh/miscbltin.c:1.40	Tue Oct 11 11:27:11 2011
+++ src/bin/sh/miscbltin.c	Fri Jun  8 22:49:48 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: miscbltin.c,v 1.40 2011/10/11 15:27:11 christos Exp $	*/
+/*	$NetBSD: miscbltin.c,v 1.41 2012/06/09 02:49:48 christos Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)miscbltin.c	8.4 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: miscbltin.c,v 1.40 2011/10/11 15:27:11 christos Exp $");
+__RCSID("$NetBSD: miscbltin.c,v 1.41 2012/06/09 02:49:48 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -330,6 +330,9 @@ static const struct limits limits[] = {
 #ifdef RLIMIT_MEMLOCK
 	{ "locked memory","kbytes",	RLIMIT_MEMLOCK, 1024, 'l' },
 #endif
+#ifdef RLIMIT_NTHR
+	{ "thread",	"threads",	RLIMIT_NTHR,       1, 'r' },
+#endif
 #ifdef RLIMIT_NPROC
 	{ "process",	"processes",	RLIMIT_NPROC,      1, 'p' },
 #endif

Reply via email to