33#define PROT_WRITE 0x02
37#define MAP_SHARED 0x01
38#define MAP_PRIVATE 0x02
41#define MAP_ANONYMOUS 0x10
42#define MAP_NORESERVE 0x20
52#define MAP_FAILED ((void*)intptr_t(-1))
54extern void*
mmap(
void* start,
size_t len,
int prot,
int flags,
int fd,
off_t offset);
55extern int munmap(
void* start,
size_t len);
57extern int mprotect(
void* addr,
size_t len,
int prot);
int munmap(void *start, size_t len)
Definition: wmman.cpp:222
unsigned MemoryProtectionFromPosix(int prot)
Definition: wmman.cpp:30
int mprotect(void *addr, size_t len, int prot)
Definition: wmman.cpp:67
void * mmap(void *start, size_t len, int prot, int flags, int fd, off_t offset)
Definition: wmman.cpp:202
__int64 off_t
Definition: wposix_types.h:91