svn commit: r313564 - head/sys/kern
John Baldwin
jhb at FreeBSD.org
Fri Feb 10 19:25:53 UTC 2017
Author: jhb
Date: Fri Feb 10 19:25:52 2017
New Revision: 313564
URL: https://svnweb.freebsd.org/changeset/base/313564
Log:
Drop the "created from" line from files generated by makesyscalls.sh.
This information is less useful when the generated files are included in
source control along with the source. If needed it can be reconstructed
from the $FreeBSD$ tag in the generated file. Removing this information
from the generated output permits committing the generated files along
with the change to the system call master list without having inconsistent
metadata in the generated files.
Reviewed by: emaste, kib
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D9497
Modified:
head/sys/kern/makesyscalls.sh
Modified: head/sys/kern/makesyscalls.sh
==============================================================================
--- head/sys/kern/makesyscalls.sh Fri Feb 10 19:17:10 2017 (r313563)
+++ head/sys/kern/makesyscalls.sh Fri Feb 10 19:25:52 2017 (r313564)
@@ -119,10 +119,12 @@ sed -e '
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 " */\n\n" > 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 " */\n\n" > sysarg
printf "\n#ifdef %s\n\n", compat > syscompat
printf "\n#ifdef %s\n\n", compat4 > syscompat4
@@ -133,10 +135,13 @@ sed -e '
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 " */\n\n" > 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 " */\n\n" > syshdr
+
printf "# FreeBSD system call object files.\n" > sysmk
printf "# DO NOT EDIT-- this file is automatically generated.\n" > sysmk
printf "# $%s$\n", "FreeBSD" > sysmk
@@ -146,15 +151,9 @@ sed -e '
printf " * $%s$\n", "FreeBSD" > systrace
}
NR == 1 {
- gsub("[$]FreeBSD: ", "FreeBSD: ", $0)
- gsub(" [$]", "", $0)
-
- printf " * created from%s\n */\n\n", $0 > syssw
-
printf "\n/* The casts are bogus but will do for now. */\n" > sysent
printf "struct sysent %s[] = {\n",switchname > sysent
- printf " * created from%s\n */\n\n", $0 > sysarg
printf "#ifndef %s\n", sysproto_h > sysarg
printf "#define\t%s\n\n", sysproto_h > sysarg
printf "#include <sys/signal.h>\n" > sysarg
@@ -177,12 +176,9 @@ sed -e '
printf "#define\tPADR_(t)\t0\n" > sysarg
printf "#endif\n\n" > sysarg
- printf " * created from%s\n */\n\n", $0 > sysnames
printf "const char *%s[] = {\n", namesname > sysnames
- printf " * created from%s\n */\n\n", $0 > syshdr
-
- printf "# created from%s\nMIASM = ", $0 > sysmk
+ printf "MIASM = " > sysmk
printf " * This file is part of the DTrace syscall provider.\n */\n\n" > systrace
printf "static void\nsystrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)\n{\n" > systrace
More information about the svn-src-all
mailing list