unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Joseph Myers <joseph@codesourcery.com>
To: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Cc: <libc-alpha@sourceware.org>
Subject: Re: Accelerating Y2038 glibc fixes
Date: Thu, 25 Jul 2019 20:40:24 +0000	[thread overview]
Message-ID: <alpine.DEB.2.21.1907252030080.17883@digraph.polyomino.org.uk> (raw)
In-Reply-To: <d0b001c8-cc18-f79f-d1b8-e2aeb3d07fc5@linaro.org>

On Thu, 18 Jul 2019, Adhemerval Zanella wrote:

> So what about to not add a user-selected way to set the time_t size
> (as off_t) and just enable time64_t support and sets is as default for 
> build with a minimum kernel of v5.1 (if I recall correctly as being the 
> one that added time64 support)? 

I think duplicating ABIs like this is a very bad idea - the ABI supported 
by glibc for a configuration that currently has 32-bit time_t should not 
change to have two different, incompatible variants depending on how glibc 
is configured.  The default API provided by glibc should also not vary 
like that depending on how glibc is configured.

Given that you have compatibility with existing binaries (as opposed to a 
complete new incompatible libc.so.7 ABI with building libc.so.6 for that 
architecture ceasing to be supported by glibc), eliminating support for 
building with _TIME_BITS=32 makes the changes much *harder*, not easier.  
There are three logical steps in the time_t transition.

(a) Support building applications for 64-bit time_t, using _TIME_BITS=64.

(b) Change the default to _TIME_BITS=64 (also requires defaulting to 
_FILE_OFFSET_BITS=64).

(c) Remove support for building applications with _TIME_BITS=32.

The hardest of those steps is (c), not (a), because of the difficulty in 
both building and testing all the compatibility symbols after step (c), 
without all the header redirections of symbols getting in the way when 
building those functions and the tests for them.

In view of the difficulty of both (c) and (a), it clearly makes sense to 
separate them, and start with (a), with (c) to follow some time later.

> I also wish we could also move forward with off_t and set LFS as default 
> as well.

We can (it's the equivalent of (c), not of (b), that's particularly hard, 
though even when doing (b) you need to be careful you keep sufficient test 
coverage for both function variants).  See what I said in 
<https://sourceware.org/ml/libc-alpha/2019-01/msg00124.html>.

-- 
Joseph S. Myers
joseph@codesourcery.com

  parent reply	other threads:[~2019-07-25 20:40 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-12  7:21 Accelerating Y2038 glibc fixes Wolfgang Denk
2019-07-16  9:32 ` Wolfgang Denk
2019-07-16 11:50 ` Siddhesh Poyarekar
2019-07-16 12:40   ` Wolfgang Denk
2019-07-16 12:44 ` Florian Weimer
2019-07-16 14:52   ` Wolfgang Denk
2019-07-16 15:09     ` Florian Weimer
2019-07-16 15:19       ` Andrew Pinski
2019-07-17 14:15     ` Arnd Bergmann
2019-07-17 14:41       ` Florian Weimer
2019-07-17 16:00         ` Wolfgang Denk
2019-07-17 16:04           ` Florian Weimer
2019-07-17 16:18             ` Lukasz Majewski
2019-07-18 18:53               ` Adhemerval Zanella
2019-07-18 19:13                 ` Florian Weimer
2019-07-18 20:31                   ` Adhemerval Zanella
2019-07-18 21:20                     ` Florian Weimer
2019-07-18 22:32                     ` Paul Eggert
2019-07-19  7:21                       ` Andreas Schwab
2019-07-19  3:06                     ` Rich Felker
2019-07-19 17:44                       ` Adhemerval Zanella
2019-07-19 19:03                         ` Alistair Francis
2019-07-25 20:40                 ` Joseph Myers [this message]
2019-07-29 17:47                   ` Adhemerval Zanella
2019-07-29 19:58                     ` Joseph Myers
2019-07-29 21:00                       ` Adhemerval Zanella
2019-07-29 21:08                         ` Joseph Myers
2019-07-29 23:12                           ` Paul Eggert
2019-07-29 23:30                             ` Joseph Myers
2019-07-17 17:50       ` Rich Felker
2019-07-17 21:57         ` Lukasz Majewski
2019-07-17 22:37           ` Rich Felker
2019-07-18  7:20             ` Lukasz Majewski
2019-07-18 13:35               ` Rich Felker
2019-07-18 14:47           ` Rich Felker
2019-07-18 14:49             ` Florian Weimer
2019-07-18 15:46               ` Rich Felker
2019-07-18 16:43                 ` Adhemerval Zanella
2019-07-20  4:43             ` Rich Felker
2019-07-25 19:54 ` Joseph Myers
2019-07-26 10:39   ` Lukasz Majewski
2019-07-29 18:55     ` Zack Weinberg
2019-07-29 20:12       ` Joseph Myers
2019-07-30 11:02         ` Lukasz Majewski
2019-07-30 12:24           ` Joseph Myers
2019-07-30 14:04       ` Lukasz Majewski
2019-08-09  7:25         ` Lukasz Majewski
     [not found]           ` <CAKCAbMhOMQ9yTFpy+OQkDvZPPFf_fFn6oSxjvLTaUwC4jpPRag@mail.gmail.com>
2019-08-09 12:32             ` Fwd: " Zack Weinberg
2019-07-30 19:58       ` Joseph Myers
2019-07-30 20:28         ` Florian Weimer

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=alpine.DEB.2.21.1907252030080.17883@digraph.polyomino.org.uk \
    --to=joseph@codesourcery.com \
    --cc=adhemerval.zanella@linaro.org \
    --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).