glibc/sysdeps/unix/sysv/linux/alpha
Adhemerval Zanella 5f85cc2f47 linux: Consolidate fxstatat{64}
The LFS support is implemented on fxstat64.c, instead of fxstat.c for
64-bit architectures.  The fxstatat.c implements the non-LFS and it is
a no-op for !XSTAT_IS_XSTAT64.

The generic non-LFS implementation handles two cases:

  1. New kABIs which uses generic pre 64-bit time Linux ABI (csky and
     nios): it issues __NR_fstatat64 plus handle the overflow on st_ino,
     st_size, or st_blocks.  It only handles _STAT_VER_KERNEL.

  2. Old kABIs with old non-LFS support (arm, i386, hppa, m68k, mips32,
     microblaze, s390, sh, powerpc, and sparc32).  it issues
     __NR_fstatat64 and convert to non-LFS stat struct based on the
     version.

Also non-LFS mips64 is an outlier and it has its own implementation
since _STAT_VER_LINUX requires a different conversion function (it
uses the kernel_stat as the sysissues argument since its exported ABI
is different than the kernel one for both non-LFS and LFS
implementation).

The generic LFS implementation handles multiple cases:

  1. XSTAT_IS_XSTAT64 being 1:

    1.1. 64-bit kABI (aarch64, ia64, powerpc64*, s390x, riscv64, and
         x86_64): it issues __NR_newfstatat for _STAT_VER_KERNEL or
         _STAT_VER_LINUX.

    1.2. 64-bit kABI outlier (sparc64): it issuess fstatat64 with a
         temporary stat64 and convert to output stat64 based on the
         input version (and using a sparc64 specific __xstat32_conv).

    1.3. New 32-bit kABIs with only 64-bit time_t support (arc and
	 riscv32): it issues __NR_statx and covert to struct stat64.

  2. Old ABIs with XSTAT_IS_XSTAT64 being 0 (arm, csky, i386, hppa, m68k,
     microblaze, mips32, nios2, sh, powerpc32, and sparc32): it issues
     __NR_fstat64.

Also, two special cases requires specific implementations:

  1. alpha: it uses the __NR_fstatat64 syscall instead.

  2. mips64: as for non-LFS implementation its ABIs differ from
     glibc exported one, which requires an specific conversion
     function to handle the kernel_stat.

Checked with a build for all affected ABIs. I also checked on x86_64,
i686, powerpc, powerpc64le, sparcv9, sparc64, s390, and s390x.

Reviewed-by: Lukasz Majewski <lukma@denx.de>
2020-09-11 14:35:24 -03:00
..
alpha
alphaev6/fpu
alphaev67/fpu
bits signal: Add signum-{generic,arch}.h 2020-07-07 14:10:58 -03:00
fpu
sys Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
____longjmp_chk.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
a.out.h Break lines before not after operators, batch 4. 2019-03-07 20:20:25 +00:00
adjtime.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
adjtimex.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
aio_cancel.c
arch-syscall.h Update syscall lists for Linux 5.8. 2020-08-07 14:38:43 +00:00
brk.S linux: Consolidate INLINE_SYSCALL 2020-02-14 21:09:12 -03:00
c++-types.data
clone.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
configure
configure.ac
dl-auxv.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-brk.S
dl-support.c
dl-sysdep.c
errlist-compat.c signal: Move sys_errlist to a compat symbol 2020-07-07 14:10:58 -03:00
fraiseexcpt.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
fstatfs64.c
fstatvfs64.c
fstatvfs.c
fxstat64.c linux: Consolidate fxstat{64} 2020-09-11 14:35:20 -03:00
fxstatat64.c linux: Consolidate fxstatat{64} 2020-09-11 14:35:24 -03:00
getclktck.c
getcontext.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getdents64.c
getdents.c
getegid.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
geteuid.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gethostname.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getppid.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getrlimit64.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getsysstats.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gettimeofday.c alpha: Fix static gettimeofday symbol 2020-02-13 08:27:27 -03:00
glob-lstat-compat.c
globfree.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ieee_get_fp_control.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ieee_set_fp_control.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Implies
internal_statvfs64.c
ioperm.c Linux: pciconfig_iobase syscall number is always available on alpha 2020-03-03 12:20:59 +01:00
ipc_priv.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
jmp_buf-macros.h
kernel_sigaction.h alpha: Use Linux generic sigaction implementation 2018-12-18 19:52:21 -02:00
kernel_stat.h linux: Define STAT64_IS_KERNEL_STAT64 2020-09-11 14:35:11 -03:00
kernel_sysinfo.h
kernel_termios.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
kernel-features.h Linux: Use system call tables during build 2020-01-02 10:18:23 +01:00
ld.abilist ld.so: Do not export free/calloc/malloc/realloc functions [BZ #25486] 2020-02-15 11:01:23 +01:00
libanl.abilist
libBrokenLocale.abilist
libc.abilist Linux: Remove rseq support 2020-07-16 17:55:35 +02:00
libcrypt.abilist
libdl.abilist
libm.abilist New exp10f version without SVID compat wrapper 2020-06-19 12:08:47 -03:00
libnsl.abilist
libpthread.abilist nptl: Move pthread_gettattr_np into libc 2020-05-20 20:27:49 +02:00
libresolv.abilist
librt.abilist Finish move of clock_* functions to libc. [BZ #24959] 2019-09-04 14:39:38 +02:00
libthread_db.abilist
libutil.abilist
localplt.data ld.so: Do not export free/calloc/malloc/realloc functions [BZ #25486] 2020-02-15 11:01:23 +01:00
lxstat64.c linux: Consolidate lxstat{64} 2020-09-11 14:35:15 -03:00
makecontext.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Makefile nptl: Move pthread_sigmask implementation to libc 2020-04-21 14:01:58 -03:00
nldbl-abi.h
oldglob.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
osf_adjtime.c sysv/alpha: Use generic __timeval32 and helpers 2020-04-02 09:21:06 -07:00
osf_getitimer.c sysv/alpha: Use generic __timeval32 and helpers 2020-04-02 09:21:06 -07:00
osf_getrusage.c sysv/alpha: Use generic __timeval32 and helpers 2020-04-02 09:21:06 -07:00
osf_gettimeofday.c y2038: Replace __clock_gettime with __clock_gettime64 2020-05-20 16:45:16 +02:00
osf_setitimer.c sysv/alpha: Use generic __timeval32 and helpers 2020-04-02 09:21:06 -07:00
osf_settimeofday.c sysv/alpha: Use generic __timeval32 and helpers 2020-04-02 09:21:06 -07:00
osf_utimes.c sysv/alpha: Use generic __timeval32 and helpers 2020-04-02 09:21:06 -07:00
osf_wait4.c sysv/alpha: Use generic __timeval32 and helpers 2020-04-02 09:21:06 -07:00
pipe.S
register-dump.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
rt_sigaction.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
select.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
setcontext.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
setfpucw.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
setrlimit64.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
settimeofday.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
shlib-versions
sigcontextinfo.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sizes.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
statfs64.c
statvfs64.c
statvfs.c
swapcontext.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
syscall.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
syscalls.list alpha: Use generic gettimeofday implementation 2020-02-12 16:55:30 -03:00
sysconf.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sysdep.h linux: Remove INTERNAL_SYSCALL_DECL 2020-02-14 21:12:45 -03:00
timer_create.c
timer_delete.c
timer_getoverr.c
timer_gettime.c
timer_settime.c
ucontext-offsets.sym
Versions signal: Move sys_errlist to a compat symbol 2020-07-07 14:10:58 -03:00
vfork.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
wait4.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
wordexp.c
xstat64.c linux: Consolidate xstat{64} 2020-09-11 14:35:13 -03:00
xstatconv.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
xstatconv.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00