Searched refs:MAXKIDS (Results 1 – 7 of 7) sorted by relevance
/external/ltp/testcases/kernel/syscalls/waitpid/ |
D | waitpid11.c | 50 #define MAXKIDS 8 macro 67 static int fork_kid_pid[MAXKIDS]; 74 int wait_kid_pid[MAXKIDS]; in main() 116 for (kid_count = 0; kid_count < MAXKIDS; kid_count++) { in main() 117 if (kid_count == (MAXKIDS / 2)) in main() 148 for (i = 0; i < MAXKIDS; i++) in main() 185 for (j = (MAXKIDS / 2); j < MAXKIDS; j++) { in main() 194 for (k = 0; k < MAXKIDS; k++) { in main() 206 if (kid_count != (MAXKIDS / 2)) { in main() 244 for (j = 0; j < (MAXKIDS / 2); j++) { in main() [all …]
|
D | waitpid13.c | 51 #define MAXKIDS 8 macro 74 int fork_kid_pid[MAXKIDS], wait_kid_pid[MAXKIDS]; in main() 118 for (kid_count = 0; kid_count < MAXKIDS; kid_count++) { in main() 119 if (kid_count == (MAXKIDS / 2)) in main() 160 for (i = 0; i < MAXKIDS; i++) { in main() 218 for (j = (MAXKIDS / 2); j < MAXKIDS; j++) { in main() 227 for (k = 0; k < MAXKIDS; k++) in main() 237 if (kid_count != (MAXKIDS / 2)) { in main() 240 tst_resm(TFAIL, "Expected %d got %d", MAXKIDS, kid_count); in main() 292 for (j = 0; j < (MAXKIDS / 2); j++) { in main() [all …]
|
D | waitpid12.c | 51 #define MAXKIDS 8 macro 74 int fork_kid_pid[MAXKIDS], wait_kid_pid[MAXKIDS]; in main() 118 for (kid_count = 0; kid_count < MAXKIDS; kid_count++) { in main() 119 if (kid_count == (MAXKIDS / 2)) in main() 157 for (i = 0; i < MAXKIDS; i++) in main() 196 for (j = (MAXKIDS / 2); j < MAXKIDS; j++) { in main() 205 for (k = 0; k < MAXKIDS; k++) in main() 215 if (kid_count != (MAXKIDS / 2)) { in main() 254 for (j = 0; j < (MAXKIDS / 2); j++) { in main() 263 for (k = 0; k < MAXKIDS; k++) in main() [all …]
|
D | waitpid06.c | 67 #define MAXKIDS 8 macro 146 int kid_count, fork_kid_pid[MAXKIDS]; in do_child_1() 150 int wait_kid_pid[MAXKIDS], status; in do_child_1() 155 for (kid_count = 0; kid_count < MAXKIDS; kid_count++) { in do_child_1() 156 if (kid_count == (MAXKIDS / 2)) in do_child_1() 191 for (i = 0; i < MAXKIDS; i++) { in do_child_1() 234 for (j = 0; j < MAXKIDS; j++) { in do_child_1() 245 for (k = 0; k < MAXKIDS; k++) { in do_child_1()
|
D | waitpid07.c | 68 #define MAXKIDS 8 macro 149 int kid_count, fork_kid_pid[MAXKIDS]; in do_child_1() 153 int wait_kid_pid[MAXKIDS], status; in do_child_1() 159 for (kid_count = 0; kid_count < MAXKIDS; kid_count++) { in do_child_1() 160 if (kid_count == (MAXKIDS / 2)) in do_child_1() 203 for (i = 0; i < MAXKIDS; i++) { in do_child_1() 245 for (j = 0; j < MAXKIDS; j++) { in do_child_1() 256 for (k = 0; k < MAXKIDS; k++) { in do_child_1()
|
D | waitpid08.c | 67 #define MAXKIDS 8 macro 148 int kid_count, fork_kid_pid[MAXKIDS]; in do_child_1() 152 int wait_kid_pid[MAXKIDS], status; in do_child_1() 158 for (kid_count = 0; kid_count < MAXKIDS; kid_count++) { in do_child_1() 159 if (kid_count == (MAXKIDS / 2)) in do_child_1() 205 for (i = 0; i < MAXKIDS; i++) { in do_child_1() 258 for (j = 0; j < MAXKIDS; j++) { in do_child_1() 268 for (k = 0; k < MAXKIDS; k++) { in do_child_1()
|
D | waitpid10.c | 40 #define MAXKIDS 8 macro 57 static int fork_kid_pid[MAXKIDS]; 67 int wait_kid_pid[MAXKIDS]; in main() 88 for (i = 0; i < MAXKIDS; i++) { in main() 181 for (i = 0; i < MAXKIDS; i++) { in main() 183 for (j = 0; j < MAXKIDS; j++) { in main() 246 for (i = 0; i < MAXKIDS; i++) { in cleanup()
|