From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 458C62DC79 for ; Fri, 13 Sep 2024 03:21:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:From:Reply-To:Cc: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=XJZsa1jK6xr3zK+5pdLe1lWLERy3sOC6UtAE5ehdKvM=; b=K2gt/Zf6JOUGJmD5wwm2oHGws6 LuSE8+/rKmbeNQr+2zRjeM9jcBnSene4ABtPXUtZwOaiF8jElhprZLhjhlrLGW1aoAVTVuZ42Fkm/ QilS7F4fPud82NzHqwvZKDveK9P1OL/wGzMrkUWsXDIfqR0acPmQfkuapKP9MuftjMnQQUuM74r1s jGH8dEtDl+sy9RiPfPg/SKpYkdUwCJKWI3Mb+gTQdO4WiXnEaQqAXjL2hIA5LaGxY8zvnufEinKLx I5OaIqZh7MmJIYqZh5d6FOl/gutP7aLcziejZT+RPcewkYg2EJsvQ7UKH5r+bYQr8PY2TM5RtAeWL nHtonQmA==; Received: by zero.zsh.org with local id 1sov0L-0002pG-MC; Fri, 13 Sep 2024 01:21:45 +0000 Received: by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1sov05-0002Vf-68; Fri, 13 Sep 2024 01:21:29 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.97.1) (envelope-from ) id 1sov04-000000009As-3Gqa for zsh-workers@zsh.org; Fri, 13 Sep 2024 03:21:28 +0200 From: Oliver Kiddle To: Zsh workers Subject: PATCH: handle Haiku specific rlimit MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <35268.1726190488.1@hydra> Date: Fri, 13 Sep 2024 03:21:28 +0200 Message-ID: <35269-1726190488.776139@ix-z.fxEF.r65O> X-Seq: 53083 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: This avoids the test failure for an unknown resource limit on Haiku OS by adding a test and description for it. Their sys/resource.h includes a comment so it was possible to identify it and establish that it doesn't have any associated unit. Oliver diff --git a/Src/Builtins/rlimits.c b/Src/Builtins/rlimits.c index 5f9c84b0f..f25dd2530 100644 --- a/Src/Builtins/rlimits.c +++ b/Src/Builtins/rlimits.c @@ -171,6 +171,10 @@ static const resinfo_T known_resources[] = { {RLIMIT_TCACHE, "cachedthreads", ZLIMTYPE_NUMBER, 1, 'N', "cached threads"}, # endif +# ifdef HAVE_RLIMIT_NOVMON /* Haiku */ + {RLIMIT_NOVMON, "vnodemonitors", ZLIMTYPE_NUMBER, 1, + 'N', "open vnode monitors"}, +# endif }; /* resinfo[RLIMIT_XXX] points to the corresponding entry diff --git a/configure.ac b/configure.ac index a88101f2b..bd54c72af 100644 --- a/configure.ac +++ b/configure.ac @@ -1908,6 +1908,7 @@ zsh_LIMIT_PRESENT(RLIMIT_NPTS) zsh_LIMIT_PRESENT(RLIMIT_SWAP) zsh_LIMIT_PRESENT(RLIMIT_KQUEUES) zsh_LIMIT_PRESENT(RLIMIT_UMTXP) +zsh_LIMIT_PRESENT(RLIMIT_NOVMON) zsh_LIMITS_EQUAL(VMEM, vmem, RSS, rss) zsh_LIMITS_EQUAL(VMEM, vmem, AS, as)