summaryrefslogtreecommitdiff
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2010-08-18 22:30:34 +0000
committerAndrew M. Kuchling <amk@amk.ca>2010-08-18 22:30:34 +0000
commit4ea04a306f6f43c9dc2f9c196b658abf021a8362 (patch)
tree92fceb1199e346339dca396ed312292d42cf07f8 /Modules/posixmodule.c
parent0fc86b86ed1381866f159f534125449d069c1785 (diff)
downloadcpython-git-4ea04a306f6f43c9dc2f9c196b658abf021a8362.tar.gz
#7647: add ST_RDONLY, ST_NOSUID constants to os module.
(Also fix a name ordering in the ACKS file.)
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index c36f7b421c..ce625b4b54 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -8169,6 +8169,14 @@ all_ins(PyObject *d)
if (ins(d, "EX_NOTFOUND", (long)EX_NOTFOUND)) return -1;
#endif /* EX_NOTFOUND */
+ /* statvfs */
+#ifdef ST_RDONLY
+ if (ins(d, "ST_RDONLY", (long)ST_RDONLY)) return -1;
+#endif /* ST_RDONLY */
+#ifdef ST_NOSUID
+ if (ins(d, "ST_NOSUID", (long)ST_NOSUID)) return -1;
+#endif /* ST_NOSUID */
+
#ifdef HAVE_SPAWNV
#if defined(PYOS_OS2) && defined(PYCC_GCC)
if (ins(d, "P_WAIT", (long)P_WAIT)) return -1;