From: Oliver Kiddle <opk@zsh.org>
To: Zsh workers <zsh-workers@zsh.org>
Subject: PATCH: handle Haiku specific rlimit
Date: Fri, 13 Sep 2024 03:21:28 +0200 [thread overview]
Message-ID: <35269-1726190488.776139@ix-z.fxEF.r65O> (raw)
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)
reply other threads:[~2024-09-13 1:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=35269-1726190488.776139@ix-z.fxEF.r65O \
--to=opk@zsh.org \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).