Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin support RLIMIT_NTHR
details: https://anonhg.NetBSD.org/src/rev/de1a7105a37b
branches: trunk
changeset: 779658:de1a7105a37b
user: christos <christos%NetBSD.org@localhost>
date: Sat Jun 09 02:50:43 2012 +0000
description:
support RLIMIT_NTHR
diffstat:
bin/csh/func.c | 5 +++--
bin/ksh/c_ulimit.c | 7 +++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diffs (54 lines):
diff -r fc9b355500b8 -r de1a7105a37b bin/csh/func.c
--- a/bin/csh/func.c Sat Jun 09 02:49:48 2012 +0000
+++ b/bin/csh/func.c Sat Jun 09 02:50:43 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: func.c,v 1.38 2011/08/31 16:24:54 plunky Exp $ */
+/* $NetBSD: func.c,v 1.39 2012/06/09 02:50:43 christos Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)func.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: func.c,v 1.38 2011/08/31 16:24:54 plunky Exp $");
+__RCSID("$NetBSD: func.c,v 1.39 2012/06/09 02:50:43 christos Exp $");
#endif
#endif /* not lint */
@@ -1104,6 +1104,7 @@
{ RLIMIT_RSS, "memoryuse", 1024, "kbytes" },
{ RLIMIT_MEMLOCK, "memorylocked", 1024, "kbytes" },
{ RLIMIT_NPROC, "maxproc", 1, "" },
+ { RLIMIT_NTHR, "maxthread", 1, "" },
{ RLIMIT_NOFILE, "openfiles", 1, "" },
{ RLIMIT_SBSIZE, "sbsize", 1, "bytes" },
{ RLIMIT_AS, "vmemoryuse", 1024, "kbytes" },
diff -r fc9b355500b8 -r de1a7105a37b bin/ksh/c_ulimit.c
--- a/bin/ksh/c_ulimit.c Sat Jun 09 02:49:48 2012 +0000
+++ b/bin/ksh/c_ulimit.c Sat Jun 09 02:50:43 2012 +0000
@@ -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 @@
#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 */
Home |
Main Index |
Thread Index |
Old Index