Lines Matching defs:child
32 int child = fork();
34 if (child == 0) {
36 * The child sets itself for as tracee and
52 return child;
61 pid_t child;
65 child = spawn_child();
67 waitpid(child, &status, 0);
79 * - detaches the child
81 if (ptrace(PTRACE_POKEUSER, child,
88 if (ptrace(PTRACE_POKEUSER, child,
95 if (ptrace(PTRACE_POKEUSER, child,
101 if (ptrace(PTRACE_CONT, child, NULL, NULL)) {
106 waitpid(child, &status, 0);
112 rip = ptrace(PTRACE_PEEKUSER, child,
123 if (ptrace(PTRACE_DETACH, child, NULL, NULL)) {
138 pid_t child;
142 child = spawn_child();
144 waitpid(child, &status, 0);
156 * - detaches the child
158 if (ptrace(PTRACE_POKEUSER, child,
165 if (ptrace(PTRACE_POKEUSER, child,
171 if (!ptrace(PTRACE_POKEUSER, child,
177 if (ptrace(PTRACE_CONT, child, NULL, NULL)) {
182 waitpid(child, &status, 0);
188 rip = ptrace(PTRACE_PEEKUSER, child,
199 if (ptrace(PTRACE_DETACH, child, NULL, NULL)) {