Lines Matching refs:signo
137 void test_empty_set(swi_func sigwaitinfo, int signo) in test_empty_set() argument
145 child = create_sig_proc(100000, signo, UINT_MAX); in test_empty_set()
153 void test_timeout(swi_func sigwaitinfo, int signo) in test_timeout() argument
163 child = create_sig_proc(100000, signo, UINT_MAX); in test_timeout()
174 void test_unmasked_matching(swi_func sigwaitinfo, int signo) in test_unmasked_matching() argument
181 SUCCEED_OR_DIE(sigaddset, "sigaddset failed", &sigs, signo); in test_unmasked_matching()
184 child = create_sig_proc(100000, signo, UINT_MAX); in test_unmasked_matching()
187 REPORT_SUCCESS_COND(signo, 0, si.si_pid == child in test_unmasked_matching()
189 && si.si_signo == signo, "Struct siginfo mismatch"); in test_unmasked_matching()
194 void test_unmasked_matching_noinfo(swi_func sigwaitinfo, int signo) in test_unmasked_matching_noinfo() argument
200 SUCCEED_OR_DIE(sigaddset, "sigaddset failed", &sigs, signo); in test_unmasked_matching_noinfo()
202 child = create_sig_proc(100000, signo, UINT_MAX); in test_unmasked_matching_noinfo()
205 REPORT_SUCCESS(signo, 0); in test_unmasked_matching_noinfo()
210 void test_masked_matching(swi_func sigwaitinfo, int signo) in test_masked_matching() argument
217 SUCCEED_OR_DIE(sigaddset, "sigaddset failed", &sigs, signo); in test_masked_matching()
228 child = create_sig_proc(0, signo, 1); in test_masked_matching()
231 REPORT_SUCCESS_COND(signo, 0, si.si_pid == child in test_masked_matching()
233 && si.si_signo == signo, "Struct siginfo mismatch"); in test_masked_matching()
240 if (sigismember(&oldmask, signo)) in test_masked_matching()
247 void test_masked_matching_rt(swi_func sigwaitinfo, int signo) in test_masked_matching_rt() argument
254 signo = SIGRTMIN + 1; in test_masked_matching_rt()
257 SUCCEED_OR_DIE(sigaddset, "sigaddset failed", &sigs, signo); in test_masked_matching_rt()
258 SUCCEED_OR_DIE(sigaddset, "sigaddset failed", &sigs, signo + 1); in test_masked_matching_rt()
269 child[0] = create_sig_proc(0, signo, 1); in test_masked_matching_rt()
270 child[1] = create_sig_proc(0, signo + 1, 1); in test_masked_matching_rt()
277 REPORT_SUCCESS_COND(signo, 0, si.si_pid == child[0] in test_masked_matching_rt()
279 && si.si_signo == signo, "Struct siginfo mismatch"); in test_masked_matching_rt()
284 REPORT_SUCCESS_COND(signo + 1, 0, si.si_pid == child[1] in test_masked_matching_rt()
286 && si.si_signo == signo + 1, in test_masked_matching_rt()
294 if (sigismember(&oldmask, signo)) in test_masked_matching_rt()
301 void test_masked_matching_noinfo(swi_func sigwaitinfo, int signo) in test_masked_matching_noinfo() argument
307 SUCCEED_OR_DIE(sigaddset, "sigaddset failed", &sigs, signo); in test_masked_matching_noinfo()
318 child = create_sig_proc(0, signo, 1); in test_masked_matching_noinfo()
321 REPORT_SUCCESS(signo, 0); in test_masked_matching_noinfo()
328 if (sigismember(&oldmask, signo)) in test_masked_matching_noinfo()
336 void test_bad_address(swi_func sigwaitinfo, int signo) in test_bad_address() argument
342 SUCCEED_OR_DIE(sigaddset, "sigaddset failed", &sigs, signo); in test_bad_address()
353 child = create_sig_proc(0, signo, 1); in test_bad_address()
364 void test_bad_address2(swi_func sigwaitinfo, int signo) in test_bad_address2() argument
410 void test_bad_address3(swi_func sigwaitinfo, int signo) in test_bad_address3() argument
422 int signo; member
506 tst_resm(TINFO, "%p, %d", tests[i].swi, tests[i].signo); in main()
507 tests[i].tf(tests[i].swi, tests[i].signo); in main()