From 59d9ce5476d52ddba6fb0a5ed52d6f4c00818da7 Mon Sep 17 00:00:00 2001 From: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com> Date: Sun, 3 Mar 2024 01:59:54 +0100 Subject: [PATCH 1/2] Add availability data to 'resource' module Docs --- Doc/library/resource.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Doc/library/resource.rst b/Doc/library/resource.rst index 4e58b043f1da315..cf42fc9a058b5e4 100644 --- a/Doc/library/resource.rst +++ b/Doc/library/resource.rst @@ -123,6 +123,8 @@ platform. This may result in the creation of a partial core file if a larger core would be required to contain the entire process image. + .. availability:: Linux >= 1.3.0 + .. data:: RLIMIT_CPU @@ -131,37 +133,51 @@ platform. the :mod:`signal` module documentation for information about how to catch this signal and do something useful, e.g. flush open files to disk.) + .. availability:: Linux >= 1.3.0 + .. data:: RLIMIT_FSIZE The maximum size of a file which the process may create. + .. availability:: Linux >= 1.3.0 + .. data:: RLIMIT_DATA The maximum size (in bytes) of the process's heap. + .. availability:: Linux >= 1.3.0 + .. data:: RLIMIT_STACK The maximum size (in bytes) of the call stack for the current process. This only affects the stack of the main thread in a multi-threaded process. + .. availability:: Linux >= 1.3.0 + .. data:: RLIMIT_RSS The maximum resident set size that should be made available to the process. + .. availability:: Linux >= 1.3.0 + .. data:: RLIMIT_NPROC The maximum number of processes the current process may create. + .. availability:: Linux >= 1.3.0 + .. data:: RLIMIT_NOFILE The maximum number of open file descriptors for the current process. + .. availability:: Linux >= 1.3.0 + .. data:: RLIMIT_OFILE @@ -172,16 +188,22 @@ platform. The maximum address space which may be locked in memory. + .. availability:: Linux >= 1.3.43 + .. data:: RLIMIT_VMEM The largest area of mapped memory which the process may occupy. + .. availability:: FreeBSD >= 11. + .. data:: RLIMIT_AS The maximum area (in bytes) of address space which may be taken by the process. + .. availability:: Linux >= 1.3.0 + .. data:: RLIMIT_MSGQUEUE From 48b87f0f88b4ff0afc8f2d3fafdf37e3e254589c Mon Sep 17 00:00:00 2001 From: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com> Date: Fri, 8 Mar 2024 10:18:04 +0100 Subject: [PATCH 2/2] Remove availability labels for unix-standard symbols --- Doc/library/resource.rst | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/Doc/library/resource.rst b/Doc/library/resource.rst index cf42fc9a058b5e4..389a63f089d8502 100644 --- a/Doc/library/resource.rst +++ b/Doc/library/resource.rst @@ -123,8 +123,6 @@ platform. This may result in the creation of a partial core file if a larger core would be required to contain the entire process image. - .. availability:: Linux >= 1.3.0 - .. data:: RLIMIT_CPU @@ -133,51 +131,37 @@ platform. the :mod:`signal` module documentation for information about how to catch this signal and do something useful, e.g. flush open files to disk.) - .. availability:: Linux >= 1.3.0 - .. data:: RLIMIT_FSIZE The maximum size of a file which the process may create. - .. availability:: Linux >= 1.3.0 - .. data:: RLIMIT_DATA The maximum size (in bytes) of the process's heap. - .. availability:: Linux >= 1.3.0 - .. data:: RLIMIT_STACK The maximum size (in bytes) of the call stack for the current process. This only affects the stack of the main thread in a multi-threaded process. - .. availability:: Linux >= 1.3.0 - .. data:: RLIMIT_RSS The maximum resident set size that should be made available to the process. - .. availability:: Linux >= 1.3.0 - .. data:: RLIMIT_NPROC The maximum number of processes the current process may create. - .. availability:: Linux >= 1.3.0 - .. data:: RLIMIT_NOFILE The maximum number of open file descriptors for the current process. - .. availability:: Linux >= 1.3.0 - .. data:: RLIMIT_OFILE @@ -188,8 +172,6 @@ platform. The maximum address space which may be locked in memory. - .. availability:: Linux >= 1.3.43 - .. data:: RLIMIT_VMEM @@ -202,8 +184,6 @@ platform. The maximum area (in bytes) of address space which may be taken by the process. - .. availability:: Linux >= 1.3.0 - .. data:: RLIMIT_MSGQUEUE