Function Interposing on OSX Mavericks
问题 I followed the directions exactly as they are on this site here http://www.newosxbook.com/src.jl?tree=listings&file=4-5-interpose.c Here is the code from that page #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <stdlib.h> #include <malloc/malloc.h> // for malloc_printf() // Note: Compile with GCC, not cc (important) // // // This is the expected interpose structure typedef struct interpose_s { void *new_func; void *orig_func; } interpose_t; // Our prototypes - requires