aboutsummaryrefslogtreecommitdiff
path: root/lib/substitute-internal.h
diff options
context:
space:
mode:
authorcomex2015-01-21 18:24:08 -0500
committercomex2015-01-21 18:24:08 -0500
commit2795a1a5b34bffc350f9366fcf05a6165067eafa (patch)
tree23d2a31654b4306637fc56796d82962abec3a337 /lib/substitute-internal.h
parentadd substitute_strerror (diff)
downloadsubstitute-2795a1a5b34bffc350f9366fcf05a6165067eafa.tar.gz
stopping other threads.
Diffstat (limited to '')
-rw-r--r--lib/substitute-internal.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/substitute-internal.h b/lib/substitute-internal.h
index f078688..80052f9 100644
--- a/lib/substitute-internal.h
+++ b/lib/substitute-internal.h
@@ -64,9 +64,15 @@ enum {
* 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
+
+/* Stop the world; return token to be used for applying PC patches and resuming. */
+int stop_other_threads(void **token_ptr);
+int apply_pc_patch_callback(void *token,
+ uintptr_t (*pc_patch_callback)(void *ctx, uintptr_t pc),
+ void *ctx);
+int resume_other_threads(void *token);