Lines Matching refs:sigset

309   uint64_t sigset = 0;  in ClearSignalMask()  local
310 SignalSetAdd(&sigset, __SIGRTMIN); in ClearSignalMask()
311 if (syscall(__NR_rt_sigprocmask, SIG_SETMASK, &sigset, nullptr, sizeof(sigset)) != 0) { in ClearSignalMask()
317 uint64_t sigset = ~0ULL; in FillSignalMask() local
319 SignalSetDel(&sigset, signo); in FillSignalMask()
321 if (syscall(__NR_rt_sigprocmask, SIG_SETMASK, &sigset, nullptr, sizeof(sigset)) != 0) { in FillSignalMask()
327 uint64_t sigset; in GetSignalMask() local
328 if (syscall(__NR_rt_sigprocmask, SIG_SETMASK, nullptr, &sigset, sizeof(sigset)) != 0) { in GetSignalMask()
331 return sigset; in GetSignalMask()
334 static void TestSignalMaskFiltered(uint64_t sigset) { in TestSignalMaskFiltered() argument
337 bool signal_blocked = sigset & (1ULL << (signo - 1)); in TestSignalMaskFiltered()
347 UNUSED(sigset); in TestSignalMaskFiltered()
359 static uint64_t sigset; in TEST() local
361 sa.sa_handler = [](int) { sigset = GetSignalMask(); }; in TEST()
374 ASSERT_EQ(static_cast<uint64_t>(expected_sigset), sigset); in TEST()
379 static uint64_t sigset; in TEST() local
381 sa.sa_handler = [](int) { sigset = GetSignalMask(); }; in TEST()
393 ASSERT_EQ(expected_sigset, sigset); in TEST()
509 sigset(i, SIG_HOLD); in TEST()
901 ASSERT_EQ(SIG_ERR, sigset(99999, SIG_DFL)); in TEST()
911 ASSERT_EQ(signal_handler, sigset(SIGRTMIN, SIG_HOLD)); in TEST()
918 ASSERT_EQ(SIG_HOLD, sigset(SIGRTMIN, signal_handler)); in TEST()
919 ASSERT_EQ(signal_handler, sigset(SIGRTMIN, signal_handler)); in TEST()
925 TEST(signal, sigset) { in TEST() argument
942 ASSERT_EQ(SIG_HOLD, sigset(SIGALRM, signal_handler)); in TEST()
946 ASSERT_EQ(signal_handler, sigset(SIGALRM, SIG_IGN)); in TEST()
950 ASSERT_EQ(SIG_IGN, sigset(SIGALRM, SIG_DFL)); in TEST()
954 ASSERT_EQ(SIG_DFL, sigset(SIGALRM, SIG_HOLD)); in TEST()