]> git.ipfire.org Git - thirdparty/glibc.git/commit
login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug 30701)
authorFlorian Weimer <fweimer@redhat.com>
Fri, 19 Apr 2024 12:38:17 +0000 (14:38 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 2 May 2024 20:04:35 +0000 (22:04 +0200)
commitbb2ec7502289aaf794d7e9ac7f12c9d03ab8cf7c
tree693d7990d1687de63780db74565416f76959f952
parent93e98f092cf25941d80f23511fb0b51eda353bd6
login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug 30701)

These structs describe file formats under /var/log, and should not
depend on the definition of _TIME_BITS.  This is achieved by
defining __WORDSIZE_TIME64_COMPAT32 to 1 on 32-bit ports that
support 32-bit time_t values (where __time_t is 32 bits).

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit 9abdae94c7454c45e02e97e4ed1eb1b1915d13d8)
18 files changed:
bits/wordsize.h
login/Makefile
login/tst-utmp-size-64.c [new file with mode: 0644]
sysdeps/arm/bits/wordsize.h [new file with mode: 0644]
sysdeps/csky/bits/wordsize.h [new file with mode: 0644]
sysdeps/m68k/bits/wordsize.h [new file with mode: 0644]
sysdeps/microblaze/bits/wordsize.h [new file with mode: 0644]
sysdeps/mips/bits/wordsize.h
sysdeps/nios2/bits/wordsize.h [new file with mode: 0644]
sysdeps/powerpc/powerpc32/bits/wordsize.h
sysdeps/powerpc/powerpc64/bits/wordsize.h
sysdeps/sh/bits/wordsize.h [new file with mode: 0644]
sysdeps/sparc/sparc32/bits/wordsize.h
sysdeps/sparc/sparc64/bits/wordsize.h
sysdeps/unix/sysv/linux/hppa/bits/wordsize.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h
sysdeps/unix/sysv/linux/sparc/bits/wordsize.h
sysdeps/x86/bits/wordsize.h