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
--- 26 unchanged lines hidden (view full) ---
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 */
41
42#include <sys/cdefs.h>
43__FBSDID("$FreeBSD: head/sys/kern/kern_mib.c 119203 2003-08-21 14:47:08Z eivind $");
44
45#include "opt_posix.h"
46
47#include <sys/param.h>
48#include <sys/kernel.h>
49#include <sys/systm.h>
50#include <sys/sysctl.h>
51#include <sys/proc.h>
--- 45 unchanged lines hidden (view full) ---
97 0, BSD, "Operating system revision");
98
99SYSCTL_STRING(_kern, KERN_VERSION, version, CTLFLAG_RD,
100 version, 0, "Kernel version");
101
102SYSCTL_STRING(_kern, KERN_OSTYPE, ostype, CTLFLAG_RD,
103 ostype, 0, "Operating system type");
104
105/*
106 * NOTICE: The *userland* release date is available in
107 * /usr/include/osreldate.h
108 */
109extern int osreldate;
110SYSCTL_INT(_kern, KERN_OSRELDATE, osreldate, CTLFLAG_RD,
111 &osreldate, 0, "Kernel release date");
112
113SYSCTL_INT(_kern, KERN_MAXPROC, maxproc, CTLFLAG_RD,
114 &maxproc, 0, "Maximum number of processes");
115
116SYSCTL_INT(_kern, KERN_MAXPROCPERUID, maxprocperuid, CTLFLAG_RW,
117 &maxprocperuid, 0, "Maximum processes allowed per userid");
118
119SYSCTL_INT(_kern, OID_AUTO, maxusers, CTLFLAG_RD,
--- 260 unchanged lines hidden ---
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
--- 26 unchanged lines hidden (view full) ---
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 */
41
42#include <sys/cdefs.h>
43__FBSDID("$FreeBSD: head/sys/kern/kern_mib.c 119203 2003-08-21 14:47:08Z eivind $");
44
45#include "opt_posix.h"
46
47#include <sys/param.h>
48#include <sys/kernel.h>
49#include <sys/systm.h>
50#include <sys/sysctl.h>
51#include <sys/proc.h>
--- 45 unchanged lines hidden (view full) ---
97 0, BSD, "Operating system revision");
98
99SYSCTL_STRING(_kern, KERN_VERSION, version, CTLFLAG_RD,
100 version, 0, "Kernel version");
101
102SYSCTL_STRING(_kern, KERN_OSTYPE, ostype, CTLFLAG_RD,
103 ostype, 0, "Operating system type");
104
105/*
106 * NOTICE: The *userland* release date is available in
107 * /usr/include/osreldate.h
108 */
109extern int osreldate;
110SYSCTL_INT(_kern, KERN_OSRELDATE, osreldate, CTLFLAG_RD,
111 &osreldate, 0, "Kernel release date");
112
113SYSCTL_INT(_kern, KERN_MAXPROC, maxproc, CTLFLAG_RD,
114 &maxproc, 0, "Maximum number of processes");
115
116SYSCTL_INT(_kern, KERN_MAXPROCPERUID, maxprocperuid, CTLFLAG_RW,
117 &maxprocperuid, 0, "Maximum processes allowed per userid");
118
119SYSCTL_INT(_kern, OID_AUTO, maxusers, CTLFLAG_RD,
--- 260 unchanged lines hidden ---