]> granicus.if.org Git - strace/commit
alpha, ia64, mips, nios2, powerpc, sparc: always check for syscall error
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 27 Dec 2015 00:18:51 +0000 (00:18 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 27 Dec 2015 01:02:53 +0000 (01:02 +0000)
commit552f2f62fd7ea37dd38342a5b2c865476661187f
tree983a361cfb2106ff621c608bc8142f770e1bbadd
parent0297e0c06788576fd1b86a0d533d6d7157ec7a03
alpha, ia64, mips, nios2, powerpc, sparc: always check for syscall error

On architectures that use dedicated registers to report syscall errors,
check for syscall error condition regardless of SYSCALL_NEVER_FAILS flag
in the syscall entry.  On architectures that use negated errno
semantics, there is no way to distinguish a syscall error from a valid
return code that looks like a syscall error, and the check for
SYSCALL_NEVER_FAILS flag remains the only way to tell one case
from another.

* linux/alpha/get_error.c (get_error): Ignore check_errno.
* linux/ia64/get_error.c: Likewise.
* linux/mips/get_error.c: Likewise.
* linux/nios2/get_error.c: Likewise.
* linux/powerpc/get_error.c: Likewise.
* linux/sparc/get_error.c: Likewise.
* linux/sparc64/get_error.c: Likewise.
linux/alpha/get_error.c
linux/ia64/get_error.c
linux/mips/get_error.c
linux/nios2/get_error.c
linux/powerpc/get_error.c
linux/sparc/get_error.c
linux/sparc64/get_error.c