Home
last modified time | relevance | path

Searched refs:sigs (Results 1 – 25 of 65) 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/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"
Dsignalfd4.c47 const char *const sigs = SIGUSR2 < SIGCHLD ? "USR2 CHLD" : "CHLD USR2"; in main() local
57 sigs, size, sprintrc(fd)); in main()
Dsigreturn.c79 static const char *const sigs = in main() local
82 printf("sigreturn({mask=[%s %s]}) = 0\n", sigs, rt_sigs); in main()
/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"
Dsignalfd4.c47 const char *const sigs = SIGUSR2 < SIGCHLD ? "USR2 CHLD" : "CHLD USR2"; in main() local
57 sigs, size, sprintrc(fd)); in main()
Dsigreturn.c79 static const char *const sigs = in main() local
82 printf("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"
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/sigrelse/
D3-1.c26 static const int sigs[] = {-1, -10000, INT32_MIN, INT32_MIN + 1}; variable
32 for (i = 0; i < sizeof(sigs) / sizeof(int); i++) { in main()
33 ret = sigrelse(sigs[i]); in main()
38 sigs[i], ret, errno); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sighold/
D3-1.c23 static const int sigs[] = {-1, -10000, INT32_MIN, INT32_MIN + 1}; variable
29 for (i = 0; i < sizeof(sigs) / sizeof(int); i++) { in main()
30 ret = sighold(sigs[i]); in main()
35 sigs[i], ret, errno); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigignore/
D5-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 = sigignore(sigs[i]); in main()
34 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/valgrind/none/tests/mips32/
DSignalException.c78 static const int sigs[] = { SIGFPE }; in main() local
84 for(i = 0; i < sizeof(sigs)/sizeof(*sigs); i++) in main()
85 sigaction(sigs[i], &sa, NULL); in main()
/external/valgrind/none/tests/x86/
Dfaultstatus.c111 static const int sigs[] = { SIGSEGV, SIGILL, SIGBUS, SIGFPE, SIGTRAP }; in main() local
118 for(i = 0; i < sizeof(sigs)/sizeof(*sigs); i++) in main()
119 sigaction(sigs[i], &sa, NULL); in main()
/external/valgrind/none/tests/amd64/
Dfaultstatus.c93 static const int sigs[] = { SIGSEGV, SIGILL, SIGBUS, SIGFPE, SIGTRAP }; in main() local
100 for(i = 0; i < sizeof(sigs)/sizeof(*sigs); i++) in main()
101 sigaction(sigs[i], &sa, NULL); 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/valgrind/none/tests/
Dfaultstatus.c142 static const int sigs[] = { SIGSEGV, SIGILL, SIGBUS, SIGFPE, SIGTRAP }; local
149 for(i = 0; i < sizeof(sigs)/sizeof(*sigs); i++)
150 sigaction(sigs[i], &sa, NULL);
/external/libmojo/mojo/public/cpp/system/tests/
Dcore_unittest.cc115 std::vector<MojoHandleSignals> sigs; in TEST() local
116 sigs.push_back(~MOJO_HANDLE_SIGNAL_NONE); in TEST()
118 WaitMany(wh, sigs, MOJO_DEADLINE_INDEFINITE, nullptr); in TEST()
125 wait_many_result = WaitMany(wh, sigs, MOJO_DEADLINE_INDEFINITE, NULL); in TEST()
200 std::vector<MojoHandleSignals> sigs; in TEST() local
201 sigs.push_back(MOJO_HANDLE_SIGNAL_READABLE); in TEST()
202 sigs.push_back(MOJO_HANDLE_SIGNAL_WRITABLE); in TEST()
203 std::vector<MojoHandleSignalsState> states(sigs.size()); in TEST()
204 WaitManyResult wait_many_result = WaitMany(wh, sigs, 1000, &states); 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/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
D16-1.c54 static struct sig_info sigs[] = { variable
93 struct sig_info *s = &sigs[0]; in lookup()
214 struct sig_info *s = &sigs[0]; in main()

123