9a9b91c940
It's finally done.. Signed-off-by: kaguya <vpshinomiya@protonmail.com>
51 lines
1.1 KiB
C
Executable File
51 lines
1.1 KiB
C
Executable File
#ifndef _ABIBITS_STATVFS_H
|
|
#define _ABIBITS_STATVFS_H
|
|
|
|
#include <abi-bits/fsblkcnt_t.h>
|
|
#include <abi-bits/fsfilcnt_t.h>
|
|
|
|
#define ST_RDONLY 1
|
|
#define ST_NOSUID 2
|
|
#define ST_NODEV 4
|
|
#define ST_NOEXEC 8
|
|
#define ST_SYNCHRONOUS 16
|
|
#define ST_MANDLOCK 64
|
|
#define ST_WRITE 128
|
|
#define ST_APPEND 256
|
|
#define ST_IMMUTABLE 512
|
|
#define ST_NOATIME 1024
|
|
#define ST_NODIRATIME 2048
|
|
|
|
/* On Linux, this struct is not directly used by the kernel. */
|
|
|
|
/* WARNING: keep `statvfs` and `statvfs64` in sync or bad things will happen! */
|
|
struct statvfs {
|
|
unsigned long f_bsize;
|
|
unsigned long f_frsize;
|
|
fsblkcnt_t f_blocks;
|
|
fsblkcnt_t f_bfree;
|
|
fsblkcnt_t f_bavail;
|
|
fsfilcnt_t f_files;
|
|
fsfilcnt_t f_ffree;
|
|
fsfilcnt_t f_favail;
|
|
unsigned long f_fsid;
|
|
unsigned long f_flag;
|
|
unsigned long f_namemax;
|
|
};
|
|
|
|
/* WARNING: keep `statvfs` and `statvfs64` in sync or bad things will happen! */
|
|
struct statvfs64 {
|
|
unsigned long f_bsize;
|
|
unsigned long f_frsize;
|
|
fsblkcnt_t f_blocks;
|
|
fsblkcnt_t f_bfree;
|
|
fsblkcnt_t f_bavail;
|
|
fsfilcnt_t f_files;
|
|
fsfilcnt_t f_ffree;
|
|
fsfilcnt_t f_favail;
|
|
unsigned long f_fsid;
|
|
unsigned long f_flag;
|
|
unsigned long f_namemax;
|
|
};
|
|
|
|
#endif /* _ABIBITS_STATVFS_H */ |