Lines Matching refs:sa
217 struct sigaction sa; in TEST() local
218 memset(&sa, 0, sizeof(sa)); in TEST()
219 sigaddset(&sa.sa_mask, SIGALRM); in TEST()
220 sa.sa_flags = SA_ONSTACK; in TEST()
221 sa.sa_handler = EmptySignalHandler; in TEST()
222 ASSERT_EQ(0, sigaction(SIGALRM, &sa, NULL)); in TEST()
225 memset(&sa, 0, sizeof(sa)); in TEST()
226 ASSERT_EQ(0, sigaction(SIGALRM, NULL, &sa)); in TEST()
227 ASSERT_TRUE(sa.sa_handler == EmptySignalHandler); in TEST()
228 ASSERT_TRUE((void*) sa.sa_sigaction == (void*) sa.sa_handler); in TEST()
229 ASSERT_EQ(static_cast<unsigned>(SA_ONSTACK), sa.sa_flags & ~sa_restorer); in TEST()
232 memset(&sa, 0, sizeof(sa)); in TEST()
233 sigaddset(&sa.sa_mask, SIGALRM); in TEST()
234 sa.sa_flags = SA_ONSTACK | SA_SIGINFO; in TEST()
235 sa.sa_sigaction = EmptySignalAction; in TEST()
236 ASSERT_EQ(0, sigaction(SIGALRM, &sa, NULL)); in TEST()
239 memset(&sa, 0, sizeof(sa)); in TEST()
240 ASSERT_EQ(0, sigaction(SIGALRM, NULL, &sa)); in TEST()
241 ASSERT_TRUE(sa.sa_sigaction == EmptySignalAction); in TEST()
242 ASSERT_TRUE((void*) sa.sa_sigaction == (void*) sa.sa_handler); in TEST()
243 ASSERT_EQ(static_cast<unsigned>(SA_ONSTACK | SA_SIGINFO), sa.sa_flags & ~sa_restorer); in TEST()