From e1273a8ff714bbc7f15a958432a03684a3b4bf8a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 14 Aug 2021 19:42:34 +0200 Subject: Kernel+LibC: Share definitions for sys/statvfs.h --- Kernel/API/POSIX/sys/statvfs.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Kernel/API/POSIX/sys/statvfs.h (limited to 'Kernel/API') 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 + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include + +#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 -- cgit v1.2.3