summaryrefslogtreecommitdiff
path: root/libc/signal/sigpause.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-09 00:08:31 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-09 00:08:31 +0000
commit6a2a30ccc6c3dc803abdbfa35cbfa01062af704b (patch)
treef617a70aae3007e35d1c47a6815e118f08be1592 /libc/signal/sigpause.c
parentafa6ffdbf8a2e31d648c8860fd172d1b047650cd (diff)
internal sigpause, do we really default to BSD signals?
Diffstat (limited to 'libc/signal/sigpause.c')
-rw-r--r--libc/signal/sigpause.c7
1 files changed, 4 insertions, 3 deletions
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 <errno.h>
#include <signal.h>
@@ -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);
}