summaryrefslogtreecommitdiffstats
path: root/Lib/statvfs.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-01-06 18:54:57 (GMT)
committerGuido van Rossum <guido@python.org>1999-01-06 18:54:57 (GMT)
commit2386d7333f9fa9fa35bde5faf3400146d5bb471b (patch)
treefeae4db6e868c1618eb37f494c16184057c9b0d9 /Lib/statvfs.py
parentf98e2a787eefef856fe22f00ace6604aae4b2934 (diff)
downloadcpython-2386d7333f9fa9fa35bde5faf3400146d5bb471b.zip
cpython-2386d7333f9fa9fa35bde5faf3400146d5bb471b.tar.gz
cpython-2386d7333f9fa9fa35bde5faf3400146d5bb471b.tar.bz2
Constants for [f]statvfs() (new in posixmodule.c) by Steve Clift.
Diffstat (limited to 'Lib/statvfs.py')
-rw-r--r--Lib/statvfs.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/Lib/statvfs.py b/Lib/statvfs.py
new file mode 100644
index 0000000..79610b6
--- /dev/null
+++ b/Lib/statvfs.py
@@ -0,0 +1,20 @@
+# Module 'statvfs'
+#
+# Defines constants for interpreting statvfs struct as returned
+# by os.statvfs() and os.fstatvfs() (if they exist).
+#
+
+# Indices for statvfs struct members in tuple returned by
+# os.statvfs() and os.fstatvfs()
+
+F_BSIZE = 0
+F_FRSIZE = 1
+F_BLOCKS = 2
+F_BFREE = 3
+F_BAVAIL = 4
+F_FILES = 5
+F_FFREE = 6
+F_FAVAIL = 7
+F_FSID = 8
+F_FLAG = 9
+F_NAMEMAX = 10