summaryrefslogtreecommitdiff
path: root/libc/signal/signal.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-12-29 13:55:44 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-12-29 13:55:44 +0000
commit3a40407c06a470f5b15a4df310ab135233ac6109 (patch)
tree5835d1a4d987f81411c4fe9cf3153467aea597f5 /libc/signal/signal.c
parent30f06faa24eb3d6da34c80f5632a7f01aee900e0 (diff)
- expand SUSv3_LEGACY
- SUSv4_LEGACY part #1 (non-networking)
Diffstat (limited to 'libc/signal/signal.c')
-rw-r--r--libc/signal/signal.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/libc/signal/signal.c b/libc/signal/signal.c
index f3dfa33fc..644617c15 100644
--- a/libc/signal/signal.c
+++ b/libc/signal/signal.c
@@ -22,15 +22,12 @@
#include <signal.h>
#include <string.h> /* For the real memset prototype. */
-/* libc_hidden_proto(sigaction) */
-
sigset_t _sigintr attribute_hidden; /* Set by siginterrupt. */
/* Set the handler for the signal SIG to HANDLER,
returning the old handler, or SIG_ERR on error. */
-extern __typeof(bsd_signal) __bsd_signal;
-attribute_hidden __sighandler_t
-__bsd_signal (int sig, __sighandler_t handler)
+__sighandler_t
+signal (int sig, __sighandler_t handler)
{
struct sigaction act, oact;
@@ -51,7 +48,7 @@ __bsd_signal (int sig, __sighandler_t handler)
return oact.sa_handler;
}
-strong_alias(__bsd_signal,bsd_signal)
-/* libc_hidden_proto(signal) */
-strong_alias(__bsd_signal,signal)
libc_hidden_def(signal)
+#ifdef __UCLIBC_SUSV3_LEGACY__
+strong_alias(signal,bsd_signal)
+#endif