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 * $FreeBSD: head/sys/kern/kern_mib.c 76078 2001-04-27 19:28:25Z jhb $
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>
--- 132 unchanged lines hidden (view full) ---
181
182SYSCTL_PROC(_kern, KERN_SECURELVL, securelevel, CTLTYPE_INT|CTLFLAG_RW,
183 0, 0, sysctl_kern_securelvl, "I", "Current secure level");
184
185char domainname[MAXHOSTNAMELEN];
186SYSCTL_STRING(_kern, KERN_NISDOMAINNAME, domainname, CTLFLAG_RW,
187 &domainname, sizeof(domainname), "Name of the current YP/NIS domain");
188
189long hostid;
190/* Some trouble here, if sizeof (int) != sizeof (long) */
191SYSCTL_INT(_kern, KERN_HOSTID, hostid, CTLFLAG_RW, &hostid, 0, "Host ID");
192
193/*
194 * This is really cheating. These actually live in the libc, something
195 * which I'm not quite sure is a good idea anyway, but in order for
196 * getnext and friends to actually work, we define dummies here.
197 */
198SYSCTL_STRING(_user, USER_CS_PATH, cs_path, CTLFLAG_RD,
199 "", 0, "PATH that finds all the standard utilities");
--- 60 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
--- 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 * $FreeBSD: head/sys/kern/kern_mib.c 76078 2001-04-27 19:28:25Z jhb $
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>
--- 132 unchanged lines hidden (view full) ---
181
182SYSCTL_PROC(_kern, KERN_SECURELVL, securelevel, CTLTYPE_INT|CTLFLAG_RW,
183 0, 0, sysctl_kern_securelvl, "I", "Current secure level");
184
185char domainname[MAXHOSTNAMELEN];
186SYSCTL_STRING(_kern, KERN_NISDOMAINNAME, domainname, CTLFLAG_RW,
187 &domainname, sizeof(domainname), "Name of the current YP/NIS domain");
188
189long hostid;
190/* Some trouble here, if sizeof (int) != sizeof (long) */
191SYSCTL_INT(_kern, KERN_HOSTID, hostid, CTLFLAG_RW, &hostid, 0, "Host ID");
192
193/*
194 * This is really cheating. These actually live in the libc, something
195 * which I'm not quite sure is a good idea anyway, but in order for
196 * getnext and friends to actually work, we define dummies here.
197 */
198SYSCTL_STRING(_user, USER_CS_PATH, cs_path, CTLFLAG_RD,
199 "", 0, "PATH that finds all the standard utilities");
--- 60 unchanged lines hidden ---