\hypertarget{group__Evil__Unistd__Group}{}\section{Unistd.\+h functions}
\label{group__Evil__Unistd__Group}\index{Unistd.\+h functions@{Unistd.\+h functions}}


This header provides functions ported from Unix in unistd.\+h.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
double \mbox{\hyperlink{group__Evil__Unistd__Group_ga618a57ccf0e29811e85de383ddb086cb}{evil\+\_\+time\+\_\+get}} (void)
\begin{DoxyCompactList}\small\item\em Return the time spent since the Evil library has been initialized. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{group__Evil__Unistd__Group_ga3a7e8de0f694e3f44d1760a2680b41ad}{evil\+\_\+getcwd}} (char $\ast$buffer, size\+\_\+t size)
\begin{DoxyCompactList}\small\item\em Get the current directory. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{group__Evil__Unistd__Group_gaade6baa64ddc1f9f190ccdb73358541e}{evil\+\_\+sockets\+\_\+init}} (void)
\begin{DoxyCompactList}\small\item\em Initiates the use of Windows sockets. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Evil__Unistd__Group_ga64c9a315ea785ca30679c479a349d433}{evil\+\_\+sockets\+\_\+shutdown}} (void)
\begin{DoxyCompactList}\small\item\em Shutdown the Windows socket system. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{group__Evil__Unistd__Group_gadbb68c1c2c5e30137d5a92a08bfdbf6d}{evil\+\_\+pipe}} (int $\ast$fds)
\begin{DoxyCompactList}\small\item\em Create a pair of sockets. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This header provides functions ported from Unix in unistd.\+h. 



\subsection{Function Documentation}
\mbox{\Hypertarget{group__Evil__Unistd__Group_ga618a57ccf0e29811e85de383ddb086cb}\label{group__Evil__Unistd__Group_ga618a57ccf0e29811e85de383ddb086cb}} 
\index{Unistd.\+h functions@{Unistd.\+h functions}!evil\+\_\+time\+\_\+get@{evil\+\_\+time\+\_\+get}}
\index{evil\+\_\+time\+\_\+get@{evil\+\_\+time\+\_\+get}!Unistd.\+h functions@{Unistd.\+h functions}}
\subsubsection{\texorpdfstring{evil\+\_\+time\+\_\+get()}{evil\_time\_get()}}
{\footnotesize\ttfamily double evil\+\_\+time\+\_\+get (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Return the time spent since the Evil library has been initialized. 

\begin{DoxyReturn}{Returns}
The time spent since the Evil library has been initialized.
\end{DoxyReturn}
This function returns the time spent since the Evil library has been initialized. It uses a high-\/resolution timer and then can have a precision up to the nano-\/second. The precision is processor dependant. This function can be used to benchmark parts of code in with high precision.

Conformity\+: Not appliclable.

Supported OS\+: Windows XP. 

Referenced by ecore\+\_\+time\+\_\+get().

\mbox{\Hypertarget{group__Evil__Unistd__Group_ga3a7e8de0f694e3f44d1760a2680b41ad}\label{group__Evil__Unistd__Group_ga3a7e8de0f694e3f44d1760a2680b41ad}} 
\index{Unistd.\+h functions@{Unistd.\+h functions}!evil\+\_\+getcwd@{evil\+\_\+getcwd}}
\index{evil\+\_\+getcwd@{evil\+\_\+getcwd}!Unistd.\+h functions@{Unistd.\+h functions}}
\subsubsection{\texorpdfstring{evil\+\_\+getcwd()}{evil\_getcwd()}}
{\footnotesize\ttfamily char$\ast$ evil\+\_\+getcwd (\begin{DoxyParamCaption}\item[{char $\ast$}]{buffer,  }\item[{size\+\_\+t}]{size }\end{DoxyParamCaption})}



Get the current directory. 


\begin{DoxyParams}{Parameters}
{\em buffer} & Buffer to store the current directory. \\
\hline
{\em size} & Size of the buffer. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The current directory.
\end{DoxyReturn}
Use the \+\_\+getcwd function in M\+S\+V\+C\+RT.

Conformity\+: Almost P\+O\+S\+I\+X.\+1 (no errno set)

Supported OS\+: Windows XP. \mbox{\Hypertarget{group__Evil__Unistd__Group_gaade6baa64ddc1f9f190ccdb73358541e}\label{group__Evil__Unistd__Group_gaade6baa64ddc1f9f190ccdb73358541e}} 
\index{Unistd.\+h functions@{Unistd.\+h functions}!evil\+\_\+sockets\+\_\+init@{evil\+\_\+sockets\+\_\+init}}
\index{evil\+\_\+sockets\+\_\+init@{evil\+\_\+sockets\+\_\+init}!Unistd.\+h functions@{Unistd.\+h functions}}
\subsubsection{\texorpdfstring{evil\+\_\+sockets\+\_\+init()}{evil\_sockets\_init()}}
{\footnotesize\ttfamily int evil\+\_\+sockets\+\_\+init (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Initiates the use of Windows sockets. 

\begin{DoxyReturn}{Returns}
1 on success, 0 otherwise.
\end{DoxyReturn}
Initiates the use of Windows sockets. If the function succeeds, it returns 1, otherwise it returns 0.

Conformity\+: Non applicable.

Supported OS\+: Windows XP. 

Referenced by evil\+\_\+init().

\mbox{\Hypertarget{group__Evil__Unistd__Group_ga64c9a315ea785ca30679c479a349d433}\label{group__Evil__Unistd__Group_ga64c9a315ea785ca30679c479a349d433}} 
\index{Unistd.\+h functions@{Unistd.\+h functions}!evil\+\_\+sockets\+\_\+shutdown@{evil\+\_\+sockets\+\_\+shutdown}}
\index{evil\+\_\+sockets\+\_\+shutdown@{evil\+\_\+sockets\+\_\+shutdown}!Unistd.\+h functions@{Unistd.\+h functions}}
\subsubsection{\texorpdfstring{evil\+\_\+sockets\+\_\+shutdown()}{evil\_sockets\_shutdown()}}
{\footnotesize\ttfamily void evil\+\_\+sockets\+\_\+shutdown (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Shutdown the Windows socket system. 

Shutdown the Windows socket system.

Conformity\+: Non applicable.

Supported OS\+: Windows XP. 

Referenced by evil\+\_\+shutdown().

\mbox{\Hypertarget{group__Evil__Unistd__Group_gadbb68c1c2c5e30137d5a92a08bfdbf6d}\label{group__Evil__Unistd__Group_gadbb68c1c2c5e30137d5a92a08bfdbf6d}} 
\index{Unistd.\+h functions@{Unistd.\+h functions}!evil\+\_\+pipe@{evil\+\_\+pipe}}
\index{evil\+\_\+pipe@{evil\+\_\+pipe}!Unistd.\+h functions@{Unistd.\+h functions}}
\subsubsection{\texorpdfstring{evil\+\_\+pipe()}{evil\_pipe()}}
{\footnotesize\ttfamily int evil\+\_\+pipe (\begin{DoxyParamCaption}\item[{int $\ast$}]{fds }\end{DoxyParamCaption})}



Create a pair of sockets. 


\begin{DoxyParams}{Parameters}
{\em fds} & A pointer that contains two sockets.\\
\hline
\end{DoxyParams}
Create a pair of sockets that can be use with select(). Hence, \mbox{\hyperlink{group__Evil__Unistd__Group_gaade6baa64ddc1f9f190ccdb73358541e}{evil\+\_\+sockets\+\_\+init()}} must have been caled at least once before. Contrary to Unix, that functions does not create a pair of file descriptors.

Conformity\+: Not applicable.

Supported OS\+: Windows XP. 