posix: Add glob64 with 64-bit time_t support

System Internals / glibc - Adhemerval Zanella [linaro.org] - 15 June 2021 13:42 UTC

The glob might pass a different stat struct for gl_stat and gl_lstat when GLOB_ALTDIRFUNC is used. This requires add a new 64-bit time
version that also uses 64-bit time stat functions.

Checked on i686-linux-gnu and x86_64-linux-gnu.

84f7ce8447 posix: Add glob64 with 64-bit time_t support
include/glob.h | 28 +++++++++++++
posix/Makefile | 4 +-
posix/glob.c | 46 ++++++++++----------
posix/glob.h | 22 ++++++++++
posix/glob64-lstat-compat.c | 3 +-
posix/glob64-time64.c | 49 ++++++++++++++++++++++
posix/globfree64-time64.c | 30 +++++++++++++
sysdeps/gnu/glob64-lstat-compat.c | 3 +-
sysdeps/unix/sysv/linux/Versions | 2 +
sysdeps/unix/sysv/linux/arm/be/libc.abilist | 2 +
sysdeps/unix/sysv/linux/arm/le/libc.abilist | 2 +
sysdeps/unix/sysv/linux/csky/libc.abilist | 2 +
sysdeps/unix/sysv/linux/glob-lstat-compat.c | 6 ++-
sysdeps/unix/sysv/linux/glob.c | 6 +++
sysdeps/unix/sysv/linux/glob64-lstat-compat.c | 12 +++---
sysdeps/unix/sysv/linux/glob64-time64.c | 44 +++++++++++++++++++
sysdeps/unix/sysv/linux/glob64.c | 8 ++--
sysdeps/unix/sysv/linux/globfree64-time64.c | 35 ++++++++++++++++
sysdeps/unix/sysv/linux/hppa/libc.abilist | 2 +
sysdeps/unix/sysv/linux/i386/libc.abilist | 2 +
sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist | 2 +
sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist | 2 +
sysdeps/unix/sysv/linux/microblaze/be/libc.abilist | 2 +
sysdeps/unix/sysv/linux/microblaze/le/libc.abilist | 2 +
.../unix/sysv/linux/mips/mips32/fpu/libc.abilist | 2 +
.../unix/sysv/linux/mips/mips32/nofpu/libc.abilist | 2 +
.../unix/sysv/linux/mips/mips64/n32/libc.abilist | 2 +
sysdeps/unix/sysv/linux/nios2/libc.abilist | 2 +
sysdeps/unix/sysv/linux/oldglob.c | 11 +++--
.../sysv/linux/powerpc/powerpc32/fpu/libc.abilist | 2 +
.../linux/powerpc/powerpc32/nofpu/libc.abilist | 2 +
sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist | 2 +
sysdeps/unix/sysv/linux/sh/be/libc.abilist | 2 +
sysdeps/unix/sysv/linux/sh/le/libc.abilist | 2 +
sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist | 2 +
35 files changed, 307 insertions(+), 40 deletions(-)

Upstream: sourceware.org


  • Share