\hypertarget{group__Evil__Dirent__Group}{}\section{Dirent.\+h functions}
\label{group__Evil__Dirent__Group}\index{Dirent.\+h functions@{Dirent.\+h functions}}


This header provides functions ported from Unix in \mbox{\hyperlink{dirent_8h}{dirent.\+h}}.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{structdirent}{dirent}}
\begin{DoxyCompactList}\small\item\em A structure that describes a directory stream. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Evil__Dirent__Group_ga293ce58a2d39f35c52f7f4516a857057}\label{group__Evil__Dirent__Group_ga293ce58a2d39f35c52f7f4516a857057}} 
\#define \mbox{\hyperlink{group__Evil__Dirent__Group_ga293ce58a2d39f35c52f7f4516a857057}{D\+T\+\_\+\+U\+N\+K\+N\+O\+WN}}~0
\begin{DoxyCompactList}\small\item\em Specifies that the file type is unknown. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Evil__Dirent__Group_ga1dcee67486bc4238096ecb61e2d9ffd1}\label{group__Evil__Dirent__Group_ga1dcee67486bc4238096ecb61e2d9ffd1}} 
\#define \mbox{\hyperlink{group__Evil__Dirent__Group_ga1dcee67486bc4238096ecb61e2d9ffd1}{D\+T\+\_\+\+D\+IR}}~4
\begin{DoxyCompactList}\small\item\em Specifies that the file type is a directory. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Evil__Dirent__Group_ga3db3556eec8ef18cb8ddb43816974ac8}\label{group__Evil__Dirent__Group_ga3db3556eec8ef18cb8ddb43816974ac8}} 
\#define {\bfseries E\+A\+PI}
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}\label{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}} 
typedef struct D\+IR \mbox{\hyperlink{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{D\+IR}}
\begin{DoxyCompactList}\small\item\em A structure that describes a directory stream. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} \mbox{\hyperlink{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{D\+IR}} $\ast$ \mbox{\hyperlink{group__Evil__Dirent__Group_ga0bfba238260bb94aa679f4aa63ec5e16}{opendir}} (char const $\ast$name)
\begin{DoxyCompactList}\small\item\em Open the given directory. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} int \mbox{\hyperlink{group__Evil__Dirent__Group_ga37224cbfdf13ef346f90407253dedcbe}{closedir}} (\mbox{\hyperlink{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{D\+IR}} $\ast$dir)
\begin{DoxyCompactList}\small\item\em Close the given directory. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} struct \mbox{\hyperlink{structdirent}{dirent}} $\ast$ \mbox{\hyperlink{group__Evil__Dirent__Group_gaecec5e8759824d02c88cdb4beea3a13d}{readdir}} (\mbox{\hyperlink{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{D\+IR}} $\ast$dir)
\begin{DoxyCompactList}\small\item\em Read the given directory. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This header provides functions ported from Unix in \mbox{\hyperlink{dirent_8h}{dirent.\+h}}. 



\subsection{Function Documentation}
\mbox{\Hypertarget{group__Evil__Dirent__Group_ga0bfba238260bb94aa679f4aa63ec5e16}\label{group__Evil__Dirent__Group_ga0bfba238260bb94aa679f4aa63ec5e16}} 
\index{Dirent.\+h functions@{Dirent.\+h functions}!opendir@{opendir}}
\index{opendir@{opendir}!Dirent.\+h functions@{Dirent.\+h functions}}
\subsubsection{\texorpdfstring{opendir()}{opendir()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} \mbox{\hyperlink{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{D\+IR}}$\ast$ opendir (\begin{DoxyParamCaption}\item[{char const $\ast$}]{name }\end{DoxyParamCaption})}



Open the given directory. 


\begin{DoxyParams}{Parameters}
{\em name} & The directory to open. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to the directory stream.
\end{DoxyReturn}
This function opens the directory {\ttfamily name} and return the directory stream. On error or if {\ttfamily dir} is N\+U\+LL, -\/1 is returned, and errno is set appropriately (on Windows XP only). On success, 0 is returned.

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evil__Dirent__Group_ga37224cbfdf13ef346f90407253dedcbe}{closedir()}} 

\mbox{\hyperlink{group__Evil__Dirent__Group_gaecec5e8759824d02c88cdb4beea3a13d}{readdir()}}
\end{DoxySeeAlso}
Conformity\+: None.

Supported OS\+: Windows XP, CE. \begin{Desc}
\item[Examples\+: ]\par
\mbox{\hyperlink{ecore_thread_example_8c-example}{ecore\+\_\+thread\+\_\+example.\+c}}.\end{Desc}


References dirent\+::d\+\_\+name, and evil\+\_\+char\+\_\+to\+\_\+wchar().

\mbox{\Hypertarget{group__Evil__Dirent__Group_ga37224cbfdf13ef346f90407253dedcbe}\label{group__Evil__Dirent__Group_ga37224cbfdf13ef346f90407253dedcbe}} 
\index{Dirent.\+h functions@{Dirent.\+h functions}!closedir@{closedir}}
\index{closedir@{closedir}!Dirent.\+h functions@{Dirent.\+h functions}}
\subsubsection{\texorpdfstring{closedir()}{closedir()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} int closedir (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{D\+IR}} $\ast$}]{dir }\end{DoxyParamCaption})}



Close the given directory. 


\begin{DoxyParams}{Parameters}
{\em dir} & The directory stream to close. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to the directory stream.
\end{DoxyReturn}
This function closes the stream directory {\ttfamily dir}. On error or is {\ttfamily path} is N\+U\+LL or an empty string, N\+U\+LL is returned, and errno is set appropriately (on Windows XP only).

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evil__Dirent__Group_ga0bfba238260bb94aa679f4aa63ec5e16}{opendir()}} 

\mbox{\hyperlink{group__Evil__Dirent__Group_gaecec5e8759824d02c88cdb4beea3a13d}{readdir()}}
\end{DoxySeeAlso}
Conformity\+: None.

Supported OS\+: Windows XP, CE. \begin{Desc}
\item[Examples\+: ]\par
\mbox{\hyperlink{ecore_thread_example_8c-example}{ecore\+\_\+thread\+\_\+example.\+c}}.\end{Desc}
\mbox{\Hypertarget{group__Evil__Dirent__Group_gaecec5e8759824d02c88cdb4beea3a13d}\label{group__Evil__Dirent__Group_gaecec5e8759824d02c88cdb4beea3a13d}} 
\index{Dirent.\+h functions@{Dirent.\+h functions}!readdir@{readdir}}
\index{readdir@{readdir}!Dirent.\+h functions@{Dirent.\+h functions}}
\subsubsection{\texorpdfstring{readdir()}{readdir()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI}} struct \mbox{\hyperlink{structdirent}{dirent}}$\ast$ readdir (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{D\+IR}} $\ast$}]{dir }\end{DoxyParamCaption})}



Read the given directory. 


\begin{DoxyParams}{Parameters}
{\em dir} & The directory stream to read. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to a dirent structure, {\ttfamily N\+U\+LL} oterhwise.
\end{DoxyReturn}
This function returns a pointer to a dirent structure representing the next directory entry in the directory stream pointed to by {\ttfamily dir}. It returns N\+U\+LL on reaching the end of the directory stream or if an error occurred and errno is set appropriately (on Windows XP only).

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Evil__Dirent__Group_ga0bfba238260bb94aa679f4aa63ec5e16}{opendir()}} 

\mbox{\hyperlink{group__Evil__Dirent__Group_gaecec5e8759824d02c88cdb4beea3a13d}{readdir()}}
\end{DoxySeeAlso}
Conformity\+: None.

Supported OS\+: Windows XP, CE. 

References dirent\+::d\+\_\+name, and evil\+\_\+wchar\+\_\+to\+\_\+char().

