summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-11-10 19:20:40 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-11-10 19:20:40 +0000
commit499d6eb5bd69bc9c0b22b90a636038757039d4f2 (patch)
tree5ba9b95767c91507c620bf86db73015cc2ef2bca /sys/kern
parentbbe8f62ec65096ee1bb8589c0f3ade29b85553c4 (diff)
Move maxdmap and maxsmap to kern_resource.c
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_resource.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c
index 668c38f28be..0b65376886f 100644
--- a/sys/kern/kern_resource.c
+++ b/sys/kern/kern_resource.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_resource.c,v 1.15 2001/11/06 19:53:20 miod Exp $ */
+/* $OpenBSD: kern_resource.c,v 1.16 2001/11/10 19:20:39 art Exp $ */
/* $NetBSD: kern_resource.c,v 1.38 1996/10/23 07:19:38 matthias Exp $ */
/*-
@@ -55,6 +55,12 @@
#include <uvm/uvm_extern.h>
/*
+ * Patchable maximum data and stack limits.
+ */
+rlim_t maxdmap = MAXDSIZ;
+rlim_t maxsmap = MAXSSIZ;
+
+/*
* Resource controls and accounting.
*/
@@ -227,7 +233,6 @@ dosetrlimit(p, which, limp)
struct rlimit *limp;
{
struct rlimit *alimp;
- extern unsigned maxdmap, maxsmap;
rlim_t maxlim;
int error;