alpha: fix fts64 function
Commit Message
On wordsize-64 architectures, fts64 is defined as an alias to fts,
because the FTS and FTSENT structures are the same than the FTS64 and
FTSENT64. This is however not true on alpha, where ino_t does not have
the same size than ino64_t.
To fix that, add alpha specific version of fts.c and fts64.c including
io/fts.c and io/fts64.c to have two different versions. This fixes the
io/tst-fts-lfs test.
Changelog:
* sysdeps/unix/sysv/linux/alpha/fts.c: New file.
* sysdeps/unix/sysv/linux/alpha/fts64.c: New file.
---
ChangeLog | 5 +++++
sysdeps/unix/sysv/linux/alpha/fts.c | 1 +
sysdeps/unix/sysv/linux/alpha/fts64.c | 1 +
3 files changed, 7 insertions(+)
create mode 100644 sysdeps/unix/sysv/linux/alpha/fts.c
create mode 100644 sysdeps/unix/sysv/linux/alpha/fts64.c
Comments
Rather than special-casing alpha, the logic for whether the aliases can be
used should test __INO_T_MATCHES_INO64_T et al. It might require inventing
analogous macros for all the LFS-affected types used in FTSENT, but IMHO
that is the right way to do this.
@@ -1,3 +1,8 @@
+2016-03-22 Aurelien Jarno <aurelien@aurel32.net>
+
+ * sysdeps/unix/sysv/linux/alpha/fts.c: New file.
+ * sysdeps/unix/sysv/linux/alpha/fts64.c: New file.
+
2016-03-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
* malloc/Makefile ($(objpfx)tst-malloc-backtrace,
new file mode 100644
@@ -0,0 +1 @@
+#include <io/fts.c>
new file mode 100644
@@ -0,0 +1 @@
+#include <io/fts64.c>