posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
statvfs.h File Reference

POSIX file system information (<sys/statvfs.h>) More...

#include <zephyr/toolchain.h>
Include dependency graph for statvfs.h:

Go to the source code of this file.

Data Structures

struct  statvfs
 File system information returned by statvfs() and fstatvfs(). More...
 

Macros

#define ST_RDONLY   0x1
 Read-only file system.
 
#define ST_NOSUID   0x2
 Setuid and setgid bits are ignored.
 

Typedefs

typedef unsigned long fsblkcnt_t
 
typedef unsigned long fsfilcnt_t
 

Functions

int fstatvfs (int fildes, struct statvfs *buf)
 Get file system information for the file system containing an open file.
 
int statvfs (const char *ZRESTRICT path, struct statvfs *ZRESTRICT buf)
 Get file system information by path.
 

Detailed Description

POSIX file system information (<sys/statvfs.h>)

Defines the statvfs structure and the statvfs() and fstatvfs() functions used to retrieve information about a mounted file system.

See also
POSIX.1-2017 <sys/statvfs.h>

Definition in file statvfs.h.

Typedef Documentation

◆ fsblkcnt_t

typedef unsigned long fsblkcnt_t

Definition at line 34 of file statvfs.h.

◆ fsfilcnt_t

typedef unsigned long fsfilcnt_t

Definition at line 35 of file statvfs.h.