Version:
~ [ 0.6-2.3.46 ] ~
Architecture:
~ [ um ] ~
** Warning: Cannot open xref database.
1 #include <stdio.h>
2 #include <unistd.h>
3 #include <stdlib.h>
4 #include <sched.h>
5 #include <sys/wait.h>
6 #include <sys/ptrace.h>
7 #include <asm/ptrace.h>
8 #include <signal.h>
9 #include "user_util.h"
10 #include "kern_util.h"
11 #include "user.h"
12
13 void finish_exec(int pid, unsigned long ip, unsigned long sp)
14 {
15 if((ptrace(PTRACE_POKEUSER, pid, 4 * UESP, sp) < 0) ||
16 (ptrace(PTRACE_POKEUSER, pid, 4 * EIP, ip) < 0) ||
17 (ptrace(PTRACE_POKEUSER, pid, 4 * EDX, 0) < 0) ||
18 (ptrace(PTRACE_SYSCALL, pid, 0, 0) < 0))
19 panic("Couldn't start execed proc");
20 }
21
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.