summaryrefslogtreecommitdiff
path: root/libc/signal
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-15 10:41:20 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-15 10:41:20 +0000
commit2fa66fcc51900bcb30b70429533d96b9c8e94e5a (patch)
treee4c33cb8da9f4cad255e68b1be202be64f4d1ffb /libc/signal
parentab1101f24b79849c10ccca5f003436d0f5374d0e (diff)
revert 13331 and sync partly header w/ glibc, __sysv_signal is referenced in header, keep it visible
Diffstat (limited to 'libc/signal')
-rw-r--r--libc/signal/signal.c7
-rw-r--r--libc/signal/sysv_signal.c3
2 files changed, 6 insertions, 4 deletions
diff --git a/libc/signal/signal.c b/libc/signal/signal.c
index 6879ef822..87bd7ab84 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. */
-__sighandler_t
-bsd_signal (int sig, __sighandler_t handler)
+attribute_hidden __sighandler_t
+__bsd_signal (int sig, __sighandler_t handler)
{
struct sigaction act, oact;
@@ -50,6 +50,7 @@ bsd_signal (int sig, __sighandler_t handler)
return oact.sa_handler;
}
-strong_alias(bsd_signal,signal)
+strong_alias(__bsd_signal,bsd_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 45547d1d6..97857a250 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,3 +59,4 @@ sysv_signal (sig, handler)
return oact.sa_handler;
}
+strong_alias(__sysv_signal,sysv_signal)