RETURN VALUE

On success, zero is returned. On error, -1 is returned, and errno is
set appropriately.

ERRORS

EACCES (statvfs()) Search permission is denied for a component of the
path prefix of path. (See also path_resolution(7).)
EBADF (fstatvfs()) fd is not a valid open file descriptor.
ENOMEM Insufficient kernel memory was available.
ENOSYS The filesystem does not support this call.
ENOTDIR
(statvfs()) A component of the path prefix of path is not a
directory.
EOVERFLOW
Some values were too large to be represented in the returned
struct.

ATTRIBUTES

Multithreading(seepthreads(7))
The statvfs() and fstatvfs() functions are thread-safe.

CONFORMING TO

POSIX.1-2001.

NOTES

The Linux kernel has system calls statfs(2) and fstatfs(2) to support
this library call.
The current glibc implementations of
pathconf(path, _PC_REC_XFER_ALIGN);
pathconf(path, _PC_ALLOC_SIZE_MIN);
pathconf(path, _PC_REC_MIN_XFER_SIZE);
respectively use the f_frsize, f_frsize, and f_bsize fields of the
return value of statvfs(path,buf).