Dmitry V. Levin
cc2baf339f
Parametrize code from fstatat.c to support <asm/stat.h> as an alternative to <sys/stat.h> and move it to a separate file. * tests/statx.sh: New file, based on fstatat64.test. * tests/fstatat64.test: Use it. * tests/newfstatat.test: Likewise. * tests/xstatx.c: New file, based on fstatat.c. * tests/fstatat.c: Use it. * tests/Makefile.am (EXTRA_DIST): Add statx.sh and xstatx.c. * tests/fstatat64.c (FSTATAT_NAME): Change to TEST_SYSCALL_NAME. * tests/newfstatat.c: Likewise.
13 lines
191 B
C
13 lines
191 B
C
#ifdef HAVE_CONFIG_H
|
|
# include "config.h"
|
|
#endif
|
|
|
|
#include <sys/syscall.h>
|
|
|
|
#undef TEST_SYSCALL_NAME
|
|
#ifdef __NR_newfstatat
|
|
# define TEST_SYSCALL_NAME newfstatat
|
|
#endif
|
|
|
|
#include "fstatat.c"
|