summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2013-12-08 14:23:07 (GMT)
committerdoko@ubuntu.com <doko@ubuntu.com>2013-12-08 14:23:07 (GMT)
commitca616a2709951f2ef8534aaa5933af4cc9d1594d (patch)
tree522dc560036ee914484e600ede95ddd17d4b32aa /Modules
parentb02bcae56632d2744ec24db2a1fd3a35ab363fba (diff)
downloadcpython-ca616a2709951f2ef8534aaa5933af4cc9d1594d.zip
cpython-ca616a2709951f2ef8534aaa5933af4cc9d1594d.tar.gz
cpython-ca616a2709951f2ef8534aaa5933af4cc9d1594d.tar.bz2
- Issue #19736: Add module-level statvfs constants defined for GNU/glibc
based systems.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 2f21ceb..d0fbf5a 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -11858,6 +11858,35 @@ all_ins(PyObject *m)
if (PyModule_AddIntMacro(m, ST_NOSUID)) return -1;
#endif /* ST_NOSUID */
+ /* GNU extensions */
+#ifdef ST_NODEV
+ if (PyModule_AddIntMacro(m, ST_NODEV)) return -1;
+#endif /* ST_NODEV */
+#ifdef ST_NOEXEC
+ if (PyModule_AddIntMacro(m, ST_NOEXEC)) return -1;
+#endif /* ST_NOEXEC */
+#ifdef ST_SYNCHRONOUS
+ if (PyModule_AddIntMacro(m, ST_SYNCHRONOUS)) return -1;
+#endif /* ST_SYNCHRONOUS */
+#ifdef ST_MANDLOCK
+ if (PyModule_AddIntMacro(m, ST_MANDLOCK)) return -1;
+#endif /* ST_MANDLOCK */
+#ifdef ST_WRITE
+ if (PyModule_AddIntMacro(m, ST_WRITE)) return -1;
+#endif /* ST_WRITE */
+#ifdef ST_APPEND
+ if (PyModule_AddIntMacro(m, ST_APPEND)) return -1;
+#endif /* ST_APPEND */
+#ifdef ST_NOATIME
+ if (PyModule_AddIntMacro(m, ST_NOATIME)) return -1;
+#endif /* ST_NOATIME */
+#ifdef ST_NODIRATIME
+ if (PyModule_AddIntMacro(m, ST_NODIRATIME)) return -1;
+#endif /* ST_NODIRATIME */
+#ifdef ST_RELATIME
+ if (PyModule_AddIntMacro(m, ST_RELATIME)) return -1;
+#endif /* ST_RELATIME */
+
/* FreeBSD sendfile() constants */
#ifdef SF_NODISKIO
if (PyModule_AddIntMacro(m, SF_NODISKIO)) return -1;