statvfs.h 591 B

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