From patchwork Sat Jan 29 13:29:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 1586172 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=d5TnyWJ4; dkim-atps=neutral Authentication-Results: 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=) 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JmFYc2n1rz9sPC for ; Sun, 30 Jan 2022 00:29:56 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B27883858415 for ; Sat, 29 Jan 2022 13:29:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B27883858415 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1643462992; bh=c0RCE0+LNTufKw2BTdofUJLEnvWPDYDOpmKExu52MlU=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=d5TnyWJ4Fy8WqbJFPq9fUkEJ47LXcJdH8faCVajjOJJB2Fgw6xc0GSlr3/X/FFK5O QB81+38hSyuhCcS4tvjBNCUnZC5NJc8e6s6q++HkfeeYJzgWARMlAgP47YZw/5obqM gRB/2CPvb53wlhtgQW3AZP9r/h8SL1z0GYpYhtnk= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id A60C03858D28 for ; Sat, 29 Jan 2022 13:29:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A60C03858D28 Received: by mail-pf1-x435.google.com with SMTP id a8so8691979pfa.6 for ; Sat, 29 Jan 2022 05:29:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=c0RCE0+LNTufKw2BTdofUJLEnvWPDYDOpmKExu52MlU=; b=UWkpcnircfKXj2RzFJGDUW3FICdP57g9s9QAuYq0luwS+Kp7AvGvMY+LTxRJQwWtwJ aKWPVxlaRncZKAJN55AVszFe/1sJHc/1IYk/a1LLkBLgcHDely9p1y88GoxHKAoN0ELC oz4C2CRaCdJtCVTCvjqBpQ9TG5/oeu0RQRkd0fq8XdH0UwLT/FxC/1j+9/+0W1AUfKun SSuIDYVjpshKH0yZMGVrfusxXyaoGE9/SW1aFbF32OYS/N9Ri+7Cltxk7wNMemK6XAkd j6+e/E7wg55jpwjSlXtY4jyULtrniVmSE8/rvxDqsCBwxy2JtiSzugSq0uJ0bxfKxzyW 1l9g== X-Gm-Message-State: AOAM533SglBhXE5FE7NaS40kP4asg4f+H9ytM/BMsgz/KZz6QvRRCIxT 2Js21D0pLxTP+7IYcZv+tovi9wfTU60= X-Google-Smtp-Source: ABdhPJxEiIZXCABgkW1L9Er0GFdFJtP4nMxQccgxSZGYxi8CDu6lAYvPM1xpf153sV8TUXA3iE0vHg== X-Received: by 2002:a63:2403:: with SMTP id k3mr10289632pgk.41.1643462977508; Sat, 29 Jan 2022 05:29:37 -0800 (PST) Received: from gnu-tgl-3.localdomain ([172.58.35.133]) by smtp.gmail.com with ESMTPSA id oj5sm6137218pjb.53.2022.01.29.05.29.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 05:29:37 -0800 (PST) Received: from gnu-tgl-2.localdomain (gnu-tgl-2 [192.168.1.36]) by gnu-tgl-3.localdomain (Postfix) with ESMTPS id 11EE6C0222; Sat, 29 Jan 2022 05:29:36 -0800 (PST) Received: from gnu-tgl-2.. (localhost [IPv6:::1]) by gnu-tgl-2.localdomain (Postfix) with ESMTP id 216AD30049F; Sat, 29 Jan 2022 05:29:32 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH] tst-socket-timestamp-compat.c: Check __TIMESIZE [BZ #28837] Date: Sat, 29 Jan 2022 05:29:32 -0800 Message-Id: <20220129132932.10564-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3028.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: "H.J. Lu via Libc-alpha" From: "H.J. Lu" Reply-To: "H.J. Lu" Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" time_t size is defined by __TIMESIZE, not __WORDSIZE. Check __TIMESIZE, instead of __WORDSIZE, for time_t size. This fixes BZ #28837. Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c b/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c index de261dae5a..0ff1a214e6 100644 --- a/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c +++ b/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c @@ -237,7 +237,7 @@ do_test (void) { /* This test only make sense for ABIs that support 32 bit time_t socket timestampss. */ - if (sizeof (time_t) > 4 && __WORDSIZE == 64) + if (sizeof (time_t) > 4 && __TIMESIZE == 64) return 0; srv = xsocket (AF_INET, SOCK_DGRAM, 0);