Module Name:    src
Committed By:   matt
Date:           Thu Mar  7 18:02:55 UTC 2013

Modified Files:
        src/sys/kern: init_sysctl.c

Log Message:
Add a kern.configname sysctl object.


To generate a diff of this commit:
cvs rdiff -u -r1.195 -r1.196 src/sys/kern/init_sysctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/init_sysctl.c
diff -u src/sys/kern/init_sysctl.c:1.195 src/sys/kern/init_sysctl.c:1.196
--- src/sys/kern/init_sysctl.c:1.195	Thu Feb 21 01:39:55 2013
+++ src/sys/kern/init_sysctl.c	Thu Mar  7 18:02:54 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: init_sysctl.c,v 1.195 2013/02/21 01:39:55 pgoyette Exp $ */
+/*	$NetBSD: init_sysctl.c,v 1.196 2013/03/07 18:02:54 matt Exp $ */
 
 /*-
  * Copyright (c) 2003, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.195 2013/02/21 01:39:55 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.196 2013/03/07 18:02:54 matt Exp $");
 
 #include "opt_sysv.h"
 #include "opt_compat_netbsd.h"
@@ -727,6 +727,12 @@ SYSCTL_SETUP(sysctl_kern_setup, "sysctl 
 			SYSCTL_DESCR("Maximal number of semaphores"),
 			NULL, 0, &ksem_max, 0,
 			CTL_CREATE, CTL_EOL);
+	sysctl_createv(clog, 0, NULL, NULL,
+			CTLFLAG_PERMANENT,
+			CTLTYPE_STRING, "configname",
+			SYSCTL_DESCR("Name of config file"),
+			NULL, 0, __UNCONST(kernel_ident), 0,
+			CTL_KERN, CTL_CREATE, CTL_EOL);
 }
 
 SYSCTL_SETUP(sysctl_hw_setup, "sysctl hw subtree setup")

Reply via email to