Home
last modified time | relevance | path

Searched refs:newset (Results 1 – 8 of 8) sorted by relevance

/kernel/liteos_a/testsuites/unittest/extended/signal/full/
Dsignal_test_026.cpp45 sigset_t newset; in TestCase() local
55 sigemptyset(&newset); in TestCase()
56 sigaddset(&newset, SIGCHLD); in TestCase()
57 ret = sigtimedwait(&newset, &info, &timeout); in TestCase()
66 sigemptyset(&newset); in TestCase()
67 sigaddset(&newset, SIGCHLD); in TestCase()
70 ret = sigtimedwait(&newset, &info, &timeout); in TestCase()
79 sigemptyset(&newset); in TestCase()
80 sigaddset(&newset, SIGCHLD); in TestCase()
83 … ret = sigtimedwait(&newset, reinterpret_cast<siginfo_t *>(2), &timeout); // 2, wait for signal num in TestCase()
Dsignal_test_033.cpp53 sigset_t newset, oldset; in TestCase() local
61 sigemptyset(&newset); in TestCase()
62 sigaddset(&newset, SIGUSR1); in TestCase()
63 sigaddset(&newset, SIGUSR2); in TestCase()
64 ret = sigprocmask(SIG_BLOCK, &newset, &oldset); in TestCase()
81 sigdelset(&newset, SIGUSR2); in TestCase()
82 ret = sigprocmask(SIG_UNBLOCK, &newset, &oldset); in TestCase()
93 sigdelset(&newset, SIGUSR1); in TestCase()
94 sigaddset(&newset, SIGUSR2); in TestCase()
95 ret = sigprocmask(SIG_UNBLOCK, &newset, &oldset); in TestCase()
Dsignal_test_020.cpp51 sigset_t newset, old, wait; in TestSigSuspend() local
65 retValue = sigemptyset(&newset); in TestSigSuspend()
69 retValue = sigaddset(&newset, SIGALRM); in TestSigSuspend()
73 retValue = sigprocmask(SIG_BLOCK, &newset, &old); in TestSigSuspend()
77 printf("newset 1 = %lx\n", newset.__bits[0]); in TestSigSuspend()
80 retValue = sigemptyset(&newset); in TestSigSuspend()
84 retValue = sigaddset(&newset, SIGQUIT); in TestSigSuspend()
88 retValue = sigprocmask(SIG_BLOCK, &newset, &old); in TestSigSuspend()
92 printf("newset 2 = %lx\n", newset.__bits[0]); in TestSigSuspend()
95 retValue = sigemptyset(&newset); in TestSigSuspend()
[all …]
Dsignal_test_015.cpp55 sigset_t newset; in TestPauseNormal() local
56 sigemptyset(&newset); in TestPauseNormal()
57 sigprocmask(SIG_SETMASK, &newset, nullptr); in TestPauseNormal()
58 sigaddset(&newset, SIGUSR1); in TestPauseNormal()
59 sigprocmask(SIG_BLOCK, &newset, nullptr); in TestPauseNormal()
Dsignal_test_029.cpp45 sigset_t newset; in TestCase() local
60 sigemptyset(&newset); in TestCase()
61 sigaddset(&newset, SIGCHLD); in TestCase()
62 ret = sigsuspend(&newset); in TestCase()
Dsignal_test_040.cpp48 sigset_t newset, oldset; in TestCase() local
50 sigemptyset(&newset); in TestCase()
51 sigprocmask(SIG_SETMASK, &newset, NULL); in TestCase()
/kernel/liteos_a/testsuites/unittest/extended/signal/smoke/
Dsignal_test_032.cpp47 sigset_t newset, oldset; in TestCase() local
54 sigemptyset(&newset); in TestCase()
55 sigaddset(&newset, SIGUSR1); in TestCase()
56 ret = sigprocmask(SIG_BLOCK, &newset, &oldset); in TestCase()
/kernel/linux/linux-5.10/kernel/
Dsignal.c2895 static void __set_task_blocked(struct task_struct *tsk, const sigset_t *newset) in __set_task_blocked() argument
2900 sigandnsets(&newblocked, newset, &current->blocked); in __set_task_blocked()
2903 tsk->blocked = *newset; in __set_task_blocked()
2914 void set_current_blocked(sigset_t *newset) in set_current_blocked() argument
2916 sigdelsetmask(newset, sigmask(SIGKILL) | sigmask(SIGSTOP)); in set_current_blocked()
2917 __set_current_blocked(newset); in set_current_blocked()
2920 void __set_current_blocked(const sigset_t *newset) in __set_current_blocked() argument
2928 if (sigequalsets(&tsk->blocked, newset)) in __set_current_blocked()
2932 __set_task_blocked(tsk, newset); in __set_current_blocked()
2947 sigset_t newset; in sigprocmask() local
[all …]