From patchwork Tue Mar 22 20:03:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 11474 Received: (qmail 48570 invoked by alias); 22 Mar 2016 20:03:49 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 48555 invoked by uid 89); 22 Mar 2016 20:03:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=fts, Hx-languages-length:1645, sk:tst-mal, sk:36360d9 X-HELO: hall.aurel32.net From: Aurelien Jarno To: libc-alpha@sourceware.org Cc: Aurelien Jarno Subject: [PATCH] alpha: fix fts64 function Date: Tue, 22 Mar 2016 21:03:39 +0100 Message-Id: <1458677019-11598-1-git-send-email-aurelien@aurel32.net> 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 diff --git a/ChangeLog b/ChangeLog index 36360d9..066b6d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-03-22 Aurelien Jarno + + * sysdeps/unix/sysv/linux/alpha/fts.c: New file. + * sysdeps/unix/sysv/linux/alpha/fts64.c: New file. + 2016-03-22 Samuel Thibault * malloc/Makefile ($(objpfx)tst-malloc-backtrace, diff --git a/sysdeps/unix/sysv/linux/alpha/fts.c b/sysdeps/unix/sysv/linux/alpha/fts.c new file mode 100644 index 0000000..d0c62e6 --- /dev/null +++ b/sysdeps/unix/sysv/linux/alpha/fts.c @@ -0,0 +1 @@ +#include diff --git a/sysdeps/unix/sysv/linux/alpha/fts64.c b/sysdeps/unix/sysv/linux/alpha/fts64.c new file mode 100644 index 0000000..2472f8b --- /dev/null +++ b/sysdeps/unix/sysv/linux/alpha/fts64.c @@ -0,0 +1 @@ +#include