churchyard / rpms / python3

Forked from rpms/python3 3 years ago
Clone

Blame 00114-statvfs-f_flag-constants.patch

7eb10c
diff -up Python-3.2a1/Modules/posixmodule.c.statvfs-f-flag-constants Python-3.2a1/Modules/posixmodule.c
7eb10c
--- Python-3.2a1/Modules/posixmodule.c.statvfs-f-flag-constants	2010-07-23 09:53:51.000000000 -0400
7eb10c
+++ Python-3.2a1/Modules/posixmodule.c	2010-08-02 16:39:38.756000423 -0400
7eb10c
@@ -8173,6 +8173,43 @@ all_ins(PyObject *d)
d73e38
 #endif
d73e38
 #endif
d73e38
 
7eb10c
+    /* These came from statvfs.h */
d73e38
+#ifdef ST_RDONLY
7eb10c
+    if (ins(d, "ST_RDONLY", (long)ST_RDONLY)) return -1;
d73e38
+#endif /* ST_RDONLY */
d73e38
+#ifdef ST_NOSUID
7eb10c
+    if (ins(d, "ST_NOSUID", (long)ST_NOSUID)) return -1;
d73e38
+#endif /* ST_NOSUID */
d73e38
+
7eb10c
+    /* GNU extensions */
d73e38
+#ifdef ST_NODEV
7eb10c
+    if (ins(d, "ST_NODEV", (long)ST_NODEV)) return -1;
d73e38
+#endif /* ST_NODEV */
d73e38
+#ifdef ST_NOEXEC
7eb10c
+    if (ins(d, "ST_NOEXEC", (long)ST_NOEXEC)) return -1;
d73e38
+#endif /* ST_NOEXEC */
d73e38
+#ifdef ST_SYNCHRONOUS
7eb10c
+    if (ins(d, "ST_SYNCHRONOUS", (long)ST_SYNCHRONOUS)) return -1;
d73e38
+#endif /* ST_SYNCHRONOUS */
d73e38
+#ifdef ST_MANDLOCK
7eb10c
+    if (ins(d, "ST_MANDLOCK", (long)ST_MANDLOCK)) return -1;
d73e38
+#endif /* ST_MANDLOCK */
d73e38
+#ifdef ST_WRITE
7eb10c
+    if (ins(d, "ST_WRITE", (long)ST_WRITE)) return -1;
d73e38
+#endif /* ST_WRITE */
d73e38
+#ifdef ST_APPEND
7eb10c
+    if (ins(d, "ST_APPEND", (long)ST_APPEND)) return -1;
d73e38
+#endif /* ST_APPEND */
d73e38
+#ifdef ST_NOATIME
7eb10c
+    if (ins(d, "ST_NOATIME", (long)ST_NOATIME)) return -1;
d73e38
+#endif /* ST_NOATIME */
d73e38
+#ifdef ST_NODIRATIME
7eb10c
+    if (ins(d, "ST_NODIRATIME", (long)ST_NODIRATIME)) return -1;
d73e38
+#endif /* ST_NODIRATIME */
d73e38
+#ifdef ST_RELATIME
7eb10c
+    if (ins(d, "ST_RELATIME", (long)ST_RELATIME)) return -1;
d73e38
+#endif /* ST_RELATIME */
d73e38
+
d73e38
 #if defined(PYOS_OS2)
7eb10c
     if (insertvalues(d)) return -1;
d73e38
 #endif