aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2026-05-27 17:02:07 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2026-05-27 17:02:07 +0000
commitf2a89e7e1d87c5a3aaa243aff3f6086e7312ecf5 (patch)
treeefba6252afad638c627b68b0f861d25322796c51
parent773bbfc57328f0a7947f2ad9a30de6a45ccce758 (diff)
limits: Improve consistency
Historical precedent seems pretty consistent: size limits have singular names, number limits have plural names. RLIMIT_VMM broke this, and I made matters worse by referring to this limit as “vmms” in limits(1). Consistently use “vms” everywhere user-visible, while leaving the question of whether or not to rename RLIMIT_VMM itself for another day. Fixes: 1092ec8b3375 ("kern: Introduce RLIMIT_VMM") Fixes: 53af2026f213 ("limits: Unbreak after RLIMIT_VMM addition") Reviewed by: bnovkov Differential Revision: https://reviews.freebsd.org/D57265
-rw-r--r--sys/sys/resource.h2
-rw-r--r--usr.bin/limits/limits.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/resource.h b/sys/sys/resource.h
index 9e0635cdb328..6d8d17a05e02 100644
--- a/sys/sys/resource.h
+++ b/sys/sys/resource.h
@@ -145,7 +145,7 @@ static const char *rlimit_ident[] = {
"kqueues",
"umtx",
"pipebuf",
- "vmm",
+ "vms",
};
#endif
diff --git a/usr.bin/limits/limits.c b/usr.bin/limits/limits.c
index fbb19289e6ca..a6e95e7c37a9 100644
--- a/usr.bin/limits/limits.c
+++ b/usr.bin/limits/limits.c
@@ -247,7 +247,7 @@ static struct {
{ "kqueues", login_getcapnum },
{ "umtxp", login_getcapnum },
{ "pipebuf", login_getcapnum },
- { "vmms", login_getcapnum },
+ { "vms", login_getcapnum },
};
_Static_assert(nitems(resources) == RLIM_NLIMITS,