dnx RTOS 2.4.0 "Goose"
<sys/statfs.h>

Detailed Description

The library is used to get file systems information.

Functions

static int statfs (const char *path, struct statfs *statfs)
 Function gets file system information. More...
 

Function Documentation

◆ statfs()

static int statfs ( const char *  path,
struct statfs statfs 
)
static

The function statfs() returns information about a mounted file system. A path is directory of the mount point of file system.

Parameters
pathnode name
statfsfile system information container
Exceptions
|EINVAL
|ENOMEM
|EACCES
|EEXIST
|ENOENT
|ENOSPC
|ENOTDIR
|...
Returns
On success, 0 is returned. On error, -1 is returned, and errno is set appropriately.

Example

// ...
struct statfs info;
if (statfs("/proc", &info) == 0) {
// ...
} else {
perror("/proc");
// ...
}
// ...
See also
mount(), umount()