summaryrefslogtreecommitdiff
path: root/doc/posix-functions/statvfs.texi
blob: 0c86f9244bed061b59504e3c201c9ef42e5a8e6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@node statvfs
@section @code{statvfs}
@findex statvfs

POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/statvfs.html}

Gnulib module: ---

Portability problems fixed by Gnulib:
@itemize
@item
On platforms where @code{f_blocks} in @samp{struct statvfs} is a 32-bit
value, this function may not work correctly on files systems larger than
4 TiB@.  @xref{Large File Support}.  This affects
glibc/Hurd, HP-UX 11, Solaris.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
OpenBSD 3.8, mingw, MSVC 14, Android 4.3.
@item
This function can hang if it stats all preceding
entries in /proc/mounts, and any of those file systems
are hard-mounted and not available.  This affects
Linux < 2.6.36.
@end itemize

Gnulib provides a module @code{fsusage} that provides similar information
as @code{statvfs}.