summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2024-09-10 04:12:27 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2024-10-05 07:08:54 +0000
commitd5ed8778bf3b808d637c7913da66dc31b892e5f7 (patch)
treee287046089b54b8bf551b7679099014ccc6d7591 /bin
parenta03f7c040ce7b836b7e0dedfca76b28d2b8a5464 (diff)
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/miscbltin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/sh/miscbltin.c b/bin/sh/miscbltin.c
index 5d5c137a7d11..39b3effb99df 100644
--- a/bin/sh/miscbltin.c
+++ b/bin/sh/miscbltin.c
@@ -490,6 +490,9 @@ static const struct limits limits[] = {
#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' }
};
@@ -525,7 +528,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;