From 6a2a30ccc6c3dc803abdbfa35cbfa01062af704b Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 9 Dec 2005 00:08:31 +0000 Subject: internal sigpause, do we really default to BSD signals? --- libc/signal/sigblock.c | 2 +- libc/signal/siggetmask.c | 2 +- libc/signal/signal.c | 1 + libc/signal/sigpause.c | 7 ++++--- libc/signal/sigwait.c | 2 ++ 5 files changed, 9 insertions(+), 5 deletions(-) (limited to 'libc/signal') diff --git a/libc/signal/sigblock.c b/libc/signal/sigblock.c index 70af609aa..d3568b9f5 100644 --- a/libc/signal/sigblock.c +++ b/libc/signal/sigblock.c @@ -22,7 +22,7 @@ #include "sigset-cvt-mask.h" /* Block signals in MASK, returning the old mask. */ -int __sigblock (int mask) +int attribute_hidden __sigblock (int mask) { sigset_t set, oset; diff --git a/libc/signal/siggetmask.c b/libc/signal/siggetmask.c index f139d3861..6c6b57579 100644 --- a/libc/signal/siggetmask.c +++ b/libc/signal/siggetmask.c @@ -19,7 +19,7 @@ #include -extern int __sigblock (int __mask); +extern int __sigblock (int __mask) __THROW __attribute_deprecated__ attribute_hidden; int siggetmask (void) { diff --git a/libc/signal/signal.c b/libc/signal/signal.c index 9e489f637..bcc31c0bc 100644 --- a/libc/signal/signal.c +++ b/libc/signal/signal.c @@ -52,4 +52,5 @@ __bsd_signal (int sig, __sighandler_t handler) return oact.sa_handler; } weak_alias (__bsd_signal, bsd_signal) +hidden_weak_alias (__bsd_signal, __signal) weak_alias (__bsd_signal, signal) diff --git a/libc/signal/sigpause.c b/libc/signal/sigpause.c index fc77c958d..7e0852dbc 100644 --- a/libc/signal/sigpause.c +++ b/libc/signal/sigpause.c @@ -18,6 +18,7 @@ 02111-1307 USA. */ #define sigdelset __sigdelset_internal +#define sigsuspend __sigsuspend #include #include @@ -27,7 +28,7 @@ /* Set the mask of blocked signals to MASK, wait for a signal to arrive, and then restore the mask. */ -int __sigpause (int sig_or_mask, int is_sig) +int attribute_hidden __sigpause_internal (int sig_or_mask, int is_sig) { sigset_t set; @@ -44,7 +45,7 @@ int __sigpause (int sig_or_mask, int is_sig) return sigsuspend (&set); } - +strong_alias(__sigpause_internal,__sigpause) #undef sigpause @@ -53,5 +54,5 @@ int __sigpause (int sig_or_mask, int is_sig) the BSD version. So make this the default. */ int sigpause (int mask) { - return __sigpause (mask, 0); + return __sigpause_internal (mask, 0); } diff --git a/libc/signal/sigwait.c b/libc/signal/sigwait.c index 99ddfc481..13d65ed5e 100644 --- a/libc/signal/sigwait.c +++ b/libc/signal/sigwait.c @@ -18,6 +18,8 @@ * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA. */ +#define sigwaitinfo __sigwaitinfo + #include #include #include -- cgit v1.2.3