Message ID | 20210518205613.1487824-10-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 3935C395BC36; Tue, 18 May 2021 20:56:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3935C395BC36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1621371395; bh=ugE2RB/N9QUBu3jPuPxf06NNMdy3OtIWpWIpKOowVI0=; 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=c/RFaiY9/jhXH/kGABa6Agm/77w6u59k+JO0gYqv+lyOJKDnqz4kqa8eMhz4AOEV/ rUMl4Egd0sZUOushkNt62sBR8qircw6prJhvIA9F6krG3XGtecqqnmUJbjbOBU7/gG AknZdBGpxM7a5pGrSlnJEi2qYhae0JS3DgcYev70= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by sourceware.org (Postfix) with ESMTPS id A3A4E395C826 for <libc-alpha@sourceware.org>; Tue, 18 May 2021 20:56:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A3A4E395C826 Received: by mail-qv1-xf2c.google.com with SMTP id u33so5688763qvf.9 for <libc-alpha@sourceware.org>; Tue, 18 May 2021 13:56:31 -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=ugE2RB/N9QUBu3jPuPxf06NNMdy3OtIWpWIpKOowVI0=; b=Y5a6TpFggX3c0Zps8dCOxx6tCwuc1rhaIsF3iwani4YHVhr1E9KZzRF3nF8s0zMhd2 grba5iG1dAzlBw5zJMj6Px++yZpV1dM8x31lJMomSpaHgrjYN/sykA2jC6Qy7bUMgTx/ FD0ECMm6PID5vrHap52sMG2zzyJ8eW+Y/yshmWGSmujzcgEcgJnqSydKXJrqIEj5a1mF l2qRr7eFpFLP/QlG8Uo9B197nZ718c/eXJgS3Y2s8eG+4OCo3N0OohRLK0g3/dvYOcL7 kLDK/NVoarbVQLD6xbkn/PlCX5UM26ApylHpVOprznosmPAxvMD+lDay6U+Oz8mBFmXC 3EJg== X-Gm-Message-State: AOAM533oVVGDHK4zLD0xSzppTzCBm164ETe7AoROnHI+LqUrGv+s14fA EbvzcXYRkdNYVIP5yncuxHFZXEOzcTYm2w== X-Google-Smtp-Source: ABdhPJwtGbWTQxWefyUMKt4Iax1zZ8HomjMTLRj9oi8dzN0HiiV8lRC1VMUkL4YLoSXbvKYekbu0rA== X-Received: by 2002:a0c:ca0c:: with SMTP id c12mr8197653qvk.47.1621371391186; Tue, 18 May 2021 13:56:31 -0700 (PDT) Received: from birita.. ([177.194.37.86]) by smtp.googlemail.com with ESMTPSA id o26sm13649937qkm.4.2021.05.18.13.56.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 13:56:30 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH v2 09/25] y2038: Add __USE_TIME_BITS64 support for struct timeval Date: Tue, 18 May 2021 17:55:57 -0300 Message-Id: <20210518205613.1487824-10-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
May 18, 2021, 8:55 p.m. UTC
The __USE_TIME_BITS64 is not defined internally yet. --- time/bits/types/struct_timeval.h | 5 +++++ 1 file changed, 5 insertions(+)
Comments
On Tue, 18 May 2021 17:55:57 -0300 Adhemerval Zanella <adhemerval.zanella@linaro.org> wrote: > The __USE_TIME_BITS64 is not defined internally yet. > --- > time/bits/types/struct_timeval.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/time/bits/types/struct_timeval.h > b/time/bits/types/struct_timeval.h index 70394ce886..3466137c35 100644 > --- a/time/bits/types/struct_timeval.h > +++ b/time/bits/types/struct_timeval.h > @@ -7,7 +7,12 @@ > microsecond but also has a range of years. */ > struct timeval > { > +#ifdef __USE_TIME_BITS64 > + __time64_t tv_sec; /* Seconds. */ > + __suseconds64_t tv_usec; /* Microseconds. */ > +#else > __time_t tv_sec; /* Seconds. */ > __suseconds_t tv_usec; /* Microseconds. */ > +#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/struct_timeval.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/time/bits/types/struct_timeval.h b/time/bits/types/struct_timeval.h > index 70394ce886..3466137c35 100644 > --- a/time/bits/types/struct_timeval.h > +++ b/time/bits/types/struct_timeval.h > @@ -7,7 +7,12 @@ > microsecond but also has a range of years. */ > struct timeval > { > +#ifdef __USE_TIME_BITS64 > + __time64_t tv_sec; /* Seconds. */ > + __suseconds64_t tv_usec; /* Microseconds. */ OK. > +#else > __time_t tv_sec; /* Seconds. */ > __suseconds_t tv_usec; /* Microseconds. */ > +#endif > }; > #endif >
diff --git a/time/bits/types/struct_timeval.h b/time/bits/types/struct_timeval.h index 70394ce886..3466137c35 100644 --- a/time/bits/types/struct_timeval.h +++ b/time/bits/types/struct_timeval.h @@ -7,7 +7,12 @@ microsecond but also has a range of years. */ struct timeval { +#ifdef __USE_TIME_BITS64 + __time64_t tv_sec; /* Seconds. */ + __suseconds64_t tv_usec; /* Microseconds. */ +#else __time_t tv_sec; /* Seconds. */ __suseconds_t tv_usec; /* Microseconds. */ +#endif }; #endif