]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix fstat() not trying to call fxstat64() on sparc64 pasky/fixes
authorPetr Baudis <pasky@ucw.cz>
Tue, 16 Nov 2010 02:26:19 +0000 (03:26 +0100)
committerPetr Baudis <pasky@suse.cz>
Tue, 16 Nov 2010 03:15:35 +0000 (04:15 +0100)
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.

ChangeLog
sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c

index 1bbbcebacbb10af36cc1fef7108715402286c88e..2f25a866bd15b1180c35d06e256c41e1841eeac2 100644 (file)
--- 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]
index 6b374777b8bd2c22ac6af02e8c97cb0741006065..4f219f0b9dfa95de8f643dee02a58393fda2737a 100644 (file)
@@ -1 +1 @@
-#include "../../fxstat.c"
+#include <sysdeps/unix/sysv/linux/i386/fxstat.c>