Changeset 1469
- Timestamp:
- 12/02/07 17:59:41 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libemu/trunk/include/emu/environment/linux/env_linux_syscall_hooks.h
r1436 r1469 25 25 * 26 26 *******************************************************************************/ 27 28 /* 2 fork */ 29 int32_t env_linux_hook_fork(struct emu_env_linux *env, struct emu_env_linux_syscall *syscall); 27 30 28 31 /* 11 execve */ libemu/trunk/include/emu/environment/linux/env_linux_syscalls.h
r1436 r1469 258 258 { "fdatasync" , NULL}, 259 259 { "flock" , NULL}, 260 { "fork" , NULL},260 { "fork" , env_linux_hook_fork}, 261 261 { "fstat" , NULL}, 262 262 { "fstatfs" , NULL}, libemu/trunk/src/environment/linux/env_linux_syscall_hooks.c
r1436 r1469 186 186 } 187 187 188 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 }
