aboutsummaryrefslogtreecommitdiff
path: root/lib/execmem.h
diff options
context:
space:
mode:
authorcomex2015-01-24 20:04:20 -0500
committercomex2015-01-24 20:06:46 -0500
commitd89af8f6d5f3b971dda663081c03d790437c2f03 (patch)
tree2c17f0247ff3eef7d4338cadb069b1334ba785c6 /lib/execmem.h
parentCurrent version of generic-dis-*, for posterity (I'm sure it'll need to be ch... (diff)
downloadsubstitute-d89af8f6d5f3b971dda663081c03d790437c2f03.tar.gz
Add function to deal with mprotecting RW and back. A bit more complex than the minimum would be...
(and minor build fixes)
Diffstat (limited to 'lib/execmem.h')
-rw-r--r--lib/execmem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/execmem.h b/lib/execmem.h
new file mode 100644
index 0000000..f46b7d6
--- /dev/null
+++ b/lib/execmem.h
@@ -0,0 +1,3 @@
+#pragma once
+#include <stdlib.h>
+int execmem_write(void *dest, const void *src, size_t len);