mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-23 03:19:51 +00:00
all: fix marking of auto-generated files
Update the copyright checking script and more files for the standard convention of marking auto-generated files.
This commit is contained in:
parent
9534e89c79
commit
a3d497bf6c
2
executor/kvm.S.h
generated
2
executor/kvm.S.h
generated
@ -1,4 +1,4 @@
|
||||
// AUTOGENERATED FILE
|
||||
// Code generated by executor/kvm_gen.cc. DO NOT EDIT.
|
||||
const char kvm_asm16_cpl3[] = "\x0f\x20\xc0\x66\x83\xc8\x01\x0f\x22\xc0\xb8\xa0\x00\x0f\x00\xd8\xb8\x2b\x00\x8e\xd8\x8e\xc0\x8e\xe0\x8e\xe8\xbc\x00\x01\xc7\x06\x00\x01\x1d\xba\xc7\x06\x02\x01\x23\x00\xc7\x06\x04\x01\x00\x01\xc7\x06\x06\x01\x2b\x00\xcb";
|
||||
const char kvm_asm32_paged[] = "\x0f\x20\xc0\x0d\x00\x00\x00\x80\x0f\x22\xc0";
|
||||
const char kvm_asm32_vm86[] = "\x66\xb8\xb8\x00\x0f\x00\xd8\xea\x00\x00\x00\x00\xd0\x00";
|
||||
|
@ -19,7 +19,7 @@ void print(const char* name, const unsigned char* start, const unsigned char* en
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("// AUTOGENERATED FILE\n");
|
||||
printf("// Code generated by executor/kvm_gen.cc. DO NOT EDIT.\n");
|
||||
PRINT(kvm_asm16_cpl3);
|
||||
PRINT(kvm_asm32_paged);
|
||||
PRINT(kvm_asm32_vm86);
|
||||
|
@ -1,4 +1,4 @@
|
||||
// AUTOGENERATED FILE
|
||||
// Code generated by tools/syz-usbgen. DO NOT EDIT.
|
||||
// See docs/linux/external_fuzzing_usb.md
|
||||
|
||||
package linux
|
||||
|
@ -1,4 +1,4 @@
|
||||
# AUTOGENERATED FILE with tools/syz-declextract.
|
||||
# Code generated by tools/syz-declextract. DO NOT EDIT.
|
||||
|
||||
VerSetConditionMask(ConditionMask int64, TypeMask int32, Condition int8)
|
||||
GetEnvironmentStrings()
|
||||
|
@ -11,7 +11,7 @@ for F in $(find . -name "*.go" -o -name "*.sh" -o -name "*.cc" -o -name "*.h" \
|
||||
cat $F | tr '\n' '_' | egrep "(//|#) Copyright 20[0-9]{2}(/20[0-9]{2})? syzkaller project authors\. All rights reserved\._(//|#) Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file\." >/dev/null
|
||||
if [ $? -eq 0 ]; then continue; fi
|
||||
# Ignore auto-generated files.
|
||||
egrep "(//|#) AUTOGENERATED FILE|(WARNING: This file is machine generated)" $F >/dev/null
|
||||
egrep "^(//|#) Code generated .* DO NOT EDIT\\.|(WARNING: This file is machine generated)" $F >/dev/null
|
||||
if [ $? -eq 0 ]; then continue; fi
|
||||
# Ignore untracked files.
|
||||
git ls-files --error-unmatch $F >/dev/null 2>&1
|
||||
|
@ -30,12 +30,12 @@ func main() {
|
||||
usbIds := extractIds(syslog, "USBID", 34)
|
||||
hidIds := extractIds(syslog, "HIDID", 24)
|
||||
|
||||
output := make([]byte, 0)
|
||||
output = append(output, []byte("// AUTOGENERATED FILE\n")...)
|
||||
output = append(output, []byte("// See docs/linux/external_fuzzing_usb.md\n")...)
|
||||
output = append(output, []byte("\n")...)
|
||||
output = append(output, []byte("package linux\n")...)
|
||||
output = append(output, []byte("\n")...)
|
||||
output := []byte(`// Code generated by tools/syz-usbgen. DO NOT EDIT.
|
||||
// See docs/linux/external_fuzzing_usb.md
|
||||
|
||||
package linux
|
||||
|
||||
`)
|
||||
output = append(output, generateIdsVar(usbIds, "usbIds")...)
|
||||
output = append(output, []byte("\n")...)
|
||||
output = append(output, generateIdsVar(hidIds, "hidIds")...)
|
||||
|
Loading…
Reference in New Issue
Block a user