glibc/include/sys
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
..
auxv.h misc: Add internal __getauxval2 function 2020-10-27 16:34:37 +01:00
bitypes.h Update. 1997-06-21 02:59:26 +00:00
cdefs.h Rename __LONG_DOUBLE_USES_FLOAT128 to __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 2020-04-30 08:52:08 -05:00
dir.h Update. 1997-06-21 02:59:26 +00:00
epoll.h Installed header hygiene (BZ#20366): Test of installed headers. 2016-09-23 08:43:56 -04:00
errno.h * include/sys/errno.h: New file. 2002-08-11 22:06:06 +00:00
fcntl.h Update. 1997-06-21 02:59:26 +00:00
file.h Installed header hygiene (BZ#20366): Test of installed headers. 2016-09-23 08:43:56 -04:00
gmon_out.h Update. 1997-07-28 22:35:20 +00:00
gmon.h Remove __bb_init_func and __bb_exit_func [BZ #21974] 2017-08-20 06:39:31 -07:00
ioctl.h Hide internal __ioctl function [BZ #18822] 2017-10-01 15:59:06 -07:00
ipc.h Update. 1997-06-21 02:59:26 +00:00
mman.h Hide internal __mremap function [BZ #18822] 2017-10-01 16:02:04 -07:00
msg.h sysv: linux: Add 64-bit time_t variant for msgctl 2020-07-09 12:05:40 -03:00
param.h Split sys/param.h out into common file and sysdeps bits/param.h file. 2012-08-17 09:55:17 -07:00
poll.h y2038: linux: Provide __ppoll64 implementation 2019-11-11 14:41:43 +01:00
prctl.h Add a C wrapper for prctl [BZ #25896] 2020-04-30 10:42:43 -07:00
profil.h Installed header hygiene (BZ#20366): Test of installed headers. 2016-09-23 08:43:56 -04:00
queue.h Update. 1997-06-21 02:59:26 +00:00
random.h hurd: Fix local PLT 2019-12-13 11:11:54 +01:00
resource.h setrlimit/getrlimit: Use __nonnull to avoid null pointer 2021-02-10 08:36:17 -03:00
select.h linux: Add time64 select support 2020-09-28 16:21:48 -03:00
sem.h sysv: linux: Add 64-bit time_t variant for semctl 2020-07-09 12:05:35 -03:00
sendfile.h hurd: avoid PLT ref between sendfile and sendfile64 2018-06-16 00:44:57 +02:00
shm.h sysv: linux: Add 64-bit time_t variant for shmctl 2020-07-09 12:05:47 -03:00
signal.h Update. 1997-06-21 02:59:26 +00:00
single_threaded.h Add the __libc_single_threaded variable 2020-07-06 11:15:58 +02:00
socket.h linux: Add time64 recvmmsg support 2020-09-28 17:28:39 -03:00
stat.h hurd: Move {,f,l}xstat{,at} and xmknod{at} to compat symbols 2020-11-11 23:56:56 +00:00
statfs.h linux: Consolidate fstatfs implementations 2021-02-11 07:58:31 -03:00
statvfs.h Mark internal statfs functions with attribute_hidden [BZ #18822] 2017-10-01 15:18:25 -07:00
sysinfo.h Hide internal sysinfo functions [BZ #18822] 2017-10-01 15:57:21 -07:00
syslog.h ldbl-128ibm-compat: PLT redirects for using ldbl redirects internally 2020-03-25 14:34:23 -05:00
sysmacros.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
termios.h Update. 1997-06-21 02:59:26 +00:00
time.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
timeb.h time: Add 64-bit time_t support for ftime 2020-10-27 09:54:50 -03:00
times.h First steps to get conformtest fully working 2012-02-25 23:18:39 -05:00
ttychars.h Add missing header wrappers under include/ 2019-02-16 08:25:16 +01:00
types.h Update. 1997-06-21 02:59:26 +00:00
uio.h Hide __readv and __writev [BZ #18822] 2017-10-01 15:54:10 -07:00
un.h Update. 1997-06-21 02:59:26 +00:00
unistd.h Update. 1997-06-21 02:59:26 +00:00
utsname.h hurd: keep only required PLTs in ld.so 2020-11-11 02:36:22 +01:00
vfs.h Add missing header wrappers under include/ 2019-02-16 08:25:16 +01:00
vlimit.h Update. 1997-06-21 02:59:26 +00:00
wait.h Implement waitpid in terms of wait4 2019-12-19 16:11:09 -03:00
xattr.h 2005-12-29 Roland McGrath <roland@frob.com> 2005-12-29 10:38:08 +00:00