From nobody Fri Sep 20 06:46:50 2024 X-Original-To: dev-commits-src-all@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 4X92x70kGBz5Wj2c; Fri, 20 Sep 2024 06:46:51 +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 4X92x66xbxz4r8x; Fri, 20 Sep 2024 06:46:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726814811; 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=/aZHai99S8hIzqgQhSZkZURP5STeeLkAmldYO+I1lo4=; b=aRtr060ZS00BdjLpgyNK/1vHPFhn3s/wlKukc20Ovk1E3RLhGL7mNCWn+X3F3qlrf0BzkV 6Pxcq8U+Awe+rEebBQ6pcwivHxy5ja+2enVZsRknOJo110J1gC6idyJUtANS3Cch7wIzQu TLjCt9tXItdfKid5yPlqqkY2670immlDAtSb5H8kRZi2lwK8EemLK3biGb3zKsxnCNibwZ Kfrpsrd1pnzwAdDJcGzlXEFTPo7RrHb7XPrEjKMv2/X/ywXi0VEZdB+yqhWuZJt5kePO7d YLVFMhSDuQfp13OUugOlgzW8D1/y5WuJu6G4EZPbIs75C8g4sUBXlnNMGG/5MQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726814811; a=rsa-sha256; cv=none; b=LsLjgVusyViYj/medr2A55DbfvBfq92zsBwXIylEdKZJan8KbCUlpntw28DTu3HVzkorGd XvKzx7FS3xMY4F8TBSjDMT8ND2DyCR7KjHJgNeZkHVQEkBhCcKrcFS54TI5MpN9z0Lkbqr m9uGFi7PXqPC8HFr9EBMvxfslywp4Ff77eeZaOI4HE+vQsQOO+b5I1qf5+uqq+3DpX7XYP 6IdyH21/fMnh8YKItE3iPr1ifbcBoHHKpw7wDB+5ivsHSg9YJ2cPuVBChEGQdtab+8lyeT sPlomqepg4aH/QlvsFsmdqMm5qNYtf31BlIwhcIhGGMYPV1RFR55G+Npv8JaiQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726814811; 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=/aZHai99S8hIzqgQhSZkZURP5STeeLkAmldYO+I1lo4=; b=GURSbssXwek2dynfVrKCK45CDBhiRYbJHvppCDdY3WBeatCKbFHlZUSg0dhPA5xPwIEAJl CxnYorpyiu5NjdvzTuqPNpVm0uD5PDO/mrWFusoNXafkVrNltLhXJOaYC/LhA0H3sG2CZG Dp+xWx8e8knlF1YsST1s0qHy0sRhviBA6fg3MWiHP+aO+hvRp4McK10E5iHr2cJkw6BRoH 9zp/gT1oL8CZ4g+qW81FxDyObJ0Hm7RPfPn/fvRcuciyTPUl8GniHnlUBA7WBeg7q2nFjg e8FaS9vmtnu1kqNfSE616FO8QEqlq7LARY6DtB6QybUKocPKvRomRPhZvSqitQ== 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 4X92x65h6MzdV2; Fri, 20 Sep 2024 06:46:50 +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 48K6koAB009565; Fri, 20 Sep 2024 06:46:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48K6koTu009562; Fri, 20 Sep 2024 06:46:50 GMT (envelope-from git) Date: Fri, 20 Sep 2024 06:46:50 GMT Message-Id: <202409200646.48K6koTu009562@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 5d92f20c7d31 - main - bin/sh: support RLIMIT_PIPEBUF List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 5d92f20c7d316aca521d4db4c1dab0f2d0e92c36 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=5d92f20c7d316aca521d4db4c1dab0f2d0e92c36 commit 5d92f20c7d316aca521d4db4c1dab0f2d0e92c36 Author: Konstantin Belousov AuthorDate: 2024-09-10 04:12:27 +0000 Commit: Konstantin Belousov 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;