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:		1092ec8b33 ("kern: Introduce RLIMIT_VMM")
Fixes:		53af2026f2 ("limits: Unbreak after RLIMIT_VMM addition")
Reviewed by:	bnovkov
Differential Revision:	https://reviews.freebsd.org/D57265
This commit is contained in:
Dag-Erling Smørgrav
2026-05-27 19:02:07 +02:00
parent 773bbfc573
commit f2a89e7e1d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ static const char *rlimit_ident[] = {
"kqueues",
"umtx",
"pipebuf",
"vmm",
"vms",
};
#endif
+1 -1
View File
@@ -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,