mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 20:32:56 +03:00
Kernel: Use Userspace<T> for the mknod syscall
This commit is contained in:
parent
d949b2a367
commit
c1541f4a61
Notes:
sideshowbarker
2024-07-19 04:17:50 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/c1541f4a610 Pull-request: https://github.com/SerenityOS/serenity/pull/2996
@ -303,7 +303,7 @@ public:
|
||||
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$mknod(const Syscall::SC_mknod_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);
|
||||
int sys$shbuf_allow_all(int);
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
int Process::sys$mknod(const Syscall::SC_mknod_params* user_params)
|
||||
int Process::sys$mknod(Userspace<const Syscall::SC_mknod_params*> user_params)
|
||||
{
|
||||
REQUIRE_PROMISE(dpath);
|
||||
Syscall::SC_mknod_params params;
|
||||
|
Loading…
Reference in New Issue
Block a user