]> 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 18:55:04 +0000 (20:55 +0200)
commit396f065496ed149088062b60dac9e06c5e368e5c
tree5aa626eb18c9df372fb7aa8dd7ca37b99d815fc2
parent77d8f490584daeb43a3dc7a76867ec86fbbb8887
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