From patchwork Mon Jun 7 20:35:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 43761 Return-Path: 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 233C13938C02 for ; Mon, 7 Jun 2021 20:44:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 233C13938C02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1623098661; bh=F7rUg+SKuRK1WZu4s24XbHhI2uAtJJEMBmX0E2CBYAY=; 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=ejSy9ywU+ws82L8J2tT8vdLMh9DbGeyyZAsVEUi5Q5p2X/IGDSaUgKL4Fkx48nmlh SbSS1Bg7jws9RutbAfp8L8IjvDHO4wsDR2tcZn20To9ONWT+QIKYIqdOHQBRbr4MZF 7V70Gw5I4Mlms2piL6J5Vkbwn+4GJ72v4MQ/LFf8= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by sourceware.org (Postfix) with ESMTPS id BD5FE3938C0E for ; Mon, 7 Jun 2021 20:36:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BD5FE3938C0E Received: by mail-qv1-xf2a.google.com with SMTP id x6so4712558qvx.4 for ; Mon, 07 Jun 2021 13:36:35 -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=F7rUg+SKuRK1WZu4s24XbHhI2uAtJJEMBmX0E2CBYAY=; b=tPngPafWzq72RPvJgjB6vI/U/uDcqUWD6450o5+eFJDkXjnQuEcwJRFDnr3xNJf71Y vmSRwLaTj7yhnpyC4ykkXq2jSFXtgdx9x8qIqGoO9Azb/Vatn4RUp3q4zCxamJ5Elx+J 4RMr8yH9aCqfvmF0pZ12mcxQ4qWu/nswydY84FMDy7B5CIuxveDHGl/D3EYhnkYbJ0el PGqHrVPN8q7yzH4YZkgFa6/dnkTYvphp3LX6KMcgNjwIa3wy6eBQWo+96zML+EZGTEr4 dZPk8fk58JmN1N4aAdJNy1w4ft/agfxKfO3dS3uI2/1LbSc79dYqPLywAYCXZ37UxoB7 9bqw== X-Gm-Message-State: AOAM532HS83o67UOhkAVcseJUbADCnhJhB2IXhpSaSvbEHaXs9tXemyG KAfXPA3MI8c4yg4Ki2nU/LGEb7UxHEWxVw== X-Google-Smtp-Source: ABdhPJxEkL4p0BuCsxSBNNuuekg/lncrNy96tkRXv/Mr9yxXDBQa6/y7qH8rK5YP0lBaFwo6WDKgww== X-Received: by 2002:ad4:4084:: with SMTP id l4mr15049519qvp.37.1623098195236; Mon, 07 Jun 2021 13:36:35 -0700 (PDT) Received: from birita.. ([177.194.59.218]) by smtp.googlemail.com with ESMTPSA id t196sm10422123qke.50.2021.06.07.13.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 13:36:34 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH v3 10/24] y2038: Add __USE_TIME_BITS64 support for struct utimbuf Date: Mon, 7 Jun 2021 17:35:59 -0300 Message-Id: <20210607203613.282543-11-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210607203613.282543-1-adhemerval.zanella@linaro.org> References: <20210607203613.282543-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.4 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" The __USE_TIME_BITS64 is not defined internally yet. Reviewed-by: Lukasz Majewski Reviewed-by: Carlos O'Donell Tested-by: Carlos O'Donell --- 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