summaryrefslogtreecommitdiff
path: root/libgcompat
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-01-14 23:33:24 -0600
committerSamuel Holland <samuel@sholland.org>2018-01-15 00:02:54 -0600
commit8b7099b1e4ecca1357051142b589eaf24e29051c (patch)
tree058b924568e6820fd77f7052a625263cf549af4c /libgcompat
parentc13e6ac24f4139a354e068de8472eb6c831a7a23 (diff)
downloadgcompat-8b7099b1e4ecca1357051142b589eaf24e29051c.tar.gz
gcompat-8b7099b1e4ecca1357051142b589eaf24e29051c.tar.bz2
gcompat-8b7099b1e4ecca1357051142b589eaf24e29051c.tar.xz
gcompat-8b7099b1e4ecca1357051142b589eaf24e29051c.zip
signal: Add a signal function from LSB
The other unimplemented signal function in LSB is sigreturn, with is not really implementable. Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'libgcompat')
-rw-r--r--libgcompat/signal.c11
1 files changed, 11 insertions, 0 deletions
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);
+}