Home
last modified time | relevance | path

Searched refs:SIGUSR1 (Results 1 – 25 of 548) sorted by relevance

12345678910>>...22

/external/llvm-project/libc/test/src/signal/
Dsigaction_test.cpp41 EXPECT_THAT(__llvm_libc::sigaction(SIGUSR1, nullptr, &action), Succeeds()); in TEST()
44 correctSignal = signal == SIGUSR1; in TEST()
47 EXPECT_THAT(__llvm_libc::sigaction(SIGUSR1, &action, nullptr), Succeeds()); in TEST()
49 __llvm_libc::raise(SIGUSR1); in TEST()
54 EXPECT_THAT(__llvm_libc::sigaction(SIGUSR1, &action, nullptr), Succeeds()); in TEST()
56 EXPECT_DEATH([] { __llvm_libc::raise(SIGUSR1); }, SIGUSR1); in TEST()
61 EXPECT_THAT(__llvm_libc::sigaction(SIGUSR1, nullptr, &action), Succeeds()); in TEST()
63 EXPECT_THAT(__llvm_libc::sigaction(SIGUSR1, &action, nullptr), Succeeds()); in TEST()
65 EXPECT_EXITS([] { __llvm_libc::raise(SIGUSR1); }, 0); in TEST()
Dsigdelset_test.cpp22 EXPECT_THAT(__llvm_libc::sigdelset(nullptr, SIGUSR1), Fails(EINVAL)); in TEST()
33 EXPECT_THAT(__llvm_libc::sigdelset(&set, SIGUSR1), Succeeds()); in TEST()
35 EXPECT_DEATH([] { __llvm_libc::raise(SIGUSR1); }, SIGUSR1); in TEST()
/external/ltp/testcases/kernel/syscalls/sigwaitinfo/
Dsigwaitinfo01.c80 signal(SIGUSR1, empty_handler); in setup()
425 test_empty_set, my_rt_sigtimedwait, SIGUSR1}, {
426 test_unmasked_matching, my_rt_sigtimedwait, SIGUSR1}, {
427 test_masked_matching, my_rt_sigtimedwait, SIGUSR1}, {
428 test_unmasked_matching_noinfo, my_rt_sigtimedwait, SIGUSR1}, {
429 test_masked_matching_noinfo, my_rt_sigtimedwait, SIGUSR1}, {
430 test_bad_address, my_rt_sigtimedwait, SIGUSR1}, {
431 test_bad_address2, my_rt_sigtimedwait, SIGUSR1}, {
432 test_bad_address3, my_rt_sigtimedwait, SIGUSR1}, {
452 test_unmasked_matching_noinfo, my_sigwait, SIGUSR1}, {
[all …]
/external/ltp/testcases/kernel/controllers/cpuctl_fj/
Drun_cpuctl_test_fj.sh289 /bin/kill -s SIGUSR1 $pid
291 /bin/kill -s SIGUSR1 $pid
317 /bin/kill -s SIGUSR1 $pid
319 /bin/kill -s SIGUSR1 $pid
345 /bin/kill -s SIGUSR1 $pid
347 /bin/kill -s SIGUSR1 $pid
373 /bin/kill -s SIGUSR1 $pid
375 /bin/kill -s SIGUSR1 $pid
401 /bin/kill -s SIGUSR1 $pid
403 /bin/kill -s SIGUSR1 $pid
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
D1-1.c32 if (sigaddset(&signalset, SIGUSR1) != 0) { in child_proc()
61 kill(child_pid, SIGUSR1); in main()
85 kill(child_pid, SIGUSR1); in main()
91 kill(child_pid, SIGUSR1); in main()
95 kill(child_pid, SIGUSR1); in main()
100 kill(child_pid, SIGUSR1); in main()
110 kill(child_pid, SIGUSR1); in main()
116 kill(child_pid, SIGUSR1); in main()
/external/strace/tests-mx32/
Drt_sigsuspend.c94 sigaddset(libc_set, SIGUSR1); in main()
101 if (sigaction(SIGUSR1, &sa, NULL)) in main()
104 raise(SIGUSR1); in main()
121 raise(SIGUSR1); in main()
129 raise(SIGUSR1); in main()
137 raise(SIGUSR1); in main()
144 sigdelset(libc_set, SIGUSR1); in main()
146 raise(SIGUSR1); in main()
156 iterate("~[USR1]", SIGUSR1, k_set, set_size >> 1); in main()
Dsignal.c54 (kernel_ulong_t) 0xfacefeed00000000ULL | SIGUSR1; in main()
60 sigaddset(&mask, SIGUSR1); in main()
64 if (sigaction(SIGUSR1, &act, NULL)) in main()
81 raise(SIGUSR1); in main()
89 rc = k_signal(SIGUSR1, sig_dfl); in main()
100 rc = k_signal(SIGUSR1, addr); in main()
113 rc = k_signal(SIGUSR1, sig_ign); in main()
Dsigsuspend.c59 [SIGUSR1] = "USR1",
78 sigaddset(&u.libc_mask, SIGUSR1); in main()
84 if (sigaction(SIGUSR1, &sa, NULL) || sigaction(SIGUSR2, &sa, NULL)) in main()
87 raise(SIGUSR1); in main()
91 sigdelset(&u.libc_mask, SIGUSR1); in main()
/external/strace/tests-m32/
Drt_sigsuspend.c94 sigaddset(libc_set, SIGUSR1); in main()
101 if (sigaction(SIGUSR1, &sa, NULL)) in main()
104 raise(SIGUSR1); in main()
121 raise(SIGUSR1); in main()
129 raise(SIGUSR1); in main()
137 raise(SIGUSR1); in main()
144 sigdelset(libc_set, SIGUSR1); in main()
146 raise(SIGUSR1); in main()
156 iterate("~[USR1]", SIGUSR1, k_set, set_size >> 1); in main()
Dsignal.c54 (kernel_ulong_t) 0xfacefeed00000000ULL | SIGUSR1; in main()
60 sigaddset(&mask, SIGUSR1); in main()
64 if (sigaction(SIGUSR1, &act, NULL)) in main()
81 raise(SIGUSR1); in main()
89 rc = k_signal(SIGUSR1, sig_dfl); in main()
100 rc = k_signal(SIGUSR1, addr); in main()
113 rc = k_signal(SIGUSR1, sig_ign); in main()
Dsigsuspend.c59 [SIGUSR1] = "USR1",
78 sigaddset(&u.libc_mask, SIGUSR1); in main()
84 if (sigaction(SIGUSR1, &sa, NULL) || sigaction(SIGUSR2, &sa, NULL)) in main()
87 raise(SIGUSR1); in main()
91 sigdelset(&u.libc_mask, SIGUSR1); in main()
/external/strace/tests/
Drt_sigsuspend.c94 sigaddset(libc_set, SIGUSR1); in main()
101 if (sigaction(SIGUSR1, &sa, NULL)) in main()
104 raise(SIGUSR1); in main()
121 raise(SIGUSR1); in main()
129 raise(SIGUSR1); in main()
137 raise(SIGUSR1); in main()
144 sigdelset(libc_set, SIGUSR1); in main()
146 raise(SIGUSR1); in main()
156 iterate("~[USR1]", SIGUSR1, k_set, set_size >> 1); in main()
Dsignal.c54 (kernel_ulong_t) 0xfacefeed00000000ULL | SIGUSR1; in main()
60 sigaddset(&mask, SIGUSR1); in main()
64 if (sigaction(SIGUSR1, &act, NULL)) in main()
81 raise(SIGUSR1); in main()
89 rc = k_signal(SIGUSR1, sig_dfl); in main()
100 rc = k_signal(SIGUSR1, addr); in main()
113 rc = k_signal(SIGUSR1, sig_ign); in main()
Dsigsuspend.c59 [SIGUSR1] = "USR1",
78 sigaddset(&u.libc_mask, SIGUSR1); in main()
84 if (sigaction(SIGUSR1, &sa, NULL) || sigaction(SIGUSR2, &sa, NULL)) in main()
87 raise(SIGUSR1); in main()
91 sigdelset(&u.libc_mask, SIGUSR1); in main()
/external/python/cpython3/Lib/test/
Dtest_threadsignals.py21 usr1 = signal.signal(signal.SIGUSR1, for_usr1)
35 os.kill(process_pid, signal.SIGUSR1)
57 if signal_blackboard[signal.SIGUSR1]['tripped'] == 0 \
65 self.assertEqual( signal_blackboard[signal.SIGUSR1]['tripped'], 1)
66 self.assertEqual( signal_blackboard[signal.SIGUSR1]['tripped_by'],
153 old_handler = signal.signal(signal.SIGUSR1, my_handler)
162 os.kill(process_pid, signal.SIGUSR1)
178 signal.signal(signal.SIGUSR1, old_handler)
203 old_handler = signal.signal(signal.SIGUSR1, my_handler)
212 os.kill(process_pid, signal.SIGUSR1)
[all …]
/external/ltp/testcases/kernel/syscalls/vfork/
Dvfork02.c127 if (sigismember(&PendSig, SIGUSR1) != 0) { in main()
178 if (signal(SIGUSR1, sig_handler) == SIG_ERR) { in setup()
183 if (sighold(SIGUSR1) == -1) { in setup()
189 SAFE_KILL(cleanup, getpid(), SIGUSR1); in setup()
198 if (sigismember(&PendSig, SIGUSR1) != 1) { in setup()
225 if (sigrelse(SIGUSR1) == -1) { in cleanup()
/external/compiler-rt/test/msan/Linux/
Dsyscalls_sigaction.cc23 __sanitizer_syscall_pre_rt_sigaction(SIGUSR1, &act, &oldact, 20 * 8); in main()
26 __sanitizer_syscall_pre_rt_sigaction(SIGUSR1, &act, &oldact, 20 * 8); in main()
29 __sanitizer_syscall_pre_rt_sigaction(SIGUSR1, &act, &oldact, 20 * 8); in main()
33 __sanitizer_syscall_pre_rt_sigaction(SIGUSR1, &act, &oldact, 5); in main()
37 __sanitizer_syscall_post_rt_sigaction(0, SIGUSR1, &act, &oldact, 5); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
D28-17.c63 if (signal(SIGUSR1, handler_1) == SIG_ERR) { in main()
83 ret = sigaction(SIGUSR1, &sa, &save); in main()
91 ret = raise(SIGUSR1); in main()
104 ret = sigaction(SIGUSR1, &save, 0); in main()
112 ret = raise(SIGUSR1); in main()
/external/llvm-project/compiler-rt/test/msan/Linux/
Dsyscalls_sigaction.cpp27 __sanitizer_syscall_pre_rt_sigaction(SIGUSR1, &act, &oldact, 20 * 8); in main()
30 __sanitizer_syscall_pre_rt_sigaction(SIGUSR1, &act, &oldact, 20 * 8); in main()
33 __sanitizer_syscall_pre_rt_sigaction(SIGUSR1, &act, &oldact, 20 * 8); in main()
37 __sanitizer_syscall_pre_rt_sigaction(SIGUSR1, &act, &oldact, 5); in main()
41 __sanitizer_syscall_post_rt_sigaction(0, SIGUSR1, &act, &oldact, 5); in main()
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/
Dcpuset_memory_testset.sh55 /bin/kill -s SIGUSR1 $1
57 /bin/kill -s SIGUSR1 $1
283 /bin/kill -s SIGUSR1 $1
286 /bin/kill -s SIGUSR1 $1
288 /bin/kill -s SIGUSR1 $1
385 /bin/kill -s SIGUSR1 $1
389 /bin/kill -s SIGUSR1 $1
391 /bin/kill -s SIGUSR1 $1
505 /bin/kill -s SIGUSR1 $testpid
561 /bin/kill -s SIGUSR1 $testpid
[all …]
/external/python/cpython2/Lib/test/
Dtest_threadsignals.py18 usr1 = signal.signal(signal.SIGUSR1, for_usr1)
32 os.kill(process_pid, signal.SIGUSR1)
53 if signal_blackboard[signal.SIGUSR1]['tripped'] == 0 \
61 self.assertEqual( signal_blackboard[signal.SIGUSR1]['tripped'], 1)
62 self.assertEqual( signal_blackboard[signal.SIGUSR1]['tripped_by'],
76 signal_blackboard = { signal.SIGUSR1 : {'tripped': 0, 'tripped_by': 0 },
/external/ltp/testcases/kernel/syscalls/tgkill/
Dtgkill03.c49 sigaddset(&sigusr1, SIGUSR1); in setup()
79 { "Invalid tgid", &invalid_pid, &parent_tid, SIGUSR1, EINVAL },
80 { "Invalid tid", &parent_tgid, &invalid_pid, SIGUSR1, EINVAL },
82 { "Defunct tid", &parent_tgid, &defunct_tid, SIGUSR1, ESRCH },
83 { "Defunct tgid", &defunct_tid, &child_tid, SIGUSR1, ESRCH },
84 { "Valid tgkill call", &parent_tgid, &child_tid, SIGUSR1, 0 },
/external/ltp/testcases/kernel/syscalls/sigpending/
Dsigpending02.c72 sigaddset(&only_SIGUSR, SIGUSR1); in test_sigpending()
76 old_sighandler1 = SAFE_SIGNAL(SIGUSR1, sighandler); in test_sigpending()
90 if (raise(SIGUSR1)) in test_sigpending()
100 if ((i == SIGUSR1) != sigismember(&pending, i)) in test_sigpending()
114 if ((i == SIGUSR1 || i == SIGUSR2) != sigismember(&pending, i)) in test_sigpending()
130 SAFE_SIGNAL(SIGUSR1, old_sighandler1); in test_sigpending()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigsuspend/
D4-1.c50 SIGUSR1, SIGUSR2, in is_changed()
93 if (sigaction(SIGUSR1, &act, 0) == -1) { in main()
100 sigaddset(&originalmask, SIGUSR1); in main()
111 if (is_changed(currentmask, SIGUSR1) != 0) { in main()
126 kill(pid, SIGUSR1); in main()
/external/linux-kselftest/tools/testing/selftests/x86/
Dvdso_restorer.c54 if (syscall(SYS_rt_sigaction, SIGUSR1, &sa, NULL, 8) != 0) in main()
57 raise(SIGUSR1); in main()
68 if (syscall(SYS_sigaction, SIGUSR1, &sa, 0) != 0) in main()
72 raise(SIGUSR1); in main()

12345678910>>...22