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 116182 2003-06-11 00:56:59Z obrien $");
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
105extern int osreldate;
106SYSCTL_INT(_kern, KERN_OSRELDATE, osreldate, CTLFLAG_RD,
107 &osreldate, 0, "Operating system release date");
108
109SYSCTL_INT(_kern, KERN_MAXPROC, maxproc, CTLFLAG_RD,
110 &maxproc, 0, "Maximum number of processes");
111
112SYSCTL_INT(_kern, KERN_MAXPROCPERUID, maxprocperuid, CTLFLAG_RW,
113 &maxprocperuid, 0, "Maximum processes allowed per userid");
114
115SYSCTL_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 116182 2003-06-11 00:56:59Z obrien $");
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
105extern int osreldate;
106SYSCTL_INT(_kern, KERN_OSRELDATE, osreldate, CTLFLAG_RD,
107 &osreldate, 0, "Operating system release date");
108
109SYSCTL_INT(_kern, KERN_MAXPROC, maxproc, CTLFLAG_RD,
110 &maxproc, 0, "Maximum number of processes");
111
112SYSCTL_INT(_kern, KERN_MAXPROCPERUID, maxprocperuid, CTLFLAG_RW,
113 &maxprocperuid, 0, "Maximum processes allowed per userid");
114
115SYSCTL_INT(_kern, OID_AUTO, maxusers, CTLFLAG_RD,
--- 260 unchanged lines hidden ---