diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-12-21 03:02:06 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-12-21 03:02:06 +0100 |
commit | 3a0a8848fb550f33f4946950e0ad70dce49e4c4f (patch) | |
tree | f9ac36442ab0ebebc50b10f83fe6a814d18038d6 /LibC/signal.cpp | |
parent | 36bd53b36a7846a5aade225436cd1a09da0af7fc (diff) | |
download | serenity-3a0a8848fb550f33f4946950e0ad70dce49e4c4f.zip |
Make syscall invocations look pleasant.
Old: Syscall::invoke(Syscall::SC_foo, (dword)arg1, (dword)arg2)
New: syscall(SC_foo, arg1, arg2)
Diffstat (limited to 'LibC/signal.cpp')
-rw-r--r-- | LibC/signal.cpp | 10 |
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); } |