aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-declextract/testdata/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/syz-declextract/testdata/syscall.c')
-rw-r--r--tools/syz-declextract/testdata/syscall.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/syz-declextract/testdata/syscall.c b/tools/syz-declextract/testdata/syscall.c
new file mode 100644
index 000000000..be247151b
--- /dev/null
+++ b/tools/syz-declextract/testdata/syscall.c
@@ -0,0 +1,12 @@
+// 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.
+
+#include "include/syscall.h"
+
+SYSCALL_DEFINE1(open, const char* filename, int flags, int mode) {
+ return 0;
+}
+
+SYSCALL_DEFINE1(chmod, const char* filename, int mode) {
+ return 0;
+}