From 1845f517283562f11ce05757bb62d988cbf273bd Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 24 Dec 2022 16:49:56 -0800 Subject: [PATCH] Revert "syscall" Revert an incomplete commit that got published accidentally. --- memcheck/tests/arm64-linux/scalar.h | 8 +++++++- memcheck/tests/x86-linux/scalar.h | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) 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 -- 2.47.2