\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 \hyperlink{dirent_8h}{dirent.\+h}.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structdirent}{dirent}
\begin{DoxyCompactList}\small\item\em A structure that describes a directory stream. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__Evil__Dirent__Group_ga293ce58a2d39f35c52f7f4516a857057}{D\+T\+\_\+\+U\+N\+K\+N\+O\+WN}~0\hypertarget{group__Evil__Dirent__Group_ga293ce58a2d39f35c52f7f4516a857057}{}\label{group__Evil__Dirent__Group_ga293ce58a2d39f35c52f7f4516a857057}

\begin{DoxyCompactList}\small\item\em Specifies that the file type is unknown. \end{DoxyCompactList}\item 
\#define \hyperlink{group__Evil__Dirent__Group_ga1dcee67486bc4238096ecb61e2d9ffd1}{D\+T\+\_\+\+D\+IR}~4\hypertarget{group__Evil__Dirent__Group_ga1dcee67486bc4238096ecb61e2d9ffd1}{}\label{group__Evil__Dirent__Group_ga1dcee67486bc4238096ecb61e2d9ffd1}

\begin{DoxyCompactList}\small\item\em Specifies that the file type is a directory. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct D\+IR \hyperlink{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{D\+IR}\hypertarget{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{}\label{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}

\begin{DoxyCompactList}\small\item\em A structure that describes a directory stream. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} \hyperlink{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{D\+IR} $\ast$ \hyperlink{group__Evil__Dirent__Group_ga0bfba238260bb94aa679f4aa63ec5e16}{opendir} (char const $\ast$name)
\begin{DoxyCompactList}\small\item\em Open the given directory. \end{DoxyCompactList}\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} int \hyperlink{group__Evil__Dirent__Group_ga37224cbfdf13ef346f90407253dedcbe}{closedir} (\hyperlink{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{D\+IR} $\ast$dir)
\begin{DoxyCompactList}\small\item\em Close the given directory. \end{DoxyCompactList}\item 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+PI} struct \hyperlink{structdirent}{dirent} $\ast$ \hyperlink{group__Evil__Dirent__Group_gaecec5e8759824d02c88cdb4beea3a13d}{readdir} (\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 \hyperlink{dirent_8h}{dirent.\+h}. 



\subsection{Function Documentation}
\index{Dirent.\+h functions@{Dirent.\+h functions}!opendir@{opendir}}
\index{opendir@{opendir}!Dirent.\+h functions@{Dirent.\+h functions}}
\subsubsection[{\texorpdfstring{opendir(char const $\ast$name)}{opendir(char const *name)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+PI} {\bf D\+IR}$\ast$ opendir (
\begin{DoxyParamCaption}
\item[{char const $\ast$}]{name}
\end{DoxyParamCaption}
)}\hypertarget{group__Evil__Dirent__Group_ga0bfba238260bb94aa679f4aa63ec5e16}{}\label{group__Evil__Dirent__Group_ga0bfba238260bb94aa679f4aa63ec5e16}


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}
\hyperlink{group__Evil__Dirent__Group_ga37224cbfdf13ef346f90407253dedcbe}{closedir()} 

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

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


References dirent\+::d\+\_\+name, D\+T\+\_\+\+D\+IR, D\+T\+\_\+\+U\+N\+K\+N\+O\+WN, evil\+\_\+char\+\_\+to\+\_\+wchar(), and evil\+\_\+wchar\+\_\+to\+\_\+char().



Referenced by ecore\+\_\+file\+\_\+mksubdirs(), eina\+\_\+file\+\_\+direct\+\_\+ls(), eina\+\_\+file\+\_\+ls(), and eina\+\_\+file\+\_\+stat\+\_\+ls().

\index{Dirent.\+h functions@{Dirent.\+h functions}!closedir@{closedir}}
\index{closedir@{closedir}!Dirent.\+h functions@{Dirent.\+h functions}}
\subsubsection[{\texorpdfstring{closedir(\+D\+I\+R $\ast$dir)}{closedir(DIR *dir)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+PI} int closedir (
\begin{DoxyParamCaption}
\item[{{\bf D\+IR} $\ast$}]{dir}
\end{DoxyParamCaption}
)}\hypertarget{group__Evil__Dirent__Group_ga37224cbfdf13ef346f90407253dedcbe}{}\label{group__Evil__Dirent__Group_ga37224cbfdf13ef346f90407253dedcbe}


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}
\hyperlink{group__Evil__Dirent__Group_ga0bfba238260bb94aa679f4aa63ec5e16}{opendir()} 

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

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


Referenced by ecore\+\_\+file\+\_\+mksubdirs(), eina\+\_\+file\+\_\+direct\+\_\+ls(), eina\+\_\+file\+\_\+ls(), and eina\+\_\+file\+\_\+stat\+\_\+ls().

\index{Dirent.\+h functions@{Dirent.\+h functions}!readdir@{readdir}}
\index{readdir@{readdir}!Dirent.\+h functions@{Dirent.\+h functions}}
\subsubsection[{\texorpdfstring{readdir(\+D\+I\+R $\ast$dir)}{readdir(DIR *dir)}}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+PI} struct {\bf dirent}$\ast$ readdir (
\begin{DoxyParamCaption}
\item[{{\bf D\+IR} $\ast$}]{dir}
\end{DoxyParamCaption}
)}\hypertarget{group__Evil__Dirent__Group_gaecec5e8759824d02c88cdb4beea3a13d}{}\label{group__Evil__Dirent__Group_gaecec5e8759824d02c88cdb4beea3a13d}


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}
\hyperlink{group__Evil__Dirent__Group_ga0bfba238260bb94aa679f4aa63ec5e16}{opendir()} 

\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().

