Deleted Added
sdiff udiff text old ( 169727 ) new ( 170071 )
full compact
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 170071 2007-05-28 20:41:10Z imp $");
40
41#include "opt_posix.h"
42#include "opt_config.h"
43
44#include <sys/param.h>
45#include <sys/kernel.h>
46#include <sys/sbuf.h>
47#include <sys/systm.h>

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

311
312#ifdef INCLUDE_CONFIG_FILE
313/* Actual kernel configuration options. */
314extern char kernconfstring[];
315
316static int
317sysctl_kern_config(SYSCTL_HANDLER_ARGS)
318{
319 return (sysctl_handle_string(oidp, kernconfstring,
320 strlen(kernconfstring), req));
321}
322
323SYSCTL_PROC(_kern, OID_AUTO, conftxt, CTLTYPE_STRING|CTLFLAG_RW,
324 0, 0, sysctl_kern_config, "", "Kernel configuration file");
325#endif
326
327char domainname[MAXHOSTNAMELEN];
328SYSCTL_STRING(_kern, KERN_NISDOMAINNAME, domainname, CTLFLAG_RW,
329 &domainname, sizeof(domainname), "Name of the current YP/NIS domain");
330

--- 76 unchanged lines hidden ---