stat.c 414 B

123456789101112131415161718
  1. #include "stat.h"
  2. #include <libsystem/syscall.h>
  3. int mkdir(const char *path, mode_t mode)
  4. {
  5. return syscall_invoke(SYS_MKDIR, (uint64_t)path, (uint64_t)mode, 0, 0, 0, 0, 0, 0);
  6. }
  7. /**
  8. * @brief 获取系统的内存信息
  9. *
  10. * @param stat 传入的内存信息结构体
  11. * @return int 错误码
  12. */
  13. int mstat(struct mstat_t *stat)
  14. {
  15. return syscall_invoke(SYS_MSTAT, (uint64_t)stat, 0, 0, 0, 0, 0, 0, 0);
  16. }