blob: 2dc89333b51af1ebd36df3c2b1a6333d405b71de [file] [log] [blame]
Fred Drake4755e7d1999-06-21 18:25:49 +00001\section{\module{statvfs} ---
2 Constants used with \function{os.statvfs()}}
3
4\declaremodule{standard}{statvfs}
5% LaTeX'ed from comments in module
Fred Drake57657bc2000-12-01 15:25:23 +00006\sectionauthor{Moshe Zadka}{moshez@zadka.site.co.il}
Fred Drake4755e7d1999-06-21 18:25:49 +00007\modulesynopsis{Constants for interpreting the result of
8 \function{os.statvfs()}.}
9
10The \module{statvfs} module defines constants so interpreting the result
11if \function{os.statvfs()}, which returns a tuple, can be made without
12remembering ``magic numbers.'' Each of the constants defined in this
13module is the \emph{index} of the entry in the tuple returned by
14\function{os.statvfs()} that contains the specified information.
15
16
17\begin{datadesc}{F_BSIZE}
18Preferred file system block size.
19\end{datadesc}
20
21\begin{datadesc}{F_FRSIZE}
22Fundamental file system block size.
23\end{datadesc}
24
Fred Drake38e5d272000-04-03 20:13:55 +000025\begin{datadesc}{F_BLOCKS}
26Total number of blocks in the filesystem.
27\end{datadesc}
28
Fred Drake4755e7d1999-06-21 18:25:49 +000029\begin{datadesc}{F_BFREE}
30Total number of free blocks.
31\end{datadesc}
32
33\begin{datadesc}{F_BAVAIL}
34Free blocks available to non-super user.
35\end{datadesc}
36
37\begin{datadesc}{F_FILES}
38Total number of file nodes.
39\end{datadesc}
40
41\begin{datadesc}{F_FFREE}
42Total number of free file nodes.
43\end{datadesc}
44
45\begin{datadesc}{F_FAVAIL}
Fred Drake38e5d272000-04-03 20:13:55 +000046Free nodes available to non-super user.
Fred Drake4755e7d1999-06-21 18:25:49 +000047\end{datadesc}
48
49\begin{datadesc}{F_FLAG}
Thomas Woutersf8316632000-07-16 19:01:10 +000050Flags. System dependent: see \cfunction{statvfs()} man page.
Fred Drake4755e7d1999-06-21 18:25:49 +000051\end{datadesc}
52
53\begin{datadesc}{F_NAMEMAX}
54Maximum file name length.
55\end{datadesc}