xref: /aosp_15_r20/external/strace/linux/nr_prefix.c (revision cf84ac9a129d8ea9952db616b4e9b904c4bdde56)
1 /**
2  * Returns prefix for a syscall constant literal.  It is has to be that way
3  * thanks to ARM that decided to prefix their special system calls like sys32
4  * and sys26 with __ARM_NR_* prefix instead of __NR_*, so we can't simply print
5  * "__NR_".
6  */
7 static inline const char *
nr_prefix(kernel_ulong_t scno)8 nr_prefix(kernel_ulong_t scno)
9 {
10 	return "__NR_";
11 }
12