From 8f9b1be9c22c4e8862ce74e4cc5a3be5639038e3 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 13 Aug 2020 19:46:18 -0400 Subject: implement as syscall --- src/signal/sigpending.c | 4 ++-- src/signal/sigprocmask.c | 4 ++-- src/signal/sigsuspend.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/signal') diff --git a/src/signal/sigpending.c b/src/signal/sigpending.c index b459a114..0f26d451 100644 --- a/src/signal/sigpending.c +++ b/src/signal/sigpending.c @@ -1,10 +1,10 @@ #include "sys/types.h" #include +#include "_syscall.h" int sigpending(sigset_t * set) { - (void)set; - return 0; + SYSCALL(sigpending, int, -1, set, sizeof(*set), 0, 0, 0, 0); } /* POSIX(1) diff --git a/src/signal/sigprocmask.c b/src/signal/sigprocmask.c index 73017da5..2d443e7b 100644 --- a/src/signal/sigprocmask.c +++ b/src/signal/sigprocmask.c @@ -1,10 +1,10 @@ #include "sys/types.h" #include +#include "_syscall.h" int sigprocmask(int how, const sigset_t * restrict set, sigset_t * restrict oset) { - (void)how; (void)set; (void)oset; - return 0; + SYSCALL(sigprocmask, int, -1, how, set, oset, sizeof(*set), 0, 0); } /* POSIX(1) diff --git a/src/signal/sigsuspend.c b/src/signal/sigsuspend.c index 0325cc6a..e42e0e4b 100644 --- a/src/signal/sigsuspend.c +++ b/src/signal/sigsuspend.c @@ -1,10 +1,10 @@ #include "sys/types.h" #include +#include "_syscall.h" int sigsuspend(const sigset_t * sigmask) { - (void)sigmask; - return 0; + SYSCALL(sigsuspend, int, -1, sigmask, sizeof(*sigmask), 0, 0, 0, 0); } /* POSIX(1) -- cgit v1.2.1