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