1 #ifndef __EXEC_PLATFORM_H
2 #define __EXEC_PLATFORM_H
5 /* Android is not a true Linux ;-) */
10 /* On Darwin this definition is required by ucontext.h (which is marked as deprecated) */
17 #define LIBC_NAME "libc.so.6"
21 #define LIBC_NAME "libSystem.dylib"
25 #define LIBC_NAME "libc.so"
30 void (*exit
)(int status
);
31 #ifdef HAVE_SWAPCONTEXT
32 int (*getcontext
)(ucontext_t
*ucp
);
33 void (*makecontext
)(ucontext_t
*ucp
, void *func(), int argc
, ...);
34 int (*swapcontext
)(ucontext_t
*oucp
, ucontext_t
*ucp
);
38 struct Exec_PlatformData
41 struct LibCInterface
*SysIFace
;
44 #define HostLibBase PD(SysBase).HostLibBase
46 #endif /* __EXEC_PLATFORM_H */