1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-10-12 19:04:54 +03:00
Files
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
..
2021-01-28 14:05:14 -03:00
2021-01-17 16:39:45 -08:00
2021-01-18 20:22:51 +00:00
2021-01-23 19:00:00 +00:00
2021-01-18 14:23:10 +00:00
2021-02-03 23:16:39 +05:30
2021-01-28 14:05:15 -03:00
2021-02-01 20:01:34 +01:00
2021-01-18 21:36:00 +00:00
2021-01-07 15:26:26 +00:00
2021-01-28 14:05:14 -03:00
2021-01-28 14:05:14 -03:00