pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Add a ulimit flag for address space limits. Support...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8e9f170d88bd
branches:  trunk
changeset: 413874:8e9f170d88bd
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Mar 22 21:17:30 2020 +0000

description:
Add a ulimit flag for address space limits. Support it on NetBSD for
now.

diffstat:

 mk/help/ulimit.help   |   3 ++-
 mk/platform/NetBSD.mk |  11 ++++++-----
 2 files changed, 8 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r 12a2ce0e28ad -r 8e9f170d88bd mk/help/ulimit.help
--- a/mk/help/ulimit.help       Sun Mar 22 21:15:46 2020 +0000
+++ b/mk/help/ulimit.help       Sun Mar 22 21:17:30 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ulimit.help,v 1.3 2015/04/25 11:28:08 wiz Exp $
+# $NetBSD: ulimit.help,v 1.4 2020/03/22 21:17:30 joerg Exp $
 #
 
 # UNLIMIT_RESOURCES
@@ -10,5 +10,6 @@
 #      * datasize
 #      * memorysize
 #      * stacksize
+#      * virtualsize
 #
 # Keywords: ulimit unlimit memory cputime ENOMEM
diff -r 12a2ce0e28ad -r 8e9f170d88bd mk/platform/NetBSD.mk
--- a/mk/platform/NetBSD.mk     Sun Mar 22 21:15:46 2020 +0000
+++ b/mk/platform/NetBSD.mk     Sun Mar 22 21:17:30 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: NetBSD.mk,v 1.59 2020/03/12 17:01:39 gdt Exp $
+# $NetBSD: NetBSD.mk,v 1.60 2020/03/22 21:17:30 joerg Exp $
 #
 # Variable definitions for the NetBSD operating system.
 
@@ -34,10 +34,11 @@
 ROOT_CMD?=             ${SU} - root -c
 ROOT_USER?=            root
 ROOT_GROUP?=   wheel
-ULIMIT_CMD_datasize?=  ulimit -d `ulimit -H -d`
-ULIMIT_CMD_stacksize?= ulimit -s `ulimit -H -s`
-ULIMIT_CMD_memorysize?=        ulimit -m `ulimit -H -m`
-ULIMIT_CMD_cputime?=   ulimit -t `ulimit -H -t`
+ULIMIT_CMD_virtualsize?=       ulimit -v `ulimit -H -v`
+ULIMIT_CMD_datasize?=          ulimit -d `ulimit -H -d`
+ULIMIT_CMD_stacksize?=         ulimit -s `ulimit -H -s`
+ULIMIT_CMD_memorysize?=                ulimit -m `ulimit -H -m`
+ULIMIT_CMD_cputime?=           ulimit -t `ulimit -H -t`
 
 # Native X11 is only supported on NetBSD-5 and later.
 # On NetBSD-5, native X11 has enough issues that we default



Home | Main Index | Thread Index | Old Index