Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Oct 2024 07:11:09 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a03f7c040ce7 - stable/14 - libutil: support RLIMIT_PIPEBUF
Message-ID:  <202410050711.4957B97G000844@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=a03f7c040ce7b836b7e0dedfca76b28d2b8a5464

commit a03f7c040ce7b836b7e0dedfca76b28d2b8a5464
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-09-10 04:13:01 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-10-05 07:08:54 +0000

    libutil: support RLIMIT_PIPEBUF
    
    (cherry picked from commit a4c04958f526a0dba353b54641dc5d2806984d02)
---
 lib/libutil/login.conf.5  | 1 +
 lib/libutil/login_class.3 | 1 +
 lib/libutil/login_class.c | 1 +
 3 files changed, 3 insertions(+)

diff --git a/lib/libutil/login.conf.5 b/lib/libutil/login.conf.5
index a749fe5519ab..b1e7211e4c18 100644
--- a/lib/libutil/login.conf.5
+++ b/lib/libutil/login.conf.5
@@ -204,6 +204,7 @@ login environment.
 .It "pseudoterminals	number		Maximum number of pseudo-terminals."
 .It "swapuse	size		Maximum swap space size limit."
 .It "umtxp	number		Maximum number of process-shared pthread locks."
+.It "pipebuf"	size		Maximum size of pipe buffers."
 .El
 .Pp
 These resource limit entries actually specify both the maximum
diff --git a/lib/libutil/login_class.3 b/lib/libutil/login_class.3
index b67301f5a5a6..46e6a70f8ca8 100644
--- a/lib/libutil/login_class.3
+++ b/lib/libutil/login_class.3
@@ -118,6 +118,7 @@ pseudoterminals  RLIMIT_NPTS
 swapuse          RLIMIT_SWAP
 kqueues          RLIMIT_KQUEUES
 umtxp            RLIMIT_UMTXP
+pipebuf          RLIMIT_PIPEBUF
 .Ed
 .It LOGIN_SETPRIORITY
 Set the scheduling priority for the current process based on the
diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c
index eb16ad501881..172da78aaf17 100644
--- a/lib/libutil/login_class.c
+++ b/lib/libutil/login_class.c
@@ -66,6 +66,7 @@ static struct login_res {
     { "swapuse",         login_getcapsize, RLIMIT_SWAP    },
     { "kqueues",         login_getcapsize, RLIMIT_KQUEUES },
     { "umtxp",           login_getcapnum,  RLIMIT_UMTXP   },
+    { "pipebuf",         login_getcapnum,  RLIMIT_PIPEBUF },
     { NULL,              0,                0              }
 };
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410050711.4957B97G000844>