summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2002-06-09 04:27:26 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2002-06-09 04:27:26 +0000
commitdf4e67571e917992490c8c4acdbc20d1e429493b (patch)
tree8828875149bf851c659aa24ded2af860c848c7d0 /sys/kern
parent8618c21ac5207dc121103c5fb43fd3457174e6ca (diff)
KERN_MBSTAT
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_sysctl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 092e8c88b65..8a52dbc9ebf 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.68 2002/06/08 23:35:35 angelos Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.69 2002/06/09 04:27:25 angelos Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -64,6 +64,7 @@
#include <sys/vmmeter.h>
#include <sys/namei.h>
#include <sys/exec.h>
+#include <sys/mbuf.h>
#include <sys/mount.h>
#include <sys/syscallargs.h>
@@ -329,6 +330,9 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
p));
case KERN_FILE:
return (sysctl_file(oldp, oldlenp));
+ case KERN_MBSTAT:
+ return (sysctl_rdstruct(oldp, oldlenp, newp, &mbstat,
+ sizeof(mbstat)));
#ifdef GPROF
case KERN_PROF:
return (sysctl_doprof(name + 1, namelen - 1, oldp, oldlenp,