gettimeofday: port recent C++ fix to Emacs
[gnulib.git] / doc / posix-functions / statvfs.texi
1 @node statvfs
2 @section @code{statvfs}
3 @findex statvfs
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/statvfs.html}
6
7 Gnulib module: ---
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @end itemize
12
13 Portability problems not fixed by Gnulib:
14 @itemize
15 @item
16 This function is missing on some platforms:
17 Mac OS X 10.3, OpenBSD 3.8, mingw, MSVC 9.
18 @item
19 This function can hang if it stats all preceding
20 entries in /proc/mounts, and any of those file systems
21 are hard-mounted and not available.  This affects
22 Linux < 2.6.36.
23 @item
24 On platforms where @code{f_blocks} in @samp{struct statvfs} is a 32-bit
25 value, this function may not work correctly on files systems larger than
26 4 TiB.  The fix is to use the @code{AC_SYS_LARGEFILE} macro.  This affects
27 glibc/Hurd, HP-UX 11, Solaris.
28 @end itemize
29
30 Gnulib provides a module @code{fsusage} that provides similar information
31 as @code{statvfs}.