statfs, fstatfs - get file system statistics
#include <sys/vfs.h>
int statfs(const char *path, struct statfs *buf); int fstatfs(int fd, struct statfs *buf); / long f_spare[6?; / spare for later */
};
File system types:
Fields that are undefined for a particular file system are set to 0. fstatfs(2) returns the same information about an open file referenced by descriptor fd.
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
For fstatfs(2):
The Linux statfs(2) was inspired by the 4.4BSD one (but they do not use the same structure).
stat(2), fstat(2), statfs(2)
4 pages link to fstatfs(2):
lib/main.php:944: Notice: PageInfo: Cannot find action page