List vfs.generic.usermount in manpage. Don't try to handle machdep.diskinfo
for the i386, thus avoiding a warning message in 'sysctl -a'.
This commit is contained in:
parent
f7ad1af2b5
commit
b02df6b9ee
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: sysctl.8,v 1.41 2000/02/15 19:59:02 thorpej Exp $
|
||||
.\" $NetBSD: sysctl.8,v 1.42 2000/02/17 08:54:16 fvdl Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
@ -312,6 +312,7 @@ privilege can change the value.
|
||||
.It user.posix2_upe integer no
|
||||
.It user.posix2_version integer no
|
||||
.It user.re_dup_max integer no
|
||||
.It vfs.generic.usermount integer yes
|
||||
.It vm.loadavg struct no
|
||||
.El
|
||||
.Sh EXAMPLES
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sysctl.c,v 1.25 2000/02/12 18:00:58 thorpej Exp $ */
|
||||
/* $NetBSD: sysctl.c,v 1.26 2000/02/17 08:54:16 fvdl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993
|
||||
@ -44,7 +44,7 @@ __COPYRIGHT(
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: sysctl.c,v 1.25 2000/02/12 18:00:58 thorpej Exp $");
|
||||
__RCSID("$NetBSD: sysctl.c,v 1.26 2000/02/17 08:54:16 fvdl Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -156,6 +156,7 @@ int Aflag, aflag, nflag, wflag;
|
||||
#define CLOCK 0x00000001
|
||||
#define BOOTTIME 0x00000002
|
||||
#define CONSDEV 0x00000004
|
||||
#define DISKINFO 0x00000008
|
||||
|
||||
/*
|
||||
* A dummy type for limits, which requires special parsing
|
||||
@ -431,6 +432,10 @@ parse(string, flags)
|
||||
#ifdef CPU_CONSDEV
|
||||
if (mib[1] == CPU_CONSDEV)
|
||||
special |= CONSDEV;
|
||||
#endif
|
||||
#ifdef CPU_DISKINFO
|
||||
if (mib[1] == CPU_DISKINFO)
|
||||
special |= DISKINFO;
|
||||
#endif
|
||||
break;
|
||||
|
||||
@ -543,6 +548,11 @@ parse(string, flags)
|
||||
fprintf(stdout, "0x%x\n", dev);
|
||||
return;
|
||||
}
|
||||
if (special & DISKINFO) {
|
||||
/* Don't know a good way to deal with this i386 specific one */
|
||||
return;
|
||||
}
|
||||
|
||||
switch (type) {
|
||||
case CTLTYPE_INT:
|
||||
if (newsize == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user