Home
last modified time | relevance | path

Searched refs:MAXKIDS (Results 1 – 8 of 8) sorted by relevance

/external/ltp/testcases/kernel/syscalls/waitpid/
Dwaitpid11.c40 for (i = 0; i < MAXKIDS; i++) { in do_child_1()
41 if (i == (MAXKIDS / 2)) in do_child_1()
51 TST_CHECKPOINT_WAKE2(0, MAXKIDS); in do_child_1()
53 if (TST_TRACE(reap_children(0, 0, fork_kid_pid + MAXKIDS/2, MAXKIDS/2))) in do_child_1()
57 if (TST_TRACE(reap_children(-group, 0, fork_kid_pid, MAXKIDS / 2))) in do_child_1()
Dwaitpid12.c43 for (i = 0; i < MAXKIDS; i++) { in do_child_1()
44 if (i == (MAXKIDS / 2)) in do_child_1()
60 TST_CHECKPOINT_WAKE2(0, MAXKIDS); in do_child_1()
62 if (TST_TRACE(reap_children(0, WNOHANG, fork_kid_pid + (MAXKIDS / 2), in do_child_1()
63 MAXKIDS / 2))) in do_child_1()
67 MAXKIDS / 2))) in do_child_1()
Dwaitpid13.c42 for (i = 0; i < MAXKIDS; i++) { in do_child_1()
43 if (i == (MAXKIDS / 2)) in do_child_1()
60 TST_CHECKPOINT_WAKE2(0, MAXKIDS); in do_child_1()
62 if (TST_TRACE(reap_children(0, WUNTRACED, fork_kid_pid + (MAXKIDS / 2), in do_child_1()
63 MAXKIDS / 2))) in do_child_1()
67 MAXKIDS / 2))) in do_child_1()
Dwaitpid06.c38 for (i = 0; i < MAXKIDS; i++) { in do_child_1()
39 if (i == (MAXKIDS / 2)) in do_child_1()
49 TST_CHECKPOINT_WAKE2(0, MAXKIDS); in do_child_1()
51 if (TST_TRACE(reap_children(-1, 0, fork_kid_pid, MAXKIDS))) in do_child_1()
Dwaitpid07.c39 for (i = 0; i < MAXKIDS; i++) { in do_child_1()
40 if (i == (MAXKIDS / 2)) in do_child_1()
54 TST_CHECKPOINT_WAKE2(0, MAXKIDS); in do_child_1()
56 if (TST_TRACE(reap_children(-1, WNOHANG, fork_kid_pid, MAXKIDS))) in do_child_1()
Dwaitpid08.c40 for (i = 0; i < MAXKIDS; i++) { in do_child_1()
41 if (i == (MAXKIDS / 2)) in do_child_1()
57 TST_CHECKPOINT_WAKE2(0, MAXKIDS); in do_child_1()
59 if (TST_TRACE(reap_children(-1, WUNTRACED, fork_kid_pid, MAXKIDS))) in do_child_1()
Dwaitpid_common.h28 #define MAXKIDS 8 macro
37 fork_kid_pid = SAFE_MMAP(NULL, sizeof(*fork_kid_pid) * MAXKIDS, in waitpid_setup()
46 for (i = 0; i < MAXKIDS; i++) { in waitpid_cleanup()
54 munmap(fork_kid_pid, sizeof(*fork_kid_pid) * MAXKIDS); in waitpid_cleanup()
Dwaitpid10.c38 for (i = 0; i < MAXKIDS; i++) { in do_child_1()
57 TST_CHECKPOINT_WAKE2(0, MAXKIDS); in do_child_1()
59 if (TST_TRACE(reap_children(0, 0, fork_kid_pid, MAXKIDS))) in do_child_1()