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
--- 22 unchanged lines hidden (view full) ---
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/kern/kern_mib.c 149351 2005-08-21 18:03:31Z pjd $");
40
41#include "opt_posix.h"
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>
--- 248 unchanged lines hidden (view full) ---
296 "I", "Current secure level");
297
298char domainname[MAXHOSTNAMELEN];
299SYSCTL_STRING(_kern, KERN_NISDOMAINNAME, domainname, CTLFLAG_RW,
300 &domainname, sizeof(domainname), "Name of the current YP/NIS domain");
301
302u_long hostid;
303SYSCTL_ULONG(_kern, KERN_HOSTID, hostid, CTLFLAG_RW, &hostid, 0, "Host ID");
304
305/*
306 * This is really cheating. These actually live in the libc, something
307 * which I'm not quite sure is a good idea anyway, but in order for
308 * getnext and friends to actually work, we define dummies here.
309 */
310SYSCTL_STRING(_user, USER_CS_PATH, cs_path, CTLFLAG_RD,
311 "", 0, "PATH that finds all the standard utilities");
--- 63 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
--- 22 unchanged lines hidden (view full) ---
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * @(#)kern_sysctl.c 8.4 (Berkeley) 4/14/94
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/kern/kern_mib.c 149351 2005-08-21 18:03:31Z pjd $");
40
41#include "opt_posix.h"
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>
--- 248 unchanged lines hidden (view full) ---
296 "I", "Current secure level");
297
298char domainname[MAXHOSTNAMELEN];
299SYSCTL_STRING(_kern, KERN_NISDOMAINNAME, domainname, CTLFLAG_RW,
300 &domainname, sizeof(domainname), "Name of the current YP/NIS domain");
301
302u_long hostid;
303SYSCTL_ULONG(_kern, KERN_HOSTID, hostid, CTLFLAG_RW, &hostid, 0, "Host ID");
304
305/*
306 * This is really cheating. These actually live in the libc, something
307 * which I'm not quite sure is a good idea anyway, but in order for
308 * getnext and friends to actually work, we define dummies here.
309 */
310SYSCTL_STRING(_user, USER_CS_PATH, cs_path, CTLFLAG_RD,
311 "", 0, "PATH that finds all the standard utilities");
--- 63 unchanged lines hidden ---