diff options
author | comex | 2015-01-20 19:49:44 -0500 |
---|---|---|
committer | comex | 2015-01-20 19:54:09 -0500 |
commit | ba44cef0bfa106de3a4406fdaed071461f87a6f3 (patch) | |
tree | 738895cae66ba2bf1e7369b8a17a2d8d4a433293 /lib/substitute-internal.h | |
parent | more reorganization - move OS X/iOS specific stuff into its own directory (diff) | |
download | substitute-ba44cef0bfa106de3a4406fdaed071461f87a6f3.tar.gz |
progress on injection
Diffstat (limited to '')
-rw-r--r-- | lib/substitute-internal.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/substitute-internal.h b/lib/substitute-internal.h index 0f3e0ad..b21a190 100644 --- a/lib/substitute-internal.h +++ b/lib/substitute-internal.h @@ -53,3 +53,22 @@ typedef struct section section_x; #elif defined(TARGET_arm64) #include "arm64/misc.h" #endif + +#ifdef __APPLE__ +/* This could graduate to a public API but is not yet. */ +enum { + SUBSTITUTE_DIP_INJECT_MAIN_THREAD, /* not yet */ +}; + +enum { + /* substitute_dlopen_in_pid: task_for_pid failed; on OS X the reasons this + * can happen are really complicated and dumb, but generally one solution + * is to be root */ + SUBSTITUTE_ERR_TASK_FOR_PID = 1000, + + /* substitute_dlopen_in_pid: something didn't work */ + SUBSTITUTE_ERR_MISC, +}; + +int substitute_dlopen_in_pid(int pid, const char *filename, int options, char **error); +#endif |