williamr@2
|
1 |
/*-
|
williamr@2
|
2 |
* Copyright (c) 1989, 1993
|
williamr@2
|
3 |
* The Regents of the University of California. All rights reserved.
|
williamr@2
|
4 |
*
|
williamr@2
|
5 |
* This code is derived from software contributed to Berkeley by
|
williamr@2
|
6 |
* Mike Karels at Berkeley Software Design, Inc.
|
williamr@2
|
7 |
*
|
williamr@2
|
8 |
* Redistribution and use in source and binary forms, with or without
|
williamr@2
|
9 |
* modification, are permitted provided that the following conditions
|
williamr@2
|
10 |
* are met:
|
williamr@2
|
11 |
* 1. Redistributions of source code must retain the above copyright
|
williamr@2
|
12 |
* notice, this list of conditions and the following disclaimer.
|
williamr@2
|
13 |
* 2. Redistributions in binary form must reproduce the above copyright
|
williamr@2
|
14 |
* notice, this list of conditions and the following disclaimer in the
|
williamr@2
|
15 |
* documentation and/or other materials provided with the distribution.
|
williamr@2
|
16 |
* 4. Neither the name of the University nor the names of its contributors
|
williamr@2
|
17 |
* may be used to endorse or promote products derived from this software
|
williamr@2
|
18 |
* without specific prior written permission.
|
williamr@2
|
19 |
*
|
williamr@2
|
20 |
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
williamr@2
|
21 |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
williamr@2
|
22 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
williamr@2
|
23 |
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
williamr@2
|
24 |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
williamr@2
|
25 |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
williamr@2
|
26 |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
williamr@2
|
27 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
williamr@2
|
28 |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
williamr@2
|
29 |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
williamr@2
|
30 |
* SUCH DAMAGE.
|
williamr@4
|
31 |
* © * Portions Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
|
williamr@2
|
32 |
* @(#)sysctl.h 8.1 (Berkeley) 6/2/93
|
williamr@2
|
33 |
* $FreeBSD: src/sys/sys/sysctl.h,v 1.138 2005/04/18 02:10:37 das Exp $
|
williamr@2
|
34 |
*/
|
williamr@2
|
35 |
|
williamr@2
|
36 |
#ifndef _SYS_SYSCTL_H_
|
williamr@2
|
37 |
#define _SYS_SYSCTL_H_
|
williamr@2
|
38 |
|
williamr@2
|
39 |
#include <sys/queue.h>
|
williamr@2
|
40 |
|
williamr@2
|
41 |
struct thread;
|
williamr@2
|
42 |
/*
|
williamr@2
|
43 |
* Definitions for sysctl call. The sysctl call uses a hierarchical name
|
williamr@2
|
44 |
* for objects that can be examined or modified. The name is expressed as
|
williamr@2
|
45 |
* a sequence of integers. Like a file path name, the meaning of each
|
williamr@2
|
46 |
* component depends on its place in the hierarchy. The top-level and kern
|
williamr@2
|
47 |
* identifiers are defined here, and other identifiers are defined in the
|
williamr@2
|
48 |
* respective subsystem header files.
|
williamr@2
|
49 |
*/
|
williamr@2
|
50 |
|
williamr@2
|
51 |
#define CTL_MAXNAME 24 /* largest number of components supported */
|
williamr@2
|
52 |
|
williamr@2
|
53 |
/*
|
williamr@2
|
54 |
* Each subsystem defined by sysctl defines a list of variables
|
williamr@2
|
55 |
* for that subsystem. Each name is either a node with further
|
williamr@2
|
56 |
* levels defined below it, or it is a leaf of some particular
|
williamr@2
|
57 |
* type given below. Each sysctl level defines a set of name/type
|
williamr@2
|
58 |
* pairs to be used by sysctl(8) in manipulating the subsystem.
|
williamr@2
|
59 |
*/
|
williamr@2
|
60 |
struct ctlname {
|
williamr@2
|
61 |
char *ctl_name; /* subsystem name */
|
williamr@2
|
62 |
int ctl_type; /* type of name */
|
williamr@2
|
63 |
};
|
williamr@2
|
64 |
|
williamr@2
|
65 |
#define CTLTYPE 0xf /* Mask for the type */
|
williamr@2
|
66 |
#define CTLTYPE_NODE 1 /* name is a node */
|
williamr@2
|
67 |
#define CTLTYPE_INT 2 /* name describes an integer */
|
williamr@2
|
68 |
#define CTLTYPE_STRING 3 /* name describes a string */
|
williamr@2
|
69 |
#define CTLTYPE_QUAD 4 /* name describes a 64-bit number */
|
williamr@2
|
70 |
#define CTLTYPE_OPAQUE 5 /* name describes a structure */
|
williamr@2
|
71 |
#define CTLTYPE_STRUCT CTLTYPE_OPAQUE /* name describes a structure */
|
williamr@2
|
72 |
#define CTLTYPE_UINT 6 /* name describes an unsigned integer */
|
williamr@2
|
73 |
#define CTLTYPE_LONG 7 /* name describes a long */
|
williamr@2
|
74 |
#define CTLTYPE_ULONG 8 /* name describes an unsigned long */
|
williamr@2
|
75 |
|
williamr@2
|
76 |
#define CTLFLAG_RD 0x80000000 /* Allow reads of variable */
|
williamr@2
|
77 |
#define CTLFLAG_WR 0x40000000 /* Allow writes to the variable */
|
williamr@2
|
78 |
#define CTLFLAG_RW (CTLFLAG_RD|CTLFLAG_WR)
|
williamr@2
|
79 |
#define CTLFLAG_NOLOCK 0x20000000 /* XXX Don't Lock */
|
williamr@2
|
80 |
#define CTLFLAG_ANYBODY 0x10000000 /* All users can set this var */
|
williamr@2
|
81 |
#define CTLFLAG_SECURE 0x08000000 /* Permit set only if securelevel<=0 */
|
williamr@2
|
82 |
#define CTLFLAG_PRISON 0x04000000 /* Prisoned roots can fiddle */
|
williamr@2
|
83 |
#define CTLFLAG_DYN 0x02000000 /* Dynamic oid - can be freed */
|
williamr@2
|
84 |
#define CTLFLAG_SKIP 0x01000000 /* Skip this sysctl when listing */
|
williamr@2
|
85 |
#define CTLMASK_SECURE 0x00F00000 /* Secure level */
|
williamr@2
|
86 |
#define CTLFLAG_TUN 0x00080000 /* Tunable variable */
|
williamr@2
|
87 |
#define CTLFLAG_RDTUN (CTLFLAG_RD|CTLFLAG_TUN)
|
williamr@2
|
88 |
|
williamr@2
|
89 |
/*
|
williamr@2
|
90 |
* Secure level. Note that CTLFLAG_SECURE == CTLFLAG_SECURE1.
|
williamr@2
|
91 |
*
|
williamr@2
|
92 |
* Secure when the securelevel is raised to at least N.
|
williamr@2
|
93 |
*/
|
williamr@2
|
94 |
#define CTLSHIFT_SECURE 20
|
williamr@2
|
95 |
#define CTLFLAG_SECURE1 (CTLFLAG_SECURE | (0 << CTLSHIFT_SECURE))
|
williamr@2
|
96 |
#define CTLFLAG_SECURE2 (CTLFLAG_SECURE | (1 << CTLSHIFT_SECURE))
|
williamr@2
|
97 |
#define CTLFLAG_SECURE3 (CTLFLAG_SECURE | (2 << CTLSHIFT_SECURE))
|
williamr@2
|
98 |
|
williamr@2
|
99 |
/*
|
williamr@2
|
100 |
* USE THIS instead of a hardwired number from the categories below
|
williamr@2
|
101 |
* to get dynamically assigned sysctl entries using the linker-set
|
williamr@2
|
102 |
* technology. This is the way nearly all new sysctl variables should
|
williamr@2
|
103 |
* be implemented.
|
williamr@2
|
104 |
* e.g. SYSCTL_INT(_parent, OID_AUTO, name, CTLFLAG_RW, &variable, 0, "");
|
williamr@2
|
105 |
*/
|
williamr@2
|
106 |
#define OID_AUTO (-1)
|
williamr@2
|
107 |
|
williamr@2
|
108 |
/*
|
williamr@2
|
109 |
* The starting number for dynamically-assigned entries. WARNING!
|
williamr@2
|
110 |
* ALL static sysctl entries should have numbers LESS than this!
|
williamr@2
|
111 |
*/
|
williamr@2
|
112 |
#define CTL_AUTO_START 0x100
|
williamr@2
|
113 |
|
williamr@2
|
114 |
#ifdef _KERNEL
|
williamr@2
|
115 |
#define SYSCTL_HANDLER_ARGS struct sysctl_oid *oidp, void *arg1, int arg2, \
|
williamr@2
|
116 |
struct sysctl_req *req
|
williamr@2
|
117 |
|
williamr@2
|
118 |
/* definitions for sysctl_req 'lock' member */
|
williamr@2
|
119 |
#define REQ_UNLOCKED 0 /* not locked and not wired */
|
williamr@2
|
120 |
#define REQ_LOCKED 1 /* locked and not wired */
|
williamr@2
|
121 |
#define REQ_WIRED 2 /* locked and wired */
|
williamr@2
|
122 |
|
williamr@2
|
123 |
/* definitions for sysctl_req 'flags' member */
|
williamr@2
|
124 |
#if defined(__amd64__) || defined(__ia64__)
|
williamr@2
|
125 |
#define SCTL_MASK32 1 /* 32 bit emulation */
|
williamr@2
|
126 |
#endif
|
williamr@2
|
127 |
|
williamr@2
|
128 |
/*
|
williamr@2
|
129 |
* This describes the access space for a sysctl request. This is needed
|
williamr@2
|
130 |
* so that we can use the interface from the kernel or from user-space.
|
williamr@2
|
131 |
*/
|
williamr@2
|
132 |
struct sysctl_req {
|
williamr@2
|
133 |
struct thread *td; /* used for access checking */
|
williamr@2
|
134 |
int lock; /* locking/wiring state */
|
williamr@2
|
135 |
void *oldptr;
|
williamr@2
|
136 |
size_t oldlen;
|
williamr@2
|
137 |
size_t oldidx;
|
williamr@2
|
138 |
int (*oldfunc)(struct sysctl_req *, const void *, size_t);
|
williamr@2
|
139 |
void *newptr;
|
williamr@2
|
140 |
size_t newlen;
|
williamr@2
|
141 |
size_t newidx;
|
williamr@2
|
142 |
int (*newfunc)(struct sysctl_req *, void *, size_t);
|
williamr@2
|
143 |
size_t validlen;
|
williamr@2
|
144 |
int flags;
|
williamr@2
|
145 |
};
|
williamr@2
|
146 |
|
williamr@2
|
147 |
/*
|
williamr@2
|
148 |
* This describes one "oid" in the MIB tree. Potentially more nodes can
|
williamr@2
|
149 |
* be hidden behind it, expanded by the handler.
|
williamr@2
|
150 |
*/
|
williamr@2
|
151 |
struct sysctl_oid {
|
williamr@2
|
152 |
struct sysctl_oid_list *oid_parent;
|
williamr@2
|
153 |
SLIST_ENTRY(sysctl_oid) oid_link;
|
williamr@2
|
154 |
int oid_number;
|
williamr@2
|
155 |
u_int oid_kind;
|
williamr@2
|
156 |
void *oid_arg1;
|
williamr@2
|
157 |
int oid_arg2;
|
williamr@2
|
158 |
const char *oid_name;
|
williamr@2
|
159 |
int (*oid_handler)(SYSCTL_HANDLER_ARGS);
|
williamr@2
|
160 |
const char *oid_fmt;
|
williamr@2
|
161 |
int oid_refcnt;
|
williamr@2
|
162 |
const char *oid_descr;
|
williamr@2
|
163 |
};
|
williamr@2
|
164 |
|
williamr@2
|
165 |
#define SYSCTL_IN(r, p, l) (r->newfunc)(r, p, l)
|
williamr@2
|
166 |
#define SYSCTL_OUT(r, p, l) (r->oldfunc)(r, p, l)
|
williamr@2
|
167 |
|
williamr@2
|
168 |
/* Declare a static oid to allow child oids to be added to it. */
|
williamr@2
|
169 |
#define SYSCTL_DECL(name) \
|
williamr@2
|
170 |
extern struct sysctl_oid_list sysctl_##name##_children
|
williamr@2
|
171 |
|
williamr@2
|
172 |
/* Hide these in macros */
|
williamr@2
|
173 |
#define SYSCTL_CHILDREN(oid_ptr) (struct sysctl_oid_list *) \
|
williamr@2
|
174 |
(oid_ptr)->oid_arg1
|
williamr@2
|
175 |
#define SYSCTL_CHILDREN_SET(oid_ptr, val) \
|
williamr@2
|
176 |
(oid_ptr)->oid_arg1 = (val);
|
williamr@2
|
177 |
#define SYSCTL_STATIC_CHILDREN(oid_name) \
|
williamr@2
|
178 |
(&sysctl_##oid_name##_children)
|
williamr@2
|
179 |
|
williamr@2
|
180 |
/* === Structs and macros related to context handling === */
|
williamr@2
|
181 |
|
williamr@2
|
182 |
/* All dynamically created sysctls can be tracked in a context list. */
|
williamr@2
|
183 |
struct sysctl_ctx_entry {
|
williamr@2
|
184 |
struct sysctl_oid *entry;
|
williamr@2
|
185 |
TAILQ_ENTRY(sysctl_ctx_entry) link;
|
williamr@2
|
186 |
};
|
williamr@2
|
187 |
|
williamr@2
|
188 |
#define SYSCTL_NODE_CHILDREN(parent, name) \
|
williamr@2
|
189 |
sysctl_##parent##_##name##_children
|
williamr@2
|
190 |
|
williamr@2
|
191 |
/* This constructs a "raw" MIB oid. */
|
williamr@2
|
192 |
#define SYSCTL_OID(parent, nbr, name, kind, a1, a2, handler, fmt, descr) \
|
williamr@2
|
193 |
static struct sysctl_oid sysctl__##parent##_##name = { \
|
williamr@2
|
194 |
&sysctl_##parent##_children, { 0 }, \
|
williamr@2
|
195 |
nbr, kind, a1, a2, #name, handler, fmt, 0, descr }; \
|
williamr@2
|
196 |
DATA_SET(sysctl_set, sysctl__##parent##_##name)
|
williamr@2
|
197 |
|
williamr@2
|
198 |
#define SYSCTL_ADD_OID(ctx, parent, nbr, name, kind, a1, a2, handler, fmt, descr) \
|
williamr@2
|
199 |
sysctl_add_oid(ctx, parent, nbr, name, kind, a1, a2, handler, fmt, descr)
|
williamr@2
|
200 |
|
williamr@2
|
201 |
/* This constructs a node from which other oids can hang. */
|
williamr@2
|
202 |
#define SYSCTL_NODE(parent, nbr, name, access, handler, descr) \
|
williamr@2
|
203 |
struct sysctl_oid_list SYSCTL_NODE_CHILDREN(parent, name); \
|
williamr@2
|
204 |
SYSCTL_OID(parent, nbr, name, CTLTYPE_NODE|(access), \
|
williamr@2
|
205 |
(void*)&SYSCTL_NODE_CHILDREN(parent, name), 0, handler, \
|
williamr@2
|
206 |
"N", descr)
|
williamr@2
|
207 |
|
williamr@2
|
208 |
#define SYSCTL_ADD_NODE(ctx, parent, nbr, name, access, handler, descr) \
|
williamr@2
|
209 |
sysctl_add_oid(ctx, parent, nbr, name, CTLTYPE_NODE|(access), \
|
williamr@2
|
210 |
0, 0, handler, "N", descr)
|
williamr@2
|
211 |
|
williamr@2
|
212 |
/* Oid for a string. len can be 0 to indicate '\0' termination. */
|
williamr@2
|
213 |
#define SYSCTL_STRING(parent, nbr, name, access, arg, len, descr) \
|
williamr@2
|
214 |
SYSCTL_OID(parent, nbr, name, CTLTYPE_STRING|(access), \
|
williamr@2
|
215 |
arg, len, sysctl_handle_string, "A", descr)
|
williamr@2
|
216 |
|
williamr@2
|
217 |
#define SYSCTL_ADD_STRING(ctx, parent, nbr, name, access, arg, len, descr) \
|
williamr@2
|
218 |
sysctl_add_oid(ctx, parent, nbr, name, CTLTYPE_STRING|(access), \
|
williamr@2
|
219 |
arg, len, sysctl_handle_string, "A", descr)
|
williamr@2
|
220 |
|
williamr@2
|
221 |
/* Oid for an int. If ptr is NULL, val is returned. */
|
williamr@2
|
222 |
#define SYSCTL_INT(parent, nbr, name, access, ptr, val, descr) \
|
williamr@2
|
223 |
SYSCTL_OID(parent, nbr, name, CTLTYPE_INT|(access), \
|
williamr@2
|
224 |
ptr, val, sysctl_handle_int, "I", descr)
|
williamr@2
|
225 |
|
williamr@2
|
226 |
#define SYSCTL_ADD_INT(ctx, parent, nbr, name, access, ptr, val, descr) \
|
williamr@2
|
227 |
sysctl_add_oid(ctx, parent, nbr, name, CTLTYPE_INT|(access), \
|
williamr@2
|
228 |
ptr, val, sysctl_handle_int, "I", descr)
|
williamr@2
|
229 |
|
williamr@2
|
230 |
/* Oid for an unsigned int. If ptr is NULL, val is returned. */
|
williamr@2
|
231 |
#define SYSCTL_UINT(parent, nbr, name, access, ptr, val, descr) \
|
williamr@2
|
232 |
SYSCTL_OID(parent, nbr, name, CTLTYPE_UINT|(access), \
|
williamr@2
|
233 |
ptr, val, sysctl_handle_int, "IU", descr)
|
williamr@2
|
234 |
|
williamr@2
|
235 |
#define SYSCTL_ADD_UINT(ctx, parent, nbr, name, access, ptr, val, descr) \
|
williamr@2
|
236 |
sysctl_add_oid(ctx, parent, nbr, name, CTLTYPE_UINT|(access), \
|
williamr@2
|
237 |
ptr, val, sysctl_handle_int, "IU", descr)
|
williamr@2
|
238 |
|
williamr@2
|
239 |
/* Oid for a long. The pointer must be non NULL. */
|
williamr@2
|
240 |
#define SYSCTL_LONG(parent, nbr, name, access, ptr, val, descr) \
|
williamr@2
|
241 |
SYSCTL_OID(parent, nbr, name, CTLTYPE_LONG|(access), \
|
williamr@2
|
242 |
ptr, val, sysctl_handle_long, "L", descr)
|
williamr@2
|
243 |
|
williamr@2
|
244 |
#define SYSCTL_ADD_LONG(ctx, parent, nbr, name, access, ptr, descr) \
|
williamr@2
|
245 |
sysctl_add_oid(ctx, parent, nbr, name, CTLTYPE_LONG|(access), \
|
williamr@2
|
246 |
ptr, 0, sysctl_handle_long, "L", descr)
|
williamr@2
|
247 |
|
williamr@2
|
248 |
/* Oid for an unsigned long. The pointer must be non NULL. */
|
williamr@2
|
249 |
#define SYSCTL_ULONG(parent, nbr, name, access, ptr, val, descr) \
|
williamr@2
|
250 |
SYSCTL_OID(parent, nbr, name, CTLTYPE_ULONG|(access), \
|
williamr@2
|
251 |
ptr, val, sysctl_handle_long, "LU", descr)
|
williamr@2
|
252 |
|
williamr@2
|
253 |
#define SYSCTL_ADD_ULONG(ctx, parent, nbr, name, access, ptr, descr) \
|
williamr@2
|
254 |
sysctl_add_oid(ctx, parent, nbr, name, CTLTYPE_ULONG|(access), \
|
williamr@2
|
255 |
ptr, 0, sysctl_handle_long, "LU", descr)
|
williamr@2
|
256 |
|
williamr@2
|
257 |
/* Oid for an opaque object. Specified by a pointer and a length. */
|
williamr@2
|
258 |
#define SYSCTL_OPAQUE(parent, nbr, name, access, ptr, len, fmt, descr) \
|
williamr@2
|
259 |
SYSCTL_OID(parent, nbr, name, CTLTYPE_OPAQUE|(access), \
|
williamr@2
|
260 |
ptr, len, sysctl_handle_opaque, fmt, descr)
|
williamr@2
|
261 |
|
williamr@2
|
262 |
#define SYSCTL_ADD_OPAQUE(ctx, parent, nbr, name, access, ptr, len, fmt, descr)\
|
williamr@2
|
263 |
sysctl_add_oid(ctx, parent, nbr, name, CTLTYPE_OPAQUE|(access), \
|
williamr@2
|
264 |
ptr, len, sysctl_handle_opaque, fmt, descr)
|
williamr@2
|
265 |
|
williamr@2
|
266 |
/* Oid for a struct. Specified by a pointer and a type. */
|
williamr@2
|
267 |
#define SYSCTL_STRUCT(parent, nbr, name, access, ptr, type, descr) \
|
williamr@2
|
268 |
SYSCTL_OID(parent, nbr, name, CTLTYPE_OPAQUE|(access), \
|
williamr@2
|
269 |
ptr, sizeof(struct type), sysctl_handle_opaque, \
|
williamr@2
|
270 |
"S," #type, descr)
|
williamr@2
|
271 |
|
williamr@2
|
272 |
#define SYSCTL_ADD_STRUCT(ctx, parent, nbr, name, access, ptr, type, descr) \
|
williamr@2
|
273 |
sysctl_add_oid(ctx, parent, nbr, name, CTLTYPE_OPAQUE|(access), \
|
williamr@2
|
274 |
ptr, sizeof(struct type), sysctl_handle_opaque, "S," #type, descr)
|
williamr@2
|
275 |
|
williamr@2
|
276 |
/* Oid for a procedure. Specified by a pointer and an arg. */
|
williamr@2
|
277 |
#define SYSCTL_PROC(parent, nbr, name, access, ptr, arg, handler, fmt, descr) \
|
williamr@2
|
278 |
SYSCTL_OID(parent, nbr, name, (access), \
|
williamr@2
|
279 |
ptr, arg, handler, fmt, descr)
|
williamr@2
|
280 |
|
williamr@2
|
281 |
#define SYSCTL_ADD_PROC(ctx, parent, nbr, name, access, ptr, arg, handler, fmt, descr) \
|
williamr@2
|
282 |
sysctl_add_oid(ctx, parent, nbr, name, (access), \
|
williamr@2
|
283 |
ptr, arg, handler, fmt, descr)
|
williamr@2
|
284 |
|
williamr@2
|
285 |
#endif /* _KERNEL */
|
williamr@2
|
286 |
|
williamr@2
|
287 |
/*
|
williamr@2
|
288 |
* Top-level identifiers
|
williamr@2
|
289 |
*/
|
williamr@2
|
290 |
#define CTL_UNSPEC 0 /* unused */
|
williamr@2
|
291 |
#define CTL_KERN 1 /* "high kernel": proc, limits */
|
williamr@2
|
292 |
#define CTL_VM 2 /* virtual memory */
|
williamr@2
|
293 |
#define CTL_VFS 3 /* filesystem, mount type is next */
|
williamr@2
|
294 |
#define CTL_NET 4 /* network, see socket.h */
|
williamr@2
|
295 |
#define CTL_DEBUG 5 /* debugging parameters */
|
williamr@2
|
296 |
#define CTL_HW 6 /* generic cpu/io */
|
williamr@2
|
297 |
#define CTL_MACHDEP 7 /* machine dependent */
|
williamr@2
|
298 |
#define CTL_USER 8 /* user-level */
|
williamr@2
|
299 |
#define CTL_P1003_1B 9 /* POSIX 1003.1B */
|
williamr@2
|
300 |
#define CTL_MAXID 10 /* number of valid top-level ids */
|
williamr@2
|
301 |
|
williamr@2
|
302 |
#define CTL_NAMES { \
|
williamr@2
|
303 |
{ 0, 0 }, \
|
williamr@2
|
304 |
{ "kern", CTLTYPE_NODE }, \
|
williamr@2
|
305 |
{ "vm", CTLTYPE_NODE }, \
|
williamr@2
|
306 |
{ "vfs", CTLTYPE_NODE }, \
|
williamr@2
|
307 |
{ "net", CTLTYPE_NODE }, \
|
williamr@2
|
308 |
{ "debug", CTLTYPE_NODE }, \
|
williamr@2
|
309 |
{ "hw", CTLTYPE_NODE }, \
|
williamr@2
|
310 |
{ "machdep", CTLTYPE_NODE }, \
|
williamr@2
|
311 |
{ "user", CTLTYPE_NODE }, \
|
williamr@2
|
312 |
{ "p1003_1b", CTLTYPE_NODE }, \
|
williamr@2
|
313 |
}
|
williamr@2
|
314 |
|
williamr@2
|
315 |
/*
|
williamr@2
|
316 |
* CTL_KERN identifiers
|
williamr@2
|
317 |
*/
|
williamr@2
|
318 |
#define KERN_OSTYPE 1 /* string: system version */
|
williamr@2
|
319 |
#define KERN_OSRELEASE 2 /* string: system release */
|
williamr@2
|
320 |
#define KERN_OSREV 3 /* int: system revision */
|
williamr@2
|
321 |
#define KERN_VERSION 4 /* string: compile time info */
|
williamr@2
|
322 |
#define KERN_MAXVNODES 5 /* int: max vnodes */
|
williamr@2
|
323 |
#define KERN_MAXPROC 6 /* int: max processes */
|
williamr@2
|
324 |
#define KERN_MAXFILES 7 /* int: max open files */
|
williamr@2
|
325 |
#define KERN_ARGMAX 8 /* int: max arguments to exec */
|
williamr@2
|
326 |
#define KERN_SECURELVL 9 /* int: system security level */
|
williamr@2
|
327 |
#define KERN_HOSTNAME 10 /* string: hostname */
|
williamr@2
|
328 |
#define KERN_HOSTID 11 /* int: host identifier */
|
williamr@2
|
329 |
#define KERN_CLOCKRATE 12 /* struct: struct clockrate */
|
williamr@2
|
330 |
#define KERN_VNODE 13 /* struct: vnode structures */
|
williamr@2
|
331 |
#define KERN_PROC 14 /* struct: process entries */
|
williamr@2
|
332 |
#define KERN_FILE 15 /* struct: file entries */
|
williamr@2
|
333 |
#define KERN_PROF 16 /* node: kernel profiling info */
|
williamr@2
|
334 |
#define KERN_POSIX1 17 /* int: POSIX.1 version */
|
williamr@2
|
335 |
#define KERN_NGROUPS 18 /* int: # of supplemental group ids */
|
williamr@2
|
336 |
#define KERN_JOB_CONTROL 19 /* int: is job control available */
|
williamr@2
|
337 |
#define KERN_SAVED_IDS 20 /* int: saved set-user/group-ID */
|
williamr@2
|
338 |
#define KERN_BOOTTIME 21 /* struct: time kernel was booted */
|
williamr@2
|
339 |
#define KERN_NISDOMAINNAME 22 /* string: YP domain name */
|
williamr@2
|
340 |
#define KERN_UPDATEINTERVAL 23 /* int: update process sleep time */
|
williamr@2
|
341 |
#define KERN_OSRELDATE 24 /* int: kernel release date */
|
williamr@2
|
342 |
#define KERN_NTP_PLL 25 /* node: NTP PLL control */
|
williamr@2
|
343 |
#define KERN_BOOTFILE 26 /* string: name of booted kernel */
|
williamr@2
|
344 |
#define KERN_MAXFILESPERPROC 27 /* int: max open files per proc */
|
williamr@2
|
345 |
#define KERN_MAXPROCPERUID 28 /* int: max processes per uid */
|
williamr@2
|
346 |
#define KERN_DUMPDEV 29 /* struct cdev *: device to dump on */
|
williamr@2
|
347 |
#define KERN_IPC 30 /* node: anything related to IPC */
|
williamr@2
|
348 |
#define KERN_DUMMY 31 /* unused */
|
williamr@2
|
349 |
#define KERN_PS_STRINGS 32 /* int: address of PS_STRINGS */
|
williamr@2
|
350 |
#define KERN_USRSTACK 33 /* int: address of USRSTACK */
|
williamr@2
|
351 |
#define KERN_LOGSIGEXIT 34 /* int: do we log sigexit procs? */
|
williamr@2
|
352 |
#define KERN_IOV_MAX 35 /* int: value of UIO_MAXIOV */
|
williamr@2
|
353 |
#define KERN_MAXID 36 /* number of valid kern ids */
|
williamr@2
|
354 |
|
williamr@2
|
355 |
#define CTL_KERN_NAMES { \
|
williamr@2
|
356 |
{ 0, 0 }, \
|
williamr@2
|
357 |
{ "ostype", CTLTYPE_STRING }, \
|
williamr@2
|
358 |
{ "osrelease", CTLTYPE_STRING }, \
|
williamr@2
|
359 |
{ "osrevision", CTLTYPE_INT }, \
|
williamr@2
|
360 |
{ "version", CTLTYPE_STRING }, \
|
williamr@2
|
361 |
{ "maxvnodes", CTLTYPE_INT }, \
|
williamr@2
|
362 |
{ "maxproc", CTLTYPE_INT }, \
|
williamr@2
|
363 |
{ "maxfiles", CTLTYPE_INT }, \
|
williamr@2
|
364 |
{ "argmax", CTLTYPE_INT }, \
|
williamr@2
|
365 |
{ "securelevel", CTLTYPE_INT }, \
|
williamr@2
|
366 |
{ "hostname", CTLTYPE_STRING }, \
|
williamr@2
|
367 |
{ "hostid", CTLTYPE_UINT }, \
|
williamr@2
|
368 |
{ "clockrate", CTLTYPE_STRUCT }, \
|
williamr@2
|
369 |
{ "vnode", CTLTYPE_STRUCT }, \
|
williamr@2
|
370 |
{ "proc", CTLTYPE_STRUCT }, \
|
williamr@2
|
371 |
{ "file", CTLTYPE_STRUCT }, \
|
williamr@2
|
372 |
{ "profiling", CTLTYPE_NODE }, \
|
williamr@2
|
373 |
{ "posix1version", CTLTYPE_INT }, \
|
williamr@2
|
374 |
{ "ngroups", CTLTYPE_INT }, \
|
williamr@2
|
375 |
{ "job_control", CTLTYPE_INT }, \
|
williamr@2
|
376 |
{ "saved_ids", CTLTYPE_INT }, \
|
williamr@2
|
377 |
{ "boottime", CTLTYPE_STRUCT }, \
|
williamr@2
|
378 |
{ "nisdomainname", CTLTYPE_STRING }, \
|
williamr@2
|
379 |
{ "update", CTLTYPE_INT }, \
|
williamr@2
|
380 |
{ "osreldate", CTLTYPE_INT }, \
|
williamr@2
|
381 |
{ "ntp_pll", CTLTYPE_NODE }, \
|
williamr@2
|
382 |
{ "bootfile", CTLTYPE_STRING }, \
|
williamr@2
|
383 |
{ "maxfilesperproc", CTLTYPE_INT }, \
|
williamr@2
|
384 |
{ "maxprocperuid", CTLTYPE_INT }, \
|
williamr@2
|
385 |
{ "ipc", CTLTYPE_NODE }, \
|
williamr@2
|
386 |
{ "dummy", CTLTYPE_INT }, \
|
williamr@2
|
387 |
{ "ps_strings", CTLTYPE_INT }, \
|
williamr@2
|
388 |
{ "usrstack", CTLTYPE_INT }, \
|
williamr@2
|
389 |
{ "logsigexit", CTLTYPE_INT }, \
|
williamr@2
|
390 |
{ "iov_max", CTLTYPE_INT }, \
|
williamr@2
|
391 |
}
|
williamr@2
|
392 |
|
williamr@2
|
393 |
/*
|
williamr@2
|
394 |
* CTL_VFS identifiers
|
williamr@2
|
395 |
*/
|
williamr@2
|
396 |
#define CTL_VFS_NAMES { \
|
williamr@2
|
397 |
{ "vfsconf", CTLTYPE_STRUCT }, \
|
williamr@2
|
398 |
}
|
williamr@2
|
399 |
|
williamr@2
|
400 |
/*
|
williamr@2
|
401 |
* KERN_PROC subtypes
|
williamr@2
|
402 |
*/
|
williamr@2
|
403 |
#define KERN_PROC_ALL 0 /* everything */
|
williamr@2
|
404 |
#define KERN_PROC_PID 1 /* by process id */
|
williamr@2
|
405 |
#define KERN_PROC_PGRP 2 /* by process group id */
|
williamr@2
|
406 |
#define KERN_PROC_SESSION 3 /* by session of pid */
|
williamr@2
|
407 |
#define KERN_PROC_TTY 4 /* by controlling tty */
|
williamr@2
|
408 |
#define KERN_PROC_UID 5 /* by effective uid */
|
williamr@2
|
409 |
#define KERN_PROC_RUID 6 /* by real uid */
|
williamr@2
|
410 |
#define KERN_PROC_ARGS 7 /* get/set arguments/proctitle */
|
williamr@2
|
411 |
#define KERN_PROC_PROC 8 /* only return procs */
|
williamr@2
|
412 |
#define KERN_PROC_SV_NAME 9 /* get syscall vector name */
|
williamr@2
|
413 |
#define KERN_PROC_RGID 10 /* by real group id */
|
williamr@2
|
414 |
#define KERN_PROC_GID 11 /* by effective group id */
|
williamr@2
|
415 |
#define KERN_PROC_PATHNAME 12 /* path to executable */
|
williamr@2
|
416 |
#define KERN_PROC_INC_THREAD 0x10 /*
|
williamr@2
|
417 |
* modifier for pid, pgrp, tty,
|
williamr@2
|
418 |
* uid, ruid, gid, rgid and proc
|
williamr@2
|
419 |
*/
|
williamr@2
|
420 |
|
williamr@2
|
421 |
/*
|
williamr@2
|
422 |
* KERN_IPC identifiers
|
williamr@2
|
423 |
*/
|
williamr@2
|
424 |
#define KIPC_MAXSOCKBUF 1 /* int: max size of a socket buffer */
|
williamr@2
|
425 |
#define KIPC_SOCKBUF_WASTE 2 /* int: wastage factor in sockbuf */
|
williamr@2
|
426 |
#define KIPC_SOMAXCONN 3 /* int: max length of connection q */
|
williamr@2
|
427 |
#define KIPC_MAX_LINKHDR 4 /* int: max length of link header */
|
williamr@2
|
428 |
#define KIPC_MAX_PROTOHDR 5 /* int: max length of network header */
|
williamr@2
|
429 |
#define KIPC_MAX_HDR 6 /* int: max total length of headers */
|
williamr@2
|
430 |
#define KIPC_MAX_DATALEN 7 /* int: max length of data? */
|
williamr@2
|
431 |
|
williamr@2
|
432 |
/*
|
williamr@2
|
433 |
* CTL_HW identifiers
|
williamr@2
|
434 |
*/
|
williamr@2
|
435 |
#define HW_MACHINE 1 /* string: machine class */
|
williamr@2
|
436 |
#define HW_MODEL 2 /* string: specific machine model */
|
williamr@2
|
437 |
#define HW_NCPU 3 /* int: number of cpus */
|
williamr@2
|
438 |
#define HW_BYTEORDER 4 /* int: machine byte order */
|
williamr@2
|
439 |
#define HW_PHYSMEM 5 /* int: total memory */
|
williamr@2
|
440 |
#define HW_USERMEM 6 /* int: non-kernel memory */
|
williamr@2
|
441 |
#define HW_PAGESIZE 7 /* int: software page size */
|
williamr@2
|
442 |
#define HW_DISKNAMES 8 /* strings: disk drive names */
|
williamr@2
|
443 |
#define HW_DISKSTATS 9 /* struct: diskstats[] */
|
williamr@2
|
444 |
#define HW_FLOATINGPT 10 /* int: has HW floating point? */
|
williamr@2
|
445 |
#define HW_MACHINE_ARCH 11 /* string: machine architecture */
|
williamr@2
|
446 |
#define HW_REALMEM 12 /* int: 'real' memory */
|
williamr@2
|
447 |
#define HW_MAXID 13 /* number of valid hw ids */
|
williamr@2
|
448 |
|
williamr@2
|
449 |
#define CTL_HW_NAMES { \
|
williamr@2
|
450 |
{ 0, 0 }, \
|
williamr@2
|
451 |
{ "machine", CTLTYPE_STRING }, \
|
williamr@2
|
452 |
{ "model", CTLTYPE_STRING }, \
|
williamr@2
|
453 |
{ "ncpu", CTLTYPE_INT }, \
|
williamr@2
|
454 |
{ "byteorder", CTLTYPE_INT }, \
|
williamr@2
|
455 |
{ "physmem", CTLTYPE_ULONG }, \
|
williamr@2
|
456 |
{ "usermem", CTLTYPE_ULONG }, \
|
williamr@2
|
457 |
{ "pagesize", CTLTYPE_INT }, \
|
williamr@2
|
458 |
{ "disknames", CTLTYPE_STRUCT }, \
|
williamr@2
|
459 |
{ "diskstats", CTLTYPE_STRUCT }, \
|
williamr@2
|
460 |
{ "floatingpoint", CTLTYPE_INT }, \
|
williamr@2
|
461 |
{ "realmem", CTLTYPE_ULONG }, \
|
williamr@2
|
462 |
}
|
williamr@2
|
463 |
|
williamr@2
|
464 |
/*
|
williamr@2
|
465 |
* CTL_USER definitions
|
williamr@2
|
466 |
*/
|
williamr@2
|
467 |
#define USER_CS_PATH 1 /* string: _CS_PATH */
|
williamr@2
|
468 |
#define USER_BC_BASE_MAX 2 /* int: BC_BASE_MAX */
|
williamr@2
|
469 |
#define USER_BC_DIM_MAX 3 /* int: BC_DIM_MAX */
|
williamr@2
|
470 |
#define USER_BC_SCALE_MAX 4 /* int: BC_SCALE_MAX */
|
williamr@2
|
471 |
#define USER_BC_STRING_MAX 5 /* int: BC_STRING_MAX */
|
williamr@2
|
472 |
#define USER_COLL_WEIGHTS_MAX 6 /* int: COLL_WEIGHTS_MAX */
|
williamr@2
|
473 |
#define USER_EXPR_NEST_MAX 7 /* int: EXPR_NEST_MAX */
|
williamr@2
|
474 |
#define USER_LINE_MAX 8 /* int: LINE_MAX */
|
williamr@2
|
475 |
#define USER_RE_DUP_MAX 9 /* int: RE_DUP_MAX */
|
williamr@2
|
476 |
#define USER_POSIX2_VERSION 10 /* int: POSIX2_VERSION */
|
williamr@2
|
477 |
#define USER_POSIX2_C_BIND 11 /* int: POSIX2_C_BIND */
|
williamr@2
|
478 |
#define USER_POSIX2_C_DEV 12 /* int: POSIX2_C_DEV */
|
williamr@2
|
479 |
#define USER_POSIX2_CHAR_TERM 13 /* int: POSIX2_CHAR_TERM */
|
williamr@2
|
480 |
#define USER_POSIX2_FORT_DEV 14 /* int: POSIX2_FORT_DEV */
|
williamr@2
|
481 |
#define USER_POSIX2_FORT_RUN 15 /* int: POSIX2_FORT_RUN */
|
williamr@2
|
482 |
#define USER_POSIX2_LOCALEDEF 16 /* int: POSIX2_LOCALEDEF */
|
williamr@2
|
483 |
#define USER_POSIX2_SW_DEV 17 /* int: POSIX2_SW_DEV */
|
williamr@2
|
484 |
#define USER_POSIX2_UPE 18 /* int: POSIX2_UPE */
|
williamr@2
|
485 |
#define USER_STREAM_MAX 19 /* int: POSIX2_STREAM_MAX */
|
williamr@2
|
486 |
#define USER_TZNAME_MAX 20 /* int: POSIX2_TZNAME_MAX */
|
williamr@2
|
487 |
#define USER_MAXID 21 /* number of valid user ids */
|
williamr@2
|
488 |
|
williamr@2
|
489 |
#define CTL_USER_NAMES { \
|
williamr@2
|
490 |
{ 0, 0 }, \
|
williamr@2
|
491 |
{ "cs_path", CTLTYPE_STRING }, \
|
williamr@2
|
492 |
{ "bc_base_max", CTLTYPE_INT }, \
|
williamr@2
|
493 |
{ "bc_dim_max", CTLTYPE_INT }, \
|
williamr@2
|
494 |
{ "bc_scale_max", CTLTYPE_INT }, \
|
williamr@2
|
495 |
{ "bc_string_max", CTLTYPE_INT }, \
|
williamr@2
|
496 |
{ "coll_weights_max", CTLTYPE_INT }, \
|
williamr@2
|
497 |
{ "expr_nest_max", CTLTYPE_INT }, \
|
williamr@2
|
498 |
{ "line_max", CTLTYPE_INT }, \
|
williamr@2
|
499 |
{ "re_dup_max", CTLTYPE_INT }, \
|
williamr@2
|
500 |
{ "posix2_version", CTLTYPE_INT }, \
|
williamr@2
|
501 |
{ "posix2_c_bind", CTLTYPE_INT }, \
|
williamr@2
|
502 |
{ "posix2_c_dev", CTLTYPE_INT }, \
|
williamr@2
|
503 |
{ "posix2_char_term", CTLTYPE_INT }, \
|
williamr@2
|
504 |
{ "posix2_fort_dev", CTLTYPE_INT }, \
|
williamr@2
|
505 |
{ "posix2_fort_run", CTLTYPE_INT }, \
|
williamr@2
|
506 |
{ "posix2_localedef", CTLTYPE_INT }, \
|
williamr@2
|
507 |
{ "posix2_sw_dev", CTLTYPE_INT }, \
|
williamr@2
|
508 |
{ "posix2_upe", CTLTYPE_INT }, \
|
williamr@2
|
509 |
{ "stream_max", CTLTYPE_INT }, \
|
williamr@2
|
510 |
{ "tzname_max", CTLTYPE_INT }, \
|
williamr@2
|
511 |
}
|
williamr@2
|
512 |
|
williamr@2
|
513 |
#define CTL_P1003_1B_ASYNCHRONOUS_IO 1 /* boolean */
|
williamr@2
|
514 |
#define CTL_P1003_1B_MAPPED_FILES 2 /* boolean */
|
williamr@2
|
515 |
#define CTL_P1003_1B_MEMLOCK 3 /* boolean */
|
williamr@2
|
516 |
#define CTL_P1003_1B_MEMLOCK_RANGE 4 /* boolean */
|
williamr@2
|
517 |
#define CTL_P1003_1B_MEMORY_PROTECTION 5 /* boolean */
|
williamr@2
|
518 |
#define CTL_P1003_1B_MESSAGE_PASSING 6 /* boolean */
|
williamr@2
|
519 |
#define CTL_P1003_1B_PRIORITIZED_IO 7 /* boolean */
|
williamr@2
|
520 |
#define CTL_P1003_1B_PRIORITY_SCHEDULING 8 /* boolean */
|
williamr@2
|
521 |
#define CTL_P1003_1B_REALTIME_SIGNALS 9 /* boolean */
|
williamr@2
|
522 |
#define CTL_P1003_1B_SEMAPHORES 10 /* boolean */
|
williamr@2
|
523 |
#define CTL_P1003_1B_FSYNC 11 /* boolean */
|
williamr@2
|
524 |
#define CTL_P1003_1B_SHARED_MEMORY_OBJECTS 12 /* boolean */
|
williamr@2
|
525 |
#define CTL_P1003_1B_SYNCHRONIZED_IO 13 /* boolean */
|
williamr@2
|
526 |
#define CTL_P1003_1B_TIMERS 14 /* boolean */
|
williamr@2
|
527 |
#define CTL_P1003_1B_AIO_LISTIO_MAX 15 /* int */
|
williamr@2
|
528 |
#define CTL_P1003_1B_AIO_MAX 16 /* int */
|
williamr@2
|
529 |
#define CTL_P1003_1B_AIO_PRIO_DELTA_MAX 17 /* int */
|
williamr@2
|
530 |
#define CTL_P1003_1B_DELAYTIMER_MAX 18 /* int */
|
williamr@2
|
531 |
#define CTL_P1003_1B_MQ_OPEN_MAX 19 /* int */
|
williamr@2
|
532 |
#define CTL_P1003_1B_PAGESIZE 20 /* int */
|
williamr@2
|
533 |
#define CTL_P1003_1B_RTSIG_MAX 21 /* int */
|
williamr@2
|
534 |
#define CTL_P1003_1B_SEM_NSEMS_MAX 22 /* int */
|
williamr@2
|
535 |
#define CTL_P1003_1B_SEM_VALUE_MAX 23 /* int */
|
williamr@2
|
536 |
#define CTL_P1003_1B_SIGQUEUE_MAX 24 /* int */
|
williamr@2
|
537 |
#define CTL_P1003_1B_TIMER_MAX 25 /* int */
|
williamr@2
|
538 |
|
williamr@2
|
539 |
#define CTL_P1003_1B_MAXID 26
|
williamr@2
|
540 |
|
williamr@2
|
541 |
#define CTL_P1003_1B_NAMES { \
|
williamr@2
|
542 |
{ 0, 0 }, \
|
williamr@2
|
543 |
{ "asynchronous_io", CTLTYPE_INT }, \
|
williamr@2
|
544 |
{ "mapped_files", CTLTYPE_INT }, \
|
williamr@2
|
545 |
{ "memlock", CTLTYPE_INT }, \
|
williamr@2
|
546 |
{ "memlock_range", CTLTYPE_INT }, \
|
williamr@2
|
547 |
{ "memory_protection", CTLTYPE_INT }, \
|
williamr@2
|
548 |
{ "message_passing", CTLTYPE_INT }, \
|
williamr@2
|
549 |
{ "prioritized_io", CTLTYPE_INT }, \
|
williamr@2
|
550 |
{ "priority_scheduling", CTLTYPE_INT }, \
|
williamr@2
|
551 |
{ "realtime_signals", CTLTYPE_INT }, \
|
williamr@2
|
552 |
{ "semaphores", CTLTYPE_INT }, \
|
williamr@2
|
553 |
{ "fsync", CTLTYPE_INT }, \
|
williamr@2
|
554 |
{ "shared_memory_objects", CTLTYPE_INT }, \
|
williamr@2
|
555 |
{ "synchronized_io", CTLTYPE_INT }, \
|
williamr@2
|
556 |
{ "timers", CTLTYPE_INT }, \
|
williamr@2
|
557 |
{ "aio_listio_max", CTLTYPE_INT }, \
|
williamr@2
|
558 |
{ "aio_max", CTLTYPE_INT }, \
|
williamr@2
|
559 |
{ "aio_prio_delta_max", CTLTYPE_INT }, \
|
williamr@2
|
560 |
{ "delaytimer_max", CTLTYPE_INT }, \
|
williamr@2
|
561 |
{ "mq_open_max", CTLTYPE_INT }, \
|
williamr@2
|
562 |
{ "pagesize", CTLTYPE_INT }, \
|
williamr@2
|
563 |
{ "rtsig_max", CTLTYPE_INT }, \
|
williamr@2
|
564 |
{ "nsems_max", CTLTYPE_INT }, \
|
williamr@2
|
565 |
{ "sem_value_max", CTLTYPE_INT }, \
|
williamr@2
|
566 |
{ "sigqueue_max", CTLTYPE_INT }, \
|
williamr@2
|
567 |
{ "timer_max", CTLTYPE_INT }, \
|
williamr@2
|
568 |
}
|
williamr@2
|
569 |
|
williamr@2
|
570 |
#ifdef _KERNEL
|
williamr@2
|
571 |
|
williamr@2
|
572 |
/*
|
williamr@2
|
573 |
* Declare some common oids.
|
williamr@2
|
574 |
*/
|
williamr@2
|
575 |
extern struct sysctl_oid_list sysctl__children;
|
williamr@2
|
576 |
|
williamr@2
|
577 |
extern char machine[];
|
williamr@2
|
578 |
extern char osrelease[];
|
williamr@2
|
579 |
extern char ostype[];
|
williamr@2
|
580 |
extern char kern_ident[];
|
williamr@2
|
581 |
|
williamr@2
|
582 |
|
williamr@2
|
583 |
#endif /* _KERNEL */
|
williamr@2
|
584 |
|
williamr@2
|
585 |
#endif /* !_SYS_SYSCTL_H_ */
|