Kernel: Use Userspace<T> for the sigprocmask syscall

This commit is contained in:
Brian Gianforcaro 2020-08-09 14:58:31 -07:00 committed by Andreas Kling
parent 431145148e
commit fbb26b28b9
Notes: sideshowbarker 2024-07-19 04:05:32 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -261,7 +261,7 @@ public:
int sys$dup(int oldfd);
int sys$dup2(int oldfd, int newfd);
int sys$sigaction(int signum, const sigaction* act, sigaction* old_act);
int sys$sigprocmask(int how, const sigset_t* set, sigset_t* old_set);
int sys$sigprocmask(int how, Userspace<const sigset_t*> set, Userspace<sigset_t*> old_set);
int sys$sigpending(sigset_t*);
int sys$getgroups(ssize_t, Userspace<gid_t*>);
int sys$setgroups(ssize_t, Userspace<const gid_t*>);

View file

@ -28,7 +28,7 @@
namespace Kernel {
int Process::sys$sigprocmask(int how, const sigset_t* set, sigset_t* old_set)
int Process::sys$sigprocmask(int how, Userspace<const sigset_t*> set, Userspace<sigset_t*> old_set)
{
REQUIRE_PROMISE(sigaction);
auto current_thread = Thread::current();