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=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a37:746:: with SMTP id 67mr5250306qkh.465.1632409729614; Thu, 23 Sep 2021 08:08:49 -0700 (PDT) X-Received: by 2002:a25:8409:: with SMTP id u9mr6040328ybk.159.1632409729345; Thu, 23 Sep 2021 08:08:49 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.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 08:08:49 -0700 (PDT) In-Reply-To: <4431fad9-d297-4d68-8c0f-fa771c6710f6n@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=136.163.208.2; posting-account=HFCrOQoAAABZD_f-UUbYHm3lJDIrh-UX NNTP-Posting-Host: 136.163.208.2 References: <8936f386-3fdb-43b3-b912-317906d59631n@googlegroups.com> <4431fad9-d297-4d68-8c0f-fa771c6710f6n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: C time_t 2038 problem s-os_lib.ads From: Joakim Strandberg Injection-Date: Thu, 23 Sep 2021 15:08:49 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:62825 List-Id: torsdag 23 september 2021 kl. 17:01:04 UTC+2 skrev m8il...@gmail.com: > On Thursday, September 23, 2021 at 2:26:11 PM UTC, Jeffrey R. Carter wrot= e:=20 > > On 9/23/21 12:42 PM, Kevin Chadwick wrote:=20 > > > I have noticed that C time_t appears to be Long_integer in Gnat s-os_= lib.ads.=20 > > >=20 > > > Just wondering if it should be 64bit long long as OpenBSD has already= moved to long long?=20 > > GNAT defines=20 > >=20 > > type Long_Integer is range -(2 **63) .. +(2 **63 - 1);=20 > > for Long_Integer'Size use 64;=20 > > > I see, thank you.=20 >=20 > GPS doesn't seem to jump to declaration for Long_Integer and grep hasn't = turned it up,=20 > so I will just take your word for it. Well, yes Long_Integer is 64-bits, but long long in cpp is 128 bits which s= ounds like a discrepancy to me. On OpenBSD it indicates C time_t should be = changed from Long_Integer to somethinge else that is 128-bits. All package= s in Ada has "with Standard; use Standard;" which brings Integer etc. into = scope. Long_Integer should be defined in the Standard package. Under help i= n GPS it should be possible to find the Standard package. Best regards, Joakim