summaryrefslogtreecommitdiff
path: root/libc/signal
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-16 01:24:40 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:38 +0200
commitcef1f9517c319d86b4b426ecc14a10d0fa5494c7 (patch)
tree5b392bf02781e05e221ec445a33e69478a0b5c46 /libc/signal
parentc28cabb17933d98c9046d4b2492e39757bbacf5a (diff)
no need for hidden __sigpause, use an internal static function
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/signal')
-rw-r--r--libc/signal/sigpause.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libc/signal/sigpause.c b/libc/signal/sigpause.c
index e773b3c13..ebd7af3b9 100644
--- a/libc/signal/sigpause.c
+++ b/libc/signal/sigpause.c
@@ -32,7 +32,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)
+static int __internal_sigpause (int sig_or_mask, int is_sig)
{
sigset_t set;
@@ -52,7 +52,7 @@ int __sigpause (int sig_or_mask, int is_sig)
to do anything here. */
return sigsuspend (&set);
}
-libc_hidden_def(__sigpause)
+strong_alias(__internal_sigpause,__sigpause)
#undef sigpause
@@ -63,16 +63,16 @@ int sigpause (int mask)
{
#ifdef __UCLIBC_HAS_THREADS_NATIVE__
if (SINGLE_THREAD_P)
- return __sigpause (mask, 0);
+ return __internal_sigpause (mask, 0);
int oldtype = LIBC_CANCEL_ASYNC ();
- int result = __sigpause (mask, 0);
+ int result = __internal_sigpause (mask, 0);
LIBC_CANCEL_RESET (oldtype);
return result;
#else
- return __sigpause (mask, 0);
+ return __internal_sigpause (mask, 0);
#endif
}