glibc/sysdeps
Adhemerval Zanella 1bfbaf7130 linux: Consolidate fstatfs implementations
The __NR_fstatfs64 syscall is supported on all architectures but
aarch64, mips64, riscv64, and x86_64.  And newer ABIs also uses
the new fstatfs64 interface (where the struct size is used as
first argument).

So the default implementation now uses:

  1. __NR_fstatfs64 for non-LFS call and handle overflow directly
     There is no need to handle __NR_fstatfs since all architectures
     that only support are LFS only.

  2. __NR_fstatfs if defined or __NR_fstatfs64 otherwise for LFS
     call.

Alpha is the only outlier, it is a 64-bit architecture which
provides non-LFS interface and only provides __NR_fstatfs64 on
newer kernels (5.1+).

Checked on x86_64-linux-gnu.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2021-02-11 07:58:31 -03:00
..
aarch64
alpha
arc
arm
csky
generic sysconf: Add _SC_MINSIGSTKSZ/_SC_SIGSTKSZ [BZ #20305] 2021-02-01 11:00:52 -08:00
gnu
hppa
htl linux: Require /dev/shm as the shared memory file system 2021-02-08 14:10:42 -03:00
hurd
i386 i686: Regenerate ULPs 2021-02-03 23:16:39 +05:30
ia64 Update ia64 libm-test-ulps 2021-01-28 14:05:15 -03:00
ieee754
m68k
mach hurd TIOCFLUSH: fix fixing argument 2021-02-01 20:01:34 +01:00
microblaze
mips
nios2
nptl linux: Require /dev/shm as the shared memory file system 2021-02-08 14:10:42 -03:00
posix linux: Require /dev/shm as the shared memory file system 2021-02-08 14:10:42 -03:00
powerpc
pthread linux: Fix __sem_check_add_mapping search_sem 2021-02-09 16:09:51 -03:00
riscv
s390
sh sh: Update libm-tests-ulps 2021-01-28 14:05:14 -03:00
sparc Update sparc libm-test-ulps 2021-01-28 14:05:14 -03:00
unix linux: Consolidate fstatfs implementations 2021-02-11 07:58:31 -03:00
wordsize-32
wordsize-64
x86 x86: Use SIZE_MAX instead of (long int)-1 for tunable range value 2021-02-10 19:08:33 +05:30
x86_64 x86-64: Refactor and improve performance of strchr-avx2.S 2021-02-08 11:21:33 -08:00