Kernel: Use Userspace<T> in sys$link() and sys$symlink()

This commit is contained in:
Andreas Kling 2020-08-03 18:40:28 +02:00
parent 67fe92bc4f
commit b139fb9f38
Notes: sideshowbarker 2024-07-19 04:21:01 +09:00
2 changed files with 4 additions and 4 deletions

View file

@ -272,9 +272,9 @@ public:
int sys$mkdir(Userspace<const char*> pathname, size_t path_length, mode_t mode);
clock_t sys$times(tms*);
int sys$utime(Userspace<const char*> pathname, size_t path_length, Userspace<const struct utimbuf*>);
int sys$link(const Syscall::SC_link_params*);
int sys$link(Userspace<const Syscall::SC_link_params*>);
int sys$unlink(const char* pathname, size_t path_length);
int sys$symlink(const Syscall::SC_symlink_params*);
int sys$symlink(Userspace<const Syscall::SC_symlink_params*>);
int sys$rmdir(Userspace<const char*> pathname, size_t path_length);
int sys$mount(const Syscall::SC_mount_params*);
int sys$umount(const char* mountpoint, size_t mountpoint_length);

View file

@ -30,7 +30,7 @@
namespace Kernel {
int Process::sys$link(const Syscall::SC_link_params* user_params)
int Process::sys$link(Userspace<const Syscall::SC_link_params*> user_params)
{
REQUIRE_PROMISE(cpath);
Syscall::SC_link_params params;
@ -43,7 +43,7 @@ int Process::sys$link(const Syscall::SC_link_params* user_params)
return VFS::the().link(old_path, new_path, current_directory());
}
int Process::sys$symlink(const Syscall::SC_symlink_params* user_params)
int Process::sys$symlink(Userspace<const Syscall::SC_symlink_params*> user_params)
{
REQUIRE_PROMISE(cpath);
Syscall::SC_symlink_params params;