diff options
author | Fedora Python maintainers <python-devel@lists.fedoraproject.org> | 2020-07-15 13:21:09 (GMT) |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2020-09-29 13:59:05 (GMT) |
commit | 44d4c0c3ba729d4c2879f617371bebdca45b8cdf (patch) | |
tree | 77b27314ea81d200a1483d7eca771c6edbeb9e91 | |
parent | b8edbe4ca3915ba08d448886bb5e2452698b77a6 (diff) | |
download | cpython-44d4c0c3ba729d4c2879f617371bebdca45b8cdf.zip cpython-44d4c0c3ba729d4c2879f617371bebdca45b8cdf.tar.gz cpython-44d4c0c3ba729d4c2879f617371bebdca45b8cdf.tar.bz2 |
00114-statvfs-f_flag-constants.patch
00114 #
Add flags for statvfs.f_flag to the constant list in posixmodule (i.e. "os")
(rhbz:553020); partially upstream as http://bugs.python.org/issue7647
Not yet sent upstream
-rw-r--r-- | Modules/posixmodule.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 7a1a694..25ce36d 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -9457,6 +9457,43 @@ all_ins(PyObject *d) #endif #endif + /* These came from statvfs.h */ +#ifdef ST_RDONLY + if (ins(d, "ST_RDONLY", (long)ST_RDONLY)) return -1; +#endif /* ST_RDONLY */ +#ifdef ST_NOSUID + if (ins(d, "ST_NOSUID", (long)ST_NOSUID)) return -1; +#endif /* ST_NOSUID */ + + /* GNU extensions */ +#ifdef ST_NODEV + if (ins(d, "ST_NODEV", (long)ST_NODEV)) return -1; +#endif /* ST_NODEV */ +#ifdef ST_NOEXEC + if (ins(d, "ST_NOEXEC", (long)ST_NOEXEC)) return -1; +#endif /* ST_NOEXEC */ +#ifdef ST_SYNCHRONOUS + if (ins(d, "ST_SYNCHRONOUS", (long)ST_SYNCHRONOUS)) return -1; +#endif /* ST_SYNCHRONOUS */ +#ifdef ST_MANDLOCK + if (ins(d, "ST_MANDLOCK", (long)ST_MANDLOCK)) return -1; +#endif /* ST_MANDLOCK */ +#ifdef ST_WRITE + if (ins(d, "ST_WRITE", (long)ST_WRITE)) return -1; +#endif /* ST_WRITE */ +#ifdef ST_APPEND + if (ins(d, "ST_APPEND", (long)ST_APPEND)) return -1; +#endif /* ST_APPEND */ +#ifdef ST_NOATIME + if (ins(d, "ST_NOATIME", (long)ST_NOATIME)) return -1; +#endif /* ST_NOATIME */ +#ifdef ST_NODIRATIME + if (ins(d, "ST_NODIRATIME", (long)ST_NODIRATIME)) return -1; +#endif /* ST_NODIRATIME */ +#ifdef ST_RELATIME + if (ins(d, "ST_RELATIME", (long)ST_RELATIME)) return -1; +#endif /* ST_RELATIME */ + #if defined(PYOS_OS2) if (insertvalues(d)) return -1; #endif |