\doxysection{evil\+\_\+mman.\+h File Reference}
\hypertarget{evil__mman_8h}{}\label{evil__mman_8h}\index{evil\_mman.h@{evil\_mman.h}}


The file that provides the memory map functions.  


\doxysubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{evil__mman_8h_a6a982b48b8d3eb8eccd17e0d54ee5379}\label{evil__mman_8h_a6a982b48b8d3eb8eccd17e0d54ee5379} 
\#define {\bfseries PROT\+\_\+\+NONE}~0x00
\begin{DoxyCompactList}\small\item\em Data can not be accessed. \end{DoxyCompactList}\item 
\Hypertarget{evil__mman_8h_a15bf68ce8b590838b3a5c0b639d8d519}\label{evil__mman_8h_a15bf68ce8b590838b3a5c0b639d8d519} 
\#define {\bfseries PROT\+\_\+\+READ}~0x01
\begin{DoxyCompactList}\small\item\em Data can be read. \end{DoxyCompactList}\item 
\Hypertarget{evil__mman_8h_a2a79c8ceefb8fc25a940ae07a3d94429}\label{evil__mman_8h_a2a79c8ceefb8fc25a940ae07a3d94429} 
\#define {\bfseries PROT\+\_\+\+WRITE}~0x02
\begin{DoxyCompactList}\small\item\em Data can be written. \end{DoxyCompactList}\item 
\Hypertarget{evil__mman_8h_a77848f068638e916c72cd543f5ecb815}\label{evil__mman_8h_a77848f068638e916c72cd543f5ecb815} 
\#define {\bfseries PROT\+\_\+\+EXEC}~0x04
\begin{DoxyCompactList}\small\item\em Data can be executed. \end{DoxyCompactList}\item 
\Hypertarget{evil__mman_8h_a57028962c2a7c0c802ca6613492f2ef3}\label{evil__mman_8h_a57028962c2a7c0c802ca6613492f2ef3} 
\#define {\bfseries MAP\+\_\+\+SHARED}~0x0001
\begin{DoxyCompactList}\small\item\em Changes are shared. \end{DoxyCompactList}\item 
\Hypertarget{evil__mman_8h_a398ef47a991a44389aa9818c98a28d24}\label{evil__mman_8h_a398ef47a991a44389aa9818c98a28d24} 
\#define {\bfseries MAP\+\_\+\+PRIVATE}~0x0002
\begin{DoxyCompactList}\small\item\em Changes are private. \end{DoxyCompactList}\item 
\Hypertarget{evil__mman_8h_a387ec707b30c5e78cf20a14517a63b96}\label{evil__mman_8h_a387ec707b30c5e78cf20a14517a63b96} 
\#define {\bfseries MAP\+\_\+\+FIXED}~0x0010
\begin{DoxyCompactList}\small\item\em Interpret the address (addr) exactly. \end{DoxyCompactList}\item 
\Hypertarget{evil__mman_8h_a298ddbffafbe6cf941b92092edfb86a5}\label{evil__mman_8h_a298ddbffafbe6cf941b92092edfb86a5} 
\#define {\bfseries MAP\+\_\+\+ANON}~0x0020
\item 
\Hypertarget{evil__mman_8h_ae4f86bff73414c5fc08c058f957212f0}\label{evil__mman_8h_ae4f86bff73414c5fc08c058f957212f0} 
\#define {\bfseries MAP\+\_\+\+ANONYMOUS}~MAP\+\_\+\+ANON
\item 
\Hypertarget{evil__mman_8h_a8523dcf952f6ff059a3bed717e4f1296}\label{evil__mman_8h_a8523dcf952f6ff059a3bed717e4f1296} 
\#define {\bfseries MAP\+\_\+\+FAILED}~((void \texorpdfstring{$\ast$}{*})-\/1)
\begin{DoxyCompactList}\small\item\em Error return from \doxylink{group__Evil__Mman_ga154607aa818931eddbf0bdf21ee4dc61}{mmap()}. \end{DoxyCompactList}\item 
\Hypertarget{evil__mman_8h_ac24e9c0562704d17896d14869e748fcc}\label{evil__mman_8h_ac24e9c0562704d17896d14869e748fcc} 
\#define {\bfseries HAVE\+\_\+\+MMAP}~1
\end{DoxyCompactItemize}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
EVIL\+\_\+\+API void \texorpdfstring{$\ast$}{*} \mbox{\hyperlink{group__Evil__Mman_ga154607aa818931eddbf0bdf21ee4dc61}{mmap}} (void \texorpdfstring{$\ast$}{*}addr, size\+\_\+t len, int prot, int flags, int fd, off\+\_\+t offset)
\begin{DoxyCompactList}\small\item\em Creates or opens a named or unnamed file mapping object for a specified file and maps a view of a file mapping into the address space of a calling process. \end{DoxyCompactList}\item 
EVIL\+\_\+\+API int \mbox{\hyperlink{group__Evil__Mman_gaee9b4343ae30d988ed11c979c814a258}{munmap}} (void \texorpdfstring{$\ast$}{*}addr, size\+\_\+t len)
\begin{DoxyCompactList}\small\item\em Unmaps a mapped view of a file from the calling process\textquotesingle{}s address space. \end{DoxyCompactList}\item 
EVIL\+\_\+\+API int \mbox{\hyperlink{group__Evil__Mman_ga788d3e5f047b7494fffdaef2c3c9dba2}{mprotect}} (void \texorpdfstring{$\ast$}{*}addr, size\+\_\+t len, int prot)
\begin{DoxyCompactList}\small\item\em Changes protection for the calling process\textquotesingle{} address. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
The file that provides the memory map functions. 

