about summary refs log tree commit diff
path: root/support/support.h
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.ibm.com>2021-03-17 14:03:52 +0100
committerStefan Liebler <stli@linux.ibm.com>2021-03-26 10:21:13 +0100
commit1966f47a1e54f962a355a5f6a6b730c9848ab956 (patch)
tree2571f0fd7e258033a526e0dc98977f42002f7987 /support/support.h
parent0923f74adaa2827264a0d7cbe51ba287fc0f0c16 (diff)
downloadglibc-1966f47a1e54f962a355a5f6a6b730c9848ab956.tar.gz
glibc-1966f47a1e54f962a355a5f6a6b730c9848ab956.tar.xz
glibc-1966f47a1e54f962a355a5f6a6b730c9848ab956.zip
S390: Don't test nanoseconds in io/tst-stat.c
Both new tests io/tst-stat and io/tst-stat-lfs (_FILE_OFFSET_BITS=64)
are comparing the nanosecond fields with the statx result.  Unfortunately
on s390(31bit) those fields are always zero if old KABI with non-LFS
support is used.  With _FILE_OFFSET_BITS=64 stat is using statx internally.

As suggested by Adhemerval this patch disables the nanosecond check for
s390(31bit).
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'support/support.h')
-rw-r--r--support/support.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/support/support.h b/support/support.h
index 2e477c9e7c..90f3ff9d1a 100644
--- a/support/support.h
+++ b/support/support.h
@@ -134,6 +134,9 @@ extern ssize_t support_copy_file_range (int, off64_t *, int, off64_t *,
    operations (such as fstatat or utimensat).  */
 extern bool support_path_support_time64 (const char *path);
 
+/* Return true if stat supports nanoseconds resolution.  */
+extern bool support_stat_nanoseconds (void);
+
 __END_DECLS
 
 #endif /* SUPPORT_H */