Searched refs:kid_count (Results 1 – 7 of 7) sorted by relevance
/external/ltp/testcases/kernel/syscalls/waitpid/ |
D | waitpid11.c | 71 int kid_count, ret_val, status; in main() local 116 for (kid_count = 0; kid_count < MAXKIDS; kid_count++) { in main() 117 if (kid_count == (MAXKIDS / 2)) in main() 126 "failed", kid_count); in main() 134 kid_count); in main() 137 fork_kid_pid[kid_count] = ret_val; in main() 156 kid_count = 0; in main() 175 wait_kid_pid[kid_count++] = ret_val; in main() 183 for (i = 0; i < kid_count; i++) { in main() 198 for (k = 0; k < kid_count; k++) { in main() [all …]
|
D | waitpid12.c | 71 int kid_count, ret_val, status; in main() local 118 for (kid_count = 0; kid_count < MAXKIDS; kid_count++) { in main() 119 if (kid_count == (MAXKIDS / 2)) in main() 128 "failed", kid_count); in main() 136 kid_count); in main() 139 fork_kid_pid[kid_count] = ret_val; in main() 165 kid_count = 0; in main() 186 wait_kid_pid[kid_count++] = ret_val; in main() 194 for (i = 0; i < kid_count; i++) { in main() 208 for (k = 0; k < kid_count; k++) in main() [all …]
|
D | waitpid13.c | 71 int kid_count, ret_val, status; in main() local 118 for (kid_count = 0; kid_count < MAXKIDS; kid_count++) { in main() 119 if (kid_count == (MAXKIDS / 2)) in main() 128 "failed", kid_count); in main() 138 kid_count); in main() 141 fork_kid_pid[kid_count] = ret_val; in main() 171 kid_count = 0; in main() 201 for (j = 0; j < kid_count; j++) { in main() 208 wait_kid_pid[kid_count++] = ret_val; in main() 216 for (i = 0; i < kid_count; i++) { in main() [all …]
|
D | waitpid06.c | 146 int kid_count, fork_kid_pid[MAXKIDS]; in do_child_1() local 155 for (kid_count = 0; kid_count < MAXKIDS; kid_count++) { in do_child_1() 156 if (kid_count == (MAXKIDS / 2)) in do_child_1() 165 "errno = %d", kid_count, errno); in do_child_1() 173 "errno = %d", kid_count, errno); in do_child_1() 178 fork_kid_pid[kid_count] = ret_val; in do_child_1() 203 kid_count = 0; in do_child_1() 224 wait_kid_pid[kid_count++] = ret_val; in do_child_1() 232 for (i = 0; i < kid_count; i++) { in do_child_1() 250 for (k = 0; k < kid_count; k++) { in do_child_1()
|
D | waitpid07.c | 149 int kid_count, fork_kid_pid[MAXKIDS]; in do_child_1() local 159 for (kid_count = 0; kid_count < MAXKIDS; kid_count++) { in do_child_1() 160 if (kid_count == (MAXKIDS / 2)) in do_child_1() 169 "errno = %d", kid_count, errno); in do_child_1() 179 "errno = %d", kid_count, errno); in do_child_1() 183 fork_kid_pid[kid_count] = ret_val; in do_child_1() 214 kid_count = 0; in do_child_1() 235 wait_kid_pid[kid_count++] = ret_val; in do_child_1() 243 for (i = 0; i < kid_count; i++) { in do_child_1() 261 for (k = 0; k < kid_count; k++) { in do_child_1()
|
D | waitpid08.c | 148 int kid_count, fork_kid_pid[MAXKIDS]; in do_child_1() local 158 for (kid_count = 0; kid_count < MAXKIDS; kid_count++) { in do_child_1() 159 if (kid_count == (MAXKIDS / 2)) in do_child_1() 168 "errno = %d", kid_count, errno); in do_child_1() 178 "errno = %d", kid_count, errno); in do_child_1() 183 fork_kid_pid[kid_count] = ret_val; in do_child_1() 216 kid_count = 0; in do_child_1() 248 wait_kid_pid[kid_count++] = ret_val; in do_child_1() 256 for (i = 0; i < kid_count; i++) { in do_child_1() 273 for (k = 0; k < kid_count; k++) { in do_child_1()
|
D | waitpid10.c | 65 int kid_count, ret_val, status, nkids; in main() local 86 kid_count = 0; in main() 142 fork_kid_pid[kid_count++] = ret_val; in main() 145 nkids = kid_count; in main() 163 kid_count = 0; in main() 172 wait_kid_pid[kid_count++] = ret_val; in main() 200 for (k = 0; k < kid_count; k++) { in main()
|