]> git.ipfire.org Git - thirdparty/glibc.git/commit - sysdeps/unix/sysv/linux/m68k/bits/struct_stat.h
y2038: Use a common definition for stat
authorLukasz Majewski <lukma@denx.de>
Thu, 15 Oct 2020 07:30:59 +0000 (09:30 +0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 15 Jun 2021 13:42:11 +0000 (10:42 -0300)
commit4e8521333bea6e89fcef1020e59a5f799241c5d4
treea51c99dcd2e45538af78f1eb24d59ca0f7d4def7
parent746ef78afeb8137f3ba747353efb7637d3bb1850
y2038: Use a common definition for stat

Instead of replicate the same definitions from struct_stat_time64.h
on the multiple struct_stat.h, use a common header which is included
when required (struct_stat_time64_helper.h).  The 64-bit time support
is added only for LFS support.

The __USE_TIME_BITS64 is not defined internally yet, although the
internal header is used when building the 64-bit stat implementations.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/bits/struct_stat.h
sysdeps/unix/sysv/linux/bits/struct_stat_time64_helper.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/m68k/bits/struct_stat.h
sysdeps/unix/sysv/linux/microblaze/bits/struct_stat.h
sysdeps/unix/sysv/linux/mips/bits/struct_stat.h
sysdeps/unix/sysv/linux/powerpc/bits/struct_stat.h
sysdeps/unix/sysv/linux/s390/bits/struct_stat.h
sysdeps/unix/sysv/linux/struct_stat_time64.h
sysdeps/unix/sysv/linux/x86/bits/struct_stat.h