Message ID | 20210518205613.1487824-12-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 54089396B41D; Tue, 18 May 2021 20:56:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 54089396B41D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1621371397; bh=RNBObBkdbM30xDXKfeUEP7PiOvrnRHSi7PxPsskuJOw=; 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=tiERKiM48wrbFJY7YKleyJ3nay7KdCGRvnBl7ifsQj2JmOAYSxFNEZAFo1GFVdCra tN22EDJRjmR/fm6oQFkBtKZZsjKHs9IkKZIDgnd1BUTyiPkDyQnvfhaJKAI+QAu9+W JjljLDsFAWdSjFND5xQGQl/r90bQTIQCXMHUrfHA= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by sourceware.org (Postfix) with ESMTPS id 99EC3396B40D for <libc-alpha@sourceware.org>; Tue, 18 May 2021 20:56:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 99EC3396B40D Received: by mail-qk1-x735.google.com with SMTP id a2so10696326qkh.11 for <libc-alpha@sourceware.org>; Tue, 18 May 2021 13:56:34 -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=RNBObBkdbM30xDXKfeUEP7PiOvrnRHSi7PxPsskuJOw=; b=nxdV+Ba+TRhBVNRvMVyp/Yp87VEfudK0x8Q2cgLOyzp8FnYnAJhOSqJQBRslnqOrGw lx+2m4dHFxAtH6TtScj//PkWngLkEg45pdfIyXwN+r99hCIplbnZ+S3rSPLY2Dr/OivW A1jAWZsJzwPR/xSvxpryRrazoO/LLPVXFpTllG5hI8fa/aiHx4oD2tnEqy20E2eWu2ry N+x3eRwRfuAs2UI0deuJDt7JYjyfCyM/aycSV1ZNnk0cDUhgJuVm+hqc989xc52I4Jmb L3Wa845i9Eot7tRPvWl9hZtOICpDsGhD9KfIrRKYusXKMhNfcOZT7UMEM0sWmPY3ynhp FZAQ== X-Gm-Message-State: AOAM532trUk3uqgDYYMsTIJe2otaQbRd1BDz2aQHFRbVAL2+EahQLsjc xiIj5qXq8Huk8ZZ4XR8DoJ3243dvb4C9eQ== X-Google-Smtp-Source: ABdhPJxt4fVg2OCxMbPaV3FjXu9MMiglzKOtMI0k8N59IAUgNKAwEMDkEBOZg+w4ibOjGpJ4fzGGWQ== X-Received: by 2002:a05:620a:16c7:: with SMTP id a7mr7985277qkn.182.1621371394126; Tue, 18 May 2021 13:56:34 -0700 (PDT) Received: from birita.. ([177.194.37.86]) by smtp.googlemail.com with ESMTPSA id o26sm13649937qkm.4.2021.05.18.13.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 13:56:33 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH v2 11/25] y2038: Add __USE_TIME_BITS64 support for struct utimbuf Date: Tue, 18 May 2021 17:55:59 -0300 Message-Id: <20210518205613.1487824-12-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. --- io/utime.h | 5 +++++ 1 file changed, 5 insertions(+)
Comments
On Tue, 18 May 2021 17:55:59 -0300 Adhemerval Zanella <adhemerval.zanella@linaro.org> wrote: > The __USE_TIME_BITS64 is not defined internally yet. > --- > io/utime.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/io/utime.h b/io/utime.h > index df2299e406..c7612d0838 100644 > --- a/io/utime.h > +++ b/io/utime.h > @@ -35,8 +35,13 @@ __BEGIN_DECLS > /* Structure describing file times. */ > struct utimbuf > { > +#ifdef __USE_TIME_BITS64 > + __time64_t actime; /* Access time. */ > + __time64_t modtime; /* Modification time. */ > +#else > __time_t actime; /* Access time. */ > __time_t modtime; /* Modification time. */ > +#endif > }; > > /* Set the access and modification times of FILE to those given in 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. Reviewed utime usage in this case. 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> > --- > io/utime.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/io/utime.h b/io/utime.h > index df2299e406..c7612d0838 100644 > --- a/io/utime.h > +++ b/io/utime.h > @@ -35,8 +35,13 @@ __BEGIN_DECLS > /* Structure describing file times. */ > struct utimbuf > { > +#ifdef __USE_TIME_BITS64 > + __time64_t actime; /* Access time. */ > + __time64_t modtime; /* Modification time. */ OK. > +#else > __time_t actime; /* Access time. */ > __time_t modtime; /* Modification time. */ > +#endif > }; > > /* Set the access and modification times of FILE to those given in >
diff --git a/io/utime.h b/io/utime.h index df2299e406..c7612d0838 100644 --- a/io/utime.h +++ b/io/utime.h @@ -35,8 +35,13 @@ __BEGIN_DECLS /* Structure describing file times. */ struct utimbuf { +#ifdef __USE_TIME_BITS64 + __time64_t actime; /* Access time. */ + __time64_t modtime; /* Modification time. */ +#else __time_t actime; /* Access time. */ __time_t modtime; /* Modification time. */ +#endif }; /* Set the access and modification times of FILE to those given in