summaryrefslogtreecommitdiff
path: root/Kernel/API/POSIX/sys/statvfs.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-14 19:42:34 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-14 19:58:11 +0200
commite1273a8ff714bbc7f15a958432a03684a3b4bf8a (patch)
tree631c95df75f56f10315e91949f0f03c34e2f625c /Kernel/API/POSIX/sys/statvfs.h
parentdfd78b75d83dc5ffaff3353eb5f2438c4ef7d6f9 (diff)
downloadserenity-e1273a8ff714bbc7f15a958432a03684a3b4bf8a.zip
Kernel+LibC: Share definitions for sys/statvfs.h
Diffstat (limited to 'Kernel/API/POSIX/sys/statvfs.h')
-rw-r--r--Kernel/API/POSIX/sys/statvfs.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/Kernel/API/POSIX/sys/statvfs.h b/Kernel/API/POSIX/sys/statvfs.h
new file mode 100644
index 0000000000..9b09ccee87
--- /dev/null
+++ b/Kernel/API/POSIX/sys/statvfs.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+#pragma once
+
+#include <Kernel/API/POSIX/sys/types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define ST_RDONLY 0x1
+#define ST_NOSUID 0x2
+
+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;
+};
+
+#ifdef __cplusplus
+}
+#endif