linux: use statx for fstat if neither newfstatat nor fstatat64 is present
commite6547d635b991651600fab31f788ed5facd77610
authorWANG Xuerui <git@xen0n.name>
Wed, 1 Jun 2022 02:12:28 +0000 (1 10:12 +0800)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 1 Jun 2022 15:29:01 +0000 (1 12:29 -0300)
tree9fdc1f99f6ab029119d78dccd99552b4340a8967
parentde3501d60fac6d194954e0ccc7bd297f53442b3e
linux: use statx for fstat if neither newfstatat nor fstatat64 is present

LoongArch is going to be the first architecture supported by Linux that
has neither fstat* nor newfstatat [1], instead exclusively relying on
statx. So in fstatat64's implementation, we need to also enable statx
usage if neither fstatat64 nor newfstatat is present, to prepare for
this new case of kernel ABI.

[1]: https://lore.kernel.org/all/20220518092619.1269111-1-chenhuacai@loongson.cn/

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/fstatat64.c