linux: Fix fstat64 on alpha and sparc64
commit061eaf024470627d835d347860d5f8c59b454d08
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 2 Jan 2024 14:31:52 +0000 (2 11:31 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 12 Jan 2024 18:11:11 +0000 (12 15:11 -0300)
tree32335675c27e857fdf39925cc0070923e1bdf40b
parent08ddd26814310e7c1b8c3956a6a0ac7aedea9cfd
linux: Fix fstat64 on alpha and sparc64

The 551101e8240b7514fc646d1722f8b79c90362b8f change is incorrect for
alpha and sparc, since __NR_stat is defined by both kABI.  Use
__NR_newfstat to check whether to fallback to __NR_fstat64 (similar
to what fstatat64 does).

Checked on sparc64-linux-gnu.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysv/linux/fstat64.c