[Midnightbsd-cvs] src [10438] trunk/sys/kern: fix a few version issues

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Jun 6 19:19:07 EDT 2018


Revision: 10438
          http://svnweb.midnightbsd.org/src/?rev=10438
Author:   laffer1
Date:     2018-06-06 19:19:06 -0400 (Wed, 06 Jun 2018)
Log Message:
-----------
fix a few version issues

Modified Paths:
--------------
    trunk/sys/kern/imgact_aout.c
    trunk/sys/kern/kern_exec.c
    trunk/sys/kern/kern_malloc.c
    trunk/sys/kern/kern_module.c

Modified: trunk/sys/kern/imgact_aout.c
===================================================================
--- trunk/sys/kern/imgact_aout.c	2018-06-05 22:58:48 UTC (rev 10437)
+++ trunk/sys/kern/imgact_aout.c	2018-06-06 23:19:06 UTC (rev 10438)
@@ -81,7 +81,7 @@
 	.sv_sigcode	= sigcode,
 	.sv_szsigcode	= &szsigcode,
 	.sv_prepsyscall	= NULL,
-	.sv_name	= "FreeBSD a.out",
+	.sv_name	= "MidnightBSD a.out",
 	.sv_coredump	= NULL,
 	.sv_imgact_try	= NULL,
 	.sv_minsigstksz	= MINSIGSTKSZ,
@@ -128,7 +128,7 @@
 	.sv_sigcode	= ia32_sigcode,
 	.sv_szsigcode	= &sz_ia32_sigcode,
 	.sv_prepsyscall	= NULL,
-	.sv_name	= "FreeBSD a.out",
+	.sv_name	= "MidnightBSD a.out",
 	.sv_coredump	= NULL,
 	.sv_imgact_try	= NULL,
 	.sv_minsigstksz	= MINSIGSTKSZ,

Modified: trunk/sys/kern/kern_exec.c
===================================================================
--- trunk/sys/kern/kern_exec.c	2018-06-05 22:58:48 UTC (rev 10437)
+++ trunk/sys/kern/kern_exec.c	2018-06-06 23:19:06 UTC (rev 10438)
@@ -664,7 +664,7 @@
 	VOP_UNLOCK(imgp->vp, 0);
 
 	if (disallow_high_osrel &&
-	    P_OSREL_MAJOR(p->p_osrel) > P_OSREL_MAJOR(__FreeBSD_version)) {
+	    P_OSREL_MAJOR(p->p_osrel) > P_OSREL_MAJOR(__MidnightBSD_version)) {
 		error = ENOEXEC;
 		uprintf("Osrel %d for image %s too high\n", p->p_osrel,
 		    imgp->execpath != NULL ? imgp->execpath : "<unresolved>");

Modified: trunk/sys/kern/kern_malloc.c
===================================================================
--- trunk/sys/kern/kern_malloc.c	2018-06-05 22:58:48 UTC (rev 10437)
+++ trunk/sys/kern/kern_malloc.c	2018-06-06 23:19:06 UTC (rev 10438)
@@ -283,7 +283,7 @@
  * Any number that changes regularly is an okay choice for the
  * offset.  Build numbers are pretty good of you have them.
  */
-static u_int zone_offset = __FreeBSD_version;
+static u_int zone_offset = __MidnightBSD_version;
 TUNABLE_INT("debug.malloc.zone_offset", &zone_offset);
 SYSCTL_UINT(_debug_malloc, OID_AUTO, zone_offset, CTLFLAG_RDTUN,
     &zone_offset, 0, "Separate malloc types by examining the "

Modified: trunk/sys/kern/kern_module.c
===================================================================
--- trunk/sys/kern/kern_module.c	2018-06-05 22:58:48 UTC (rev 10437)
+++ trunk/sys/kern/kern_module.c	2018-06-06 23:19:06 UTC (rev 10438)
@@ -440,7 +440,7 @@
 	return (error);
 }
 
-MODULE_VERSION(kernel, __FreeBSD_version);
+MODULE_VERSION(kernel, __MidnightBSD_version);
 
 #ifdef COMPAT_FREEBSD32
 #include <sys/mount.h>



More information about the Midnightbsd-cvs mailing list