From nobody Sat Oct 05 07:11:10 2024 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XLGmG6CNfz5Xrck; Sat, 05 Oct 2024 07:11:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XLGmG2bfpz4Mqp; Sat, 5 Oct 2024 07:11:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728112270; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BvP7lZEOce2d9nfPYZk+6zor0KiDPi+9S0JwgK3OFAE=; b=IRZpQIlvtjDNRfYMnnxPE8MlFMKLnzGFBYwuHUKyynurG1U/kP3DNsuo2Jf6UaWeX3dgTk EpH2q2HEfcmyEJ8/y0yUKHOUBh/7F0hJJwbAeNbVPycnVhxcC0gysdrXJe6oCvmoBVdTDc lMVmBES3fmKCjKWP01oM72Fd60tIe4FJLO0iokkV+iX4KP84IALkltXo6arO5i7M6S9COp MTS8swmeIXcRYbl2NGF2fsgqE6LGP51XumzEOjdzmAKimXVJXjwVL5e3rm9sFtJ8/czhnk WoQ146yptq5rQBqWg+kauXqSQlJLtPzdv6s+jNRNVFejDIe2TpwMIrC8qCooBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728112270; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BvP7lZEOce2d9nfPYZk+6zor0KiDPi+9S0JwgK3OFAE=; b=C8EIDt0ZjYpuzQchpAlxsYFu0fnV/ppdwwEjEv3H5C6btT29HEJkvFowkk3eekFppv5pCF azAk+QNtn4AVNRosfEpk5+2mo5vLK8FI3DpcG8Hc8HA8M+W4PBkX7/mP1LgPjBSh55o4/6 W7s5q0D+CCIT9+85bBDaTKddoMsDpdBwklko0Ibr/QNmrl4PpGjCOaORS0Pl61pnPhZ7dY 5bnqOimTVuQ7kYXQOUS/FkSY3JqmZmvlhQx1NmIBqSH/bx8/74Lh9oYGE0nZa9L9PHufCG Bm3aIz30lXOIYsL4q7r/TRL7pdVbN1V1iIr/WUjVUkbElSTLFGGhWaXFAYndOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728112270; a=rsa-sha256; cv=none; b=V0u0pDYEo3xdDbq4FKkIGdx8hHP0ynDC8MXlA34f0dQJRLTGsoCGJLQoYmEGn9J7kGYrc3 myovzgfr+uFCp0RVi5iiFVQpAQddUA/TcPICOwxbxqqZii9PaIvboAKCxl6aCIIBKQGqGR bO5tAHLzG4M63WAD6iRkiMJ3HbAwm/lCpQKOzBAIfpxxAUjR9E+jcrmPlSX1mxA2aOBI3o Oa1c/wvsbXfDIOnlkz6BLdEh/owgw5gUyumTSlWVlEuo2hYBfye1Xl66D9jYVFz36fcnB9 AVdVOGBm5f9RCeu7hTRRqff0Cs9mdCKgo+woIzSaCO1hvzgNpQxbMfMM0AQdgQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XLGmG2Cwzz183Z; Sat, 5 Oct 2024 07:11:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4957BAHk000883; Sat, 5 Oct 2024 07:11:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4957BApl000880; Sat, 5 Oct 2024 07:11:10 GMT (envelope-from git) Date: Sat, 5 Oct 2024 07:11:10 GMT Message-Id: <202410050711.4957BApl000880@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: d5ed8778bf3b - stable/14 - bin/sh: support RLIMIT_PIPEBUF List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: d5ed8778bf3b808d637c7913da66dc31b892e5f7 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d5ed8778bf3b808d637c7913da66dc31b892e5f7 commit d5ed8778bf3b808d637c7913da66dc31b892e5f7 Author: Konstantin Belousov AuthorDate: 2024-09-10 04:12:27 +0000 Commit: Konstantin Belousov CommitDate: 2024-10-05 07:08:54 +0000 bin/sh: support RLIMIT_PIPEBUF (cherry picked from commit 5d92f20c7d316aca521d4db4c1dab0f2d0e92c36) --- 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 5d5c137a7d11..39b3effb99df 100644 --- a/bin/sh/miscbltin.c +++ b/bin/sh/miscbltin.c @@ -489,6 +489,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' } }; @@ -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;