summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBatuhan Taşkaya <batuhanosmantaskaya@gmail.com>2020-04-05 03:40:49 +0300
committerGitHub <noreply@github.com>2020-04-05 02:40:49 +0200
commit909f4a30093f74d409711e564f93a43167ca0919 (patch)
treee338770a028b6c08ffe66517ca6b45790f0a179b
parent6fed3c85402c5ca704eb3f3189ca3f5c67a08d19 (diff)
downloadcpython-git-909f4a30093f74d409711e564f93a43167ca0919.tar.gz
bpo-40190: Add support for _SC_AIX_REALMEM in sysconf (GH-19380)
-rw-r--r--Misc/NEWS.d/next/Library/2020-04-05-02-58-17.bpo-40190.HF3OWo.rst1
-rw-r--r--Modules/posixmodule.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-04-05-02-58-17.bpo-40190.HF3OWo.rst b/Misc/NEWS.d/next/Library/2020-04-05-02-58-17.bpo-40190.HF3OWo.rst
new file mode 100644
index 0000000000..58359330e3
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-04-05-02-58-17.bpo-40190.HF3OWo.rst
@@ -0,0 +1 @@
+Add support for ``_SC_AIX_REALMEM`` to :func:`posix.sysconf`.
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 1adca8ec29..345798dc8c 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -11424,6 +11424,9 @@ static struct constdef posix_constants_sysconf[] = {
#ifdef _SC_PAGE_SIZE
{"SC_PAGE_SIZE", _SC_PAGE_SIZE},
#endif
+#ifdef _SC_AIX_REALMEM
+ {"SC_AIX_REALMEM", _SC_AIX_REALMEM},
+#endif
#ifdef _SC_PASS_MAX
{"SC_PASS_MAX", _SC_PASS_MAX},
#endif