[PATCH 02/12] libc/pause: Add __pause_not_cancel weak alias.
Markos Chandras
markos.chandras at gmail.com
Thu Feb 21 10:11:59 UTC 2013
From: Markos Chandras <markos.chandras at imgtec.com>
On architectures that don't provide __NR_pause __pause_nocancel is
needed when wanting to perform an uncancelable pause.
Signed-off-by: Markos Chandras <markos.chandras at imgtec.com>
---
libc/sysdeps/linux/common/pause.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libc/sysdeps/linux/common/pause.c b/libc/sysdeps/linux/common/pause.c
index 32fe839..c35ecd5 100644
--- a/libc/sysdeps/linux/common/pause.c
+++ b/libc/sysdeps/linux/common/pause.c
@@ -25,7 +25,7 @@ int
# ifdef __LINUXTHREADS_OLD__
weak_function
# endif
-pause(void)
+__NC(pause)(void)
{
sigset_t set;
@@ -36,6 +36,6 @@ pause(void)
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
--
1.8.1.2
More information about the uClibc
mailing list