about summary refs log tree commit diff
path: root/src/signal/sigsuspend.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/signal/sigsuspend.c')
-rw-r--r--src/signal/sigsuspend.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/signal/sigsuspend.c b/src/signal/sigsuspend.c
new file mode 100644
index 00000000..1acdab06
--- /dev/null
+++ b/src/signal/sigsuspend.c
@@ -0,0 +1,7 @@
+#include <signal.h>
+#include "syscall.h"
+
+int sigsuspend(const sigset_t *mask)
+{
+	return syscall2(__NR_rt_sigsuspend, (long)mask, sizeof(sigset_t));
+}