summaryrefslogtreecommitdiff
path: root/src/_forced/mprotect.h
blob: 5abbe5edae502c9dd763d8f53961b727f7a2eaba (plain)
1
2
3
4
5
6
7
8
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