Date: Fri, 16 Aug 2019 14:14:57 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r351122 - head/lib/libc/sys Message-ID: <201908161414.x7GEEv8s087522@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Fri Aug 16 14:14:57 2019 New Revision: 351122 URL: https://svnweb.freebsd.org/changeset/base/351122 Log: 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. Modified: head/lib/libc/sys/Makefile.inc Modified: head/lib/libc/sys/Makefile.inc ============================================================================== --- head/lib/libc/sys/Makefile.inc Fri Aug 16 14:06:04 2019 (r351121) +++ head/lib/libc/sys/Makefile.inc Fri Aug 16 14:14:57 2019 (r351122) @@ -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}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908161414.x7GEEv8s087522>