summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>1996-03-30 04:51:25 +0000
committermickey <mickey@openbsd.org>1996-03-30 04:51:25 +0000
commitd6c7fc58ca56e02dd88b4a7055479f7b16683256 (patch)
treea42d63a899e06c8de16b928428f6f7ea3c8fe677 /sys/kern/kern_sysctl.c
parentAdd $OpenBSD$, fix comments. (diff)
downloadwireguard-openbsd-d6c7fc58ca56e02dd88b4a7055479f7b16683256.tar.xz
wireguard-openbsd-d6c7fc58ca56e02dd88b4a7055479f7b16683256.zip
Added: sysctl access to the ddb variables.
Fixed: "netbsd" strings in sym table handling routines. now it is usefull to change max_{width,line} according to your real console geometry, just w/ sysctl program.
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 79a2fc09975..13839f7631c 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.2 1996/03/03 17:19:56 niklas Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.3 1996/03/30 04:51:32 mickey Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.14 1996/02/09 18:59:52 christos Exp $ */
/*-
@@ -61,6 +61,10 @@
#include <sys/mount.h>
#include <sys/syscallargs.h>
+#ifdef DDB
+#include <ddb/db_var.h>
+#endif
+
/*
* Locking and stats
*/
@@ -130,6 +134,11 @@ sys___sysctl(p, v, retval)
fn = debug_sysctl;
break;
#endif
+#ifdef DDB
+ case CTL_DDB:
+ fn = ddb_sysctl;
+ break;
+#endif
default:
return (EOPNOTSUPP);
}