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


The file that provides the memory map functions.  


\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{evil__mman_8h_a6a982b48b8d3eb8eccd17e0d54ee5379}\label{evil__mman_8h_a6a982b48b8d3eb8eccd17e0d54ee5379}} 
\#define \mbox{\hyperlink{evil__mman_8h_a6a982b48b8d3eb8eccd17e0d54ee5379}{P\+R\+O\+T\+\_\+\+N\+O\+NE}}~0x00
\begin{DoxyCompactList}\small\item\em Data can not be accessed. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{evil__mman_8h_a15bf68ce8b590838b3a5c0b639d8d519}\label{evil__mman_8h_a15bf68ce8b590838b3a5c0b639d8d519}} 
\#define \mbox{\hyperlink{evil__mman_8h_a15bf68ce8b590838b3a5c0b639d8d519}{P\+R\+O\+T\+\_\+\+R\+E\+AD}}~0x01
\begin{DoxyCompactList}\small\item\em Data can be read. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{evil__mman_8h_a2a79c8ceefb8fc25a940ae07a3d94429}\label{evil__mman_8h_a2a79c8ceefb8fc25a940ae07a3d94429}} 
\#define \mbox{\hyperlink{evil__mman_8h_a2a79c8ceefb8fc25a940ae07a3d94429}{P\+R\+O\+T\+\_\+\+W\+R\+I\+TE}}~0x02
\begin{DoxyCompactList}\small\item\em Data can be written. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{evil__mman_8h_a77848f068638e916c72cd543f5ecb815}\label{evil__mman_8h_a77848f068638e916c72cd543f5ecb815}} 
\#define \mbox{\hyperlink{evil__mman_8h_a77848f068638e916c72cd543f5ecb815}{P\+R\+O\+T\+\_\+\+E\+X\+EC}}~0x04
\begin{DoxyCompactList}\small\item\em Data can be executed. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{evil__mman_8h_a57028962c2a7c0c802ca6613492f2ef3}\label{evil__mman_8h_a57028962c2a7c0c802ca6613492f2ef3}} 
\#define \mbox{\hyperlink{evil__mman_8h_a57028962c2a7c0c802ca6613492f2ef3}{M\+A\+P\+\_\+\+S\+H\+A\+R\+ED}}~0x0001
\begin{DoxyCompactList}\small\item\em Changes are shared. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{evil__mman_8h_a398ef47a991a44389aa9818c98a28d24}\label{evil__mman_8h_a398ef47a991a44389aa9818c98a28d24}} 
\#define \mbox{\hyperlink{evil__mman_8h_a398ef47a991a44389aa9818c98a28d24}{M\+A\+P\+\_\+\+P\+R\+I\+V\+A\+TE}}~0x0002
\begin{DoxyCompactList}\small\item\em Changes are private. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{evil__mman_8h_a387ec707b30c5e78cf20a14517a63b96}\label{evil__mman_8h_a387ec707b30c5e78cf20a14517a63b96}} 
\#define \mbox{\hyperlink{evil__mman_8h_a387ec707b30c5e78cf20a14517a63b96}{M\+A\+P\+\_\+\+F\+I\+X\+ED}}~0x0010
\begin{DoxyCompactList}\small\item\em Interpret the address (addr) exactly. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{evil__mman_8h_a298ddbffafbe6cf941b92092edfb86a5}\label{evil__mman_8h_a298ddbffafbe6cf941b92092edfb86a5}} 
\#define {\bfseries M\+A\+P\+\_\+\+A\+N\+ON}~0x0020
\item 
\mbox{\Hypertarget{evil__mman_8h_ae4f86bff73414c5fc08c058f957212f0}\label{evil__mman_8h_ae4f86bff73414c5fc08c058f957212f0}} 
\#define {\bfseries M\+A\+P\+\_\+\+A\+N\+O\+N\+Y\+M\+O\+US}~M\+A\+P\+\_\+\+A\+N\+ON
\item 
\mbox{\Hypertarget{evil__mman_8h_a8523dcf952f6ff059a3bed717e4f1296}\label{evil__mman_8h_a8523dcf952f6ff059a3bed717e4f1296}} 
\#define \mbox{\hyperlink{evil__mman_8h_a8523dcf952f6ff059a3bed717e4f1296}{M\+A\+P\+\_\+\+F\+A\+I\+L\+ED}}~((void $\ast$)-\/1)
\begin{DoxyCompactList}\small\item\em Error return from \mbox{\hyperlink{group__Evil__Mman_ga1a69b9ee2b96ed0934c9f9c433f348ce}{mmap()}}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{evil__mman_8h_ac24e9c0562704d17896d14869e748fcc}\label{evil__mman_8h_ac24e9c0562704d17896d14869e748fcc}} 
\#define {\bfseries H\+A\+V\+E\+\_\+\+M\+M\+AP}~1
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void $\ast$ \mbox{\hyperlink{group__Evil__Mman_ga1a69b9ee2b96ed0934c9f9c433f348ce}{mmap}} (void $\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 
int \mbox{\hyperlink{group__Evil__Mman_ga01ff21bc70401bee9b80c350763087f7}{munmap}} (void $\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 
int \mbox{\hyperlink{group__Evil__Mman_gaa0752189f14ca11ba413fc944ae08b9c}{mprotect}} (void $\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. 

