summaryrefslogtreecommitdiff
path: root/LibC/signal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'LibC/signal.cpp')
-rw-r--r--LibC/signal.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/LibC/signal.cpp b/LibC/signal.cpp
index 215ac2a56c..9e74466793 100644
--- a/LibC/signal.cpp
+++ b/LibC/signal.cpp
@@ -8,13 +8,13 @@ extern "C" {
int kill(pid_t pid, int sig)
{
- int rc = Syscall::invoke(Syscall::SC_kill, (dword)pid, (dword)sig);
+ int rc = syscall(SC_kill, pid, sig);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
int killpg(int pgrp, int sig)
{
- int rc = Syscall::invoke(Syscall::SC_killpg, (dword)pgrp, (dword)sig);
+ int rc = syscall(SC_killpg, pgrp, sig);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
@@ -34,7 +34,7 @@ sighandler_t signal(int signum, sighandler_t handler)
int sigaction(int signum, const struct sigaction* act, struct sigaction* old_act)
{
- int rc = Syscall::invoke(Syscall::SC_sigaction, (dword)signum, (dword)act, (dword)old_act);
+ int rc = syscall(SC_sigaction, signum, act, old_act);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
@@ -83,13 +83,13 @@ int sigismember(const sigset_t* set, int sig)
int sigprocmask(int how, const sigset_t* set, sigset_t* old_set)
{
- int rc = Syscall::invoke(Syscall::SC_sigprocmask, (dword)how, (dword)set, (dword)old_set);
+ int rc = syscall(SC_sigprocmask, how, set, old_set);
__RETURN_WITH_ERRNO(rc, rc, -1);
}
int sigpending(sigset_t* set)
{
- int rc = Syscall::invoke(Syscall::SC_sigpending, (dword)set);
+ int rc = syscall(SC_sigpending, set);
__RETURN_WITH_ERRNO(rc, rc, -1);
}