aboutsummaryrefslogtreecommitdiff
path: root/lib/substitute.h
diff options
context:
space:
mode:
authorcomex2015-01-24 21:59:37 -0500
committercomex2015-01-24 21:59:37 -0500
commit98afb15eaa8f8c31bf5763de0e3c83a845414b0a (patch)
treee603aae961ead4e596fc994ed06df884eaee7b9a /lib/substitute.h
parentAdd function to deal with mprotecting RW and back. A bit more complex than t... (diff)
downloadsubstitute-98afb15eaa8f8c31bf5763de0e3c83a845414b0a.tar.gz
...
Diffstat (limited to '')
-rw-r--r--lib/substitute.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/substitute.h b/lib/substitute.h
index 95f8436..250106b 100644
--- a/lib/substitute.h
+++ b/lib/substitute.h
@@ -51,6 +51,10 @@ enum {
* SUBSTITUTE_DONT_STOP_THREADS */
SUBSTITUTE_ERR_NOT_ON_MAIN_THREAD,
+ /* substitute_hook_functions: destination was out of range, and mmap
+ * wouldn't give us a trampoline in range */
+ SUBSTITUTE_ERR_OUT_OF_RANGE,
+
/* substitute_interpose_imports: couldn't redo relocation for an import
* because the type was unknown */
SUBSTITUTE_ERR_UNKNOWN_RELOCATION_TYPE,
@@ -66,7 +70,7 @@ enum {
struct substitute_function_hook {
void *function;
void *replacement;
- void *old_ptr; /* optional: out pointer to function pointer to call old impl */
+ void *old_ptr; /* optional: out *pointer* to function pointer to call old impl */
};
/* Get a string representation for a SUBSTITUTE_* error code. */