]>
Commit | Line | Data |
---|---|---|
b6961e53 JF |
1 | #include <dlfcn.h> |
2 | #include <mach/mach.h> | |
b166b11b | 3 | #include <sys/types.h> |
b6961e53 JF |
4 | |
5 | struct Baton { | |
6 | void (*_pthread_set_self)(pthread_t); | |
b166b11b | 7 | |
b6961e53 | 8 | int (*pthread_create)(pthread_t *, const pthread_attr_t *, void *(*)(void *), void *); |
b166b11b JF |
9 | int (*pthread_join)(pthread_t, void **); |
10 | ||
b6961e53 | 11 | void *(*dlopen)(const char *, int); |
b166b11b JF |
12 | void *(*dlsym)(void *, const char *); |
13 | ||
b6961e53 JF |
14 | mach_port_t (*mach_thread_self)(); |
15 | kern_return_t (*thread_terminate)(thread_act_t); | |
b166b11b JF |
16 | |
17 | pid_t pid; | |
b6961e53 JF |
18 | char library[]; |
19 | }; |