Remove useless #ifdefs from Linux sig*.c syscalls
authorYury Norov <ynorov@caviumnetworks.com>
Tue, 31 Oct 2017 17:31:40 +0000 (15:31 -0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 31 Oct 2017 19:49:18 +0000 (17:49 -0200)
commit87bbc4cf1e95400e17670a38684c041319c3187b
tree9b9d1456a6d5077fc46d1e879f435d231e7eb81d
parente8681faa01e782800aa44acd0f13b191aca13c81
Remove useless #ifdefs from Linux sig*.c  syscalls

sigprocmask.c, sigtimedwait.c, sigwait.c and sigwaitinfo.c files from
sysdeps/unix/sysv/linux include nptl-signals.h via nptl/pthreadP.h,
and so SIGCANCEL and SIGSETXID become defined unconditionally. But
later in the code, there are some checks weither symbols defined,
which is useless. This patch removes useless checks.

Checked on x86_64-linux-gnu.

* sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
* sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
* sysdeps/unix/sysv/linux/sigwait.c: Likewise.
* sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.

Signed-off-by: Yury Norov <ynorov@caviumnetworks.com>
Reviewed-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
ChangeLog
sysdeps/unix/sysv/linux/sigprocmask.c
sysdeps/unix/sysv/linux/sigtimedwait.c
sysdeps/unix/sysv/linux/sigwait.c
sysdeps/unix/sysv/linux/sigwaitinfo.c