1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:57:44 +00:00

Kernel: Use Userspace<T> for the sigpending syscall

This commit is contained in:
Brian Gianforcaro 2020-08-09 14:58:50 -07:00 committed by Andreas Kling
parent fbb26b28b9
commit ecfe20efd2
2 changed files with 2 additions and 2 deletions

View file

@ -262,7 +262,7 @@ public:
int sys$dup2(int oldfd, int newfd);
int sys$sigaction(int signum, const sigaction* act, sigaction* old_act);
int sys$sigprocmask(int how, Userspace<const sigset_t*> set, Userspace<sigset_t*> old_set);
int sys$sigpending(sigset_t*);
int sys$sigpending(Userspace<sigset_t*>);
int sys$getgroups(ssize_t, Userspace<gid_t*>);
int sys$setgroups(ssize_t, Userspace<const gid_t*>);
int sys$pipe(int pipefd[2], int flags);

View file

@ -59,7 +59,7 @@ int Process::sys$sigprocmask(int how, Userspace<const sigset_t*> set, Userspace<
return 0;
}
int Process::sys$sigpending(sigset_t* set)
int Process::sys$sigpending(Userspace<sigset_t*> set)
{
REQUIRE_PROMISE(stdio);
if (!validate_write_typed(set))