diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-14 23:33:24 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-15 00:02:54 -0600 |
commit | 8b7099b1e4ecca1357051142b589eaf24e29051c (patch) | |
tree | 058b924568e6820fd77f7052a625263cf549af4c | |
parent | c13e6ac24f4139a354e068de8472eb6c831a7a23 (diff) | |
download | gcompat-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>
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | libgcompat/signal.c | 11 |
2 files changed, 12 insertions, 0 deletions
@@ -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); +} |