aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-08-21 17:23:56 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-08-22 14:25:03 -0300
commit08d6eb46caf13f46ce052d2be34522068c5a6d33 (patch)
treecca7bafaa85ba2dbe2dc6ea09bc4aabdb06d848d /sysdeps/posix
parentee4e992ebe5f9712faedeefe8958b67d61eaa0f2 (diff)
downloadglibc-08d6eb46caf13f46ce052d2be34522068c5a6d33.tar
glibc-08d6eb46caf13f46ce052d2be34522068c5a6d33.tar.gz
glibc-08d6eb46caf13f46ce052d2be34522068c5a6d33.tar.bz2
glibc-08d6eb46caf13f46ce052d2be34522068c5a6d33.zip
Consolidate non cancellable pause call
This patch consolidates all the non cancellable pause calls to use the __pause_nocancel identifier. For non cancellable targets it will be just a macro to call the default respective symbol while on Linux will be a internal one. Checked on x86_64-linux-gnu, x86_64-linux-gnu-x32, and i686-linux-gnu. * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace pause_not_cancel with __pause_nocancel. * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro. (__pause_nocancel): New macro. * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove macro. (__pause_nocancel): New prototype. * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/pause.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/sysdeps/posix/pause.c b/sysdeps/posix/pause.c
index 7996cd6dbb..53e143d98f 100644
--- a/sysdeps/posix/pause.c
+++ b/sysdeps/posix/pause.c
@@ -39,18 +39,3 @@ __libc_pause (void)
weak_alias (__libc_pause, pause)
LIBC_CANCEL_HANDLED (); /* sigsuspend handles our cancellation. */
-
-#ifndef NO_CANCELLATION
-# include <not-cancel.h>
-
-int
-__pause_nocancel (void)
-{
- sigset_t set;
-
- __sigemptyset (&set);
- __sigprocmask (SIG_BLOCK, NULL, &set);
-
- return sigsuspend_not_cancel (&set);
-}
-#endif