Kernel/LibC: implement chmod syscall + libc wrapper

This commit is contained in:
2023-10-25 02:35:37 +03:00
parent 657f95d3f0
commit 627b8cc140
11 changed files with 59 additions and 2 deletions

View File

@@ -199,6 +199,9 @@ namespace Kernel
case SYS_POWEROFF:
ret = Process::current().sys_poweroff((int)arg1);
break;
case SYS_CHMOD:
ret = Process::current().sys_chmod((const char*)arg1, (mode_t)arg2);
break;
default:
dwarnln("Unknown syscall {}", syscall);
break;