Lines Matching defs:child
88 pid_t pid, child;
100 child = fork();
101 if (child == -1) {
110 if (child == 0) {
131 /* Parent; wait for the exit status from the child & verify it */
140 } while (pid != child);
142 assert(pid == child);
145 ksft_print_msg("child exited abnormally\n");
151 ksft_print_msg("child returned error %d\n",
159 ksft_print_msg("failed to open child stdout\n");
164 ret = stdio_read_integer(out, "child", &read_vl);
211 * is set in a freshly spawned child.
224 ksft_test_result_fail("%s is %d but child VL is %d\n",
257 ksft_test_result_fail("%s is %d but child VL is %d\n",
293 ksft_test_result_fail("%s is %d but child VL is %d\n",
412 /* If we didn't request it a new VL shouldn't affect the child */
436 /* Check that the child has the default we just set */
439 ksft_test_result_fail("%s is %d but child VL is %d\n",
450 /* If we didn't request it a new VL shouldn't affect the child */
487 /* Check that the child inherited our VL */
490 ksft_test_result_fail("%s is %d but child VL is %d\n",
501 /* _ONEXEC takes effect only in the child process */
525 /* Set a different value for the child to have on exec */
541 /* Check that the child inherited our VL */
544 ksft_test_result_fail("Set %d _ONEXEC but child VL is %d\n",