mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
Kernel: Use Userspace<T> for the sigprocmask syscall
This commit is contained in:
parent
431145148e
commit
fbb26b28b9
2 changed files with 2 additions and 2 deletions
|
@ -261,7 +261,7 @@ public:
|
||||||
int sys$dup(int oldfd);
|
int sys$dup(int oldfd);
|
||||||
int sys$dup2(int oldfd, int newfd);
|
int sys$dup2(int oldfd, int newfd);
|
||||||
int sys$sigaction(int signum, const sigaction* act, sigaction* old_act);
|
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$sigpending(sigset_t*);
|
||||||
int sys$getgroups(ssize_t, Userspace<gid_t*>);
|
int sys$getgroups(ssize_t, Userspace<gid_t*>);
|
||||||
int sys$setgroups(ssize_t, Userspace<const gid_t*>);
|
int sys$setgroups(ssize_t, Userspace<const gid_t*>);
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
namespace Kernel {
|
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);
|
REQUIRE_PROMISE(sigaction);
|
||||||
auto current_thread = Thread::current();
|
auto current_thread = Thread::current();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue