strace/linux/nr_prefix.c
Eugene Syromyatnikov 7b6e926641 Handle very special __ARM_NR_-prefixed syscalls
* linux/aarch64/nr_prefix.c: New file.
* linux/arm/nr_prefix.c: Likewise.
* linux/nr_prefix.c: Likewise.
* Makefile.am (EXTRA_DIST): Add them.
* printsiginfo.c: Include nr_prefix.c
(print_si_info): Use nr_prefix.
2018-02-10 00:01:01 +00:00

12 lines
333 B
C

/**
* Returns prefix for a syscall constant literal. It is has to be that way
* thanks to ARM that decided to prefix their special system calls like sys32
* and sys26 with __ARM_NR_* prefix instead of __NR_*, so we can't simply print
* "__NR_".
*/
static inline const char *
nr_prefix(kernel_ulong_t scno)
{
return "__NR_";
}