Fix fstat() not trying to call fxstat64() on sparc64pasky/fixes
commit8bddf3f453ce1b6f6591825846437d6cb55f7b4c
authorPetr Baudis <pasky@ucw.cz>
Tue, 16 Nov 2010 02:26:19 +0000 (16 03:26 +0100)
committerPetr Baudis <pasky@suse.cz>
Tue, 16 Nov 2010 03:15:35 +0000 (16 04:15 +0100)
tree044f484eabdfd1a7109c9a4c14f9ebac32275405
parentfd5ba40413efc0c95c0754341a76ada944aa1d5f
Fix fstat() not trying to call fxstat64() on sparc64

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