diff options
author | ngie <ngie@FreeBSD.org> | 2014-11-17 13:39:00 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2014-11-17 13:39:00 +0000 |
commit | 8177391ac84430aeb73987802ea58e8bfe9ba72b (patch) | |
tree | 5afba437c6e7f13eeeb63c7313aa547c8c24536d /contrib/netbsd-tests/lib/libc/gen/t_siginfo.c | |
parent | e5d03fbe91f9f0c573d55b2d87f2a1eb517ba14b (diff) | |
download | FreeBSD-src-8177391ac84430aeb73987802ea58e8bfe9ba72b.zip FreeBSD-src-8177391ac84430aeb73987802ea58e8bfe9ba72b.tar.gz |
Mechanically replace #if defined(__FreeBSD__) and #if defined(__NetBSD__) with
their #ifdef equivalents for everything changed in contrib/netbsd-tests. There
are some items from the vendor tree that use #if defined(__FreeBSD__) or
#if defined(__NetBSD__) which are being left alone
Requested by: bde, rpaulo
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/gen/t_siginfo.c')
-rw-r--r-- | contrib/netbsd-tests/lib/libc/gen/t_siginfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/netbsd-tests/lib/libc/gen/t_siginfo.c b/contrib/netbsd-tests/lib/libc/gen/t_siginfo.c index 6dc7953..9c9a3c7 100644 --- a/contrib/netbsd-tests/lib/libc/gen/t_siginfo.c +++ b/contrib/netbsd-tests/lib/libc/gen/t_siginfo.c @@ -28,7 +28,7 @@ #include <atf-c.h> -#if defined(__NetBSD__) +#ifdef __NetBSD__ #include <sys/inttypes.h> #endif #include <sys/resource.h> @@ -87,7 +87,7 @@ sig_debug(int signo, siginfo_t *info, ucontext_t *ctx) printf("uc_stack %p %lu 0x%x\n", ctx->uc_stack.ss_sp, (unsigned long)ctx->uc_stack.ss_size, ctx->uc_stack.ss_flags); -#if defined(__NetBSD__) +#ifdef __NetBSD__ for (i = 0; i < __arraycount(ctx->uc_mcontext.__gregs); i++) printf("uc_mcontext.greg[%d] 0x%lx\n", i, (long)ctx->uc_mcontext.__gregs[i]); @@ -144,7 +144,7 @@ sigchild_action(int signo, siginfo_t *info, void *ptr) printf("si_uid=%d\n", info->si_uid); printf("si_pid=%d\n", info->si_pid); printf("si_status=%d\n", info->si_status); -#if defined(__NetBSD__) +#ifdef __NetBSD__ printf("si_utime=%lu\n", (unsigned long int)info->si_utime); printf("si_stime=%lu\n", (unsigned long int)info->si_stime); #endif |