Home
last modified time | relevance | path

Searched refs:sigprocmask (Results 1 - 25 of 79) sorted by relevance

1234

/kernel/liteos_a/testsuites/unittest/basic/mem/vm/smoke/
H A Duser_copy_test_001.cpp42 /* sigprocmask 内核系统调用接口通过arch_copy_from_user拷贝用户参数 */ in Testcase()
43 ret = sigprocmask(SIG_BLOCK, reinterpret_cast<sigset_t *>(1), &oldset); in Testcase()
47 ret = sigprocmask(SIG_BLOCK, reinterpret_cast<sigset_t *>(INVALID_USER_VADDR), &oldset); in Testcase()
51 /* sigprocmask 内核系统调用接口通过arch_copy_to_user将内核参数拷贝至用户 */ in Testcase()
52 ret = sigprocmask(SIG_BLOCK, reinterpret_cast<sigset_t *>(INVALID_USER_VADDR), reinterpret_cast<sigset_t *>(1)); in Testcase()
56 ret = sigprocmask(SIG_BLOCK, reinterpret_cast<sigset_t *>(INVALID_USER_VADDR), in Testcase()
61 ret = sigprocmask(SIG_BLOCK, reinterpret_cast<sigset_t *>(INVALID_USER_VADDR), in Testcase()
/kernel/liteos_a/testsuites/unittest/extended/signal/full/
H A Dsignal_test_041.cpp71 retval = sigprocmask(SIG_SETMASK, &set, &oldset); in ThreadFunc7()
90 retval = sigprocmask(SIG_SETMASK, &oldset, &set); in ThreadFunc7()
104 retval = sigprocmask(SIG_SETMASK, &set, &oldset); in ThreadFunc7()
165 retval = sigprocmask(SIG_SETMASK, &set, &oldset); in TestCase()
201 retval = sigprocmask(SIG_SETMASK, &set, nullptr); in TestCase()
209 retval = sigprocmask(SIG_SETMASK, &oldset, &set); in TestCase()
H A Dsignal_test_033.cpp64 ret = sigprocmask(SIG_BLOCK, &newset, &oldset); in TestCase()
66 printf("error:sigprocmask\n"); in TestCase()
82 ret = sigprocmask(SIG_UNBLOCK, &newset, &oldset); in TestCase()
84 printf("error:sigprocmask\n"); in TestCase()
95 ret = sigprocmask(SIG_UNBLOCK, &newset, &oldset); in TestCase()
97 printf("error:sigprocmask\n"); in TestCase()
H A Dsignal_test_020.cpp73 retValue = sigprocmask(SIG_BLOCK, &newset, &old); in TestSigSuspend()
88 retValue = sigprocmask(SIG_BLOCK, &newset, &old); in TestSigSuspend()
104 retValue = sigprocmask(SIG_BLOCK, &newset, &old); in TestSigSuspend()
191 retValue = sigprocmask(SIG_BLOCK, &new1, &old1); in TestSigSuspend()
H A Dsignal_test_015.cpp57 sigprocmask(SIG_SETMASK, &newset, nullptr); in TestPauseNormal()
59 sigprocmask(SIG_BLOCK, &newset, nullptr); in TestPauseNormal()
H A Dsignal_test_040.cpp51 sigprocmask(SIG_SETMASK, &newset, NULL); in TestCase()
73 sigprocmask(SIG_BLOCK, &set1, NULL); in TestCase()
H A Dsignal_test_001.cpp74 printf("sigprocmask(1, NULL, NULL);\n"); in TestCase()
75 retValue = sigprocmask(1, NULL, NULL); in TestCase()
154 sigprocmask(SIG_BLOCK, &sigmask, &oldmask); in TestCase()
/kernel/liteos_a/testsuites/unittest/extended/signal/smoke/
H A Dsignal_test_037.cpp48 retval = sigprocmask(666, &set, &oldset); // 666, invalid param in TestCase()
52 retval = sigprocmask(SIG_BLOCK, reinterpret_cast<sigset_t *>(1), &oldset); in TestCase()
56 retval = sigprocmask(SIG_BLOCK, &set, &oldset); in TestCase()
/kernel/liteos_a/kernel/base/ipc/
H A Dlos_signal.c185 masked = (bool)OsSigIsMember(&sigcb->sigprocmask, info->si_signo); in OsTcbDispatch()
208 rtcb->sig.sigprocmask = set; in OsSigMaskSwitch()
209 unmaskset = GETUNMASKSET(rtcb->sig.sigprocmask, rtcb->sig.sigPendFlag); in OsSigMaskSwitch()
228 *(sigset_t *)oldsetl = spcb->sig.sigprocmask; in OsSigprocMask()
236 * set pointed to by set as the new sigprocmask. in OsSigprocMask()
239 spcb->sig.sigprocmask |= set; in OsSigprocMask()
242 * signal set pointed to by set as the new sigprocmask. in OsSigprocMask()
245 spcb->sig.sigprocmask &= ~(set); in OsSigprocMask()
247 /* Set the signal set pointed to by set as the new sigprocmask. */ in OsSigprocMask()
249 spcb->sig.sigprocmask in OsSigprocMask()
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-u300/
H A Dregulator.c43 if (!sigprocmask(SIG_BLOCK, &all, &old)) { in u300_pm_poweroff()
49 (void) sigprocmask(SIG_SETMASK, &old, NULL); in u300_pm_poweroff()
/kernel/linux/linux-6.6/arch/um/os-Linux/
H A Dtime.c107 sigprocmask(SIG_BLOCK, &set, &old); in os_idle_sleep()
114 sigprocmask(SIG_UNBLOCK, &set, NULL); in os_idle_sleep()
/kernel/linux/linux-5.10/arch/um/drivers/
H A Dchan_user.c83 if (sigprocmask(SIG_BLOCK, &no_sigio, &old)) in generic_console_write()
107 sigprocmask(SIG_SETMASK, &old, NULL); in generic_console_write()
168 if (sigprocmask(SIG_SETMASK, &sigs, NULL) < 0) { in winch_thread()
169 printk(UM_KERN_ERR "winch_thread : sigprocmask failed, " in winch_thread()
/kernel/linux/linux-6.6/arch/um/drivers/
H A Dchan_user.c83 if (sigprocmask(SIG_BLOCK, &no_sigio, &old)) in generic_console_write()
107 sigprocmask(SIG_SETMASK, &old, NULL); in generic_console_write()
168 if (sigprocmask(SIG_SETMASK, &sigs, NULL) < 0) { in winch_thread()
169 printk(UM_KERN_ERR "winch_thread : sigprocmask failed, " in winch_thread()
/kernel/linux/linux-5.10/fs/jffs2/
H A Dbackground.c92 sigprocmask(SIG_UNBLOCK, &hupmask, NULL); in jffs2_garbage_collect_thread()
152 sigprocmask(SIG_BLOCK, &hupmask, NULL); in jffs2_garbage_collect_thread()
/kernel/linux/linux-5.10/drivers/mfd/
H A Dab8500-sysctrl.c85 if (!sigprocmask(SIG_BLOCK, &all, &old)) { in ab8500_power_off()
89 (void)sigprocmask(SIG_SETMASK, &old, NULL); in ab8500_power_off()
/kernel/linux/linux-6.6/drivers/mfd/
H A Dab8500-sysctrl.c85 if (!sigprocmask(SIG_BLOCK, &all, &old)) { in ab8500_power_off()
89 (void)sigprocmask(SIG_SETMASK, &old, NULL); in ab8500_power_off()
/kernel/linux/linux-6.6/fs/jffs2/
H A Dbackground.c92 sigprocmask(SIG_UNBLOCK, &hupmask, NULL); in jffs2_garbage_collect_thread()
152 sigprocmask(SIG_BLOCK, &hupmask, NULL); in jffs2_garbage_collect_thread()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/mm/
H A Dexec_prot.c122 FAIL_IF(sigprocmask(SIG_SETMASK, 0, &segv_act.sa_mask) != 0); in test()
130 FAIL_IF(sigprocmask(SIG_SETMASK, 0, &trap_act.sa_mask) != 0); in test()
H A Dpkey_exec_prot.c115 FAIL_IF(sigprocmask(SIG_SETMASK, 0, &segv_act.sa_mask) != 0); in test()
123 FAIL_IF(sigprocmask(SIG_SETMASK, 0, &trap_act.sa_mask) != 0); in test()
/kernel/liteos_a/testsuites/unittest/libc/time/timer/smoke/
H A Dtimer_test_004.cpp83 ret = sigprocmask(SIG_BLOCK, &mask, nullptr); in SigInfoTimerTest()
84 LogPrintln("sigprocmask setmask %d: %d", SIG, ret); in SigInfoTimerTest()
120 ret = sigprocmask(SIG_UNBLOCK, &mask, nullptr); in SigInfoTimerTest()
121 LogPrintln("sigprocmask unblock %d: %d", SIG, ret); in SigInfoTimerTest()
H A Dtimer_test_003.cpp57 ret = sigprocmask(SIG_BLOCK, &set, &oldSet); in SetTimerTest()
107 ret = sigprocmask(SIG_SETMASK, &oldSet, nullptr); in SetTimerTest()
H A Dtimer_test_001.cpp72 ret = sigprocmask(SIG_BLOCK, &mask, nullptr); in TimerTest()
73 LogPrintln("sigprocmask setmask %d: %d", SIG, ret); in TimerTest()
130 ret = sigprocmask(SIG_UNBLOCK, &mask, nullptr); in TimerTest()
131 LogPrintln("sigprocmask unblock %d: %d", SIG, ret); in TimerTest()
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/bti/
H A Dsignal.h19 int sigprocmask(int how, const sigset_t *mask, sigset_t *old);
H A Dsignal.c34 int sigprocmask(int how, const sigset_t *mask, sigset_t *old) in sigprocmask() function
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/mm/
H A Dpkey_exec_prot.c115 FAIL_IF(sigprocmask(SIG_SETMASK, 0, &segv_act.sa_mask) != 0); in test()
123 FAIL_IF(sigprocmask(SIG_SETMASK, 0, &trap_act.sa_mask) != 0); in test()

Completed in 10 milliseconds

1234