strace/linux/s390
Lazar Trsic 72aba2be32 Move is_negated_errno() to new header negated_errno.h
Move is_negated_errno() to a separate new header file negated_errno.h
and include it just for architectures which require it.

is_negated_errno() is not used on those architectures
that have a dedicated register to signal a syscall error.

The issue was raised when compiling with clang, which is more
strict regarding semantics of unused static inline functions
defined in C files and will issue a -Wunused-function warrning
if they are not used anywhere.

* syscall.c (is_negated_errno): Move to ...
* negated_errno.h: ... new file.
* Makefile.am (strace_SOURCES): Add it.
* linux/aarch64/get_error.c: Include it.
* linux/arc/get_error.c: Likewise.
* linux/arm/get_error.c: Likewise.
* linux/avr32/get_error.c: Likewise.
* linux/bfin/get_error.c: Likewise.
* linux/crisv10/get_error.c: Likewise.
* linux/hppa/get_error.c: Likewise.
* linux/i386/get_error.c: Likewise.
* linux/ia64/get_error.c: Likewise.
* linux/m68k/get_error.c: Likewise.
* linux/metag/get_error.c: Likewise.
* linux/microblaze/get_error.c: Likewise.
* linux/or1k/get_error.c: Likewise.
* linux/riscv/get_error.c: Likewise.
* linux/s390/get_error.c: Likewise.
* linux/sh/get_error.c: Likewise.
* linux/sh64/get_error.c: Likewise.
* linux/tile/get_error.c: Likewise.
* linux/x86_64/get_error.c: Likewise.
* linux/xtensa/get_error.c: Likewise.
2017-07-14 23:55:23 +00:00
..
arch_regs.c Cleanup print_pc 2015-11-30 03:30:51 +00:00
arch_regs.h s390, s390x: use PTRACE_GETREGSET to fetch registers 2015-03-05 22:10:15 +00:00
arch_rt_sigframe.c Introduce get_rt_sigframe_addr function 2017-03-13 15:22:50 +00:00
arch_sigreturn.c Introduce NSIG_BYTES 2016-12-27 23:32:44 +00:00
get_error.c Move is_negated_errno() to new header negated_errno.h 2017-07-14 23:55:23 +00:00
get_scno.c s390, s390x: fix printing of syscalls unknown to the kernel 2016-01-13 21:27:48 +00:00
get_syscall_args.c cleanup: make get_syscall_args.c files more readable 2015-11-30 00:57:14 +00:00
ioctls_arch0.h Update ioctl entries from linux v4.11-rc3 2017-03-23 16:42:32 +00:00
ioctls_inc0.h ioctl: take all 32 bits of ioctl commands into account 2015-01-22 00:27:38 +00:00
rt_sigframe.h Introduce struct_rt_sigframe type 2017-03-13 15:22:50 +00:00
set_error.c Implement success injection 2017-01-28 09:47:00 +00:00
set_scno.c Automatically replace kernel_(scno|ureg)_t with kernel_ulong_t 2016-12-26 10:43:34 +00:00
syscallent.h Add copyright headers 2017-05-22 17:33:51 +00:00
userent0.h process.c: split struct_user_offsets into architecture-specific include files 2014-12-11 19:25:02 +00:00
userent1.h process.c: split struct_user_offsets into architecture-specific include files 2014-12-11 19:25:02 +00:00
userent.h process.c: split struct_user_offsets into architecture-specific include files 2014-12-11 19:25:02 +00:00