statvfs.h 642 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #define FSTYPSZ 16
  14. struct statvfs {
  15. unsigned long f_bsize;
  16. unsigned long f_frsize;
  17. fsblkcnt_t f_blocks;
  18. fsblkcnt_t f_bfree;
  19. fsblkcnt_t f_bavail;
  20. fsfilcnt_t f_files;
  21. fsfilcnt_t f_ffree;
  22. fsfilcnt_t f_favail;
  23. unsigned long f_fsid;
  24. unsigned long f_flag;
  25. unsigned long f_namemax;
  26. char f_basetype[FSTYPSZ];
  27. };
  28. #ifdef __cplusplus
  29. }
  30. #endif