aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2019-08-16 14:14:57 +0000
committerEd Maste <emaste@FreeBSD.org>2019-08-16 14:14:57 +0000
commit3afdc7303c02787effee5dee55425ce85e11c130 (patch)
tree4090fece8f93b3bbd81b06987ac4669e056a7779 /lib
parent2fe25d1638a89da01f1c79463fc61514e2d8be45 (diff)
downloadsrc-3afdc7303c02787effee5dee55425ce85e11c130.tar.gz
src-3afdc7303c02787effee5dee55425ce85e11c130.zip
Add @generated tag to libc syscall asm wrappers
Although libc syscall wrappers do not get checked in this can aid in finding the source of generated files when spelunking in the objdir. Multiple tools use @generated to identify generated files (for example, in a review Phabricator will by default hide diffs in generated files). For consistency use the @generated tag in makesyscalls.sh as we've done for other generated files, even though these wrappers aren't checked in to the tree.
Notes
Notes: svn path=/head/; revision=351122
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/Makefile.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc
index 0cbd67a81b7e..15c3b004d0ff 100644
--- a/lib/libc/sys/Makefile.inc
+++ b/lib/libc/sys/Makefile.inc
@@ -134,12 +134,14 @@ NOTE_GNU_STACK=''
.endif
${SASM}:
- printf '#include "compat.h"\n' > ${.TARGET}
+ printf '/* %sgenerated by libc/sys/Makefile.inc */\n' @ > ${.TARGET}
+ printf '#include "compat.h"\n' >> ${.TARGET}
printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' >> ${.TARGET}
printf ${NOTE_GNU_STACK} >>${.TARGET}
${SPSEUDO}:
- printf '#include "compat.h"\n' > ${.TARGET}
+ printf '/* %sgenerated by libc/sys/Makefile.inc */\n' @ > ${.TARGET}
+ printf '#include "compat.h"\n' >> ${.TARGET}
printf '#include "SYS.h"\nPSEUDO(${.PREFIX:S/_//})\n' \
>> ${.TARGET}
printf ${NOTE_GNU_STACK} >>${.TARGET}