aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/openat64-0.c')
-rw-r--r--tests/openat64-0.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/openat64-0.c b/tests/openat64-0.c
new file mode 100644
index 0000000..df14390
--- /dev/null
+++ b/tests/openat64-0.c
@@ -0,0 +1,19 @@
+#define FUNC openat64
+#define SFUNC "openat64"
+#define FUNC_STR "%i, \"%s\", %o"
+#define FUNC_IMP dirfd, file, flags
+#define ARG_CNT 3
+#define ARG_USE "<dirfd> <file> <flags>"
+
+#define process_args() \
+ s = argv[i++]; \
+ int dirfd = atoi(s); \
+ \
+ s = argv[i++]; \
+ char *file = s; \
+ \
+ s = argv[i++]; \
+ int flags; \
+ sscanf(s, "%i", &flags);
+
+#include "test-skel-0.c"