X-Git-Url: https://git.saurik.com/apple/libsystem.git/blobdiff_plain/5f1d2ce37f70aaa93b45a918d460dcc466533d84..ec8f0a046faa10b0c52155370aba6cc2ca0c4e64:/CompatibilityHacks.c?ds=inline diff --git a/CompatibilityHacks.c b/CompatibilityHacks.c new file mode 100644 index 0000000..ac9bb5f --- /dev/null +++ b/CompatibilityHacks.c @@ -0,0 +1,37 @@ +// See: , , + +#include + +#if __i386__ || __x86_64__ + +#define SYM(sym) \ + __asm__(".globl R8289209$_" #sym "; R8289209$_" #sym ": jmp _" #sym); + +/****************/ + +SYM(close); +SYM(fork); +SYM(fsync); +SYM(getattrlist); +SYM(getrlimit); +SYM(getxattr); +SYM(open); +SYM(pthread_attr_destroy); +SYM(pthread_attr_init); +SYM(pthread_attr_setdetachstate); +SYM(pthread_create); +SYM(pthread_mutex_lock); +SYM(pthread_mutex_unlock); +SYM(pthread_self); +SYM(ptrace); +SYM(read); +SYM(setattrlist); +SYM(setrlimit); +SYM(sigaction); +SYM(stat); +SYM(sysctl); +SYM(time); +SYM(unlink); +SYM(write); + +#endif