Changeset 1476
- Timestamp:
- 12/02/07 22:44:27 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libemu/trunk/include/emu/environment/linux/env_linux_syscall_hooks.h
r1469 r1476 25 25 * 26 26 *******************************************************************************/ 27 28 /* 1 exit */ 29 int32_t env_linux_hook_exit(struct emu_env_linux *env, struct emu_env_linux_syscall *syscall); 27 30 28 31 /* 2 fork */ libemu/trunk/include/emu/environment/linux/env_linux_syscalls.h
r1469 r1476 251 251 { "dup2" , env_linux_hook_dup2}, 252 252 { "execve" , env_linux_hook_execve}, 253 { "exit" , NULL},253 { "exit" , env_linux_hook_exit}, 254 254 { "fchdir" , NULL}, 255 255 { "fchmod" , NULL}, libemu/trunk/src/environment/linux/env_linux_syscall_hooks.c
r1469 r1476 40 40 41 41 #include "emu/environment/linux/emu_env_linux.h" 42 43 int32_t env_linux_hook_exit(struct emu_env_linux *env, struct emu_env_linux_syscall *syscall) 44 { 45 printf("sys_exit(2)\n"); 46 struct emu_cpu *c = emu_cpu_get(env->emu); 47 emu_cpu_reg32_set(c, eax, 0); 48 return 0; 49 } 50 51 int32_t env_linux_hook_fork(struct emu_env_linux *env, struct emu_env_linux_syscall *syscall) 52 { 53 printf("sys_fork(2)\n"); 54 struct emu_cpu *c = emu_cpu_get(env->emu); 55 emu_cpu_reg32_set(c, eax, 4711); 56 return 0; 57 } 42 58 43 59 int32_t env_linux_hook_execve(struct emu_env_linux *env, struct emu_env_linux_syscall *syscall) … … 186 202 } 187 203 188 int32_t env_linux_hook_fork(struct emu_env_linux *env, struct emu_env_linux_syscall *syscall) 189 { 190 printf("sys_fork(2)\n"); 191 struct emu_cpu *c = emu_cpu_get(env->emu); 192 emu_cpu_reg32_set(c, eax, 4711); 193 return 0; 194 } 204
