1
# DP: Modules/posixmodule.c: Add flags for statvfs.f_flag to constant list.
3
From: Peter Jones <pjones@redhat.com>
4
Date: Wed, 6 Jan 2010 15:22:38 -0500
5
Subject: [PATCH] Add flags for statvfs.f_flag to constant list.
7
Modules/posixmodule.c | 37 +++++++++++++++++++++++++++++++++++++
8
1 files changed, 37 insertions(+), 0 deletions(-)
10
--- a/Modules/posixmodule.c
11
+++ b/Modules/posixmodule.c
12
@@ -8364,6 +8364,43 @@
13
if (ins(d, "ST_NOSUID", (long)ST_NOSUID)) return -1;
14
#endif /* ST_NOSUID */
16
+ /* These came from statvfs.h */
18
+ if (ins(d, "ST_RDONLY", (long)ST_RDONLY)) return -1;
19
+#endif /* ST_RDONLY */
21
+ if (ins(d, "ST_NOSUID", (long)ST_NOSUID)) return -1;
22
+#endif /* ST_NOSUID */
24
+ /* GNU extensions */
26
+ if (ins(d, "ST_NODEV", (long)ST_NODEV)) return -1;
27
+#endif /* ST_NODEV */
29
+ if (ins(d, "ST_NOEXEC", (long)ST_NOEXEC)) return -1;
30
+#endif /* ST_NOEXEC */
31
+#ifdef ST_SYNCHRONOUS
32
+ if (ins(d, "ST_SYNCHRONOUS", (long)ST_SYNCHRONOUS)) return -1;
33
+#endif /* ST_SYNCHRONOUS */
35
+ if (ins(d, "ST_MANDLOCK", (long)ST_MANDLOCK)) return -1;
36
+#endif /* ST_MANDLOCK */
38
+ if (ins(d, "ST_WRITE", (long)ST_WRITE)) return -1;
39
+#endif /* ST_WRITE */
41
+ if (ins(d, "ST_APPEND", (long)ST_APPEND)) return -1;
42
+#endif /* ST_APPEND */
44
+ if (ins(d, "ST_NOATIME", (long)ST_NOATIME)) return -1;
45
+#endif /* ST_NOATIME */
47
+ if (ins(d, "ST_NODIRATIME", (long)ST_NODIRATIME)) return -1;
48
+#endif /* ST_NODIRATIME */
50
+ if (ins(d, "ST_RELATIME", (long)ST_RELATIME)) return -1;
51
+#endif /* ST_RELATIME */
54
#if defined(PYOS_OS2) && defined(PYCC_GCC)
55
if (ins(d, "P_WAIT", (long)P_WAIT)) return -1;