churchyard / rpms / python2

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