linux: Implement {l}fstat{at} in terms of fstatat

System Internals / glibc - Adhemerval Zanella [linaro.org] - 9 October 2020 20:02 UTC

Both fstatat and fstata64 calls the old fxstatat and fxstatat64 repectivelly with _STAT_VER, the one currently exported as default for all ABIs.

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

30f1c74394 linux: Implement {l}fstat{at} in terms of fstatat
sysdeps/unix/sysv/linux/fstat.c | 31 ++++++++++++++++++++++++++++++
sysdeps/unix/sysv/linux/fstat64.c | 38 +++++++++++++++++++++++++++++++++++++
sysdeps/unix/sysv/linux/fstatat.c | 30 +++++++++++++++++++++++++++++
sysdeps/unix/sysv/linux/fstatat64.c | 38 +++++++++++++++++++++++++++++++++++++
sysdeps/unix/sysv/linux/lstat.c | 31 ++++++++++++++++++++++++++++++
sysdeps/unix/sysv/linux/lstat64.c | 38 +++++++++++++++++++++++++++++++++++++
sysdeps/unix/sysv/linux/stat.c | 31 ++++++++++++++++++++++++++++++
sysdeps/unix/sysv/linux/stat64.c | 38 +++++++++++++++++++++++++++++++++++++
8 files changed, 275 insertions(+)

Upstream: sourceware.org


  • Share