mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-14 03:46:47 +00:00
18 lines
414 B
C
18 lines
414 B
C
#include "stat.h"
|
|
#include <libsystem/syscall.h>
|
|
|
|
int mkdir(const char *path, mode_t mode)
|
|
{
|
|
return syscall_invoke(SYS_MKDIR, (uint64_t)path, (uint64_t)mode, 0, 0, 0, 0, 0, 0);
|
|
}
|
|
|
|
/**
|
|
* @brief 获取系统的内存信息
|
|
*
|
|
* @param stat 传入的内存信息结构体
|
|
* @return int 错误码
|
|
*/
|
|
int mstat(struct mstat_t *stat)
|
|
{
|
|
return syscall_invoke(SYS_MSTAT, (uint64_t)stat, 0, 0, 0, 0, 0, 0, 0);
|
|
} |