aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-11-12 06:43:28 +0000
committerBruce Evans <bde@FreeBSD.org>1995-11-12 06:43:28 +0000
commitd2d3e8751c3b7831f7064ccf400978b75b696547 (patch)
tree2f26975a8fd164c9658b820d74c731c86cbb9e18 /sys/kern/kern_sysctl.c
parent2f1ba63ba85a5689771dc1294c47ecef2c2c9a23 (diff)
downloadsrc-d2d3e8751c3b7831f7064ccf400978b75b696547.tar.gz
src-d2d3e8751c3b7831f7064ccf400978b75b696547.zip
Included <sys/sysproto.h> to get central declarations for syscall args
structs and prototypes for syscalls. Ifdefed duplicated decentralized declarations of args structs. It's convenient to have this visible but they are hard to maintain. Some are already different from the central declarations. 4.4lite2 puts them in comments in the function headers but I wanted to avoid the large changes for that.
Notes
Notes: svn path=/head/; revision=12221
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 89a0d83345ad..d8485b3bd3db 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94
- * $Id: kern_sysctl.c,v 1.35 1995/11/10 16:22:41 phk Exp $
+ * $Id: kern_sysctl.c,v 1.36 1995/11/11 00:09:21 bde Exp $
*/
/*
@@ -43,6 +43,7 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/sysproto.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/proc.h>
@@ -438,6 +439,7 @@ found:
return (i);
}
+#ifndef _SYS_SYSPROTO_H_
struct sysctl_args {
int *name;
u_int namelen;
@@ -446,6 +448,7 @@ struct sysctl_args {
void *new;
size_t newlen;
};
+#endif
int
__sysctl(p, uap, retval)
@@ -1185,12 +1188,14 @@ struct {
*/
char bsdi_strings[80]; /* It had better be less than this! */
+#ifndef _SYS_SYSPROTO_H_
struct getkerninfo_args {
int op;
char *where;
int *size;
int arg;
};
+#endif
int
ogetkerninfo(p, uap, retval)