Lines Matching defs:child
41 pid_t child, wpid;
48 SYSCALL_REQUIRE((child = fork()) != -1);
49 if (child == 0) {
50 DPRINTF("Before calling PT_TRACE_ME from child %d\n", getpid());
53 DPRINTF("Before raising %s from child\n", strsignal(sigval));
56 DPRINTF("Before exiting of the child process\n");
59 DPRINTF("Parent process PID=%d, child's PID=%d\n", getpid(), child);
61 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
62 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
66 DPRINTF("Call GETREGS for the child process\n");
67 SYSCALL_REQUIRE(ptrace(PT_GETREGS, child, &r, 0) != -1);
91 DPRINTF("Before resuming the child process where it left off and "
93 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
95 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
96 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
100 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
101 TWAIT_REQUIRE_FAILURE(ECHILD, wpid = TWAIT_GENERIC(child, &status, 0));