This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Fix ARM posix_fadvise64 namespace (bug 17793) [committed]
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Mon, 5 Jan 2015 16:07:33 +0000
- Subject: Fix ARM posix_fadvise64 namespace (bug 17793) [committed]
- Authentication-results: sourceware.org; auth=none
ARM posix_fadvise calls __posix_fadvise64_l64, to which
posix_fadvise64 is a strong alias, but posix_fadvise is a POSIX
function and posix_fadvise64 isn't. This patch changes it into a weak
alias.
Tested for ARM that this fixes the corresponding linknamespace test
failures. Committed.
2015-01-05 Joseph Myers <joseph@codesourcery.com>
[BZ #17793]
* sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
Define as weak alias not strong alias.
diff --git a/sysdeps/unix/sysv/linux/arm/posix_fadvise64.c b/sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
index 1f76e67..b58c4c0 100644
--- a/sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
+++ b/sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
@@ -35,4 +35,4 @@ __posix_fadvise64_l64 (int fd, off64_t offset, off64_t len, int advise)
return 0;
return INTERNAL_SYSCALL_ERRNO (ret, err);
}
-strong_alias (__posix_fadvise64_l64, posix_fadvise64);
+weak_alias (__posix_fadvise64_l64, posix_fadvise64);
--
Joseph S. Myers
joseph@codesourcery.com