summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-14 22:18:42 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-14 22:18:42 +0000
commit955c530b63eebc8923e7a3b315b1e32cad9d5385 (patch)
tree1251286d3bbb0bf0eb9457374fcdb5fbe35c5b28 /libc
parentb9d5730fe1730919320c27db1c3d7d44fa8d3b63 (diff)
get rid of duplicates, even bsd_signal is questionable
Diffstat (limited to 'libc')
-rw-r--r--libc/signal/signal.c7
-rw-r--r--libc/signal/sysv_signal.c4
2 files changed, 4 insertions, 7 deletions
diff --git a/libc/signal/signal.c b/libc/signal/signal.c
index 87bd7ab84..6879ef822 100644
--- a/libc/signal/signal.c
+++ b/libc/signal/signal.c
@@ -28,8 +28,8 @@ 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. */
-attribute_hidden __sighandler_t
-__bsd_signal (int sig, __sighandler_t handler)
+__sighandler_t
+bsd_signal (int sig, __sighandler_t handler)
{
struct sigaction act, oact;
@@ -50,7 +50,6 @@ __bsd_signal (int sig, __sighandler_t handler)
return oact.sa_handler;
}
-strong_alias(__bsd_signal,bsd_signal)
-strong_alias(__bsd_signal,signal)
+strong_alias(bsd_signal,signal)
libc_hidden_proto(signal)
libc_hidden_def(signal)
diff --git a/libc/signal/sysv_signal.c b/libc/signal/sysv_signal.c
index 97a216363..45547d1d6 100644
--- a/libc/signal/sysv_signal.c
+++ b/libc/signal/sysv_signal.c
@@ -36,7 +36,7 @@ libc_hidden_proto(sigaction)
/* Set the handler for the signal SIG to HANDLER,
returning the old handler, or SIG_ERR on error. */
__sighandler_t
-__sysv_signal (sig, handler)
+sysv_signal (sig, handler)
int sig;
__sighandler_t handler;
{
@@ -59,5 +59,3 @@ __sysv_signal (sig, handler)
return oact.sa_handler;
}
-
-weak_alias (__sysv_signal, sysv_signal)