The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=5d92f20c7d316aca521d4db4c1dab0f2d0e92c36
commit 5d92f20c7d316aca521d4db4c1dab0f2d0e92c36 Author: Konstantin Belousov <k...@freebsd.org> AuthorDate: 2024-09-10 04:12:27 +0000 Commit: Konstantin Belousov <k...@freebsd.org> CommitDate: 2024-09-20 06:46:07 +0000 bin/sh: support RLIMIT_PIPEBUF Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D46619 --- bin/sh/miscbltin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/sh/miscbltin.c b/bin/sh/miscbltin.c index 6364bd10a584..9d0280bb548a 100644 --- a/bin/sh/miscbltin.c +++ b/bin/sh/miscbltin.c @@ -483,6 +483,9 @@ static const struct limits limits[] = { #endif #ifdef RLIMIT_UMTXP { "umtx shared locks", (char *)0, RLIMIT_UMTXP, 1, 'o' }, +#endif +#ifdef RLIMIT_PIPEBUF + { "pipebuf", (char *)0, RLIMIT_PIPEBUF, 1024, 'y' }, #endif { (char *) 0, (char *)0, 0, 0, '\0' } }; @@ -519,7 +522,7 @@ ulimitcmd(int argc __unused, char **argv __unused) struct rlimit limit; what = 'f'; - while ((optc = nextopt("HSatfdsmcnuvlbpwko")) != '\0') + while ((optc = nextopt("HSatfdsmcnuvlbpwkoy")) != '\0') switch (optc) { case 'H': how = HARD;