summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-03-11 22:01:40 (GMT)
committerGitHub <noreply@github.com>2022-03-11 22:01:40 (GMT)
commitdc374ac7b0fabaed49461a2044c220765f48d229 (patch)
tree43b51ddf143635a58e00734e787647048438ad32
parent5b1b9eacb92dd47d10793a8868246df6ea477ed6 (diff)
downloadcpython-dc374ac7b0fabaed49461a2044c220765f48d229.zip
cpython-dc374ac7b0fabaed49461a2044c220765f48d229.tar.gz
cpython-dc374ac7b0fabaed49461a2044c220765f48d229.tar.bz2
bpo-46968: Add os.sysconf_names['SC_MINSIGSTKSZ'] (GH-31824)
-rw-r--r--Doc/library/os.rst3
-rw-r--r--Misc/NEWS.d/next/Library/2022-03-11-17-56-25.bpo-46968.pPVvNo.rst1
-rw-r--r--Modules/posixmodule.c3
3 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 234ea32..6dffc45 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -4755,6 +4755,9 @@ Miscellaneous System Information
.. availability:: Unix.
+ .. versionchanged:: 3.11
+ Add ``'SC_MINSIGSTKSZ'`` name.
+
The following data values are used to support path manipulation operations. These
are defined for all platforms.
diff --git a/Misc/NEWS.d/next/Library/2022-03-11-17-56-25.bpo-46968.pPVvNo.rst b/Misc/NEWS.d/next/Library/2022-03-11-17-56-25.bpo-46968.pPVvNo.rst
new file mode 100644
index 0000000..f526fa3
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-03-11-17-56-25.bpo-46968.pPVvNo.rst
@@ -0,0 +1 @@
+Add ``os.sysconf_names['SC_MINSIGSTKSZ']``.
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 3431c85..700cbd2 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -12346,6 +12346,9 @@ static struct constdef posix_constants_sysconf[] = {
#ifdef _SC_XOPEN_XPG4
{"SC_XOPEN_XPG4", _SC_XOPEN_XPG4},
#endif
+#ifdef _SC_MINSIGSTKSZ
+ {"SC_MINSIGSTKSZ", _SC_MINSIGSTKSZ},
+#endif
};
static int