mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
Kernel: Use Userspace<T> for the chown syscall
This commit is contained in:
parent
7e7ee2ec94
commit
0db669a9d2
2 changed files with 2 additions and 2 deletions
|
@ -285,7 +285,7 @@ public:
|
|||
int sys$umount(const char* mountpoint, size_t mountpoint_length);
|
||||
int sys$chmod(const char* pathname, size_t path_length, mode_t);
|
||||
int sys$fchmod(int fd, mode_t);
|
||||
int sys$chown(const Syscall::SC_chown_params*);
|
||||
int sys$chown(Userspace<const Syscall::SC_chown_params*>);
|
||||
int sys$fchown(int fd, uid_t, gid_t);
|
||||
int sys$socket(int domain, int type, int protocol);
|
||||
int sys$bind(int sockfd, const sockaddr* addr, socklen_t);
|
||||
|
|
|
@ -38,7 +38,7 @@ int Process::sys$fchown(int fd, uid_t uid, gid_t gid)
|
|||
return description->chown(uid, gid);
|
||||
}
|
||||
|
||||
int Process::sys$chown(const Syscall::SC_chown_params* user_params)
|
||||
int Process::sys$chown(Userspace<const Syscall::SC_chown_params*> user_params)
|
||||
{
|
||||
REQUIRE_PROMISE(chown);
|
||||
Syscall::SC_chown_params params;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue