mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-20 06:53:33 +08:00
Remove non cancellable sigsuspend definition
There is no current internal usage for non cancellable sigsuspend calls. Checked on x86_64-linux-gnu, x86_64-linux-gnu-x32, and i686-linux-gnu. * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): remove macro. * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): remove alias. * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel): likewise.
This commit is contained in:
parent
6f33fd046b
commit
988f991b50
@ -1,5 +1,12 @@
|
||||
2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
||||
|
||||
* sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
|
||||
macro.
|
||||
* sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
|
||||
alias.
|
||||
* sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
|
||||
Likewise.
|
||||
|
||||
* nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
|
||||
nanosleep_not_cancel with __nanosleep_nocancel.
|
||||
* sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
|
||||
|
@ -42,7 +42,5 @@
|
||||
__pause ()
|
||||
#define __nanosleep_nocancel(requested_time, remaining) \
|
||||
__nanosleep (requested_time, remaining)
|
||||
#define sigsuspend_not_cancel(set) \
|
||||
__sigsuspend (set)
|
||||
|
||||
#define NO_CANCELLATION 1
|
||||
|
@ -79,5 +79,4 @@ __sigsuspend (const sigset_t *set)
|
||||
return -1;
|
||||
}
|
||||
libc_hidden_def (__sigsuspend)
|
||||
strong_alias (__sigsuspend, sigsuspend_not_cancel)
|
||||
weak_alias (__sigsuspend, sigsuspend)
|
||||
|
@ -85,8 +85,4 @@ libc_hidden_proto (__pause_nocancel)
|
||||
__typeof (__nanosleep) __nanosleep_nocancel;
|
||||
hidden_proto (__nanosleep_nocancel)
|
||||
|
||||
/* Uncancelable sigsuspend. */
|
||||
#define sigsuspend_not_cancel(set) \
|
||||
INLINE_SYSCALL (rt_sigsuspend, 2, set, _NSIG / 8)
|
||||
|
||||
#endif /* NOT_CANCEL_H */
|
||||
|
Loading…
Reference in New Issue
Block a user