mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Use Userspace<T> for the rename syscall
This commit is contained in:
parent
c1541f4a61
commit
337e8f98cd
Notes:
sideshowbarker
2024-07-19 04:17:47 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/337e8f98cdc Pull-request: https://github.com/SerenityOS/serenity/pull/2996
2 changed files with 2 additions and 2 deletions
|
@ -302,7 +302,7 @@ public:
|
|||
int sys$detach_thread(int tid);
|
||||
int sys$set_thread_name(int tid, const char* buffer, size_t buffer_size);
|
||||
int sys$get_thread_name(int tid, char* buffer, size_t buffer_size);
|
||||
int sys$rename(const Syscall::SC_rename_params*);
|
||||
int sys$rename(Userspace<const Syscall::SC_rename_params*>);
|
||||
int sys$mknod(Userspace<const Syscall::SC_mknod_params*>);
|
||||
int sys$shbuf_create(int, void** buffer);
|
||||
int sys$shbuf_allow_pid(int, pid_t peer_pid);
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
int Process::sys$rename(const Syscall::SC_rename_params* user_params)
|
||||
int Process::sys$rename(Userspace<const Syscall::SC_rename_params*> user_params)
|
||||
{
|
||||
REQUIRE_PROMISE(cpath);
|
||||
Syscall::SC_rename_params params;
|
||||
|
|
Loading…
Reference in a new issue