statfs64(2) -- Linux man page
NAMEstatfs64,fstatfs64 - Get file system statistics
- long statfs64 (const char *path, size_t sz, struct statfs64 *buf);
- long fstatfs64 (unsigned int fd, size_t sz, struct statfs64 *buf);
statfs64 and fstatfs64 get file system statistics. For statfs, path is the path name of a file in the mounted file system in question. Alternatively, fstatfs can pass a file descriptor in an open file in the fd parameter and get similar information. buf is a statfs pointer structure that contains information about the file system, such as type and free blocks.
- EINVAL, EFAULT
- An invalid address for buf was specified.
- An invalid file descriptor, fd, was specified. fd is applicable to fstatfs only.
SEE ALSOstat(2), statvfs(2)