diff options
Diffstat (limited to 'src/linux/nr_prefix.c')
-rw-r--r-- | src/linux/nr_prefix.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/linux/nr_prefix.c b/src/linux/nr_prefix.c new file mode 100644 index 000000000..3b3d2d4ef --- /dev/null +++ b/src/linux/nr_prefix.c @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2018 The strace developers. + * All rights reserved. + * + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + +/** + * 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_"; +} |