diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-02-14 20:33:54 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-02-14 20:33:54 -0500 |
commit | 1322cb82a33a2a59e75937911d910dabc48e9af9 (patch) | |
tree | 2bf15a7623018a27a33c7a7e2b69b5e45f28f803 /src/signal | |
parent | c316b284456e8b8d5f6e2ff18ece9c15b60033c7 (diff) | |
download | musl-1322cb82a33a2a59e75937911d910dabc48e9af9.tar.gz musl-1322cb82a33a2a59e75937911d910dabc48e9af9.tar.bz2 musl-1322cb82a33a2a59e75937911d910dabc48e9af9.tar.xz musl-1322cb82a33a2a59e75937911d910dabc48e9af9.zip |
header cleanup, conformance fixes - signals
Diffstat (limited to 'src/signal')
-rw-r--r-- | src/signal/bsd_signal.c | 6 | ||||
-rw-r--r-- | src/signal/signal.c | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/signal/bsd_signal.c b/src/signal/bsd_signal.c deleted file mode 100644 index 0b9a6855..00000000 --- a/src/signal/bsd_signal.c +++ /dev/null @@ -1,6 +0,0 @@ -#include <signal.h> - -void (*bsd_signal(int sig, void (*func)(int)))(int) -{ - return signal(sig, func); -} diff --git a/src/signal/signal.c b/src/signal/signal.c index 08902760..07346a8a 100644 --- a/src/signal/signal.c +++ b/src/signal/signal.c @@ -1,6 +1,7 @@ #include <signal.h> #include <stddef.h> #include "syscall.h" +#include "libc.h" int __sigaction(int, const struct sigaction *, struct sigaction *); @@ -11,3 +12,5 @@ void (*signal(int sig, void (*func)(int)))(int) return SIG_ERR; return sa.sa_handler; } + +weak_alias(signal, bsd_signal); |