Changeset View
Changeset View
Standalone View
Standalone View
contrib/netbsd-tests/kernel/kqueue/t_sig.c
Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | for (num = 0; num < NSIGNALS; num += n) { | ||||
timersub(&now, &then, &diff); | timersub(&now, &then, &diff); | ||||
(void)printf("sig: kevent returned %d in %lld.%06ld\n", | (void)printf("sig: kevent returned %d in %lld.%06ld\n", | ||||
n, (long long)diff.tv_sec, (long)diff.tv_usec); | n, (long long)diff.tv_sec, (long)diff.tv_usec); | ||||
if (n == 0) | if (n == 0) | ||||
continue; | continue; | ||||
#ifdef __FreeBSD__ | |||||
(void)printf("sig: kevent flags: 0x%x, data: %" PRIdPTR " (# " | |||||
#else | |||||
(void)printf("sig: kevent flags: 0x%x, data: %" PRId64 " (# " | (void)printf("sig: kevent flags: 0x%x, data: %" PRId64 " (# " | ||||
#endif | |||||
"times signal posted)\n", event[0].flags, event[0].data); | "times signal posted)\n", event[0].flags, event[0].data); | ||||
} | } | ||||
(void)waitpid(child, &status, 0); | (void)waitpid(child, &status, 0); | ||||
(void)printf("sig: finished successfully\n"); | (void)printf("sig: finished successfully\n"); | ||||
} | } | ||||
ATF_TP_ADD_TCS(tp) | ATF_TP_ADD_TCS(tp) | ||||
{ | { | ||||
ATF_TP_ADD_TC(tp, sig); | ATF_TP_ADD_TC(tp, sig); | ||||
return atf_no_error(); | return atf_no_error(); | ||||
} | } |