diff options
Diffstat (limited to 'src/_forced/mprotect.h')
-rw-r--r-- | src/_forced/mprotect.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/_forced/mprotect.h b/src/_forced/mprotect.h new file mode 100644 index 00000000..5abbe5ed --- /dev/null +++ b/src/_forced/mprotect.h @@ -0,0 +1,9 @@ +#ifdef _POSIX_C_SOURCE +#include <sys/mman.h> +#else +#include "_syscall.h" +#define mprotect(__ptr, __len, __prot) __syscall(__sys_mprotect, __ptr, __len, __prot) +#define PROT_NONE 0x0 +#define PROT_READ 0x1 +#define PROT_WRITE 0x2 +#endif |