Grok and document CTL_DDB.

This commit is contained in:
thorpej 1997-01-09 05:38:54 +00:00
parent 1dc6efd7e6
commit 05fe9cfe11
2 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: sysctl.8,v 1.7 1996/07/17 21:38:46 explorer Exp $
.\" $NetBSD: sysctl.8,v 1.8 1997/01/09 05:38:54 thorpej Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@ -167,6 +167,12 @@ privilege can change the value.
.It user.posix2_localedef integer no
.It user.posix2_sw_dev integer no
.It user.posix2_upe integer no
.It ddb.radix integer yes
.It ddb.maxoff integer yes
.It ddb.maxwidth integer yes
.It ddb.tabstops integer yes
.It ddb.lines integer yes
.It ddb.onpanic integer yes
.El
.Sh EXAMPLES
.Pp

View File

@ -1,4 +1,4 @@
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/* $NetBSD: sysctl.c,v 1.10 1997/01/09 05:38:55 thorpej Exp $ */
/*
* Copyright (c) 1993
@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93";
#else
static char *rcsid = "$NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $";
static char *rcsid = "$NetBSD: sysctl.c,v 1.10 1997/01/09 05:38:55 thorpej Exp $";
#endif
#endif /* not lint */
@ -78,6 +78,7 @@ struct ctlname vmname[] = CTL_VM_NAMES;
struct ctlname netname[] = CTL_NET_NAMES;
struct ctlname hwname[] = CTL_HW_NAMES;
struct ctlname username[] = CTL_USER_NAMES;
struct ctlname ddbname[] = CTL_DDB_NAMES;
struct ctlname debugname[CTL_DEBUG_MAXID];
#ifdef CTL_MACHDEP_NAMES
struct ctlname machdepname[] = CTL_MACHDEP_NAMES;
@ -103,6 +104,7 @@ struct list secondlevel[] = {
{ 0, 0 }, /* CTL_MACHDEP */
#endif
{ username, USER_MAXID }, /* CTL_USER_NAMES */
{ ddbname, DDBCTL_MAXID }, /* CTL_DDB_NAMES */
};
int Aflag, aflag, nflag, wflag;
@ -326,6 +328,7 @@ parse(string, flags)
case CTL_FS:
case CTL_USER:
case CTL_DDB:
break;
default: