summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-13 19:46:18 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-13 19:46:18 -0400
commit8f9b1be9c22c4e8862ce74e4cc5a3be5639038e3 (patch)
treef064810d9961d04848bdd10e6b465a0428a9fb15
parent834a4930e8d9b33373fbe1d636acebb87b62c2fd (diff)
implement as syscall
-rw-r--r--src/signal/sigpending.c4
-rw-r--r--src/signal/sigprocmask.c4
-rw-r--r--src/signal/sigsuspend.c4
3 files changed, 6 insertions, 6 deletions
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 <signal.h>
+#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 <signal.h>
+#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 <signal.h>
+#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)