churchyard / rpms / python38

Forked from rpms/python38 5 years ago
Clone
d73e38d
From 21fda4c78000d78cb1824fdf0373031d07f5325a Mon Sep 17 00:00:00 2001
d73e38d
From: Peter Jones <pjones@redhat.com>
d73e38d
Date: Wed, 6 Jan 2010 15:22:38 -0500
d73e38d
Subject: [PATCH] Add flags for statvfs.f_flag to constant list.
d73e38d
d73e38d
You really need these to figure out what statvfs is trying to say to
d73e38d
you, so add them here.
d73e38d
---
d73e38d
 Modules/posixmodule.c |   37 +++++++++++++++++++++++++++++++++++++
d73e38d
 1 files changed, 37 insertions(+), 0 deletions(-)
d73e38d
d73e38d
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
d73e38d
index ebdbc8d..d79013b 100644
d73e38d
--- a/Modules/posixmodule.c
d73e38d
+++ b/Modules/posixmodule.c
d73e38d
@@ -8990,6 +8990,43 @@ all_ins(PyObject *d)
d73e38d
 #endif
d73e38d
 #endif
d73e38d
 
d73e38d
+	/* These came from statvfs.h */
d73e38d
+#ifdef ST_RDONLY
d73e38d
+	if (ins(d, "ST_RDONLY", (long)ST_RDONLY)) return -1;
d73e38d
+#endif /* ST_RDONLY */
d73e38d
+#ifdef ST_NOSUID
d73e38d
+	if (ins(d, "ST_NOSUID", (long)ST_NOSUID)) return -1;
d73e38d
+#endif /* ST_NOSUID */
d73e38d
+
d73e38d
+	/* GNU extensions */
d73e38d
+#ifdef ST_NODEV
d73e38d
+	if (ins(d, "ST_NODEV", (long)ST_NODEV)) return -1;
d73e38d
+#endif /* ST_NODEV */
d73e38d
+#ifdef ST_NOEXEC
d73e38d
+	if (ins(d, "ST_NOEXEC", (long)ST_NOEXEC)) return -1;
d73e38d
+#endif /* ST_NOEXEC */
d73e38d
+#ifdef ST_SYNCHRONOUS
d73e38d
+	if (ins(d, "ST_SYNCHRONOUS", (long)ST_SYNCHRONOUS)) return -1;
d73e38d
+#endif /* ST_SYNCHRONOUS */
d73e38d
+#ifdef ST_MANDLOCK
d73e38d
+	if (ins(d, "ST_MANDLOCK", (long)ST_MANDLOCK)) return -1;
d73e38d
+#endif /* ST_MANDLOCK */
d73e38d
+#ifdef ST_WRITE
d73e38d
+	if (ins(d, "ST_WRITE", (long)ST_WRITE)) return -1;
d73e38d
+#endif /* ST_WRITE */
d73e38d
+#ifdef ST_APPEND
d73e38d
+	if (ins(d, "ST_APPEND", (long)ST_APPEND)) return -1;
d73e38d
+#endif /* ST_APPEND */
d73e38d
+#ifdef ST_NOATIME
d73e38d
+	if (ins(d, "ST_NOATIME", (long)ST_NOATIME)) return -1;
d73e38d
+#endif /* ST_NOATIME */
d73e38d
+#ifdef ST_NODIRATIME
d73e38d
+	if (ins(d, "ST_NODIRATIME", (long)ST_NODIRATIME)) return -1;
d73e38d
+#endif /* ST_NODIRATIME */
d73e38d
+#ifdef ST_RELATIME
d73e38d
+	if (ins(d, "ST_RELATIME", (long)ST_RELATIME)) return -1;
d73e38d
+#endif /* ST_RELATIME */
d73e38d
+
d73e38d
 #if defined(PYOS_OS2)
d73e38d
         if (insertvalues(d)) return -1;
d73e38d
 #endif
d73e38d
-- 
d73e38d
1.6.6
d73e38d