Kernel/LibC/Userspace: Implement mkdir and creat

Touch now uses creat insteadd of open with O_CREAT flag
This commit is contained in:
2023-10-25 19:45:18 +03:00
parent e9b7cf332d
commit 6ee4d10651
11 changed files with 83 additions and 10 deletions

View File

@@ -28,3 +28,8 @@ int stat(const char* __restrict path, struct stat* __restrict buf)
{
return syscall(SYS_STAT, path, buf, 0);
}
int mkdir(const char* path, mode_t mode)
{
return syscall(SYS_CREATE_DIR, path, mode);
}