• Home
  • Raw
  • Download

Lines Matching refs:sa

295   SigActionT sa = {};  in TestSigAction()  local
296 sigaddset_fn(&sa.sa_mask, sig); in TestSigAction()
297 sa.sa_flags = SA_ONSTACK; in TestSigAction()
298 sa.sa_handler = no_op_signal_handler; in TestSigAction()
299 ASSERT_EQ(0, sigaction_fn(sig, &sa, nullptr)); in TestSigAction()
302 sa = {}; in TestSigAction()
303 ASSERT_EQ(0, sigaction_fn(sig, nullptr, &sa)); in TestSigAction()
304 ASSERT_TRUE(sa.sa_handler == no_op_signal_handler); in TestSigAction()
305 ASSERT_TRUE((void*) sa.sa_sigaction == (void*) sa.sa_handler); in TestSigAction()
306 ASSERT_EQ(static_cast<unsigned>(SA_ONSTACK), sa.sa_flags & ~sa_restorer); in TestSigAction()
308 ASSERT_EQ(bool(sa.sa_flags & sa_restorer), bool(sa.sa_restorer)); in TestSigAction()
313 sa = {}; in TestSigAction()
314 sigaddset_fn(&sa.sa_mask, sig); in TestSigAction()
315 sa.sa_flags = SA_ONSTACK | SA_SIGINFO; in TestSigAction()
316 sa.sa_sigaction = no_op_sigaction; in TestSigAction()
317 ASSERT_EQ(0, sigaction_fn(sig, &sa, nullptr)); in TestSigAction()
320 sa = {}; in TestSigAction()
321 ASSERT_EQ(0, sigaction_fn(sig, nullptr, &sa)); in TestSigAction()
322 ASSERT_TRUE(sa.sa_sigaction == no_op_sigaction); in TestSigAction()
323 ASSERT_TRUE((void*) sa.sa_sigaction == (void*) sa.sa_handler); in TestSigAction()
324 ASSERT_EQ(static_cast<unsigned>(SA_ONSTACK | SA_SIGINFO), sa.sa_flags & ~sa_restorer); in TestSigAction()
326 ASSERT_EQ(bool(sa.sa_flags & sa_restorer), bool(sa.sa_restorer)); in TestSigAction()
393 struct sigaction sa = {}; in TEST() local
394 sa.sa_handler = [](int) { sigset = GetSignalMask(); }; in TEST()
395 sa.sa_flags = SA_ONSTACK | SA_NODEFER; in TEST()
396 sigfillset(&sa.sa_mask); in TEST()
397 sigaction(SIGUSR1, &sa, nullptr); in TEST()
413 struct sigaction64 sa = {}; in TEST() local
414 sa.sa_handler = [](int) { sigset = GetSignalMask(); }; in TEST()
415 sa.sa_flags = SA_ONSTACK | SA_NODEFER; in TEST()
416 sigfillset64(&sa.sa_mask); in TEST()
417 sigaction64(SIGUSR1, &sa, nullptr); in TEST()
846 struct sigaction sa; in TEST() local
847 ASSERT_EQ(0, sigaction(SIGALRM, nullptr, &sa)); in TEST()
848 EXPECT_EQ(SIG_IGN, sa.sa_handler); in TEST()