From patchwork Mon Feb 13 17:12:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 1741791 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=oI7k8MPw; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PFrYr1dRhz23hX for ; Tue, 14 Feb 2023 04:14:56 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2297B389850F for ; Mon, 13 Feb 2023 17:14:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2297B389850F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676308494; bh=JDE7PEgrNhF00WVGhlTv4oUxui3tYAH7zH7Kfo094DI=; 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=oI7k8MPwYBBJugBWXuh8/LqO+gH1r938CxVVvTalGjPsxMDqScDYwvIw8paaBb1k4 3c7ErhzzYAx1LafF2ZKesz7JxoYMDrqr26pCRb+3GF9fOladHkqaZQ61ZQ+MjvoEey H1rrtDjrCxB1BMaF+taivTALwbpOaFNepGt8BmYs= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by sourceware.org (Postfix) with ESMTPS id 37C9C3850408 for ; Mon, 13 Feb 2023 17:13:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 37C9C3850408 Received: by mail-oo1-xc29.google.com with SMTP id y13-20020a4ae7cd000000b0051a750e2ebdso1251983oov.5 for ; Mon, 13 Feb 2023 09:13:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JDE7PEgrNhF00WVGhlTv4oUxui3tYAH7zH7Kfo094DI=; b=WcAT1HhM0dHCs+MsX5RJ/K2Qbbuz5FrCIINLX3bC+POovBCc8xSnfve/PcP6r8n9+a hrCerKRrKYzRQgdzUEWXbzIKFnP4zINlUjb8Ss2YJtybm+xSfp721+Oe1CN3xw6121vP VT/PjnOS0nSHRaR3Gz1Xv04Rtp3yAJl9GSjEEZk0uBw1us7fBJGh8NVVQReV+iumpxhO JX7bqswRZ1B8IgVHwCL5mGtcE++GaBJB66Wg6YIvQnQ7vGzItCjnYaHN+BZErKdM5Naq Dd+cqgHQNMjLPK5uK+lwb6YFYNIaI7XsBQ5y0AzkORszoetHE2fQpAzXePbsPFuhLITZ 8qeQ== X-Gm-Message-State: AO0yUKV1PaEXPDBKfhfNSZrZrLUA7gKxXnvr9x6ajOvRzJTo7s9mCYfQ Ltz55TEyJSS4RO+SC6tQV5qCL9MN4OBAcBVI X-Google-Smtp-Source: AK7set/PjYIZvHAUuO4hNk1abOBhuSOTvx/68apYEO4R5sBhoBFMYrJ8hCpEEoJxmSKeo6VenG0Fdw== X-Received: by 2002:a4a:a34a:0:b0:51a:c9a:ee78 with SMTP id u10-20020a4aa34a000000b0051a0c9aee78mr7976438ool.1.1676308398195; Mon, 13 Feb 2023 09:13:18 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c2:f662:138b:cd0c:7b7a:8860]) by smtp.gmail.com with ESMTPSA id q71-20020a4a334a000000b004c60069d1fbsm5045332ooq.11.2023.02.13.09.13.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 09:13:17 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH 6/9] support: Use 64 bit time_t routines on support_process_state_wait Date: Mon, 13 Feb 2023 14:12:59 -0300 Message-Id: <20230213171302.3045672-7-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230213171302.3045672-1-adhemerval.zanella@linaro.org> References: <20230213171302.3045672-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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 Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" The failure only shows if the system time is set past 2038. Checked on i686-linux-gnu and on system emulated arm-linux-gnueabihf with time set past y2038. --- support/support_process_state.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/support/support_process_state.c b/support/support_process_state.c index dc2296f8dd..d371456dcb 100644 --- a/support/support_process_state.c +++ b/support/support_process_state.c @@ -16,6 +16,9 @@ License along with the GNU C Library; if not, see . */ +#define _FILE_OFFSET_BITS 64 +#define _TIME_BITS 64 + #include #include #include