Kernel: Use Userspace<T> for the readlink syscall

This commit is contained in:
Brian Gianforcaro 2020-08-04 22:32:19 -07:00 committed by Andreas Kling
parent 901dae0227
commit 7449921f53
Notes: sideshowbarker 2024-07-19 04:17:59 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -245,7 +245,7 @@ public:
int sys$gethostname(char*, ssize_t);
int sys$sethostname(const char*, ssize_t);
int sys$uname(utsname*);
int sys$readlink(const Syscall::SC_readlink_params*);
int sys$readlink(Userspace<const Syscall::SC_readlink_params*>);
int sys$ttyname(int fd, Userspace<char*>, size_t);
int sys$ptsname(int fd, Userspace<char*>, size_t);
pid_t sys$fork(RegisterState&);

View file

@ -31,7 +31,7 @@
namespace Kernel {
int Process::sys$readlink(const Syscall::SC_readlink_params* user_params)
int Process::sys$readlink(Userspace<const Syscall::SC_readlink_params*> user_params)
{
REQUIRE_PROMISE(rpath);