tests: add fstatat64.test and newfstatat.test
* configure.ac (AC_CHECK_FUNCS): Add fstatat, ftruncate, and futimens.
* tests/fstatat.c: New file.
* tests/fstatat64.c: Likewise.
* tests/newfstatat.c: Likewise.
* tests/fstatat64.test: New test.
* tests/newfstatat.test: Likewise.
* tests/Makefile.am (check_PROGRAMS): Add fstatat64 and newfstatat.
(fstatat64_CFLAGS, newstatat_CFLAGS): Define.
(TESTS): Add fstatat64.test and newfstatat.test.
(EXTRA_DIST): Add fstatat.c.
* tests/.gitignore: Add fstatat64 and newfstatat.
diff --git a/tests/Makefile.am b/tests/Makefile.am
index fac6f5a..9ccd395 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -24,6 +24,7 @@
fanotify_mark \
file_handle \
filter-unavailable \
+ fstatat64 \
ftruncate \
ftruncate64 \
getdents \
@@ -50,6 +51,7 @@
net-accept-connect \
netlink_inet_diag \
netlink_unix_diag \
+ newfstatat \
oldselect \
pc \
pipe \
@@ -104,9 +106,11 @@
clock_xettime_LDADD = -lrt
filter_unavailable_LDADD = -lpthread
+fstatat64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
ftruncate64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
mmap64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
mq_LDADD = -lrt
+newfstatat_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
pc_LDADD = $(dl_LIBS)
stat_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
statfs_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
@@ -134,6 +138,7 @@
fanotify_mark.test \
file_handle.test \
filter-unavailable.test \
+ fstatat64.test \
ftruncate.test \
ftruncate64.test \
getdents.test \
@@ -180,6 +185,7 @@
net.test \
net-fd.test \
net-yy.test \
+ newfstatat.test \
oldselect.test \
pipe.test \
pc.test \
@@ -231,6 +237,7 @@
execveat-v.expected \
fanotify_mark.expected \
filter-unavailable.expected \
+ fstatat.c \
ip_mreq.expected \
ipc.sh \
ipc_msgbuf.expected \