Message ID | 20210518205613.1487824-9-adhemerval.zanella@linaro.org |
---|---|
State | Superseded |
Headers |
Return-Path: <libc-alpha-bounces@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A293E396B40F; Tue, 18 May 2021 20:56:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A293E396B40F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1621371393; bh=wRN47yS40/pLCHqlc+M4iAF3gRYql55y7H+7EQxloMs=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=PYbqtFjChL7yR+wdk9vqiEyucrA2lh22Kt732jMh7jAcFp5FISdo9+Jg7h1iZDvxB lNhNla+DlOS/t691qXmrbJOFnYAW1JpiFMu+XT55p8zlx55N92LXsLdhy2zKlhcaBY zo1QqJIH5RUx36slOjX3Va0MIpPdB7zIbXT2A8Cg= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by sourceware.org (Postfix) with ESMTPS id 2F960396B402 for <libc-alpha@sourceware.org>; Tue, 18 May 2021 20:56:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2F960396B402 Received: by mail-qt1-x82d.google.com with SMTP id f8so8593141qth.6 for <libc-alpha@sourceware.org>; Tue, 18 May 2021 13:56:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wRN47yS40/pLCHqlc+M4iAF3gRYql55y7H+7EQxloMs=; b=YCR4BioKbe04d5oce57wvdAgZwoWri23en54NvElP6s8XY++cwWUoSnxx4BSQb7n1k SLRcbUhYrmB5Qn5Ap/fYd6lwKyrfeWkLwKk7Bb4ArGSVSoa1rnp6MgUMPafEiFMhzoMz WU9L59z+P9nGa/0p49r2tOuc8mZGDBKtwvh9EeqXrnR230fEONAZGzbYLWvK8cfIXiZS TZoXMjjArxIXkLsSNqs2zdZpFr38yi3OKQun2mGbq6QrUuklazn3A4IEyMC5ZObRtWm5 R13Jnknnn2NG8peGbyTC3Wc2VnHX3cjcN6/VbOPbzswPmektD+dayyMrkclAN1+GD9J7 xKpA== X-Gm-Message-State: AOAM530zRjdxBBaohlk+xHyHQk8jaD0RrI4UAGHgGGh8ig31/al6E2Uw A9tMRDaUUTBJzPYnRJEiMYmbfkT306iIAA== X-Google-Smtp-Source: ABdhPJyJ74hjSRxFjdcGA+t9D9NW+2GuKycTYhqhlbf8AEvtQLJMFubikLItdjwDrVVtGBSJt7JOhA== X-Received: by 2002:ac8:7e93:: with SMTP id w19mr6906386qtj.314.1621371389652; Tue, 18 May 2021 13:56:29 -0700 (PDT) Received: from birita.. ([177.194.37.86]) by smtp.googlemail.com with ESMTPSA id o26sm13649937qkm.4.2021.05.18.13.56.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 13:56:29 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH v2 08/25] y2038: Add __USE_TIME_BITS64 support for time_t Date: Tue, 18 May 2021 17:55:56 -0300 Message-Id: <20210518205613.1487824-9-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210518205613.1487824-1-adhemerval.zanella@linaro.org> References: <20210518205613.1487824-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Adhemerval Zanella via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Adhemerval Zanella <adhemerval.zanella@linaro.org> Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces@sourceware.org> |
Series |
Add 64 bit time support on legacy ABIs
|
|
Checks
Context | Check | Description |
---|---|---|
dj/TryBot-apply_patch | success | Patch applied to master at the time it was sent |
Commit Message
Adhemerval Zanella Netto
May 18, 2021, 8:55 p.m. UTC
The __USE_TIME_BITS64 is not defined internally yet. --- time/bits/types/time_t.h | 4 ++++ 1 file changed, 4 insertions(+)
Comments
On Tue, 18 May 2021 17:55:56 -0300 Adhemerval Zanella <adhemerval.zanella@linaro.org> wrote: > The __USE_TIME_BITS64 is not defined internally yet. > --- > time/bits/types/time_t.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/time/bits/types/time_t.h b/time/bits/types/time_t.h > index ab8287c6fe..84d67f6ac3 100644 > --- a/time/bits/types/time_t.h > +++ b/time/bits/types/time_t.h > @@ -4,6 +4,10 @@ > #include <bits/types.h> > > /* Returned by `time'. */ > +#ifdef __USE_TIME_BITS64 > +typedef __time64_t time_t; > +#else > typedef __time_t time_t; > +#endif > > #endif Reviewed-by: Lukasz Majewski <lukma@denx.de> Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de
On 5/18/21 4:55 PM, Adhemerval Zanella wrote: > The __USE_TIME_BITS64 is not defined internally yet. LGTM. No regressions on x86_64, i686, ppc64le, aarch64, s390x. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com> > --- > time/bits/types/time_t.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/time/bits/types/time_t.h b/time/bits/types/time_t.h > index ab8287c6fe..84d67f6ac3 100644 > --- a/time/bits/types/time_t.h > +++ b/time/bits/types/time_t.h > @@ -4,6 +4,10 @@ > #include <bits/types.h> > > /* Returned by `time'. */ > +#ifdef __USE_TIME_BITS64 > +typedef __time64_t time_t; > +#else > typedef __time_t time_t; > +#endif > > #endif >
diff --git a/time/bits/types/time_t.h b/time/bits/types/time_t.h index ab8287c6fe..84d67f6ac3 100644 --- a/time/bits/types/time_t.h +++ b/time/bits/types/time_t.h @@ -4,6 +4,10 @@ #include <bits/types.h> /* Returned by `time'. */ +#ifdef __USE_TIME_BITS64 +typedef __time64_t time_t; +#else typedef __time_t time_t; +#endif #endif