]> git.saurik.com Git - apple/libsystem.git/blob - CompatibilityHacks.c
Libsystem-159.1.tar.gz
[apple/libsystem.git] / CompatibilityHacks.c
1 // See: <rdar://problem/8289209>, <rdar://problem/8351271>, <rdar://problem/8359348>
2
3 #include <dlfcn.h>
4
5 #if __i386__ || __x86_64__
6
7 #define SYM(sym) \
8 __asm__(".globl R8289209$_" #sym "; R8289209$_" #sym ": jmp _" #sym);
9
10 /****************/
11
12 SYM(close);
13 SYM(fork);
14 SYM(fsync);
15 SYM(getattrlist);
16 SYM(getrlimit);
17 SYM(getxattr);
18 SYM(open);
19 SYM(pthread_attr_destroy);
20 SYM(pthread_attr_init);
21 SYM(pthread_attr_setdetachstate);
22 SYM(pthread_create);
23 SYM(pthread_mutex_lock);
24 SYM(pthread_mutex_unlock);
25 SYM(pthread_self);
26 SYM(ptrace);
27 SYM(read);
28 SYM(setattrlist);
29 SYM(setrlimit);
30 SYM(sigaction);
31 SYM(stat);
32 SYM(sysctl);
33 SYM(time);
34 SYM(unlink);
35 SYM(write);
36
37 #endif