Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
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)
 
unsigned MemoryProtectionFromPosix (int prot)
 

Macro Definition Documentation

◆ MAP_ANONYMOUS

#define MAP_ANONYMOUS   0x10

◆ MAP_FAILED

#define MAP_FAILED   ((void*)intptr_t(-1))

◆ MAP_FIXED

#define MAP_FIXED   0x04

◆ MAP_NORESERVE

#define MAP_NORESERVE   0x20

◆ MAP_PRIVATE

#define MAP_PRIVATE   0x02

◆ MAP_SHARED

#define MAP_SHARED   0x01

◆ PROT_EXEC

#define PROT_EXEC   0x04

◆ PROT_NONE

#define PROT_NONE   0x00

◆ PROT_READ

#define PROT_READ   0x01

◆ PROT_WRITE

#define PROT_WRITE   0x02

Function Documentation

◆ MemoryProtectionFromPosix()

unsigned MemoryProtectionFromPosix ( int  prot)

◆ mmap()

void * mmap ( void *  start,
size_t  len,
int  prot,
int  flags,
int  fd,
off_t  offset 
)

◆ mprotect()

int mprotect ( void *  addr,
size_t  len,
int  prot 
)

◆ munmap()

int munmap ( void *  start,
size_t  len 
)