kern_mib.c (cfe30d02adda7c3b5c76156ac52d50d8cab325d9) kern_mib.c (3cb6654d23c073c320b1f2c288a7a624a394b955)
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

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

256#endif
257 error = SYSCTL_OUT(req, machine_arch, sizeof(machine_arch));
258 return (error);
259
260}
261SYSCTL_PROC(_hw, HW_MACHINE_ARCH, machine_arch, CTLTYPE_STRING | CTLFLAG_RD,
262 NULL, 0, sysctl_hw_machine_arch, "A", "System architecture");
263
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

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

256#endif
257 error = SYSCTL_OUT(req, machine_arch, sizeof(machine_arch));
258 return (error);
259
260}
261SYSCTL_PROC(_hw, HW_MACHINE_ARCH, machine_arch, CTLTYPE_STRING | CTLFLAG_RD,
262 NULL, 0, sysctl_hw_machine_arch, "A", "System architecture");
263
264SYSCTL_STRING(_kern, OID_AUTO, supported_abis, CTLFLAG_RD | CTLFLAG_MPSAFE,
265#ifdef COMPAT_FREEBSD32
266 MACHINE_ARCH " " MACHINE_ARCH32, 0, "List of supported ABIs");
267#else
268 MACHINE_ARCH, 0, "List of supported ABIs");
269#endif
270
264static int
265sysctl_hostname(SYSCTL_HANDLER_ARGS)
266{
267 struct prison *pr, *cpr;
268 size_t pr_offset;
269 char tmpname[MAXHOSTNAMELEN];
270 int descend, error, len;
271

--- 271 unchanged lines hidden ---
271static int
272sysctl_hostname(SYSCTL_HANDLER_ARGS)
273{
274 struct prison *pr, *cpr;
275 size_t pr_offset;
276 char tmpname[MAXHOSTNAMELEN];
277 int descend, error, len;
278

--- 271 unchanged lines hidden ---