mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +00:00
UserspaceEmulator: Add support for fchown
This commit is contained in:
parent
41aa78f6de
commit
617c5ba045
2 changed files with 8 additions and 0 deletions
|
@ -353,6 +353,8 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3)
|
|||
return virt$chmod(arg1, arg2, arg3);
|
||||
case SC_fchmod:
|
||||
return virt$fchmod(arg1, arg2);
|
||||
case SC_fchown:
|
||||
return virt$fchown(arg1, arg2, arg3);
|
||||
case SC_accept:
|
||||
return virt$accept(arg1, arg2, arg3);
|
||||
case SC_setsockopt:
|
||||
|
@ -505,6 +507,11 @@ int Emulator::virt$fchmod(int fd, mode_t mode)
|
|||
return syscall(SC_fchmod, fd, mode);
|
||||
}
|
||||
|
||||
int Emulator::virt$fchown(int fd, uid_t uid, gid_t gid)
|
||||
{
|
||||
return syscall(SC_fchown, fd, uid, gid);
|
||||
}
|
||||
|
||||
int Emulator::virt$setsockopt(FlatPtr params_addr)
|
||||
{
|
||||
Syscall::SC_setsockopt_params params;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue