]> granicus.if.org Git - strace/commitdiff
linux/syscall.h: make subcall decoding configuration more readable
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 6 May 2013 23:34:03 +0000 (23:34 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 6 May 2013 23:39:04 +0000 (23:39 +0000)
* linux/syscall.h: Inverse and sort the subcall ifdef,
add a comment why subcall decoding support is not enabled
on some architectures.

linux/syscall.h

index 878732daea31b7809ef7a533bcb871b03e42b79b..5247df4aba67aae2702e8c0dd85e2935dfdc14fe 100644 (file)
@@ -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