From patchwork Mon Sep 22 00:31:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 120595 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 A5696385840D for ; Mon, 22 Sep 2025 00:31:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A5696385840D X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id F085A3858C31 for ; Mon, 22 Sep 2025 00:31:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F085A3858C31 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bounce.ens-lyon.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F085A3858C31 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.77.166.138 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1758501069; cv=none; b=JQzPHZkXsnoHHP8Jze0VBThE4ZubaohbCZPYVJr9HP/p1j6rZqzs1CrrQSjWjRCj7suzQrdEUjfAQ8Rb5ifEALYGqHqJj+vJY3bNz8wjyYMWu+2KpeClCM/keCMWNVsevmazTsS3EC1XUTQn2SGdlDTpBlBPwHYGst99SYgVCdE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1758501069; c=relaxed/simple; bh=ttnMU9MTIxne64kKsnmilS593WPrmsYof75ih+aYK6A=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=QP2fdHzY4IONPDui0yeHXWoHP6ASaKH1M8UPwj5OnOkHKMdrTCy94PgbDmvKru8uJzKTScxp2nNUXA/QYzSC6HRZK0zXHlgGtwbfWpLQ5P4j0ClU2q953UktBL+9F5/zsAUn/qmEOBwrZSGFM6lnChFztF/LBe7RBpQmbhODcHk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F085A3858C31 Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 29EAEA03A6; Mon, 22 Sep 2025 02:31:08 +0200 (CEST) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hRHTgzAOULtT; Mon, 22 Sep 2025 02:31:08 +0200 (CEST) Received: from begin (aamiens-653-1-40-48.w83-192.abo.wanadoo.fr [83.192.199.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id 0E208A039A; Mon, 22 Sep 2025 02:31:08 +0200 (CEST) Received: from samy by begin with local (Exim 4.98.2) (envelope-from ) id 1v0USR-00000009k2p-2VVx; Mon, 22 Sep 2025 02:31:07 +0200 From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [hurd,commited] hurd: Fix RLIM_INFINITY on 64b Date: Mon, 22 Sep 2025 02:31:07 +0200 Message-ID: <20250922003107.2321940-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS, 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.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org rlim_t is 64b on 64b systems, so we should extend RLIM_INFINITY to that, not only RLIM64_INFINITY or requiring 64b offsets. This is similar to Linux headers. --- bits/resource.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bits/resource.h b/bits/resource.h index a42a338b44..6b4d6cc506 100644 --- a/bits/resource.h +++ b/bits/resource.h @@ -77,7 +77,7 @@ enum __rlimit_resource /* Value to indicate that there is no limit. */ #ifndef __USE_FILE_OFFSET64 -# define RLIM_INFINITY 0x7fffffff +# define RLIM_INFINITY ((__rlim_t) -1) #else # define RLIM_INFINITY 0x7fffffffffffffffLL #endif