\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 
\hypertarget{group__Evil__Dirent__Group_ga293ce58a2d39f35c52f7f4516a857057}{\#define \hyperlink{group__Evil__Dirent__Group_ga293ce58a2d39f35c52f7f4516a857057}{D\+T\+\_\+\+U\+N\+K\+N\+O\+W\+N}~0}\label{group__Evil__Dirent__Group_ga293ce58a2d39f35c52f7f4516a857057}

\begin{DoxyCompactList}\small\item\em Specifies that the file type is unknown. \end{DoxyCompactList}\item 
\hypertarget{group__Evil__Dirent__Group_ga1dcee67486bc4238096ecb61e2d9ffd1}{\#define \hyperlink{group__Evil__Dirent__Group_ga1dcee67486bc4238096ecb61e2d9ffd1}{D\+T\+\_\+\+D\+I\+R}~4}\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 
\hypertarget{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{typedef struct D\+I\+R \hyperlink{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{D\+I\+R}}\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__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{D\+I\+R} $\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__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} int \hyperlink{group__Evil__Dirent__Group_ga37224cbfdf13ef346f90407253dedcbe}{closedir} (\hyperlink{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{D\+I\+R} $\ast$dir)
\begin{DoxyCompactList}\small\item\em Close the given directory. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} struct \hyperlink{structdirent}{dirent} $\ast$ \hyperlink{group__Evil__Dirent__Group_gaecec5e8759824d02c88cdb4beea3a13d}{readdir} (\hyperlink{group__Evil__Dirent__Group_ga49eb6ac4643553d04b85c70646c6786d}{D\+I\+R} $\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}
\hypertarget{group__Evil__Dirent__Group_ga0bfba238260bb94aa679f4aa63ec5e16}{\index{Dirent.\+h functions@{Dirent.\+h functions}!opendir@{opendir}}
\index{opendir@{opendir}!Dirent.\+h functions@{Dirent.\+h functions}}
\subsubsection[{opendir}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\bf D\+I\+R}$\ast$ opendir (
\begin{DoxyParamCaption}
\item[{char const $\ast$}]{name}
\end{DoxyParamCaption}
)}}\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\+L\+L, -\/1 is returned, and errno is set appropriately (on Windows X\+P 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 O\+S\+: Windows X\+P, C\+E. \begin{Desc}
\item[Examples\+: ]\par
\hyperlink{ecore_thread_example_8c-example}{ecore\+\_\+thread\+\_\+example.\+c}.\end{Desc}


References dirent\+::d\+\_\+name, D\+T\+\_\+\+D\+I\+R, D\+T\+\_\+\+U\+N\+K\+N\+O\+W\+N, 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().

\hypertarget{group__Evil__Dirent__Group_ga37224cbfdf13ef346f90407253dedcbe}{\index{Dirent.\+h functions@{Dirent.\+h functions}!closedir@{closedir}}
\index{closedir@{closedir}!Dirent.\+h functions@{Dirent.\+h functions}}
\subsubsection[{closedir}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} int closedir (
\begin{DoxyParamCaption}
\item[{{\bf D\+I\+R} $\ast$}]{dir}
\end{DoxyParamCaption}
)}}\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\+L\+L or an empty string, N\+U\+L\+L is returned, and errno is set appropriately (on Windows X\+P only).

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

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

Supported O\+S\+: Windows X\+P, C\+E. \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().

\hypertarget{group__Evil__Dirent__Group_gaecec5e8759824d02c88cdb4beea3a13d}{\index{Dirent.\+h functions@{Dirent.\+h functions}!readdir@{readdir}}
\index{readdir@{readdir}!Dirent.\+h functions@{Dirent.\+h functions}}
\subsubsection[{readdir}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} struct {\bf dirent}$\ast$ readdir (
\begin{DoxyParamCaption}
\item[{{\bf D\+I\+R} $\ast$}]{dir}
\end{DoxyParamCaption}
)}}\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\+L\+L} 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\+L\+L on reaching the end of the directory stream or if an error occurred and errno is set appropriately (on Windows X\+P only).

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

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

Supported O\+S\+: Windows X\+P, C\+E. 

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

