From: mickey Date: Sat, 30 Mar 1996 04:53:15 +0000 (+0000) Subject: DDB support added. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7025ac5d9b879e16c59bf89032ddbd7dc10f6607;p=openbsd DDB support added. --- diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 4f0f8ffaafa..a5de0bd9ef8 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -66,6 +66,7 @@ static char *rcsid = "$NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $" #include #include #include +#include #include #include @@ -82,6 +83,7 @@ struct ctlname debugname[CTL_DEBUG_MAXID]; #ifdef CTL_MACHDEP_NAMES struct ctlname machdepname[] = CTL_MACHDEP_NAMES; #endif +struct ctlname ddbname[] = CTL_DDB_NAMES; char names[BUFSIZ]; struct list { @@ -103,6 +105,7 @@ struct list secondlevel[] = { { 0, 0 }, /* CTL_MACHDEP */ #endif { username, USER_MAXID }, /* CTL_USER_NAMES */ + { ddbname, DBCTL_MAXID }, /* CTL_DDB_NAMES */ }; int Aflag, aflag, nflag, wflag; @@ -326,6 +329,7 @@ parse(string, flags) case CTL_FS: case CTL_USER: + case CTL_DDB: break; default: diff --git a/usr.sbin/sysctl/sysctl.c b/usr.sbin/sysctl/sysctl.c index 4f0f8ffaafa..a5de0bd9ef8 100644 --- a/usr.sbin/sysctl/sysctl.c +++ b/usr.sbin/sysctl/sysctl.c @@ -66,6 +66,7 @@ static char *rcsid = "$NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $" #include #include #include +#include #include #include @@ -82,6 +83,7 @@ struct ctlname debugname[CTL_DEBUG_MAXID]; #ifdef CTL_MACHDEP_NAMES struct ctlname machdepname[] = CTL_MACHDEP_NAMES; #endif +struct ctlname ddbname[] = CTL_DDB_NAMES; char names[BUFSIZ]; struct list { @@ -103,6 +105,7 @@ struct list secondlevel[] = { { 0, 0 }, /* CTL_MACHDEP */ #endif { username, USER_MAXID }, /* CTL_USER_NAMES */ + { ddbname, DBCTL_MAXID }, /* CTL_DDB_NAMES */ }; int Aflag, aflag, nflag, wflag; @@ -326,6 +329,7 @@ parse(string, flags) case CTL_FS: case CTL_USER: + case CTL_DDB: break; default: