summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--libgcompat/signal.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 37c7a70..e377355 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,7 @@ LIBGCOMPAT_SRC = \
libgcompat/resolv.c \
libgcompat/resource.c \
libgcompat/setjmp.c \
+ libgcompat/signal.c \
libgcompat/stdio.c \
libgcompat/stdlib.c \
libgcompat/string.c \
diff --git a/libgcompat/signal.c b/libgcompat/signal.c
new file mode 100644
index 0000000..17e5443
--- /dev/null
+++ b/libgcompat/signal.c
@@ -0,0 +1,11 @@
+#include <signal.h> /* sigpause */
+
+/**
+ * Remove a signal from the signal mask and suspend the thread.
+ *
+ * LSB 5.0: LSB-Core-generic/baselib---xpg-sigpause.html
+ */
+int __xpg_sigpause(int sig)
+{
+ return sigpause(sig);
+}