statfs.h 506 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2006-2021, 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. struct statfs
  13. {
  14. size_t f_bsize; /* block size */
  15. size_t f_blocks; /* total data blocks in file system */
  16. size_t f_bfree; /* free blocks in file system */
  17. };
  18. int statfs(const char *path, struct statfs *buf);
  19. int fstatfs(int fd, struct statfs *buf);
  20. #endif