Home
last modified time | relevance | path

Searched refs:sigs (Results 1 – 25 of 66) sorted by relevance

123

/external/ltp/testcases/kernel/syscalls/sigwaitinfo/
Dsigwaitinfo01.c139 sigset_t sigs; in test_empty_set() local
143 SUCCEED_OR_DIE(sigemptyset, "sigemptyset failed", &sigs); in test_empty_set()
147 TEST(sigwaitinfo(&sigs, &si, NULL)); in test_empty_set()
155 sigset_t sigs; in test_timeout() local
160 SUCCEED_OR_DIE(sigemptyset, "sigemptyset failed", &sigs); in test_timeout()
165 TEST(sigwaitinfo(&sigs, &si, &ts)); in test_timeout()
176 sigset_t sigs; in test_unmasked_matching() local
180 SUCCEED_OR_DIE(sigemptyset, "sigemptyset failed", &sigs); in test_unmasked_matching()
181 SUCCEED_OR_DIE(sigaddset, "sigaddset failed", &sigs, signo); in test_unmasked_matching()
186 TEST(sigwaitinfo(&sigs, &si, NULL)); in test_unmasked_matching()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/
D1-3.c23 static const int sigs[] = { variable
42 for (i = 0; i < sizeof(sigs)/sizeof(int); i++) { in main()
43 if (sigaddset(&signalset, sigs[i]) == 0) { in main()
44 if (sigismember(&signalset, sigs[i]) != 1) { in main()
46 printf("Signal %d wasn't added \n", sigs[i]); in main()
50 printf("Failed to add sinal %d\n", sigs[i]); in main()
D4-1.c23 static const int sigs[] = {-1, -10000, INT32_MIN, INT32_MIN + 1}; variable
36 for (i = 0; i < ARRAY_SIZE(sigs); i++) { in main()
37 ret = sigaddset(&signalset, sigs[i]); in main()
42 sigs[i], ret, errno); in main()
/external/v8/src/trap-handler/
Dhandler-inside-linux.cc45 explicit SigUnmaskStack(sigset_t sigs) { in SigUnmaskStack() argument
48 pthread_sigmask(SIG_UNBLOCK, &sigs, &old_mask_); in SigUnmaskStack()
87 sigset_t sigs; in TryHandleSignal() local
90 sigemptyset(&sigs); in TryHandleSignal()
91 sigaddset(&sigs, SIGSEGV); in TryHandleSignal()
92 SigUnmaskStack unmask(sigs); in TryHandleSignal()
/external/strace/tests-m32/
Dqual_signal.test35 local sigs
36 sigs="$1"; shift
39 run_strace -e trace=none -e signal="$sigs" "../$NAME" "$@" > "$EXP"
45 local first second sigs
49 for sigs; do
50 test_one_sig "$sigs" 2 "$first" 15 "$second"
Daio_pgetevents.c118 TAIL_ALLOC_OBJECT_CONST_PTR(sigset_t, sigs); in main()
148 ss->sigmask = sigs + 1; in main()
155 (long) bogus_nr, sigs + 1, bogus_sigsetsize, errstr); in main()
159 ss->sigmask = sigs; in main()
169 sigemptyset(sigs); in main()
170 sigaddset(sigs, SIGSYS); in main()
Dsignalfd4.c47 const char *const sigs = SIGUSR2 < SIGCHLD ? "USR2 CHLD" : "CHLD USR2"; in main() local
57 sigs, size, sprintrc(fd)); in main()
/external/strace/tests-mx32/
Dqual_signal.test35 local sigs
36 sigs="$1"; shift
39 run_strace -e trace=none -e signal="$sigs" "../$NAME" "$@" > "$EXP"
45 local first second sigs
49 for sigs; do
50 test_one_sig "$sigs" 2 "$first" 15 "$second"
Daio_pgetevents.c118 TAIL_ALLOC_OBJECT_CONST_PTR(sigset_t, sigs); in main()
148 ss->sigmask = sigs + 1; in main()
155 (long) bogus_nr, sigs + 1, bogus_sigsetsize, errstr); in main()
159 ss->sigmask = sigs; in main()
169 sigemptyset(sigs); in main()
170 sigaddset(sigs, SIGSYS); in main()
Dsignalfd4.c47 const char *const sigs = SIGUSR2 < SIGCHLD ? "USR2 CHLD" : "CHLD USR2"; in main() local
57 sigs, size, sprintrc(fd)); in main()
Drt_sigreturn.c72 static const char *const sigs = in main() local
75 printf("rt_sigreturn({mask=[%s %s]}) = 0\n", sigs, rt_sigs); in main()
/external/strace/tests/
Dqual_signal.test35 local sigs
36 sigs="$1"; shift
39 run_strace -e trace=none -e signal="$sigs" "../$NAME" "$@" > "$EXP"
45 local first second sigs
49 for sigs; do
50 test_one_sig "$sigs" 2 "$first" 15 "$second"
Daio_pgetevents.c118 TAIL_ALLOC_OBJECT_CONST_PTR(sigset_t, sigs); in main()
148 ss->sigmask = sigs + 1; in main()
155 (long) bogus_nr, sigs + 1, bogus_sigsetsize, errstr); in main()
159 ss->sigmask = sigs; in main()
169 sigemptyset(sigs); in main()
170 sigaddset(sigs, SIGSYS); in main()
Dsignalfd4.c47 const char *const sigs = SIGUSR2 < SIGCHLD ? "USR2 CHLD" : "CHLD USR2"; in main() local
57 sigs, size, sprintrc(fd)); in main()
Drt_sigreturn.c72 static const char *const sigs = in main() local
75 printf("rt_sigreturn({mask=[%s %s]}) = 0\n", sigs, rt_sigs); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sighold/
D3-1.c22 static const int sigs[] = {-1, -10000, INT32_MIN, INT32_MIN + 1}; variable
28 for (i = 0; i < sizeof(sigs) / sizeof(int); i++) { in main()
29 ret = sighold(sigs[i]); in main()
34 sigs[i], ret, errno); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigignore/
D5-1.c21 static const int sigs[] = {-1, -10000, INT32_MIN, INT32_MIN + 1}; variable
27 for (i = 0; i < sizeof(sigs) / sizeof(int); i++) { in main()
28 ret = sigignore(sigs[i]); in main()
33 sigs[i], ret, errno); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/
D3-1.c25 static const int sigs[] = {-1, -10000, INT32_MIN, INT32_MIN + 1}; variable
31 for (i = 0; i < sizeof(sigs) / sizeof(int); i++) { in main()
32 ret = sigrelse(sigs[i]); in main()
37 sigs[i], ret, errno); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigismember/
D5-1.c24 static const int sigs[] = {-1, -10000, INT32_MIN, INT32_MIN + 1}; variable
36 for (i = 0; i < sizeof(sigs) / sizeof(int); i++) { in main()
37 ret = sigismember(&signalset, sigs[i]); in main()
42 sigs[i], ret, errno); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigdelset/
D4-1.c25 static const int sigs[] = {-1, -10000, INT32_MIN, INT32_MIN + 1}; variable
37 for (i = 0; i < sizeof(sigs) / sizeof(int); i++) { in main()
38 ret = sigdelset(&signalset, sigs[i]); in main()
43 sigs[i], ret, errno); in main()
/external/scapy/scapy/modules/
Dnmap.py180 def nmap_search(sigs): argument
185 if test in sigs:
186 score += nmap_match_one_sig(sigs[test], values)
187 score /= len(sigs)
200 sigs = nmap_sig(target, oport, cport)
201 return nmap_search(sigs)
/external/libchrome/mojo/public/cpp/system/tests/
Dcore_unittest.cc117 std::vector<MojoHandleSignals> sigs; in TEST() local
118 sigs.push_back(~MOJO_HANDLE_SIGNAL_NONE); in TEST()
120 MojoResult rv = WaitMany(wh.data(), sigs.data(), wh.size(), &result_index); in TEST()
172 std::vector<MojoHandleSignals> sigs; in TEST() local
173 sigs.push_back(MOJO_HANDLE_SIGNAL_READABLE); in TEST()
174 sigs.push_back(MOJO_HANDLE_SIGNAL_WRITABLE); in TEST()
175 std::vector<MojoHandleSignalsState> states(sigs.size()); in TEST()
178 MojoResult rv = WaitMany(wh.data(), sigs.data(), wh.size(), &result_index, in TEST()
/external/toybox/toys/other/
Dreboot.c28 sigs[] = {SIGTERM, SIGUSR1, SIGUSR2}, idx; in reboot_main() local
34 else toys.exitval = kill(1, sigs[idx]); in reboot_main()
/external/python/cpython3/Lib/test/
Dtest_signal.py1104 sigs = []
1115 sigs.append(signum)
1131 while len(sigs) < expected_sigs and time.monotonic() < deadline:
1136 while len(sigs) < expected_sigs and time.monotonic() < deadline:
1141 self.assertEqual(len(sigs), N, "Some signals were lost")
1150 sigs = []
1153 sigs.append(signum)
1169 while len(sigs) < expected_sigs and time.monotonic() < deadline:
1174 self.assertEqual(len(sigs), N, "Some signals were lost")
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
D16-1.c51 static struct sig_info sigs[] = { variable
90 struct sig_info *s = &sigs[0]; in lookup()
211 struct sig_info *s = &sigs[0]; in main()

123