tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
sysctl_createv: sysctl_create(no_sa_support) returned 22
Hi,
Some time ago I've noticed that my current kernel prints this message
when booting. As far as I understand no_sa_support syscall is only
required for NetBSD 4.0 binary compatibility, which I've disabled. I've
made a small patch which takes care of this message by putting
sysctl_createv call in COMPAT_40 ifdefs? Can this patch be included in
current sources?
/ptw
Index: sys/kern/init_sysctl.c
===================================================================
RCS file: /cvsroot/src/sys/kern/init_sysctl.c,v
retrieving revision 1.181
diff -u -r1.181 init_sysctl.c
--- sys/kern/init_sysctl.c 24 May 2011 16:39:56 -0000 1.181
+++ sys/kern/init_sysctl.c 22 Jul 2011 19:34:16 -0000
@@ -734,6 +734,7 @@
sysctl_security_setidcore, 0, &security_setidcore_mode,
0,
CTL_CREATE, CTL_EOL);
+#ifdef COMPAT_40
sysctl_createv(clog, 0, NULL, NULL,
CTLFLAG_PERMANENT|CTLFLAG_READWRITE,
CTLTYPE_INT, "no_sa_support",
@@ -747,6 +748,7 @@
#endif
0,
CTL_KERN, CTL_CREATE, CTL_EOL);
+#endif /* COMPAT_40 */
/* kern.posix. */
sysctl_createv(clog, 0, NULL, &rnode,
CTLFLAG_PERMANENT,
Home |
Main Index |
Thread Index |
Old Index