Pyrogenesis  trunk
Macros | Functions
wmman.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PROT_NONE   0x00
 
#define PROT_READ   0x01
 
#define PROT_WRITE   0x02
 
#define PROT_EXEC   0x04
 
#define MAP_SHARED   0x01
 
#define MAP_PRIVATE   0x02
 
#define MAP_FIXED   0x04
 
#define MAP_ANONYMOUS   0x10
 
#define MAP_NORESERVE   0x20
 
#define MAP_FAILED   ((void*)intptr_t(-1))
 

Functions

void * mmap (void *start, size_t len, int prot, int flags, int fd, off_t offset)
 
int munmap (void *start, size_t len)
 
int mprotect (void *addr, size_t len, int prot)
 
LIB_API unsigned MemoryProtectionFromPosix (int prot)
 

Macro Definition Documentation

#define MAP_ANONYMOUS   0x10
#define MAP_FAILED   ((void*)intptr_t(-1))
#define MAP_FIXED   0x04
#define MAP_NORESERVE   0x20
#define MAP_PRIVATE   0x02
#define MAP_SHARED   0x01
#define PROT_EXEC   0x04
#define PROT_NONE   0x00
#define PROT_READ   0x01
#define PROT_WRITE   0x02

Function Documentation

LIB_API unsigned MemoryProtectionFromPosix ( int  prot)
void* mmap ( void *  start,
size_t  len,
int  prot,
int  flags,
int  fd,
off_t  offset 
)
int mprotect ( void *  addr,
size_t  len,
int  prot 
)
int munmap ( void *  start,
size_t  len 
)