Lines Matching defs:child
35 pid_t child, wpid;
58 SYSCALL_REQUIRE((child = fork()) != -1);
59 if (child == 0) {
60 DPRINTF("Before calling PT_TRACE_ME from child %d\n", getpid());
63 DPRINTF("Before raising %s from child\n", strsignal(sigval));
66 DPRINTF("Before exiting of the child process\n");
69 DPRINTF("Parent process PID=%d, child's PID=%d\n", getpid(), child);
71 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
72 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0), child);
78 DPRINTF("Call GETREGS for the child process\n");
79 SYSCALL_REQUIRE(ptrace(PT_GETREGS, child, &gpr, 0) != -1);
100 ptrace(PT_SETREGS, child, &gpr, 0);
109 DPRINTF("Call SETREGS for the child process\n");
111 ptrace(PT_SETREGS, child, &gpr, 0) != -1);
118 DPRINTF("Call GETFPREGS for the child process\n");
119 SYSCALL_REQUIRE(ptrace(PT_GETFPREGS, child, &fpr, 0) != -1);
124 DPRINTF("Call SETFPREGS for the child\n");
126 ptrace(PT_SETFPREGS, child, &fpr, 0) != -1);
131 DPRINTF("Before resuming the child process where it left off and "
133 SYSCALL_REQUIRE(ptrace(PT_CONTINUE, child, (void *)1, 0) != -1);
136 DPRINTF("Before resuming the child process where it left off "
139 ptrace(PT_KILL, child, NULL, 0);
141 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
142 TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, 0),
143 child);
145 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
147 wpid = TWAIT_GENERIC(child, &status, 0));
149 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
151 wpid = TWAIT_GENERIC(child, &status, 0), child);
155 DPRINTF("Before calling %s() for the child\n", TWAIT_FNAME);
157 wpid = TWAIT_GENERIC(child, &status, 0));