aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-declextract/testdata/include/syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/syz-declextract/testdata/include/syscall.h')
-rw-r--r--tools/syz-declextract/testdata/include/syscall.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/syz-declextract/testdata/include/syscall.h b/tools/syz-declextract/testdata/include/syscall.h
new file mode 100644
index 000000000..601480cb4
--- /dev/null
+++ b/tools/syz-declextract/testdata/include/syscall.h
@@ -0,0 +1,7 @@
+// Copyright 2024 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.
+
+#define SYSCALL_DEFINE1(NAME, ...) SYSCALL_DEFINEx(1, NAME, __VA_ARGS__)
+#define SYSCALL_DEFINE2(NAME, ...) SYSCALL_DEFINEx(2, NAME, __VA_ARGS__)
+#define SYSCALL_DEFINEx(NARGS, NAME, ...) long __do_sys_##NAME(__VA_ARGS__); \
+long __do_sys_##NAME(__VA_ARGS__)