Fix return code for __libc_signal_* functions
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 5 Dec 2019 17:56:06 +0000 (14:56 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 27 Dec 2019 14:18:23 +0000 (11:18 -0300)
commit58bd592536cbf491ff6f89b73b5c95beb4859e42
tree31c1da8a5bd076f72124e2ac56f66a245f420264
parent11519fd0c908df2dad50f36a48eb4d0d12ea83a8
Fix return code for __libc_signal_* functions

The functions do not fail regardless of the argument value.  Also, for
Linux the return value is not correct on some platforms due the missing
usage of INTERNAL_SYSCALL_ERROR_P / INTERNAL_SYSCALL_ERRNO macros.

Checked on x86_64-linux-gnu, i686-linux-gnu, and sparc64-linux-gnu.
sysdeps/generic/internal-signals.h
sysdeps/unix/sysv/linux/internal-signals.h