From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:6214:98d:: with SMTP id dt13mr3628662qvb.13.1632393736537; Thu, 23 Sep 2021 03:42:16 -0700 (PDT) X-Received: by 2002:a05:6902:1549:: with SMTP id r9mr4717651ybu.204.1632393736290; Thu, 23 Sep 2021 03:42:16 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 23 Sep 2021 03:42:16 -0700 (PDT) Injection-Info: google-groups.googlegroups.com; posting-host=84.92.86.82; posting-account=OCGnxwkAAADCyu751mus9xKbEvUSs9BP NNTP-Posting-Host: 84.92.86.82 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8936f386-3fdb-43b3-b912-317906d59631n@googlegroups.com> Subject: C time_t 2038 problem s-os_lib.ads From: Kevin Chadwick Injection-Date: Thu, 23 Sep 2021 10:42:16 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:62821 List-Id: I have noticed that C time_t appears to be Long_integer in Gnat s-os_lib.ads. Just wondering if it should be 64bit long long as OpenBSD has already moved to long long? There seemed to be some noise on Twitter about the Linux Kernel side last year but I'm not sure if that ended up just being noise without action or not. "https://www.openbsd.org/papers/eurobsdcon_2013_time_t/" p.s. It's interesting that Adas type system avoids this issue mostly (ignoring leap handling pain)