@@ -57,6 +57,16 @@ this module for those platforms.
5757 Previously, it could be negative, such as -1 or -3.
5858
5959
60+ .. data :: RLIM_SAVED_CUR
61+ .. data :: RLIM_SAVED_MAX
62+
63+ Constants used to represent the soft and hard limit values if they
64+ cannot be represented in the ``rlim_t `` value in C.
65+ Can be equal to :data: `RLIM_INFINITY `.
66+
67+ .. versionadded :: next
68+
69+
6070.. function :: getrlimit(resource)
6171
6272 Returns a tuple ``(soft, hard) `` with the current soft and hard limits of
@@ -181,8 +191,9 @@ platform.
181191.. data :: RLIMIT_VMEM
182192
183193 The largest area of mapped memory which the process may occupy.
194+ Usually an alias of :const: `RLIMIT_AS `.
184195
185- .. availability :: FreeBSD >= 11 .
196+ .. availability :: Solaris, FreeBSD, NetBSD .
186197
187198
188199.. data :: RLIMIT_AS
@@ -235,16 +246,18 @@ platform.
235246
236247 .. versionadded :: 3.4
237248
249+
238250.. data :: RLIMIT_SBSIZE
239251
240252 The maximum size (in bytes) of socket buffer usage for this user.
241253 This limits the amount of network memory, and hence the amount of mbufs,
242254 that this user may hold at any time.
243255
244- .. availability :: FreeBSD.
256+ .. availability :: FreeBSD, NetBSD .
245257
246258 .. versionadded :: 3.4
247259
260+
248261.. data :: RLIMIT_SWAP
249262
250263 The maximum size (in bytes) of the swap space that may be reserved or
@@ -254,18 +267,20 @@ platform.
254267 `tuning(7) <https://man.freebsd.org/cgi/man.cgi?query=tuning&sektion=7 >`__
255268 for a complete description of this sysctl.
256269
257- .. availability :: FreeBSD.
270+ .. availability :: FreeBSD >= 8 .
258271
259272 .. versionadded :: 3.4
260273
274+
261275.. data :: RLIMIT_NPTS
262276
263277 The maximum number of pseudo-terminals created by this user id.
264278
265- .. availability :: FreeBSD.
279+ .. availability :: FreeBSD >= 8 .
266280
267281 .. versionadded :: 3.4
268282
283+
269284.. data :: RLIMIT_KQUEUES
270285
271286 The maximum number of kqueues this user id is allowed to create.
@@ -274,6 +289,46 @@ platform.
274289
275290 .. versionadded :: 3.10
276291
292+
293+ .. data :: RLIMIT_NTHR
294+
295+ The maximum number of threads for this user id, not counting the main
296+ and kernel threads.
297+
298+ .. availability :: NetBSD >= 7.0.
299+
300+ .. versionadded :: next
301+
302+
303+ .. data :: RLIMIT_PIPEBUF
304+
305+ The maximum total size of in-kernel buffers for bi-directional pipes/fifos
306+ that this user id is allowed to consume.
307+
308+ .. availability :: FreeBSD >= 14.2.
309+
310+ .. versionadded :: next
311+
312+
313+ .. data :: RLIMIT_THREADS
314+
315+ The maximum number of threads each process can create.
316+
317+ .. availability :: AIX.
318+
319+ .. versionadded :: next
320+
321+
322+ .. data :: RLIMIT_UMTXP
323+
324+ The limit of the number of process-shared Posix thread library objects
325+ allocated by user id.
326+
327+ .. availability :: FreeBSD >= 11.
328+
329+ .. versionadded :: next
330+
331+
277332Resource Usage
278333--------------
279334
0 commit comments