mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Kernel: Use Userspace<T> for the waitid syscall
This commit is contained in:
parent
84035e1035
commit
74d3b202f1
Notes:
sideshowbarker
2024-07-19 04:18:07 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/74d3b202f11 Pull-request: https://github.com/SerenityOS/serenity/pull/2996
3 changed files with 3 additions and 3 deletions
|
@ -427,7 +427,7 @@ struct SC_unveil_params {
|
|||
struct SC_waitid_params {
|
||||
int idtype;
|
||||
int id;
|
||||
struct siginfo* infop;
|
||||
Userspace<struct siginfo*> infop;
|
||||
int options;
|
||||
};
|
||||
|
||||
|
|
|
@ -222,7 +222,7 @@ public:
|
|||
int sys$kill(pid_t pid, int sig);
|
||||
[[noreturn]] void sys$exit(int status);
|
||||
int sys$sigreturn(RegisterState& registers);
|
||||
pid_t sys$waitid(const Syscall::SC_waitid_params*);
|
||||
pid_t sys$waitid(Userspace<const Syscall::SC_waitid_params*>);
|
||||
void* sys$mmap(const Syscall::SC_mmap_params*);
|
||||
int sys$munmap(void*, size_t size);
|
||||
int sys$set_mmap_name(const Syscall::SC_set_mmap_name_params*);
|
||||
|
|
|
@ -93,7 +93,7 @@ KResultOr<siginfo_t> Process::do_waitid(idtype_t idtype, int id, int options)
|
|||
}
|
||||
}
|
||||
|
||||
pid_t Process::sys$waitid(const Syscall::SC_waitid_params* user_params)
|
||||
pid_t Process::sys$waitid(Userspace<const Syscall::SC_waitid_params*> user_params)
|
||||
{
|
||||
REQUIRE_PROMISE(proc);
|
||||
|
||||
|
|
Loading…
Reference in a new issue