1 #include <sys/mman.h> 2 #include "syscall.h" 3 dummy(void)4static void dummy(void) { } 5 weak_alias(dummy, __vm_wait); 6 __munmap(void * start,size_t len)7int __munmap(void *start, size_t len) 8 { 9 __vm_wait(); 10 return syscall(SYS_munmap, start, len); 11 } 12 13 #ifdef HOOK_ENABLE 14 int __libc_munmap(void*, size_t); 15 weak_alias(__munmap, __libc_munmap); 16 #else 17 weak_alias(__munmap, munmap); 18 #endif 19