aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Baudis <pasky@ucw.cz>2010-11-16 03:26:19 +0100
committerPetr Baudis <pasky@suse.cz>2010-11-16 04:15:35 +0100
commit8bddf3f453ce1b6f6591825846437d6cb55f7b4c (patch)
tree044f484eabdfd1a7109c9a4c14f9ebac32275405
parentfd5ba40413efc0c95c0754341a76ada944aa1d5f (diff)
downloadglibc-pasky/fixes.zip
glibc-pasky/fixes.tar.gz
glibc-pasky/fixes.tar.bz2
Fix fstat() not trying to call fxstat64() on sparc64pasky/fixes
sparc64 fxstat implementation should follow the same code path as on i386, first trying fxstat64() and falling back to fxstat() only when it is not available. Otherwise, nanosecond times resolution will not be available. sparc64 is unlike other 64-bit architectures in that fxstat64() has not been historically always available in the kernel. Solution by hideaki@sogetthis.com.
-rw-r--r--ChangeLog7
-rw-r--r--sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1bbbceb..2f25a86 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-11-16 Petr Baudis <pasky@suse.cz>
+
+ [BZ #11155]
+ * sysdeps/unis/sysv/linux/sparc/sparc64/fxstat.c: Use i386 fxstat
+ with support for fxstat64 instead of generic fxstat version.
+ Solution by hideaki@sogetthis.com.
+
2010-08-18 Mike Frysinger <vapier@gentoo.org>
[BZ #11929]
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c b/sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c
index 6b37477..4f219f0 100644
--- a/sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c
+++ b/sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c
@@ -1 +1 @@
-#include "../../fxstat.c"
+#include <sysdeps/unix/sysv/linux/i386/fxstat.c>