mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Kernel: Use Userspace<T> in sys$link() and sys$symlink()
This commit is contained in:
parent
67fe92bc4f
commit
b139fb9f38
Notes:
sideshowbarker
2024-07-19 04:21:01 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b139fb9f383
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue