[Midnightbsd-cvs] src [7413] trunk/sys/kern/makesyscalls.sh: fix rebuild script for system calls to include mach types

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Jan 13 22:19:36 EST 2016


Revision: 7413
          http://svnweb.midnightbsd.org/src/?rev=7413
Author:   laffer1
Date:     2016-01-13 22:19:35 -0500 (Wed, 13 Jan 2016)
Log Message:
-----------
fix rebuild script for system calls to include mach types

Modified Paths:
--------------
    trunk/sys/kern/makesyscalls.sh

Modified: trunk/sys/kern/makesyscalls.sh
===================================================================
--- trunk/sys/kern/makesyscalls.sh	2016-01-14 03:18:53 UTC (rev 7412)
+++ trunk/sys/kern/makesyscalls.sh	2016-01-14 03:19:35 UTC (rev 7413)
@@ -111,11 +111,11 @@
 
 		printf "/*\n * System call switch table.\n *\n" > syssw
 		printf " * DO NOT EDIT-- this file is automatically generated.\n" > syssw
-		printf " * $%s$\n", "FreeBSD" > syssw
+		printf " * $%s$\n", "MidnightBSD" > syssw
 
 		printf "/*\n * System call prototypes.\n *\n" > sysarg
 		printf " * DO NOT EDIT-- this file is automatically generated.\n" > sysarg
-		printf " * $%s$\n", "FreeBSD" > sysarg
+		printf " * $%s$\n", "MidnightBSD" > sysarg
 
 		printf "\n#ifdef %s\n\n", compat > syscompat
 		printf "\n#ifdef %s\n\n", compat4 > syscompat4
@@ -124,21 +124,21 @@
 
 		printf "/*\n * System call names.\n *\n" > sysnames
 		printf " * DO NOT EDIT-- this file is automatically generated.\n" > sysnames
-		printf " * $%s$\n", "FreeBSD" > sysnames
+		printf " * $%s$\n", "MidnightBSD" > sysnames
 
 		printf "/*\n * System call numbers.\n *\n" > syshdr
 		printf " * DO NOT EDIT-- this file is automatically generated.\n" > syshdr
-		printf " * $%s$\n", "FreeBSD" > syshdr
-		printf "# FreeBSD system call names.\n" > sysmk
+		printf " * $%s$\n", "MidnightBSD" > syshdr
+		printf "# MidnightBSD system call names.\n" > sysmk
 		printf "# DO NOT EDIT-- this file is automatically generated.\n" > sysmk
-		printf "# $%s$\n", "FreeBSD" > sysmk
+		printf "# $%s$\n", "MidnightBSD" > sysmk
 
 		printf "/*\n * System call argument to DTrace register array converstion.\n *\n" > systrace
 		printf " * DO NOT EDIT-- this file is automatically generated.\n" > systrace
-		printf " * $%s$\n", "FreeBSD" > systrace
+		printf " * $%s$\n", "MidnightBSD" > systrace
 	}
 	NR == 1 {
-		gsub("[$]FreeBSD: ", "", $0)
+		gsub("[$]MidnightBSD: ", "", $0)
 		gsub(" [$]", "", $0)
 
 		printf " * created from%s\n */\n\n", $0 > syssw
@@ -154,8 +154,9 @@
 		printf "#include <sys/cpuset.h>\n" > sysarg
 		printf "#include <sys/_semaphore.h>\n" > sysarg
 		printf "#include <sys/ucontext.h>\n" > sysarg
-		printf "#include <sys/wait.h>\n\n" > sysarg
-		printf "#include <bsm/audit_kevents.h>\n\n" > sysarg
+		printf "#include <sys/wait.h>\n" > sysarg
+		printf "#include <bsm/audit_kevents.h>\n" > sysarg
+		printf "#include <sys/mach/mach_types.h>\n\n" > sysarg
 		printf "struct proc;\n\n" > sysarg
 		printf "struct thread;\n\n" > sysarg
 		printf "#define\tPAD_(t)\t(sizeof(register_t) <= sizeof(t) ? \\\n" > sysarg



More information about the Midnightbsd-cvs mailing list