Kernel/LibC: Implement fchmod

This commit is contained in:
2024-08-25 15:07:42 +03:00
parent 2ce7205c80
commit 991ae4383a
4 changed files with 18 additions and 4 deletions

View File

@@ -13,9 +13,9 @@ int chmod(const char* path, mode_t mode)
return syscall(SYS_CHMOD, path, mode);
}
int fchmod(int, mode_t)
int fchmod(int fildes, mode_t mode)
{
ASSERT_NOT_REACHED();
return syscall(SYS_FCHMOD, fildes, mode);
}
int fstat(int fildes, struct stat* buf)