diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2024-09-10 04:13:01 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2024-10-05 07:08:54 +0000 |
| commit | a03f7c040ce7b836b7e0dedfca76b28d2b8a5464 (patch) | |
| tree | 581b5bed07b6de38f59ac5c1e1afa16d6df6ab56 | |
| parent | d20f0dae2f97185cc53bda3fd3245453a77277f6 (diff) | |
libutil: support RLIMIT_PIPEBUF
(cherry picked from commit a4c04958f526a0dba353b54641dc5d2806984d02)
| -rw-r--r-- | lib/libutil/login.conf.5 | 1 | ||||
| -rw-r--r-- | lib/libutil/login_class.3 | 1 | ||||
| -rw-r--r-- | lib/libutil/login_class.c | 1 |
3 files changed, 3 insertions, 0 deletions
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 } }; |
