Lines Matching refs:sa

262   SigActionT sa = {};  in TestSigAction()  local
263 sigaddset_fn(&sa.sa_mask, sig); in TestSigAction()
264 sa.sa_flags = SA_ONSTACK; in TestSigAction()
265 sa.sa_handler = no_op_signal_handler; in TestSigAction()
266 ASSERT_EQ(0, sigaction_fn(sig, &sa, nullptr)); in TestSigAction()
269 sa = {}; in TestSigAction()
270 ASSERT_EQ(0, sigaction_fn(sig, nullptr, &sa)); in TestSigAction()
271 ASSERT_TRUE(sa.sa_handler == no_op_signal_handler); in TestSigAction()
272 ASSERT_TRUE((void*) sa.sa_sigaction == (void*) sa.sa_handler); in TestSigAction()
273 ASSERT_EQ(static_cast<unsigned>(SA_ONSTACK), sa.sa_flags & ~sa_restorer); in TestSigAction()
275 ASSERT_EQ(bool(sa.sa_flags & sa_restorer), bool(sa.sa_restorer)); in TestSigAction()
280 sa = {}; in TestSigAction()
281 sigaddset_fn(&sa.sa_mask, sig); in TestSigAction()
282 sa.sa_flags = SA_ONSTACK | SA_SIGINFO; in TestSigAction()
283 sa.sa_sigaction = no_op_sigaction; in TestSigAction()
284 ASSERT_EQ(0, sigaction_fn(sig, &sa, nullptr)); in TestSigAction()
287 sa = {}; in TestSigAction()
288 ASSERT_EQ(0, sigaction_fn(sig, nullptr, &sa)); in TestSigAction()
289 ASSERT_TRUE(sa.sa_sigaction == no_op_sigaction); in TestSigAction()
290 ASSERT_TRUE((void*) sa.sa_sigaction == (void*) sa.sa_handler); in TestSigAction()
291 ASSERT_EQ(static_cast<unsigned>(SA_ONSTACK | SA_SIGINFO), sa.sa_flags & ~sa_restorer); in TestSigAction()
293 ASSERT_EQ(bool(sa.sa_flags & sa_restorer), bool(sa.sa_restorer)); in TestSigAction()
360 struct sigaction sa = {}; in TEST() local
361 sa.sa_handler = [](int) { sigset = GetSignalMask(); }; in TEST()
362 sa.sa_flags = SA_ONSTACK | SA_NODEFER; in TEST()
363 sigfillset(&sa.sa_mask); in TEST()
364 sigaction(SIGUSR1, &sa, nullptr); in TEST()
380 struct sigaction64 sa = {}; in TEST() local
381 sa.sa_handler = [](int) { sigset = GetSignalMask(); }; in TEST()
382 sa.sa_flags = SA_ONSTACK | SA_NODEFER; in TEST()
383 sigfillset64(&sa.sa_mask); in TEST()
384 sigaction64(SIGUSR1, &sa, nullptr); in TEST()
835 struct sigaction sa; in TEST() local
836 ASSERT_EQ(0, sigaction(SIGALRM, nullptr, &sa)); in TEST()
837 EXPECT_EQ(SIG_IGN, sa.sa_handler); in TEST()