|
|
23b3e9 |
diff -up Python-2.7rc1/Modules/posixmodule.c.statvfs-f-flag-constants Python-2.7rc1/Modules/posixmodule.c
|
|
|
23b3e9 |
--- Python-2.7rc1/Modules/posixmodule.c.statvfs-f-flag-constants 2010-05-15 17:45:30.000000000 -0400
|
|
|
23b3e9 |
+++ Python-2.7rc1/Modules/posixmodule.c 2010-06-07 22:54:16.162068624 -0400
|
|
|
23b3e9 |
@@ -9174,6 +9174,43 @@ all_ins(PyObject *d)
|
|
|
23b3e9 |
#endif
|
|
|
23b3e9 |
#endif
|
|
|
23b3e9 |
|
|
|
23b3e9 |
+ /* These came from statvfs.h */
|
|
|
23b3e9 |
+#ifdef ST_RDONLY
|
|
|
23b3e9 |
+ if (ins(d, "ST_RDONLY", (long)ST_RDONLY)) return -1;
|
|
|
23b3e9 |
+#endif /* ST_RDONLY */
|
|
|
23b3e9 |
+#ifdef ST_NOSUID
|
|
|
23b3e9 |
+ if (ins(d, "ST_NOSUID", (long)ST_NOSUID)) return -1;
|
|
|
23b3e9 |
+#endif /* ST_NOSUID */
|
|
|
23b3e9 |
+
|
|
|
23b3e9 |
+ /* GNU extensions */
|
|
|
23b3e9 |
+#ifdef ST_NODEV
|
|
|
23b3e9 |
+ if (ins(d, "ST_NODEV", (long)ST_NODEV)) return -1;
|
|
|
23b3e9 |
+#endif /* ST_NODEV */
|
|
|
23b3e9 |
+#ifdef ST_NOEXEC
|
|
|
23b3e9 |
+ if (ins(d, "ST_NOEXEC", (long)ST_NOEXEC)) return -1;
|
|
|
23b3e9 |
+#endif /* ST_NOEXEC */
|
|
|
23b3e9 |
+#ifdef ST_SYNCHRONOUS
|
|
|
23b3e9 |
+ if (ins(d, "ST_SYNCHRONOUS", (long)ST_SYNCHRONOUS)) return -1;
|
|
|
23b3e9 |
+#endif /* ST_SYNCHRONOUS */
|
|
|
23b3e9 |
+#ifdef ST_MANDLOCK
|
|
|
23b3e9 |
+ if (ins(d, "ST_MANDLOCK", (long)ST_MANDLOCK)) return -1;
|
|
|
23b3e9 |
+#endif /* ST_MANDLOCK */
|
|
|
23b3e9 |
+#ifdef ST_WRITE
|
|
|
23b3e9 |
+ if (ins(d, "ST_WRITE", (long)ST_WRITE)) return -1;
|
|
|
23b3e9 |
+#endif /* ST_WRITE */
|
|
|
23b3e9 |
+#ifdef ST_APPEND
|
|
|
23b3e9 |
+ if (ins(d, "ST_APPEND", (long)ST_APPEND)) return -1;
|
|
|
23b3e9 |
+#endif /* ST_APPEND */
|
|
|
23b3e9 |
+#ifdef ST_NOATIME
|
|
|
23b3e9 |
+ if (ins(d, "ST_NOATIME", (long)ST_NOATIME)) return -1;
|
|
|
23b3e9 |
+#endif /* ST_NOATIME */
|
|
|
23b3e9 |
+#ifdef ST_NODIRATIME
|
|
|
23b3e9 |
+ if (ins(d, "ST_NODIRATIME", (long)ST_NODIRATIME)) return -1;
|
|
|
23b3e9 |
+#endif /* ST_NODIRATIME */
|
|
|
23b3e9 |
+#ifdef ST_RELATIME
|
|
|
23b3e9 |
+ if (ins(d, "ST_RELATIME", (long)ST_RELATIME)) return -1;
|
|
|
23b3e9 |
+#endif /* ST_RELATIME */
|
|
|
23b3e9 |
+
|
|
|
23b3e9 |
#if defined(PYOS_OS2)
|
|
|
23b3e9 |
if (insertvalues(d)) return -1;
|
|
|
23b3e9 |
#endif
|