mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Final part of this bunch of sysctl commits: cleanup.
This commit is contained in:
parent
af8364b0ad
commit
d457bade76
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12289
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94
|
||||
* $Id: kern_sysctl.c,v 1.47 1995/11/14 09:37:22 phk Exp $
|
||||
* $Id: kern_sysctl.c,v 1.48 1995/11/14 09:39:44 phk Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -45,18 +45,10 @@
|
||||
#include <sys/systm.h>
|
||||
#include <sys/sysproto.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/vnode.h>
|
||||
#include <sys/unistd.h>
|
||||
#include <sys/buf.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/tty.h>
|
||||
#include <sys/conf.h>
|
||||
#include <vm/vm.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/user.h>
|
||||
|
||||
extern struct linker_set sysctl_;
|
||||
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)sysctl.h 8.1 (Berkeley) 6/2/93
|
||||
* $Id: sysctl.h,v 1.31 1995/11/10 10:14:55 phk Exp $
|
||||
* $Id: sysctl.h,v 1.32 1995/11/12 19:52:09 phk Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_SYSCTL_H_
|
||||
@ -353,39 +353,7 @@ int sysctl_handle_opaque SYSCTL_HANDLER_ARGS;
|
||||
{ "tzname_max", CTLTYPE_INT }, \
|
||||
}
|
||||
|
||||
/*
|
||||
* CTL_DEBUG definitions
|
||||
*
|
||||
* Second level identifier specifies which debug variable.
|
||||
* Third level identifier specifies which stucture component.
|
||||
*/
|
||||
#define CTL_DEBUG_NAME 0 /* string: variable name */
|
||||
#define CTL_DEBUG_VALUE 1 /* int: variable value */
|
||||
#define CTL_DEBUG_MAXID 20
|
||||
|
||||
#ifdef KERNEL
|
||||
#if defined(DEBUG) || defined(DIAGNOSTIC)
|
||||
/*
|
||||
* CTL_DEBUG variables.
|
||||
*
|
||||
* These are declared as separate variables so that they can be
|
||||
* individually initialized at the location of their associated
|
||||
* variable. The loader prevents multiple use by issuing errors
|
||||
* if a variable is initialized in more than one place. They are
|
||||
* aggregated into an array in debug_sysctl(), so that it can
|
||||
* conveniently locate them when querried. If more debugging
|
||||
* variables are added, they must also be declared here and also
|
||||
* entered into the array.
|
||||
*/
|
||||
struct ctldebug {
|
||||
char *debugname; /* name of debugging variable */
|
||||
int *debugvar; /* pointer to debugging variable */
|
||||
};
|
||||
extern struct ctldebug debug0, debug1, debug2, debug3, debug4;
|
||||
extern struct ctldebug debug5, debug6, debug7, debug8, debug9;
|
||||
extern struct ctldebug debug10, debug11, debug12, debug13, debug14;
|
||||
extern struct ctldebug debug15, debug16, debug17, debug18, debug19;
|
||||
#endif /* DEBUG */
|
||||
#ifdef KERNEL
|
||||
|
||||
extern char cpu_model[];
|
||||
extern char machine[];
|
||||
@ -409,8 +377,6 @@ sysctlfn dev_sysctl;
|
||||
sysctlfn fs_sysctl;
|
||||
sysctlfn hw_sysctl;
|
||||
sysctlfn net_sysctl;
|
||||
sysctlfn ntp_sysctl;
|
||||
sysctlfn vm_sysctl;
|
||||
|
||||
int sysctl_int __P((void *, size_t *, void *, size_t, int *));
|
||||
int sysctl_rdint __P((void *, size_t *, void *, int));
|
||||
|
Loading…
Reference in New Issue
Block a user