]> git.ipfire.org Git - thirdparty/glibc.git/commit
Consolidate non cancellable pause call
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 21 Aug 2017 20:23:56 +0000 (17:23 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 22 Aug 2017 17:25:03 +0000 (14:25 -0300)
commit08d6eb46caf13f46ce052d2be34522068c5a6d33
treecca7bafaa85ba2dbe2dc6ea09bc4aabdb06d848d
parentee4e992ebe5f9712faedeefe8958b67d61eaa0f2
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.
ChangeLog
include/unistd.h
nptl/pthread_mutex_lock.c
sysdeps/generic/not-cancel.h
sysdeps/posix/pause.c
sysdeps/unix/sysv/linux/not-cancel.h
sysdeps/unix/sysv/linux/pause.c