From: Bart Van Assche Date: Sun, 25 Dec 2022 00:49:56 +0000 (-0800) Subject: Revert "syscall" X-Git-Tag: VALGRIND_3_21_0~263 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1845f517283562f11ce05757bb62d988cbf273bd;p=thirdparty%2Fvalgrind.git Revert "syscall" Revert an incomplete commit that got published accidentally. --- diff --git a/memcheck/tests/arm64-linux/scalar.h b/memcheck/tests/arm64-linux/scalar.h index 3dbfa79673..9008816d6e 100644 --- a/memcheck/tests/arm64-linux/scalar.h +++ b/memcheck/tests/arm64-linux/scalar.h @@ -1,3 +1,6 @@ +/* This is the arm64 variant of memcheck/tests/x86-linux/scalar.h */ +#include "../../../include/vki/vki-scnums-arm64-linux.h" + #include #include #include @@ -8,7 +11,10 @@ #include #include #include -#include + +// Since we use vki_unistd.h, we can't include . So we have to +// declare this ourselves. +extern long int syscall (long int __sysno, ...) __THROW; // Thorough syscall scalar arg checking. Also serves as thorough checking // for (very) basic syscall use. Generally not trying to do anything diff --git a/memcheck/tests/x86-linux/scalar.h b/memcheck/tests/x86-linux/scalar.h index 3dbfa79673..ef28b03550 100644 --- a/memcheck/tests/x86-linux/scalar.h +++ b/memcheck/tests/x86-linux/scalar.h @@ -1,3 +1,5 @@ +#include "../../../include/vki/vki-scnums-x86-linux.h" + #include #include #include @@ -8,7 +10,10 @@ #include #include #include -#include + +// Since we use vki_unistd.h, we can't include . So we have to +// declare this ourselves. +extern long int syscall (long int __sysno, ...) __THROW; // Thorough syscall scalar arg checking. Also serves as thorough checking // for (very) basic syscall use. Generally not trying to do anything