unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: libc-alpha@sourceware.org
Subject: [PATCH v3 0/3] login: Use unsigned 32-bit types for seconds-since-epoch
Date: Wed, 10 Apr 2024 08:45:03 +0200	[thread overview]
Message-ID: <cover.1712731247.git.fweimer@redhat.com> (raw)

This new version fixes bug 30701 as well.  As a side effect, the
unsigned type change applies to all architectures that have 32-bit epoch
values.

New tests ensure that struct sizes do not change, and that the epoch
fields treat 0x80000000 as an unsigned value.

Built with build-many-glibcs.py.

Thanks,
Florian

Florian Weimer (3):
  login: Check default sizes of structs utmp, utmpx, lastlog
  login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug
    30701)
  login: Use unsigned 32-bit types for seconds-since-epoch

 NEWS                                          |  9 ++++-
 bits/utmp.h                                   |  4 +-
 bits/wordsize.h                               |  6 ++-
 login/Makefile                                |  6 ++-
 login/tst-utmp-size-64.c                      |  2 +
 login/tst-utmp-size.c                         | 33 +++++++++++++++
 login/tst-utmp-unsigned-64.c                  |  1 +
 login/tst-utmp-unsigned.c                     | 40 +++++++++++++++++++
 sysdeps/arc/utmp-size.h                       |  3 ++
 sysdeps/arm/bits/wordsize.h                   | 21 ++++++++++
 sysdeps/arm/utmp-size.h                       |  2 +
 sysdeps/csky/bits/wordsize.h                  | 21 ++++++++++
 sysdeps/csky/utmp-size.h                      |  2 +
 sysdeps/generic/utmp-size.h                   | 23 +++++++++++
 sysdeps/gnu/bits/utmpx.h                      |  2 +-
 sysdeps/hppa/utmp-size.h                      |  2 +
 sysdeps/m68k/bits/wordsize.h                  | 21 ++++++++++
 sysdeps/m68k/utmp-size.h                      |  3 ++
 sysdeps/microblaze/bits/wordsize.h            | 21 ++++++++++
 sysdeps/microblaze/utmp-size.h                |  2 +
 sysdeps/mips/bits/wordsize.h                  |  6 +--
 sysdeps/mips/utmp-size.h                      |  2 +
 sysdeps/nios2/bits/wordsize.h                 | 21 ++++++++++
 sysdeps/nios2/utmp-size.h                     |  2 +
 sysdeps/or1k/utmp-size.h                      |  3 ++
 sysdeps/powerpc/powerpc32/bits/wordsize.h     |  3 +-
 sysdeps/powerpc/powerpc64/bits/wordsize.h     |  3 +-
 sysdeps/powerpc/utmp-size.h                   |  2 +
 sysdeps/riscv/utmp-size.h                     |  2 +
 sysdeps/sh/bits/wordsize.h                    | 21 ++++++++++
 sysdeps/sh/utmp-size.h                        |  2 +
 sysdeps/sparc/sparc32/bits/wordsize.h         |  2 +-
 sysdeps/sparc/sparc64/bits/wordsize.h         |  3 +-
 sysdeps/sparc/utmp-size.h                     |  2 +
 sysdeps/unix/sysv/linux/hppa/bits/wordsize.h  | 21 ++++++++++
 .../unix/sysv/linux/powerpc/bits/wordsize.h   |  3 +-
 sysdeps/unix/sysv/linux/sparc/bits/wordsize.h |  3 +-
 sysdeps/x86/bits/wordsize.h                   |  5 +--
 sysdeps/x86/utmp-size.h                       |  2 +
 39 files changed, 306 insertions(+), 26 deletions(-)
 create mode 100644 login/tst-utmp-size-64.c
 create mode 100644 login/tst-utmp-size.c
 create mode 100644 login/tst-utmp-unsigned-64.c
 create mode 100644 login/tst-utmp-unsigned.c
 create mode 100644 sysdeps/arc/utmp-size.h
 create mode 100644 sysdeps/arm/bits/wordsize.h
 create mode 100644 sysdeps/arm/utmp-size.h
 create mode 100644 sysdeps/csky/bits/wordsize.h
 create mode 100644 sysdeps/csky/utmp-size.h
 create mode 100644 sysdeps/generic/utmp-size.h
 create mode 100644 sysdeps/hppa/utmp-size.h
 create mode 100644 sysdeps/m68k/bits/wordsize.h
 create mode 100644 sysdeps/m68k/utmp-size.h
 create mode 100644 sysdeps/microblaze/bits/wordsize.h
 create mode 100644 sysdeps/microblaze/utmp-size.h
 create mode 100644 sysdeps/mips/utmp-size.h
 create mode 100644 sysdeps/nios2/bits/wordsize.h
 create mode 100644 sysdeps/nios2/utmp-size.h
 create mode 100644 sysdeps/or1k/utmp-size.h
 create mode 100644 sysdeps/powerpc/utmp-size.h
 create mode 100644 sysdeps/riscv/utmp-size.h
 create mode 100644 sysdeps/sh/bits/wordsize.h
 create mode 100644 sysdeps/sh/utmp-size.h
 create mode 100644 sysdeps/sparc/utmp-size.h
 create mode 100644 sysdeps/unix/sysv/linux/hppa/bits/wordsize.h
 create mode 100644 sysdeps/x86/utmp-size.h


base-commit: ae7468a7b0bcf22e9cd5fcae42bb9e4f65de83ee
-- 
2.44.0


             reply	other threads:[~2024-04-10  6:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-10  6:45 Florian Weimer [this message]
2024-04-10  6:45 ` [PATCH v3 1/3] login: Check default sizes of structs utmp, utmpx, lastlog Florian Weimer
2024-04-12 16:14   ` Adhemerval Zanella Netto
2024-04-10  6:45 ` [PATCH v3 2/3] login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug 30701) Florian Weimer
2024-04-12 16:15   ` Adhemerval Zanella Netto
2024-04-12 21:23   ` Paul Eggert
2024-04-15  9:28     ` Florian Weimer
2024-04-17 21:14       ` Paul Eggert
2024-04-10  6:45 ` [PATCH v3 3/3] login: Use unsigned 32-bit types for seconds-since-epoch Florian Weimer
2024-04-12 16:19   ` Adhemerval Zanella Netto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1712731247.git.fweimer@redhat.com \
    --to=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).