diff options
| author | Glen Barber <gjb@FreeBSD.org> | 2016-03-14 18:54:29 +0000 |
|---|---|---|
| committer | Glen Barber <gjb@FreeBSD.org> | 2016-03-14 18:54:29 +0000 |
| commit | 538354481ef7dbcd76ebc7334512a9d60994b84e (patch) | |
| tree | 7aa3dd8f24b6558f2ef57be4db6203ac91424ea3 /lib/libutil | |
| parent | 7d536dc855c85c15bf45f033d108a61b1f3cecc3 (diff) | |
| parent | 9580c0f7ce319d3e4e213faa40b59bd91c7b66ba (diff) | |
Notes
Diffstat (limited to 'lib/libutil')
| -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 e780940b7643..1c3cfee02e74 100644 --- a/lib/libutil/login.conf.5 +++ b/lib/libutil/login.conf.5 @@ -199,6 +199,7 @@ notation may be used. .It "stacksize size Maximum stack size limit." .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." .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 c87faaeb8814..ab2e8af02db4 100644 --- a/lib/libutil/login_class.3 +++ b/lib/libutil/login_class.3 @@ -119,6 +119,7 @@ vmemoryuse RLIMIT_VMEM pseudoterminals RLIMIT_NPTS swapuse RLIMIT_SWAP kqueues RLIMIT_KQUEUES +umtxp RLIMIT_UMTXP .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 9ffca8ea3628..ceee5c8912f7 100644 --- a/lib/libutil/login_class.c +++ b/lib/libutil/login_class.c @@ -67,6 +67,7 @@ static struct login_res { { "pseudoterminals", login_getcapnum, RLIMIT_NPTS }, { "swapuse", login_getcapsize, RLIMIT_SWAP }, { "kqueues", login_getcapsize, RLIMIT_KQUEUES }, + { "umtxp", login_getcapnum, RLIMIT_UMTXP }, { NULL, 0, 0 } }; |
