Lines Matching defs:child
69 pid_t child, wpid;
76 ATF_REQUIRE((child = fork()) != -1);
77 if (child == 0) {
78 printf("Before calling PT_TRACE_ME from child %d\n", getpid());
81 printf("Before raising %s from child\n", strsignal(sigval));
84 printf("Before exiting of the child process\n");
87 printf("Parent process PID=%d, child's PID=%d\n", getpid(), child);
89 printf("Before calling %s() for the child\n", TWAIT_FNAME);
90 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
94 printf("Call GETREGS for the child process\n");
95 ATF_REQUIRE(ptrace(PT_GETREGS, child, &r, 0) != -1);
119 printf("Before resuming the child process where it left off and "
121 ATF_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
123 printf("Before calling %s() for the child\n", TWAIT_FNAME);
124 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
128 printf("Before calling %s() for the child\n", TWAIT_FNAME);
129 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0));