]> 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 15:48:45 +0000 (17:48 +0200)
commit36ef0d2f2f89963809996590369b3c9581d81274
tree135fe128dde946efe96962a4742bc7a6088f87a6
parent2a41cb9c71ec74f67f40f830b86f103a283c8a95
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