diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-02-25 02:47:15 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-02-25 02:47:15 +0100 |
commit | c36c352329755387f0a503cc9a47047e6de6e711 (patch) | |
tree | 47755026bed2ee09be6f1578bbc5b9b8c711f43f | |
parent | 2d1e90f9588281bb5520783006c06bc23f997bf8 (diff) | |
download | strace-c36c352329755387f0a503cc9a47047e6de6e711.tar.gz strace-c36c352329755387f0a503cc9a47047e6de6e711.tar.bz2 strace-c36c352329755387f0a503cc9a47047e6de6e711.tar.xz |
Fix defined(FOO) style
* file.c: Consistently use defined(FOO) instead of defined (FOO).
* mem.c: Likewise.
* net.c: Likewise.
* signal.c: Likewise.
* sock.c: Likewise.
* linux/mips/syscallent.h: Likewise.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | file.c | 6 | ||||
-rw-r--r-- | linux/mips/syscallent.h | 6 | ||||
-rw-r--r-- | mem.c | 4 | ||||
-rw-r--r-- | net.c | 6 | ||||
-rw-r--r-- | signal.c | 4 | ||||
-rw-r--r-- | sock.c | 12 |
6 files changed, 19 insertions, 19 deletions
@@ -501,7 +501,7 @@ static const struct xlat whence[] = { }; #ifndef HAVE_LONG_LONG_OFF_T -#if defined (LINUX_MIPSN32) +#if defined(LINUX_MIPSN32) int sys_lseek(struct tcb *tcp) { @@ -781,7 +781,7 @@ printstatsol(struct tcb *tcp, long addr) tprints("...}"); } -#if defined (SPARC64) +#if defined(SPARC64) static void printstat_sparc64(struct tcb *tcp, long addr) { @@ -1795,7 +1795,7 @@ sys_fstatfs64(struct tcb *tcp) } #endif -#if defined(__alpha) +#if defined(ALPHA) int osf_statfs(struct tcb *tcp) { diff --git a/linux/mips/syscallent.h b/linux/mips/syscallent.h index ee28d06..a6a0340 100644 --- a/linux/mips/syscallent.h +++ b/linux/mips/syscallent.h @@ -4000,7 +4000,7 @@ { 0, 0, printargs, "SYS_3997" }, /* 3997 */ { 0, 0, printargs, "SYS_3998" }, /* 3998 */ { 0, 0, printargs, "SYS_3999" }, /* 3999 */ /* end of POSIX */ -#if !defined (LINUX_MIPSN32) && !defined (LINUX_MIPSN64) +#if !defined(LINUX_MIPSN32) && !defined(LINUX_MIPSN64) /* For an O32 strace, decode the o32 syscalls. */ { MA, 0, printargs, "syscall" }, /* 4000 */ /* start of Linux o32 */ { 1, TP, sys_exit, "exit" }, /* 4001 */ @@ -5349,7 +5349,7 @@ { 0, 0, printargs, "SYS_4997" }, /* 4997 */ { 0, 0, printargs, "SYS_4998" }, /* 4998 */ { 0, 0, printargs, "SYS_4999" }, /* 4999 */ /* end of Linux o32 */ -#if defined (LINUX_MIPSN64) +#if defined(LINUX_MIPSN64) /* For an N64 strace decode the N64 64-bit syscalls. */ { 3, TF, sys_read, "read" }, /* 5000 */ /* start of Linux N64 */ { 3, TF, sys_write, "write" }, /* 5001 */ @@ -6658,7 +6658,7 @@ { 0, 0, printargs, "SYS_5998" }, /* 5998 */ { 0, 0, printargs, "SYS_5999" }, /* 5999 */ /* end of Linux N64 */ -#if defined (LINUX_MIPSN32) +#if defined(LINUX_MIPSN32) /* For an N32 strace decode the N32 64-bit syscalls. */ { 3, TF, sys_read, "read" }, /* 6000 */ /* start of Linux N32 */ { 3, TF, sys_write, "write" }, /* 6001 */ @@ -584,7 +584,7 @@ sys_getpagesize(struct tcb *tcp) } #endif -#if defined(__i386__) +#if defined(I386) void print_ldt_entry(struct modify_ldt_ldt_s *ldt_entry) { @@ -676,7 +676,7 @@ sys_get_thread_area(struct tcb *tcp) return 0; } -#endif /* __i386__ */ +#endif /* I386 */ #if defined(M68K) int @@ -61,7 +61,7 @@ # include <linux/ipx.h> #endif -#if defined (__GLIBC__) && (((__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1)) || defined(HAVE_SIN6_SCOPE_ID_LINUX)) +#if defined(__GLIBC__) && (((__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 1)) || defined(HAVE_SIN6_SCOPE_ID_LINUX)) #if defined(HAVE_LINUX_IN6_H) #if defined(HAVE_SIN6_SCOPE_ID_LINUX) #undef in6_addr @@ -724,7 +724,7 @@ static const struct xlat sockoptions[] = { { 0, NULL }, }; -#if !defined (SOL_IP) && defined (IPPROTO_IP) +#if !defined(SOL_IP) && defined(IPPROTO_IP) #define SOL_IP IPPROTO_IP #endif @@ -1071,7 +1071,7 @@ static const struct xlat socksctpoptions[] = { }; #endif -#if !defined (SOL_TCP) && defined (IPPROTO_TCP) +#if !defined(SOL_TCP) && defined(IPPROTO_TCP) #define SOL_TCP IPPROTO_TCP #endif @@ -1010,7 +1010,7 @@ sys_sigreturn(struct tcb *tcp) tprints(sprintsigmask(") (mask ", &sigm, 0)); } return 0; -#elif defined (SPARC) || defined (SPARC64) +#elif defined(SPARC) || defined(SPARC64) if (entering(tcp)) { long i1; struct pt_regs regs; @@ -1029,7 +1029,7 @@ sys_sigreturn(struct tcb *tcp) tprints(sprintsigmask(") (mask ", &sigm, 0)); } return 0; -#elif defined (LINUX_MIPSN32) || defined (LINUX_MIPSN64) +#elif defined(LINUX_MIPSN32) || defined(LINUX_MIPSN64) /* This decodes rt_sigreturn. The 64-bit ABIs do not have sigreturn. */ if (entering(tcp)) { @@ -33,12 +33,12 @@ #include <linux/sockios.h> #include <arpa/inet.h> -#if defined (ALPHA) || defined(SH) || defined(SH64) -#ifdef HAVE_SYS_IOCTL_H -#include <sys/ioctl.h> -#elif defined(HAVE_IOCTLS_H) -#include <ioctls.h> -#endif +#if defined(ALPHA) || defined(SH) || defined(SH64) +# ifdef HAVE_SYS_IOCTL_H +# include <sys/ioctl.h> +# elif defined(HAVE_IOCTLS_H) +# include <ioctls.h> +# endif #endif #include <net/if.h> |