kern_mib.c (0ef1c82630b9fa5b376abcaf8721a561ae5f7c24) kern_mib.c (c6dfea0ebdd03519c549b3159be4f45f1edcf534)
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
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.22 1999/07/20 07:19:32 phk Exp $
40 * $Id: kern_mib.c,v 1.23 1999/08/08 18:42:48 phk 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>

--- 18 unchanged lines hidden (view full) ---

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");
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>

--- 18 unchanged lines hidden (view full) ---

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,
77 "p1003_1b, (see p1003_1b.h)");
78
75SYSCTL_NODE(, CTL_P1003_1B, p1003_1b, CTLFLAG_RW, 0,
76 "p1003_1b, (see p1003_1b.h)");
77
78SYSCTL_NODE(, OID_AUTO, compat, CTLFLAG_RW, 0,
79 "Compatibility code");
80
79SYSCTL_NODE(_kern, OID_AUTO, prison, CTLFLAG_RW, 0,
80 "Prison rules");
81
82SYSCTL_STRING(_kern, KERN_OSRELEASE, osrelease, CTLFLAG_RD,
83 osrelease, 0, "Operating system type");
84
85SYSCTL_INT(_kern, KERN_OSREV, osrevision, CTLFLAG_RD,
86 0, BSD, "Operating system revision");

--- 165 unchanged lines hidden ---
81SYSCTL_NODE(_kern, OID_AUTO, prison, CTLFLAG_RW, 0,
82 "Prison rules");
83
84SYSCTL_STRING(_kern, KERN_OSRELEASE, osrelease, CTLFLAG_RD,
85 osrelease, 0, "Operating system type");
86
87SYSCTL_INT(_kern, KERN_OSREV, osrevision, CTLFLAG_RD,
88 0, BSD, "Operating system revision");

--- 165 unchanged lines hidden ---