Serenity Operating System
1/*
2 * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#pragma once
8
9#include <Kernel/API/POSIX/sys/types.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#define ST_RDONLY 0x1
16#define ST_NOSUID 0x2
17
18#define FSTYPSZ 16
19
20struct statvfs {
21 unsigned long f_bsize;
22 unsigned long f_frsize;
23 fsblkcnt_t f_blocks;
24 fsblkcnt_t f_bfree;
25 fsblkcnt_t f_bavail;
26
27 fsfilcnt_t f_files;
28 fsfilcnt_t f_ffree;
29 fsfilcnt_t f_favail;
30
31 unsigned long f_fsid;
32 unsigned long f_flag;
33 unsigned long f_namemax;
34
35 char f_basetype[FSTYPSZ];
36};
37
38#ifdef __cplusplus
39}
40#endif