Changeset 1477

Show
Ignore:
Timestamp:
12/02/07 23:09:45 (9 months ago)
Author:
common
Message:

libemu

  • sctest, hook linux syscall exit()
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libemu/trunk/testsuite/sctest.c

    r1442 r1477  
    16081608} 
    16091609 
     1610int32_t userhook_exit(struct emu_env_linux *env, struct emu_env_linux_syscall *syscall) 
     1611{ 
     1612        printf("Hook me Captain Cook!\n"); 
     1613        printf("%s:%i %s\n",__FILE__,__LINE__,__FUNCTION__); 
     1614        opts.steps = 0; 
     1615        return 0; 
     1616} 
    16101617 
    16111618int test(int n) 
     
    16331640        emu_env_w32_export_hook(env, NULL, "ExitProcess", user_hook_ExitProcess, NULL); 
    16341641        emu_env_w32_export_hook(env, NULL, "ExitThread", user_hook_ExitThread, NULL); 
     1642 
     1643        emu_env_linux_syscall_hook(lenv, "exit", userhook_exit, NULL); 
    16351644 
    16361645/*      uint32_t x;