summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2013-05-06 23:34:03 +0000
committerDmitry V. Levin <ldv@altlinux.org>2013-05-06 23:39:04 +0000
commit828bbd846ef26894b5b9f9e25d7cf302e895d2a2 (patch)
tree9518838535e1870041b282a9a519e80b579f84c0 /linux
parent2f6519a9c1953dc33ba42e1c9b2178dc47efea42 (diff)
downloadstrace-828bbd846ef26894b5b9f9e25d7cf302e895d2a2.tar.gz
strace-828bbd846ef26894b5b9f9e25d7cf302e895d2a2.tar.bz2
strace-828bbd846ef26894b5b9f9e25d7cf302e895d2a2.tar.xz
linux/syscall.h: make subcall decoding configuration more readable
* linux/syscall.h: Inverse and sort the subcall ifdef, add a comment why subcall decoding support is not enabled on some architectures.
Diffstat (limited to 'linux')
-rw-r--r--linux/syscall.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/linux/syscall.h b/linux/syscall.h
index 878732d..5247df4 100644
--- a/linux/syscall.h
+++ b/linux/syscall.h
@@ -313,14 +313,20 @@ int sys_osf_utimes();
int sys_osf_wait4();
#endif
-#if !defined(ALPHA) \
- && !defined(MIPS) \
- && !defined(HPPA) \
- && !defined(__ARM_EABI__) \
- && !defined(BFIN) \
- && !defined(TILE) \
- && !defined(XTENSA)
-# if defined(SPARC) || defined(SPARC64)
+#if defined ALPHA \
+ || defined __ARM_EABI__ \
+ || defined BFIN \
+ || defined HPPA \
+ || defined MIPS \
+ || defined TILE \
+ || defined XTENSA
+/*
+ * This architecture does not have a socketcall or ipc subcall,
+ * it has dedicated syscalls instead, so there is no need
+ * to implement socket or ipc subcall decoding.
+ */
+#else
+# if defined SPARC || defined SPARC64
# define SYS_socket_subcall 353
# else
# define SYS_socket_subcall 400