Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
wmman.h File Reference

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

Definition at line 41 of file wmman.h.

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

Definition at line 52 of file wmman.h.

#define MAP_FIXED   0x04

Definition at line 39 of file wmman.h.

#define MAP_NORESERVE   0x20

Definition at line 42 of file wmman.h.

#define MAP_PRIVATE   0x02

Definition at line 38 of file wmman.h.

#define MAP_SHARED   0x01

Definition at line 37 of file wmman.h.

#define PROT_EXEC   0x04

Definition at line 34 of file wmman.h.

#define PROT_NONE   0x00

Definition at line 31 of file wmman.h.

#define PROT_READ   0x01

Definition at line 32 of file wmman.h.

#define PROT_WRITE   0x02

Definition at line 33 of file wmman.h.

Function Documentation

LIB_API unsigned MemoryProtectionFromPosix ( int  prot)

Definition at line 30 of file wmman.cpp.

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

Definition at line 202 of file wmman.cpp.

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

Definition at line 67 of file wmman.cpp.

int munmap ( void *  start,
size_t  len 
)

Definition at line 222 of file wmman.cpp.