Changeset 1469

Show
Ignore:
Timestamp:
12/02/07 17:59:41 (9 months ago)
Author:
common
Message:

libemu

  • env linux hook fork(), return 4711
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libemu/trunk/include/emu/environment/linux/env_linux_syscall_hooks.h

    r1436 r1469  
    2525 * 
    2626 *******************************************************************************/ 
     27 
     28/* 2 fork */ 
     29int32_t env_linux_hook_fork(struct emu_env_linux *env, struct emu_env_linux_syscall *syscall); 
    2730 
    2831/* 11 execve */ 
  • libemu/trunk/include/emu/environment/linux/env_linux_syscalls.h

    r1436 r1469  
    258258        { "fdatasync"                           , NULL}, 
    259259        { "flock"                               , NULL}, 
    260         { "fork"                                , NULL}, 
     260        { "fork"                                , env_linux_hook_fork}, 
    261261        { "fstat"                               , NULL}, 
    262262        { "fstatfs"                             , NULL}, 
  • libemu/trunk/src/environment/linux/env_linux_syscall_hooks.c

    r1436 r1469  
    186186} 
    187187 
    188  
     188int32_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