1/*-
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Mike Karels at Berkeley Software Design, Inc.
7 *
8 * Quite extensively rewritten by Poul-Henning Kamp of the FreeBSD
--- 23 unchanged lines hidden (view full) ---
32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94
40 * $Id: kern_mib.c,v 1.20 1999/05/03 23:57:21 billf Exp $
41 */
42
43#include <sys/param.h>
44#include <sys/kernel.h>
45#include <sys/systm.h>
46#include <sys/sysctl.h>
47#include <sys/proc.h>
48#include <sys/jail.h>
--- 10 unchanged lines hidden (view full) ---
59SYSCTL_NODE(, CTL_VM, vm, CTLFLAG_RW, 0,
60 "Virtual memory");
61SYSCTL_NODE(, CTL_VFS, vfs, CTLFLAG_RW, 0,
62 "File system");
63SYSCTL_NODE(, CTL_NET, net, CTLFLAG_RW, 0,
64 "Network, (see socket.h)");
65SYSCTL_NODE(, CTL_DEBUG, debug, CTLFLAG_RW, 0,
66 "Debugging");
67SYSCTL_NODE(_debug, OID_AUTO, sizeof, CTLFLAG_RW, 0,
68 "Sizeof various things");
69SYSCTL_NODE(, CTL_HW, hw, CTLFLAG_RW, 0,
70 "hardware");
71SYSCTL_NODE(, CTL_MACHDEP, machdep, CTLFLAG_RW, 0,
72 "machine dependent");
73SYSCTL_NODE(, CTL_USER, user, CTLFLAG_RW, 0,
74 "user-level");
75
76SYSCTL_NODE(, CTL_P1003_1B, p1003_1b, CTLFLAG_RW, 0,
--- 156 unchanged lines hidden (view full) ---
233SYSCTL_INT(_user, USER_POSIX2_SW_DEV, posix2_sw_dev, CTLFLAG_RD,
234 0, 0, "Whether system supports software development utilities");
235SYSCTL_INT(_user, USER_POSIX2_UPE, posix2_upe, CTLFLAG_RD,
236 0, 0, "Whether system supports the user portability utilities");
237SYSCTL_INT(_user, USER_STREAM_MAX, stream_max, CTLFLAG_RD,
238 0, 0, "Min Maximum number of streams a process may have open at one time");
239SYSCTL_INT(_user, USER_TZNAME_MAX, tzname_max, CTLFLAG_RD,
240 0, 0, "Min Maximum number of types supported for timezone names");
241
242#include <sys/vnode.h>
243SYSCTL_INT(_debug_sizeof, OID_AUTO, vnode, CTLFLAG_RD,
244 0, sizeof(struct vnode), "sizeof(struct vnode)");
245
246SYSCTL_INT(_debug_sizeof, OID_AUTO, proc, CTLFLAG_RD,
247 0, sizeof(struct proc), "sizeof(struct proc)");
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Mike Karels at Berkeley Software Design, Inc.
7 *
8 * Quite extensively rewritten by Poul-Henning Kamp of the FreeBSD
--- 23 unchanged lines hidden (view full) ---
32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94
40 * $Id: kern_mib.c,v 1.20 1999/05/03 23:57:21 billf Exp $
41 */
42
43#include <sys/param.h>
44#include <sys/kernel.h>
45#include <sys/systm.h>
46#include <sys/sysctl.h>
47#include <sys/proc.h>
48#include <sys/jail.h>
--- 10 unchanged lines hidden (view full) ---
59SYSCTL_NODE(, CTL_VM, vm, CTLFLAG_RW, 0,
60 "Virtual memory");
61SYSCTL_NODE(, CTL_VFS, vfs, CTLFLAG_RW, 0,
62 "File system");
63SYSCTL_NODE(, CTL_NET, net, CTLFLAG_RW, 0,
64 "Network, (see socket.h)");
65SYSCTL_NODE(, CTL_DEBUG, debug, CTLFLAG_RW, 0,
66 "Debugging");
67SYSCTL_NODE(_debug, OID_AUTO, sizeof, CTLFLAG_RW, 0,
68 "Sizeof various things");
69SYSCTL_NODE(, CTL_HW, hw, CTLFLAG_RW, 0,
70 "hardware");
71SYSCTL_NODE(, CTL_MACHDEP, machdep, CTLFLAG_RW, 0,
72 "machine dependent");
73SYSCTL_NODE(, CTL_USER, user, CTLFLAG_RW, 0,
74 "user-level");
75
76SYSCTL_NODE(, CTL_P1003_1B, p1003_1b, CTLFLAG_RW, 0,
--- 156 unchanged lines hidden (view full) ---
233SYSCTL_INT(_user, USER_POSIX2_SW_DEV, posix2_sw_dev, CTLFLAG_RD,
234 0, 0, "Whether system supports software development utilities");
235SYSCTL_INT(_user, USER_POSIX2_UPE, posix2_upe, CTLFLAG_RD,
236 0, 0, "Whether system supports the user portability utilities");
237SYSCTL_INT(_user, USER_STREAM_MAX, stream_max, CTLFLAG_RD,
238 0, 0, "Min Maximum number of streams a process may have open at one time");
239SYSCTL_INT(_user, USER_TZNAME_MAX, tzname_max, CTLFLAG_RD,
240 0, 0, "Min Maximum number of types supported for timezone names");
241
242#include <sys/vnode.h>
243SYSCTL_INT(_debug_sizeof, OID_AUTO, vnode, CTLFLAG_RD,
244 0, sizeof(struct vnode), "sizeof(struct vnode)");
245
246SYSCTL_INT(_debug_sizeof, OID_AUTO, proc, CTLFLAG_RD,
247 0, sizeof(struct proc), "sizeof(struct proc)");