summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-11-06 15:59:57 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-11-06 15:59:57 +0000
commit0969cfe5aa9f2260000fb53b932592dbd4af576f (patch)
tree9fc7c5a55411eb4358b189cbe8cb21e1c18c51db /sys
parentf5902371f82ba0a4cdeae260a9bfa286bb43df23 (diff)
fix ps(1) LIM column
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_sysctl.c4
-rw-r--r--sys/sys/sysctl.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 710f43f4ad8..5035cd21a18 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.22 1997/11/06 05:58:19 csapuntz Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.23 1997/11/06 15:59:49 kstailey Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -48,6 +48,7 @@
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/proc.h>
+#include <sys/resourcevar.h>
#include <sys/file.h>
#include <sys/vnode.h>
#include <sys/unistd.h>
@@ -754,4 +755,5 @@ fill_eproc(p, ep)
ep->e_login[MAXLOGNAME-1] = '\0';
strncpy(ep->e_emul, p->p_emul->e_name, EMULNAMELEN);
ep->e_emul[EMULNAMELEN] = '\0';
+ ep->e_maxrss = p->p_rlimit[RLIMIT_RSS].rlim_cur;
}
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h
index 07d0e6e27b1..efe262ea250 100644
--- a/sys/sys/sysctl.h
+++ b/sys/sys/sysctl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.h,v 1.21 1997/11/06 05:59:11 csapuntz Exp $ */
+/* $OpenBSD: sysctl.h,v 1.22 1997/11/06 15:59:52 kstailey Exp $ */
/* $NetBSD: sysctl.h,v 1.16 1996/04/09 20:55:36 cgd Exp $ */
/*
@@ -222,7 +222,7 @@ struct kinfo_proc {
char e_login[MAXLOGNAME]; /* setlogin() name */
#define EMULNAMELEN 7
char e_emul[EMULNAMELEN+1]; /* syscall emulation name */
- u_int32_t e_spare[2]; /* XXX remove prior to release */
+ rlim_t e_maxrss;
} kp_eproc;
};