]> granicus.if.org Git - strace/blob - tests/fstatx.c
tests: add fstat.test and fstat64.test
[strace] / tests / fstatx.c
1 #define TEST_SYSCALL_INVOKE(sample, pst) \
2         syscall(TEST_SYSCALL_NR, 0, pst)
3 #define PRINT_SYSCALL_HEADER(sample) \
4         printf("%s(0, ", TEST_SYSCALL_STR)
5 #define PRINT_SYSCALL_FOOTER \
6         puts(") = 0")
7
8 #define TEST_SYSCALL_NR nrify(TEST_SYSCALL_NAME)
9 #define nrify(arg) nrify_(arg)
10 #define nrify_(arg) __NR_ ## arg
11
12 #define USE_ASM_STAT
13
14 #include "xstatx.c"