Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
#ifdef __NR_pause
# define pause_not_cancel() \
INLINE_SYSCALL (pause, 0)
-/*#else
+#else
+# include <unistd.h>
+extern __typeof(pause) __pause_nocancel;
# define pause_not_cancel() \
- __pause_nocancel ()*/
+ __pause_nocancel ()
#endif
/* Uncancelable nanosleep. */
# ifdef __LINUXTHREADS_OLD__
weak_function
# endif
-pause(void)
+__NC(pause)(void)
{
sigset_t set;
So no need for anything special here. */
return sigsuspend(&set);
}
-lt_strong_alias(pause)
+CANCELLABLE_SYSCALL(int, pause, (void), ())
LIBC_CANCEL_HANDLED (); /* sigsuspend handles our cancellation. */
#endif