1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-21 11:22:23 +02:00

53083: handle Haiku specific resource limit for open vnode monitors

This commit is contained in:
Oliver Kiddle 2024-09-14 19:30:30 +02:00
parent 3397653768
commit 55ff6f8864
3 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2024-09-14 Oliver Kiddle <opk@zsh.org>
* 53083: configure.ac, Src/Builtins/rlimits.c: handle Haiku
specific resource limit for open vnode monitors
* 53082: configure.ac: remove a couple of unused #defines
* 53081: INSTALL, configure.ac, Src/init.c, Src/options.c,

View File

@ -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

View File

@ -1879,6 +1879,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)