1
0

statfs.h 576 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. */
  9. #ifndef __SYS_STATFS_H__
  10. #define __SYS_STATFS_H__
  11. #include <stddef.h>
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. struct statfs
  16. {
  17. size_t f_bsize; /* block size */
  18. size_t f_blocks; /* total data blocks in file system */
  19. size_t f_bfree; /* free blocks in file system */
  20. };
  21. int statfs(const char *path, struct statfs *buf);
  22. int fstatfs(int fd, struct statfs *buf);
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif