\hypertarget{group__Eina__File__Group}{}\doxysection{File}
\label{group__Eina__File__Group}\index{File@{File}}


This group discusses the functions to handle files and directories.  


\doxysubsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{struct__Eina__File__Direct__Info}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info}}
\begin{DoxyCompactList}\small\item\em The structure to store information of a path. \end{DoxyCompactList}\item 
struct \mbox{\hyperlink{struct__Eina__Stat}{\+\_\+\+Eina\+\_\+\+Stat}}
\begin{DoxyCompactList}\small\item\em The structure to store some file statistics. \end{DoxyCompactList}\item 
struct \mbox{\hyperlink{struct__Eina__File__Line}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Line}}
\begin{DoxyCompactList}\small\item\em The structure to store information of a line. \end{DoxyCompactList}\item 
struct \mbox{\hyperlink{struct__Eina__File}{\+\_\+\+Eina\+\_\+\+File}}
\begin{DoxyCompactList}\small\item\em This is the underlying data structure that represents a file in Eina. \end{DoxyCompactList}\item 
struct \mbox{\hyperlink{struct__Eina__File__Map}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map}}
\begin{DoxyCompactList}\small\item\em This represents a memory mapped region of a file. \end{DoxyCompactList}\item 
struct \mbox{\hyperlink{struct__Eina__Lines__Iterator}{\+\_\+\+Eina\+\_\+\+Lines\+\_\+\+Iterator}}
\begin{DoxyCompactList}\small\item\em This represents a line iterator a file. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eina__File__Group_ga868d33cdb2c1a17ad3d76efc6bbbd5e0}\label{group__Eina__File__Group_ga868d33cdb2c1a17ad3d76efc6bbbd5e0}} 
\#define {\bfseries EINA\+\_\+\+PATH\+\_\+\+MAX}~8192
\begin{DoxyCompactList}\small\item\em Definition for the constant defined as the highest value for PATH\+\_\+\+MAX. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__File__Group_ga307eb3ab937eca910a4905ca61edb1bc}{EINA\+\_\+\+PATH\+\_\+\+SEP\+\_\+C}}~\textquotesingle{}/\textquotesingle{}
\begin{DoxyCompactList}\small\item\em The constant defined the path separator as the character \textquotesingle{}\textbackslash{}\textquotesingle{} on Windows and \textquotesingle{}/\textquotesingle{} otherwise. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__File__Group_ga616ef146444c4337f8ef1d3cf96904a7}{EINA\+\_\+\+PATH\+\_\+\+SEP\+\_\+S}}~\char`\"{}/\char`\"{}
\begin{DoxyCompactList}\small\item\em The constant defined the path separator as the string \char`\"{}\textbackslash{}\char`\"{} on Windows and \char`\"{}/"{} otherwise. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{group__Eina__File__Group_gab0472249546b833441c01dd278932bb0}{EINA\+\_\+\+FILE\+\_\+\+DIR\+\_\+\+LIST\+\_\+\+CB}}(function)~((\mbox{\hyperlink{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}{Eina\+\_\+\+File\+\_\+\+Dir\+\_\+\+List\+\_\+\+Cb}})function)
\begin{DoxyCompactList}\small\item\em The macro to cast to an \mbox{\hyperlink{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}{Eina\+\_\+\+File\+\_\+\+Dir\+\_\+\+List\+\_\+\+Cb}}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__File__Group_gaedcc484fea6c2dc20b7f48664ce42dd6}\label{group__Eina__File__Group_gaedcc484fea6c2dc20b7f48664ce42dd6}} 
\#define {\bfseries EINA\+\_\+\+LOG\+\_\+\+COLOR\+\_\+\+DEFAULT}~EINA\+\_\+\+COLOR\+\_\+\+CYAN
\begin{DoxyCompactList}\small\item\em Set the color for Eina log entries. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__File__Group_ga24e93be9c5baa3aeab7021b64e290672}\label{group__Eina__File__Group_ga24e93be9c5baa3aeab7021b64e290672}} 
\#define {\bfseries ERR}(...)~\mbox{\hyperlink{group__Eina__Log__Group_ga698d954a5fc2d120a553277361d68047}{EINA\+\_\+\+LOG\+\_\+\+DOM\+\_\+\+ERR}}(\mbox{\hyperlink{group__Eina__File__Group_ga863d6a4b22af7faa9fa7596f93906e4b}{\+\_\+eina\+\_\+file\+\_\+log\+\_\+dom}}, \+\_\+\+\_\+\+VA\+\_\+\+ARGS\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Macro for logging Eina errors. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__File__Group_gaacd9cddd6a93af1a7d53ebc48901e051}\label{group__Eina__File__Group_gaacd9cddd6a93af1a7d53ebc48901e051}} 
\#define {\bfseries WRN}(...)~\mbox{\hyperlink{group__Eina__Log__Group_ga5073ce1fbcc1f6ea8d0670aac2ecce70}{EINA\+\_\+\+LOG\+\_\+\+DOM\+\_\+\+WARN}}(\mbox{\hyperlink{group__Eina__File__Group_ga863d6a4b22af7faa9fa7596f93906e4b}{\+\_\+eina\+\_\+file\+\_\+log\+\_\+dom}}, \+\_\+\+\_\+\+VA\+\_\+\+ARGS\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Macro for logging Eina warnings. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__File__Group_gaa0bb6435252613b1a74175af3d60045f}\label{group__Eina__File__Group_gaa0bb6435252613b1a74175af3d60045f}} 
\#define {\bfseries INF}(...)~\mbox{\hyperlink{group__Eina__Log__Group_ga782f84a4805166d2707cb4d59217c64e}{EINA\+\_\+\+LOG\+\_\+\+DOM\+\_\+\+INFO}}(\mbox{\hyperlink{group__Eina__File__Group_ga863d6a4b22af7faa9fa7596f93906e4b}{\+\_\+eina\+\_\+file\+\_\+log\+\_\+dom}}, \+\_\+\+\_\+\+VA\+\_\+\+ARGS\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Macro for logging Eina info messages. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__File__Group_gae8924623ca601364965e3d88fb7f40fa}\label{group__Eina__File__Group_gae8924623ca601364965e3d88fb7f40fa}} 
\#define {\bfseries DBG}(...)~\mbox{\hyperlink{group__Eina__Log__Group_ga4423c9d7bdc95555cf045b66e21e1f5c}{EINA\+\_\+\+LOG\+\_\+\+DOM\+\_\+\+DBG}}(\mbox{\hyperlink{group__Eina__File__Group_ga863d6a4b22af7faa9fa7596f93906e4b}{\+\_\+eina\+\_\+file\+\_\+log\+\_\+dom}}, \+\_\+\+\_\+\+VA\+\_\+\+ARGS\+\_\+\+\_\+)
\begin{DoxyCompactList}\small\item\em Macro for logging Eina debug messages. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}\label{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}} 
typedef struct \mbox{\hyperlink{struct__Eina__File__Direct__Info}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info}} {\bfseries Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info}
\begin{DoxyCompactList}\small\item\em A type for \mbox{\hyperlink{struct__Eina__File__Direct__Info}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info}}. \end{DoxyCompactList}\item 
typedef struct \mbox{\hyperlink{struct__Eina__Stat}{\+\_\+\+Eina\+\_\+\+Stat}} \mbox{\hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\+\_\+\+Stat}}
\begin{DoxyCompactList}\small\item\em A type for \mbox{\hyperlink{struct__Eina__Stat}{\+\_\+\+Eina\+\_\+\+Stat}}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__File__Group_ga2c5c3fdefe5df8c774d5623b7a6e7047}\label{group__Eina__File__Group_ga2c5c3fdefe5df8c774d5623b7a6e7047}} 
typedef struct \mbox{\hyperlink{struct__Eina__File__Line}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Line}} {\bfseries Eina\+\_\+\+File\+\_\+\+Line}
\begin{DoxyCompactList}\small\item\em A type for \mbox{\hyperlink{struct__Eina__File__Line}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Line}}. \end{DoxyCompactList}\item 
typedef void($\ast$ \mbox{\hyperlink{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}{Eina\+\_\+\+File\+\_\+\+Dir\+\_\+\+List\+\_\+\+Cb}}) (const char $\ast$name, const char $\ast$path, void $\ast$data)
\begin{DoxyCompactList}\small\item\em Type for a callback to be called when iterating over the files of a directory. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}\label{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}} 
typedef struct \mbox{\hyperlink{struct__Eina__File}{\+\_\+\+Eina\+\_\+\+File}} {\bfseries Eina\+\_\+\+File}
\begin{DoxyCompactList}\small\item\em A file handle. \end{DoxyCompactList}\item 
typedef \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}($\ast$ \mbox{\hyperlink{group__Eina__File__Group_gaa08a39ec2e9abfa703d15822a074f521}{Eina\+\_\+\+File\+\_\+\+Copy\+\_\+\+Progress}}) (void $\ast$data, unsigned long long done, unsigned long long total)
\begin{DoxyCompactList}\small\item\em Type for a callback to report file copy progress. \end{DoxyCompactList}\item 
typedef unsigned int \mbox{\hyperlink{group__Eina__File__Group_ga14b7b651c6a2ea038f008e908995e9a5}{Eina\+\_\+\+Statgen}}
\begin{DoxyCompactList}\small\item\em Stat Generation count state with it being 0 when disabled or some other value that is comparable (== or !=) to a stored value and if it is not equal, then do the actual stat i/o work. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__File__Group_gaa386401312fe1dd48e84637fa7a728b6}\label{group__Eina__File__Group_gaa386401312fe1dd48e84637fa7a728b6}} 
typedef struct \mbox{\hyperlink{struct__Eina__File__Map}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map}} {\bfseries Eina\+\_\+\+File\+\_\+\+Map}
\begin{DoxyCompactList}\small\item\em Type definition for an Eina File Map. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__File__Group_ga08145d0302c44aca3c5a4d1bc6d2b0ca}\label{group__Eina__File__Group_ga08145d0302c44aca3c5a4d1bc6d2b0ca}} 
typedef struct \mbox{\hyperlink{struct__Eina__Lines__Iterator}{\+\_\+\+Eina\+\_\+\+Lines\+\_\+\+Iterator}} {\bfseries Eina\+\_\+\+Lines\+\_\+\+Iterator}
\begin{DoxyCompactList}\small\item\em Type definition for an Eina Lines Iterator. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \mbox{\hyperlink{group__Eina__File__Group_ga0b7b2db79f9a05b07273fb3428d46cd8}{Eina\+\_\+\+File\+\_\+\+Type}} \{ \newline
\mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8aa271a0f3cd77f21c405a7e2636c4b064}{EINA\+\_\+\+FILE\+\_\+\+UNKNOWN}}
, \newline
\mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8aeffdbcaeae950a9c786736495c9e6ae6}{EINA\+\_\+\+FILE\+\_\+\+FIFO}}
, \newline
\mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a3c0a5d44c060edb31c813aa04a025d2a}{EINA\+\_\+\+FILE\+\_\+\+CHR}}
, \newline
\mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a0b8844f30974a2fa27af9ba78bcfaa53}{EINA\+\_\+\+FILE\+\_\+\+DIR}}
, \newline
\mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a4e8e6ab5ad07461bf2e97981d0c6f745}{EINA\+\_\+\+FILE\+\_\+\+BLK}}
, \newline
\mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8ae5c8a949a0de3a8fc46dcf02a57df381}{EINA\+\_\+\+FILE\+\_\+\+REG}}
, \newline
\mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8abcfb23817258fffca146c9c43df45862}{EINA\+\_\+\+FILE\+\_\+\+LNK}}
, \newline
\mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a7b2507d72b963615be2bef550d98c188}{EINA\+\_\+\+FILE\+\_\+\+SOCK}}
, \newline
\mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8af0980697fe8cbfc60a19f1f22b39634f}{EINA\+\_\+\+FILE\+\_\+\+WHT}}
 \}
\begin{DoxyCompactList}\small\item\em Type for enumeration of a file type. \end{DoxyCompactList}\item 
enum \mbox{\hyperlink{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}{Eina\+\_\+\+File\+\_\+\+Populate}} \{ \newline
\mbox{\hyperlink{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aae9b963a3ffd3a5f885c86db4673eabd3}{EINA\+\_\+\+FILE\+\_\+\+RANDOM}}
, \newline
\mbox{\hyperlink{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aabb92031c2d448a1659117121866229b2}{EINA\+\_\+\+FILE\+\_\+\+SEQUENTIAL}}
, \newline
\mbox{\hyperlink{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aab049b3550f67cdd35ea15d5839800186}{EINA\+\_\+\+FILE\+\_\+\+WILLNEED}}
, \newline
\mbox{\hyperlink{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aa6c05201c80772a294c16800d7ca46a1d}{EINA\+\_\+\+FILE\+\_\+\+POPULATE}}
, \newline
\mbox{\hyperlink{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aabcd9246f7fbbbd2df5eeec7f3913558c}{EINA\+\_\+\+FILE\+\_\+\+DONTNEED}}
, \newline
\mbox{\hyperlink{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aa4786137330071feac6aafa0dcfc56519}{EINA\+\_\+\+FILE\+\_\+\+REMOVE}}
 \}
\begin{DoxyCompactList}\small\item\em Type for enumeration of a file access type. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__File__Group_ga64acf75a3d09f9ef5ad04173a628cc32}\label{group__Eina__File__Group_ga64acf75a3d09f9ef5ad04173a628cc32}} 
enum \mbox{\hyperlink{group__Eina__File__Group_ga64acf75a3d09f9ef5ad04173a628cc32}{Eina\+\_\+\+File\+\_\+\+Copy\+\_\+\+Flags}} \{ \newline
{\bfseries EINA\+\_\+\+FILE\+\_\+\+COPY\+\_\+\+DATA} = 0
, \newline
{\bfseries EINA\+\_\+\+FILE\+\_\+\+COPY\+\_\+\+PERMISSION} = (1 \texorpdfstring{$<$}{<}\texorpdfstring{$<$}{<} 0)
, \newline
{\bfseries EINA\+\_\+\+FILE\+\_\+\+COPY\+\_\+\+XATTR} = (1 \texorpdfstring{$<$}{<}\texorpdfstring{$<$}{<} 1)
 \}
\begin{DoxyCompactList}\small\item\em Enumeration for a flag what to copy from file. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__File__Group_gacb53e3286cf85a6652891ee5e5ec917b}{eina\+\_\+file\+\_\+dir\+\_\+list}} (const char $\ast$dir, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} recursive, \mbox{\hyperlink{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}{Eina\+\_\+\+File\+\_\+\+Dir\+\_\+\+List\+\_\+\+Cb}} cb, void $\ast$data)
\begin{DoxyCompactList}\small\item\em Lists all the files on the directory by calling the function for every file found. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Array__Group_ga2a57284ee83a7e767485b7ae2f5df86c}{Eina\+\_\+\+Array}} $\ast$ \mbox{\hyperlink{group__Eina__File__Group_gae199780cb832cc5eedfb45bd88a5c4bb}{eina\+\_\+file\+\_\+split}} (char $\ast$path)
\begin{DoxyCompactList}\small\item\em Splits a path according to the delimiter of the filesystem. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ \mbox{\hyperlink{group__Eina__File__Group_gab744fcd8eb2369fed66520ff82930650}{eina\+\_\+file\+\_\+ls}} (const char $\ast$dir)
\begin{DoxyCompactList}\small\item\em Gets an iterator to list the content of a directory. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ \mbox{\hyperlink{group__Eina__File__Group_ga31221ab03e0e4e1d9b33be3950a19d06}{eina\+\_\+file\+\_\+stat\+\_\+ls}} (const char $\ast$dir)
\begin{DoxyCompactList}\small\item\em Gets an iterator to list the content of a directory, with direct information. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} int \mbox{\hyperlink{group__Eina__File__Group_ga27f6c06f171f1e28442f7f84acef5666}{eina\+\_\+file\+\_\+statat}} (void $\ast$container, \mbox{\hyperlink{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}{Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info}} $\ast$info, \mbox{\hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\+\_\+\+Stat}} $\ast$buf)
\begin{DoxyCompactList}\small\item\em Uses information provided by \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} of \mbox{\hyperlink{group__Eina__File__Group_ga31221ab03e0e4e1d9b33be3950a19d06}{eina\+\_\+file\+\_\+stat\+\_\+ls()}} or \mbox{\hyperlink{group__Eina__File__Group_ga581f32b7e4858077861da108ea6d3948}{eina\+\_\+file\+\_\+direct\+\_\+ls()}} to call stat in the most efficient way on your system. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__File__Group_ga094cc814e58b6951aa392f5dd4b2fe4d}{eina\+\_\+file\+\_\+close\+\_\+from}} (int fd, int $\ast$except\+\_\+fd)
\begin{DoxyCompactList}\small\item\em Close all file descriptors that are open at or above the given fd. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} int \mbox{\hyperlink{group__Eina__File__Group_gac77efa39c12ba6880a5bbdca004080fb}{eina\+\_\+file\+\_\+mkstemp}} (const char $\ast$templatename, \mbox{\hyperlink{group__Eina__Stringshare__Group_gae8d53f367d5da5acfd19af6c235831d5}{Eina\+\_\+\+Tmpstr}} $\ast$$\ast$path)
\begin{DoxyCompactList}\small\item\em Generates and creates a uniquely named temporary file from a template name. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__File__Group_gaa4571fad8d5e94f3a1936bb09beae16c}{eina\+\_\+file\+\_\+mkdtemp}} (const char $\ast$templatename, \mbox{\hyperlink{group__Eina__Stringshare__Group_gae8d53f367d5da5acfd19af6c235831d5}{Eina\+\_\+\+Tmpstr}} $\ast$$\ast$path)
\begin{DoxyCompactList}\small\item\em Generates and creates a uniquely named temporary directory from a template name. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ \mbox{\hyperlink{group__Eina__File__Group_ga581f32b7e4858077861da108ea6d3948}{eina\+\_\+file\+\_\+direct\+\_\+ls}} (const char $\ast$dir)
\begin{DoxyCompactList}\small\item\em Gets an iterator to list the content of a directory, with direct information. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} char $\ast$ \mbox{\hyperlink{group__Eina__File__Group_ga4c11cce335038a46c2979f1ecf5f3d33}{eina\+\_\+file\+\_\+path\+\_\+sanitize}} (const char $\ast$path)
\begin{DoxyCompactList}\small\item\em Sanitizes the file path. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__File__Group_ga70b5eff251697b3be9ae6c9eb17aadbf}{eina\+\_\+file\+\_\+copy}} (const char $\ast$src, const char $\ast$dst, \mbox{\hyperlink{group__Eina__File__Group_ga64acf75a3d09f9ef5ad04173a628cc32}{Eina\+\_\+\+File\+\_\+\+Copy\+\_\+\+Flags}} flags, \mbox{\hyperlink{group__Eina__File__Group_gaa08a39ec2e9abfa703d15822a074f521}{Eina\+\_\+\+File\+\_\+\+Copy\+\_\+\+Progress}} cb, const void $\ast$cb\+\_\+data)
\begin{DoxyCompactList}\small\item\em Copies one file to another using the fastest possible way and report progress. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eina__File__Group_ga9579ba508358c74ea57bd8906801cfe5}{eina\+\_\+file\+\_\+open}} (const char $\ast$name, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} shared)
\begin{DoxyCompactList}\small\item\em Gets a read-\/only handler to a file. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eina__File__Group_ga71823e5f7683d1589cb49c0f7bcbaf14}{eina\+\_\+file\+\_\+virtualize}} (const char $\ast$virtual\+\_\+name, const void $\ast$data, unsigned long long length, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} copy)
\begin{DoxyCompactList}\small\item\em Creates a virtual file from a memory pointer. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__File__Group_ga101e94320e419cb01a83d730a762be31}{eina\+\_\+file\+\_\+virtual}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file)
\begin{DoxyCompactList}\small\item\em Tells if a file is a real file or only exists in memory. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__File__Group_ga675ed9c701faa581e04fa6c9289376f4}{eina\+\_\+file\+\_\+refresh}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file)
\begin{DoxyCompactList}\small\item\em Refreshes file information. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$ \mbox{\hyperlink{group__Eina__File__Group_gad4bdb938ea01bafc6b194306f890e086}{eina\+\_\+file\+\_\+dup}} (const \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file)
\begin{DoxyCompactList}\small\item\em Duplicates a read-\/only handler of a previously open file. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__File__Group_ga6b19a0682a3747cb5c313dc7d0e41a90}{eina\+\_\+file\+\_\+close}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file)
\begin{DoxyCompactList}\small\item\em Unrefs the file handler. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} size\+\_\+t \mbox{\hyperlink{group__Eina__File__Group_ga2f57057d1d66e6392a832674a69c1278}{eina\+\_\+file\+\_\+size\+\_\+get}} (const \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file)
\begin{DoxyCompactList}\small\item\em Gets the file size at open time. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} time\+\_\+t \mbox{\hyperlink{group__Eina__File__Group_ga66eff3fe50ea11e60f48d65871a3060b}{eina\+\_\+file\+\_\+mtime\+\_\+get}} (const \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file)
\begin{DoxyCompactList}\small\item\em Gets the last modification time of an open file. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} const char $\ast$ \mbox{\hyperlink{group__Eina__File__Group_gae5b1bd03a9dc86e3262ef606ba92bb26}{eina\+\_\+file\+\_\+filename\+\_\+get}} (const \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file)
\begin{DoxyCompactList}\small\item\em Gets the filename of an open file. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ \mbox{\hyperlink{group__Eina__File__Group_gaaae75d2d9146ccadab0b56e1e588d389}{eina\+\_\+file\+\_\+xattr\+\_\+get}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file)
\begin{DoxyCompactList}\small\item\em Gets the extended attribute of an open file. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ \mbox{\hyperlink{group__Eina__File__Group_ga83f721e6dd1387b33a50168ff51ed7cb}{eina\+\_\+file\+\_\+xattr\+\_\+value\+\_\+get}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file)
\begin{DoxyCompactList}\small\item\em Gets the extended attribute of an open file. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void $\ast$ \mbox{\hyperlink{group__Eina__File__Group_gaae165c21af09fca39c2d1f89a92cb6b1}{eina\+\_\+file\+\_\+map\+\_\+all}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file, \mbox{\hyperlink{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}{Eina\+\_\+\+File\+\_\+\+Populate}} rule)
\begin{DoxyCompactList}\small\item\em Maps all the files to a buffer. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void $\ast$ \mbox{\hyperlink{group__Eina__File__Group_ga5c56a04cf4de6d43f73ce39b970132fa}{eina\+\_\+file\+\_\+map\+\_\+new}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file, \mbox{\hyperlink{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}{Eina\+\_\+\+File\+\_\+\+Populate}} rule, unsigned long int offset, unsigned long int length)
\begin{DoxyCompactList}\small\item\em Maps a part of the file. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__File__Group_gaf52b237fec73dbbcd411c8f999c5b5df}{eina\+\_\+file\+\_\+map\+\_\+free}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file, void $\ast$map)
\begin{DoxyCompactList}\small\item\em Unrefs and unmaps memory if possible. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__File__Group_gaace9cb589759c6638e5bef044445091b}{eina\+\_\+file\+\_\+map\+\_\+populate}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file, \mbox{\hyperlink{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}{Eina\+\_\+\+File\+\_\+\+Populate}} rule, const void $\ast$map, unsigned long int offset, unsigned long int length)
\begin{DoxyCompactList}\small\item\em Asks the OS to populate or otherwise pages of memory in file mapping. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ \mbox{\hyperlink{group__Eina__File__Group_gacc5e106a05988043f10a57b7b61ccba6}{eina\+\_\+file\+\_\+map\+\_\+lines}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file)
\begin{DoxyCompactList}\small\item\em Maps line by line in the memory efficiently using an \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__File__Group_gaf5588cddea780ff60c49cc71941648d1}{eina\+\_\+file\+\_\+map\+\_\+faulted}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file, void $\ast$map)
\begin{DoxyCompactList}\small\item\em Tells whether there has been an IO error during the life of a mmaped file. \end{DoxyCompactList}\item 
static size\+\_\+t \mbox{\hyperlink{group__Eina__File__Group_gadf638f95abe9aa175b6aaa3762bc1b54}{eina\+\_\+file\+\_\+path\+\_\+join\+\_\+len}} (char $\ast$dst, size\+\_\+t size, const char $\ast$a, size\+\_\+t a\+\_\+len, const char $\ast$b, size\+\_\+t b\+\_\+len)
\begin{DoxyCompactList}\small\item\em Joins two paths of known length. \end{DoxyCompactList}\item 
static size\+\_\+t \mbox{\hyperlink{group__Eina__File__Group_gaafc34529ee88ef8b528f62dab8ffe469}{eina\+\_\+file\+\_\+path\+\_\+join}} (char $\ast$dst, size\+\_\+t size, const char $\ast$a, const char $\ast$b)
\begin{DoxyCompactList}\small\item\em Joins two paths of known length. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__File__Group_ga17a1e47031010d4c34c96f9726d9f0e0}{eina\+\_\+file\+\_\+unlink}} (const char $\ast$pathname)
\begin{DoxyCompactList}\small\item\em Unlinks file. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__File__Group_ga858aff49902b2278be3e59aff989ed46}{eina\+\_\+file\+\_\+close\+\_\+on\+\_\+exec}} (int fd, \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} on)
\begin{DoxyCompactList}\small\item\em Make sure a file descriptor will be closed on exec. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__File__Group_gab469200d2a61bd3d52fa49cc33430432}{eina\+\_\+file\+\_\+statgen\+\_\+next}} (void)
\begin{DoxyCompactList}\small\item\em Force the stat generation counter to tick over so any following i/o does real i/o and stat calls. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__File__Group_ga14b7b651c6a2ea038f008e908995e9a5}{Eina\+\_\+\+Statgen}} \mbox{\hyperlink{group__Eina__File__Group_ga46b8ebef3355ef71aaa85549d26f65d3}{eina\+\_\+file\+\_\+statgen\+\_\+get}} (void)
\begin{DoxyCompactList}\small\item\em Get the current stat generation counter value. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__File__Group_gaa8ed719654ce26fa3f7c18eb3c41c21e}{eina\+\_\+file\+\_\+statgen\+\_\+enable}} (void)
\begin{DoxyCompactList}\small\item\em Enable stat generation count optimiziing to only stat/do file i/o between generation counts changing. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void \mbox{\hyperlink{group__Eina__File__Group_ga99f6ad9e21c5315406589b79bb398c56}{eina\+\_\+file\+\_\+statgen\+\_\+disable}} (void)
\begin{DoxyCompactList}\small\item\em Disable stat generation count optimiziing to only stat/do file i/o between generation counts changing. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} \mbox{\hyperlink{group__Eina__File__Group_ga3eb6309933f0a698eda7cf41ed21fb5e}{eina\+\_\+file\+\_\+path\+\_\+relative}} (const char $\ast$path)
\begin{DoxyCompactList}\small\item\em Determines if a path is relative or absolute. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group__Eina__Stringshare__Group_gae8d53f367d5da5acfd19af6c235831d5}{Eina\+\_\+\+Tmpstr}} $\ast$ \mbox{\hyperlink{group__Eina__File__Group_ga9ca2fa022c056bcc3dfa15618531524b}{eina\+\_\+file\+\_\+current\+\_\+directory\+\_\+get}} (const char $\ast$path, size\+\_\+t len)
\begin{DoxyCompactList}\small\item\em Gets the current directory and optionally appends a path to it. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{group__Eina__File__Group_ga77832abe1c2549b02abf98f665a40f19}{eina\+\_\+file\+\_\+cleanup}} (\mbox{\hyperlink{group__Eina__Stringshare__Group_gae8d53f367d5da5acfd19af6c235831d5}{Eina\+\_\+\+Tmpstr}} $\ast$path)
\begin{DoxyCompactList}\small\item\em Cleans up Eina after a file is no longer needed. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Eina__File__Group_ga9360f0d850bb1bf8bf40027985f4ed42}{eina\+\_\+file\+\_\+clean\+\_\+close}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file)
\begin{DoxyCompactList}\small\item\em Closes and cleans up after an Eina file. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Eina__File__Group_ga6960f0b4d94996a4beb965a684d92dea}{eina\+\_\+file\+\_\+real\+\_\+close}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file)
\begin{DoxyCompactList}\small\item\em Closes a file from the OS perspective. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Eina__File__Group_ga64a3123b8e0b9698d30611bacd548b9e}{eina\+\_\+file\+\_\+flush}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file, unsigned long int length)
\begin{DoxyCompactList}\small\item\em Resets the internal housekeeping structures after a file has changed. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Eina__File__Group_ga7fc3c176abeb346004562e5ddfdf6e0f}{eina\+\_\+file\+\_\+common\+\_\+map\+\_\+free}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file, void $\ast$map, void($\ast$free\+\_\+func)(\mbox{\hyperlink{group__Eina__File__Group_gaa386401312fe1dd48e84637fa7a728b6}{Eina\+\_\+\+File\+\_\+\+Map}} $\ast$map))
\begin{DoxyCompactList}\small\item\em Removes a mapped region from the file and frees the resources. \end{DoxyCompactList}\item 
void $\ast$ \mbox{\hyperlink{group__Eina__File__Group_ga231e2453311f74c18d80ab75904f6a08}{eina\+\_\+file\+\_\+virtual\+\_\+map\+\_\+all}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file)
\begin{DoxyCompactList}\small\item\em Map the entire contents of a virtual file to a buffer. \end{DoxyCompactList}\item 
void $\ast$ \mbox{\hyperlink{group__Eina__File__Group_gada097a9bd6adfc1f02de327eff447bee}{eina\+\_\+file\+\_\+virtual\+\_\+map\+\_\+new}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file, unsigned long int offset, unsigned long int length)
\begin{DoxyCompactList}\small\item\em Map a part of a virtual file to a buffer. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Eina__File__Group_ga105fa4c85c984190da9c5f22b509fd15}{eina\+\_\+file\+\_\+virtual\+\_\+map\+\_\+free}} (\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$file, void $\ast$map)
\begin{DoxyCompactList}\small\item\em Unref and unmap memory if possible. \end{DoxyCompactList}\item 
unsigned int \mbox{\hyperlink{group__Eina__File__Group_ga448a87e4666e16adb3d4289c210c549e}{eina\+\_\+file\+\_\+map\+\_\+key\+\_\+length}} (const void $\ast$key)
\begin{DoxyCompactList}\small\item\em Get the length of a map key. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{group__Eina__File__Group_ga279f49595634c5825f579f98b8c58780}{eina\+\_\+file\+\_\+map\+\_\+key\+\_\+cmp}} (const unsigned long long int $\ast$key1, int key1\+\_\+length, const unsigned long long int $\ast$key2, int key2\+\_\+length)
\begin{DoxyCompactList}\small\item\em Compares two map keys. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{group__Eina__File__Group_ga61afa15fd0c3f3938179b041c1bc7226}{eina\+\_\+file\+\_\+map\+\_\+key\+\_\+hash}} (const unsigned long long int $\ast$key, int key\+\_\+length)
\begin{DoxyCompactList}\small\item\em Creates a hash from a map key. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Eina__File__Group_ga566b1dffb98a71425706508ba19e12ea}\label{group__Eina__File__Group_ga566b1dffb98a71425706508ba19e12ea}} 
\mbox{\hyperlink{group__Eina__Hash__Group_ga9a89d7d3ee260d3a60572ebf651b07e0}{Eina\+\_\+\+Hash}} $\ast$ {\bfseries \+\_\+eina\+\_\+file\+\_\+cache}
\begin{DoxyCompactList}\small\item\em A pointer to the global Eina file cache. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__File__Group_ga30e9ea07586b204a15c736af468616d2}\label{group__Eina__File__Group_ga30e9ea07586b204a15c736af468616d2}} 
\mbox{\hyperlink{group__Eina__Lock__Group_ga324ec512f8bd7a5f391239382f09d5c9}{Eina\+\_\+\+Lock}} {\bfseries \+\_\+eina\+\_\+file\+\_\+lock\+\_\+cache}
\begin{DoxyCompactList}\small\item\em The global file lock cache. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{group__Eina__File__Group_ga863d6a4b22af7faa9fa7596f93906e4b}\label{group__Eina__File__Group_ga863d6a4b22af7faa9fa7596f93906e4b}} 
int {\bfseries \+\_\+eina\+\_\+file\+\_\+log\+\_\+dom}
\begin{DoxyCompactList}\small\item\em The global Eina log file domain. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This group discusses the functions to handle files and directories. 

Functions to handle files and directories.

These functions make it easier to do a number of file and directory operations such as getting the list of files in a directory, splitting paths, and finding out file size and type.

\begin{DoxyWarning}{Warning}
All functions in this group are {\bfseries{blocking}}, which means they may take a long time to return; use them carefully.
\end{DoxyWarning}
See an example \mbox{\hyperlink{eina_file_example_01_page}{here}}.

This module performs internal housekeeping and utility tasks for Eina\+\_\+\+File. It also provides the underlying data types for things like file handles, file maps and file iterators. 

\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{group__Eina__File__Group_ga307eb3ab937eca910a4905ca61edb1bc}\label{group__Eina__File__Group_ga307eb3ab937eca910a4905ca61edb1bc}} 
\index{File@{File}!EINA\_PATH\_SEP\_C@{EINA\_PATH\_SEP\_C}}
\index{EINA\_PATH\_SEP\_C@{EINA\_PATH\_SEP\_C}!File@{File}}
\doxysubsubsection{\texorpdfstring{EINA\_PATH\_SEP\_C}{EINA\_PATH\_SEP\_C}}
{\footnotesize\ttfamily \#define EINA\+\_\+\+PATH\+\_\+\+SEP\+\_\+C~\textquotesingle{}/\textquotesingle{}}



The constant defined the path separator as the character \textquotesingle{}\textbackslash{}\textquotesingle{} on Windows and \textquotesingle{}/\textquotesingle{} otherwise. 

\begin{DoxySince}{Since}
1.\+16 
\end{DoxySince}
\mbox{\Hypertarget{group__Eina__File__Group_ga616ef146444c4337f8ef1d3cf96904a7}\label{group__Eina__File__Group_ga616ef146444c4337f8ef1d3cf96904a7}} 
\index{File@{File}!EINA\_PATH\_SEP\_S@{EINA\_PATH\_SEP\_S}}
\index{EINA\_PATH\_SEP\_S@{EINA\_PATH\_SEP\_S}!File@{File}}
\doxysubsubsection{\texorpdfstring{EINA\_PATH\_SEP\_S}{EINA\_PATH\_SEP\_S}}
{\footnotesize\ttfamily \#define EINA\+\_\+\+PATH\+\_\+\+SEP\+\_\+S~\char`\"{}/\char`\"{}}



The constant defined the path separator as the string \char`\"{}\textbackslash{}\char`\"{} on Windows and \char`\"{}/"{} otherwise. 

\begin{DoxySince}{Since}
1.\+16 
\end{DoxySince}
\mbox{\Hypertarget{group__Eina__File__Group_gab0472249546b833441c01dd278932bb0}\label{group__Eina__File__Group_gab0472249546b833441c01dd278932bb0}} 
\index{File@{File}!EINA\_FILE\_DIR\_LIST\_CB@{EINA\_FILE\_DIR\_LIST\_CB}}
\index{EINA\_FILE\_DIR\_LIST\_CB@{EINA\_FILE\_DIR\_LIST\_CB}!File@{File}}
\doxysubsubsection{\texorpdfstring{EINA\_FILE\_DIR\_LIST\_CB}{EINA\_FILE\_DIR\_LIST\_CB}}
{\footnotesize\ttfamily \#define EINA\+\_\+\+FILE\+\_\+\+DIR\+\_\+\+LIST\+\_\+\+CB(\begin{DoxyParamCaption}\item[{}]{function }\end{DoxyParamCaption})~((\mbox{\hyperlink{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}{Eina\+\_\+\+File\+\_\+\+Dir\+\_\+\+List\+\_\+\+Cb}})function)}



The macro to cast to an \mbox{\hyperlink{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}{Eina\+\_\+\+File\+\_\+\+Dir\+\_\+\+List\+\_\+\+Cb}}. 

This macro casts {\ttfamily function} to \mbox{\hyperlink{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}{Eina\+\_\+\+File\+\_\+\+Dir\+\_\+\+List\+\_\+\+Cb}}. 
\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em function} & The function to cast \\
\hline
\end{DoxyParams}


\doxysubsection{Typedef Documentation}
\mbox{\Hypertarget{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}\label{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}} 
\index{File@{File}!Eina\_Stat@{Eina\_Stat}}
\index{Eina\_Stat@{Eina\_Stat}!File@{File}}
\doxysubsubsection{\texorpdfstring{Eina\_Stat}{Eina\_Stat}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\+\_\+\+Stat}}}



A type for \mbox{\hyperlink{struct__Eina__Stat}{\+\_\+\+Eina\+\_\+\+Stat}}. 

\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}
\mbox{\Hypertarget{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}\label{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}} 
\index{File@{File}!Eina\_File\_Dir\_List\_Cb@{Eina\_File\_Dir\_List\_Cb}}
\index{Eina\_File\_Dir\_List\_Cb@{Eina\_File\_Dir\_List\_Cb}!File@{File}}
\doxysubsubsection{\texorpdfstring{Eina\_File\_Dir\_List\_Cb}{Eina\_File\_Dir\_List\_Cb}}
{\footnotesize\ttfamily Eina\+\_\+\+File\+\_\+\+Dir\+\_\+\+List\+\_\+\+Cb}



Type for a callback to be called when iterating over the files of a directory. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em name} & The file name EXCLUDING the path \\
\hline
\mbox{\texttt{ in}}  & {\em path} & The path passed to \mbox{\hyperlink{group__Eina__File__Group_gacb53e3286cf85a6652891ee5e5ec917b}{eina\+\_\+file\+\_\+dir\+\_\+list()}} \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The data passed to \mbox{\hyperlink{group__Eina__File__Group_gacb53e3286cf85a6652891ee5e5ec917b}{eina\+\_\+file\+\_\+dir\+\_\+list()}} \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Eina__File__Group_gaa08a39ec2e9abfa703d15822a074f521}\label{group__Eina__File__Group_gaa08a39ec2e9abfa703d15822a074f521}} 
\index{File@{File}!Eina\_File\_Copy\_Progress@{Eina\_File\_Copy\_Progress}}
\index{Eina\_File\_Copy\_Progress@{Eina\_File\_Copy\_Progress}!File@{File}}
\doxysubsubsection{\texorpdfstring{Eina\_File\_Copy\_Progress}{Eina\_File\_Copy\_Progress}}
{\footnotesize\ttfamily Eina\+\_\+\+File\+\_\+\+Copy\+\_\+\+Progress}



Type for a callback to report file copy progress. 

This function is used to report progress during \mbox{\hyperlink{group__Eina__File__Group_ga70b5eff251697b3be9ae6c9eb17aadbf}{eina\+\_\+file\+\_\+copy()}}, where {\ttfamily done} is the bytes already copied and {\ttfamily size} is the total file size.

\begin{DoxyNote}{Note}
If it returns \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, it will stop the copy. 
\end{DoxyNote}
\mbox{\Hypertarget{group__Eina__File__Group_ga14b7b651c6a2ea038f008e908995e9a5}\label{group__Eina__File__Group_ga14b7b651c6a2ea038f008e908995e9a5}} 
\index{File@{File}!Eina\_Statgen@{Eina\_Statgen}}
\index{Eina\_Statgen@{Eina\_Statgen}!File@{File}}
\doxysubsubsection{\texorpdfstring{Eina\_Statgen}{Eina\_Statgen}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__File__Group_ga14b7b651c6a2ea038f008e908995e9a5}{Eina\+\_\+\+Statgen}}}



Stat Generation count state with it being 0 when disabled or some other value that is comparable (== or !=) to a stored value and if it is not equal, then do the actual stat i/o work. 

\begin{DoxySince}{Since}
1.\+23 
\end{DoxySince}


\doxysubsection{Enumeration Type Documentation}
\mbox{\Hypertarget{group__Eina__File__Group_ga0b7b2db79f9a05b07273fb3428d46cd8}\label{group__Eina__File__Group_ga0b7b2db79f9a05b07273fb3428d46cd8}} 
\index{File@{File}!Eina\_File\_Type@{Eina\_File\_Type}}
\index{Eina\_File\_Type@{Eina\_File\_Type}!File@{File}}
\doxysubsubsection{\texorpdfstring{Eina\_File\_Type}{Eina\_File\_Type}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{group__Eina__File__Group_ga0b7b2db79f9a05b07273fb3428d46cd8}{Eina\+\_\+\+File\+\_\+\+Type}}}



Type for enumeration of a file type. 

This type is used in \mbox{\hyperlink{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}{Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info}}. \begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{EINA\_FILE\_UNKNOWN@{EINA\_FILE\_UNKNOWN}!File@{File}}\index{File@{File}!EINA\_FILE\_UNKNOWN@{EINA\_FILE\_UNKNOWN}}}\mbox{\Hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8aa271a0f3cd77f21c405a7e2636c4b064}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8aa271a0f3cd77f21c405a7e2636c4b064}} 
EINA\+\_\+\+FILE\+\_\+\+UNKNOWN&Unknown file type. \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EINA\_FILE\_FIFO@{EINA\_FILE\_FIFO}!File@{File}}\index{File@{File}!EINA\_FILE\_FIFO@{EINA\_FILE\_FIFO}}}\mbox{\Hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8aeffdbcaeae950a9c786736495c9e6ae6}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8aeffdbcaeae950a9c786736495c9e6ae6}} 
EINA\+\_\+\+FILE\+\_\+\+FIFO&Named pipe (FIFO) type (unused on Windows) \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EINA\_FILE\_CHR@{EINA\_FILE\_CHR}!File@{File}}\index{File@{File}!EINA\_FILE\_CHR@{EINA\_FILE\_CHR}}}\mbox{\Hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a3c0a5d44c060edb31c813aa04a025d2a}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a3c0a5d44c060edb31c813aa04a025d2a}} 
EINA\+\_\+\+FILE\+\_\+\+CHR&Character device type (unused on Windows) \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EINA\_FILE\_DIR@{EINA\_FILE\_DIR}!File@{File}}\index{File@{File}!EINA\_FILE\_DIR@{EINA\_FILE\_DIR}}}\mbox{\Hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a0b8844f30974a2fa27af9ba78bcfaa53}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a0b8844f30974a2fa27af9ba78bcfaa53}} 
EINA\+\_\+\+FILE\+\_\+\+DIR&Directory type. \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EINA\_FILE\_BLK@{EINA\_FILE\_BLK}!File@{File}}\index{File@{File}!EINA\_FILE\_BLK@{EINA\_FILE\_BLK}}}\mbox{\Hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a4e8e6ab5ad07461bf2e97981d0c6f745}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a4e8e6ab5ad07461bf2e97981d0c6f745}} 
EINA\+\_\+\+FILE\+\_\+\+BLK&Block device type (unused on Windows) \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EINA\_FILE\_REG@{EINA\_FILE\_REG}!File@{File}}\index{File@{File}!EINA\_FILE\_REG@{EINA\_FILE\_REG}}}\mbox{\Hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8ae5c8a949a0de3a8fc46dcf02a57df381}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8ae5c8a949a0de3a8fc46dcf02a57df381}} 
EINA\+\_\+\+FILE\+\_\+\+REG&Regular file type. \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EINA\_FILE\_LNK@{EINA\_FILE\_LNK}!File@{File}}\index{File@{File}!EINA\_FILE\_LNK@{EINA\_FILE\_LNK}}}\mbox{\Hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8abcfb23817258fffca146c9c43df45862}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8abcfb23817258fffca146c9c43df45862}} 
EINA\+\_\+\+FILE\+\_\+\+LNK&Symbolic link type (unused on Windows) \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EINA\_FILE\_SOCK@{EINA\_FILE\_SOCK}!File@{File}}\index{File@{File}!EINA\_FILE\_SOCK@{EINA\_FILE\_SOCK}}}\mbox{\Hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a7b2507d72b963615be2bef550d98c188}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a7b2507d72b963615be2bef550d98c188}} 
EINA\+\_\+\+FILE\+\_\+\+SOCK&UNIX domain socket type (unused on Windows) \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EINA\_FILE\_WHT@{EINA\_FILE\_WHT}!File@{File}}\index{File@{File}!EINA\_FILE\_WHT@{EINA\_FILE\_WHT}}}\mbox{\Hypertarget{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8af0980697fe8cbfc60a19f1f22b39634f}\label{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8af0980697fe8cbfc60a19f1f22b39634f}} 
EINA\+\_\+\+FILE\+\_\+\+WHT&Whiteout file type (unused on Windows) \\
\hline

\end{DoxyEnumFields}
\mbox{\Hypertarget{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}\label{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}} 
\index{File@{File}!Eina\_File\_Populate@{Eina\_File\_Populate}}
\index{Eina\_File\_Populate@{Eina\_File\_Populate}!File@{File}}
\doxysubsubsection{\texorpdfstring{Eina\_File\_Populate}{Eina\_File\_Populate}}
{\footnotesize\ttfamily enum \mbox{\hyperlink{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}{Eina\+\_\+\+File\+\_\+\+Populate}}}



Type for enumeration of a file access type. 

This type is used in \mbox{\hyperlink{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}{Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info}}. \begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{EINA\_FILE\_RANDOM@{EINA\_FILE\_RANDOM}!File@{File}}\index{File@{File}!EINA\_FILE\_RANDOM@{EINA\_FILE\_RANDOM}}}\mbox{\Hypertarget{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aae9b963a3ffd3a5f885c86db4673eabd3}\label{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aae9b963a3ffd3a5f885c86db4673eabd3}} 
EINA\+\_\+\+FILE\+\_\+\+RANDOM&Advise random memory access to the mapped memory. \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EINA\_FILE\_SEQUENTIAL@{EINA\_FILE\_SEQUENTIAL}!File@{File}}\index{File@{File}!EINA\_FILE\_SEQUENTIAL@{EINA\_FILE\_SEQUENTIAL}}}\mbox{\Hypertarget{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aabb92031c2d448a1659117121866229b2}\label{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aabb92031c2d448a1659117121866229b2}} 
EINA\+\_\+\+FILE\+\_\+\+SEQUENTIAL&Advise sequential memory access to the mapped memory. \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EINA\_FILE\_WILLNEED@{EINA\_FILE\_WILLNEED}!File@{File}}\index{File@{File}!EINA\_FILE\_WILLNEED@{EINA\_FILE\_WILLNEED}}}\mbox{\Hypertarget{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aab049b3550f67cdd35ea15d5839800186}\label{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aab049b3550f67cdd35ea15d5839800186}} 
EINA\+\_\+\+FILE\+\_\+\+WILLNEED&Advise need for all the mapped memory. \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EINA\_FILE\_POPULATE@{EINA\_FILE\_POPULATE}!File@{File}}\index{File@{File}!EINA\_FILE\_POPULATE@{EINA\_FILE\_POPULATE}}}\mbox{\Hypertarget{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aa6c05201c80772a294c16800d7ca46a1d}\label{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aa6c05201c80772a294c16800d7ca46a1d}} 
EINA\+\_\+\+FILE\+\_\+\+POPULATE&Request for all the mapped memory. \\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EINA\_FILE\_DONTNEED@{EINA\_FILE\_DONTNEED}!File@{File}}\index{File@{File}!EINA\_FILE\_DONTNEED@{EINA\_FILE\_DONTNEED}}}\mbox{\Hypertarget{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aabcd9246f7fbbbd2df5eeec7f3913558c}\label{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aabcd9246f7fbbbd2df5eeec7f3913558c}} 
EINA\+\_\+\+FILE\+\_\+\+DONTNEED&Indicate that the memory is no longer needed. This may result in the memory being removed from any caches if applicable. \begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}
\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{EINA\_FILE\_REMOVE@{EINA\_FILE\_REMOVE}!File@{File}}\index{File@{File}!EINA\_FILE\_REMOVE@{EINA\_FILE\_REMOVE}}}\mbox{\Hypertarget{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aa4786137330071feac6aafa0dcfc56519}\label{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aa4786137330071feac6aafa0dcfc56519}} 
EINA\+\_\+\+FILE\+\_\+\+REMOVE&This memory is to be released and any content will be lost. Subsequent accesses will succeed but return fresh memory as if accessed for the first time. This may not succeed if the filesystem does not support it. \begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}
\\
\hline

\end{DoxyEnumFields}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Eina__File__Group_gacb53e3286cf85a6652891ee5e5ec917b}\label{group__Eina__File__Group_gacb53e3286cf85a6652891ee5e5ec917b}} 
\index{File@{File}!eina\_file\_dir\_list@{eina\_file\_dir\_list}}
\index{eina\_file\_dir\_list@{eina\_file\_dir\_list}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_dir\_list()}{eina\_file\_dir\_list()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+file\+\_\+dir\+\_\+list (\begin{DoxyParamCaption}\item[{const char $\ast$}]{dir,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{recursive,  }\item[{\mbox{\hyperlink{group__Eina__File__Group_ga074e73b17381346ada766213d3bb5432}{Eina\+\_\+\+File\+\_\+\+Dir\+\_\+\+List\+\_\+\+Cb}}}]{cb,  }\item[{void $\ast$}]{data }\end{DoxyParamCaption})}



Lists all the files on the directory by calling the function for every file found. 

This function calls {\ttfamily cb} for each file that is in {\ttfamily dir}. To have {\ttfamily cb} called on the files that are in subdirectories of {\ttfamily dir}, {\ttfamily recursive} should be \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}. In other words, if {\ttfamily recursive} is \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, only direct children of {\ttfamily dir} are operated on, if {\ttfamily recursive} is \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} the entire tree of files that is below {\ttfamily dir} is operated on.

If {\ttfamily cb} or {\ttfamily dir} is {\ttfamily NULL} or if {\ttfamily dir} is a string of size 0, or if {\ttfamily dir} cannot be opened, this function returns \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}} immediately. Otherwise, it returns \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em dir} & The directory name \\
\hline
\mbox{\texttt{ in}}  & {\em recursive} & Iterate recursively in the directory \\
\hline
\mbox{\texttt{ in}}  & {\em cb} & The callback to be called \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The data to pass to the callback \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} on success, otherwise \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}} 
\end{DoxyReturn}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eina_file_01_8c-example}{eina\+\_\+file\+\_\+01.\+c}}.\end{Desc}


References \mbox{\hyperlink{eina__alloca_8h_ae13861224cb6597c3171a910683cb5fc}{alloca()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a0b8844f30974a2fa27af9ba78bcfaa53}{EINA\+\_\+\+FILE\+\_\+\+DIR}}, \mbox{\hyperlink{group__Eina__File__Group_gacb53e3286cf85a6652891ee5e5ec917b}{eina\+\_\+file\+\_\+dir\+\_\+list()}}, \mbox{\hyperlink{group__Eina__File__Group_ga31221ab03e0e4e1d9b33be3950a19d06}{eina\+\_\+file\+\_\+stat\+\_\+ls()}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gac7314580e18868ef229f5d2814562794}{EINA\+\_\+\+ITERATOR\+\_\+\+FOREACH}}, \mbox{\hyperlink{group__Eina__Iterator__Group_ga50da005e8d26c0a043d0d1c025bc9008}{eina\+\_\+iterator\+\_\+free()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1dbe0d7e3c6b10f4bd49a2a132d73269}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{group__Evil_gaae72f05fae6f040f6d4b109c697f78a7}{evil\+\_\+wchar\+\_\+to\+\_\+char()}}, \mbox{\hyperlink{struct__Eina__File__Direct__Info_a824ea1719b5c9ced439dcf98412786d3}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info\+::name\+\_\+start}}, \mbox{\hyperlink{struct__Eina__File__Direct__Info_a85b1e39fb487005bf1427a1639fa06a8}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info\+::path}}, and \mbox{\hyperlink{struct__Eina__File__Direct__Info_a771ccc59adfbd2f5a11ad5384c666683}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info\+::type}}.



Referenced by \mbox{\hyperlink{group__Eina__File__Group_gacb53e3286cf85a6652891ee5e5ec917b}{eina\+\_\+file\+\_\+dir\+\_\+list()}}, \mbox{\hyperlink{group__Eina__Module__Group_gaf13eef3b24ff64c2f4b02f44e24cbf90}{eina\+\_\+module\+\_\+arch\+\_\+list\+\_\+get()}}, and \mbox{\hyperlink{group__Eina__Module__Group_ga1ff67add1ad98a7b873ee8460f6584f8}{eina\+\_\+module\+\_\+list\+\_\+get()}}.

\mbox{\Hypertarget{group__Eina__File__Group_gae199780cb832cc5eedfb45bd88a5c4bb}\label{group__Eina__File__Group_gae199780cb832cc5eedfb45bd88a5c4bb}} 
\index{File@{File}!eina\_file\_split@{eina\_file\_split}}
\index{eina\_file\_split@{eina\_file\_split}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_split()}{eina\_file\_split()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Array__Group_ga2a57284ee83a7e767485b7ae2f5df86c}{Eina\+\_\+\+Array}} $\ast$ eina\+\_\+file\+\_\+split (\begin{DoxyParamCaption}\item[{char $\ast$}]{path }\end{DoxyParamCaption})}



Splits a path according to the delimiter of the filesystem. 

This function splits {\ttfamily path} according to the delimiter of the used filesystem. If {\ttfamily path} is {\ttfamily NULL} or if the array cannot be created, {\ttfamily NULL} is returned, otherwise an array with each part of {\ttfamily path} is returned.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em path} & The path to split \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An array of the parts of the path to split 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Eina__Array__Group_gaf4b5844225b5359a617744210a5ed6ff}{eina\+\_\+array\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Array__Group_ga97ac1fe353f4cd7a9762af4d4db7b9c4}{eina\+\_\+array\+\_\+push()}}, and \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}.

\mbox{\Hypertarget{group__Eina__File__Group_gab744fcd8eb2369fed66520ff82930650}\label{group__Eina__File__Group_gab744fcd8eb2369fed66520ff82930650}} 
\index{File@{File}!eina\_file\_ls@{eina\_file\_ls}}
\index{eina\_file\_ls@{eina\_file\_ls}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_ls()}{eina\_file\_ls()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ eina\+\_\+file\+\_\+ls (\begin{DoxyParamCaption}\item[{const char $\ast$}]{dir }\end{DoxyParamCaption})}



Gets an iterator to list the content of a directory. 

This returns an iterator for shared strings, the name of each file in {\ttfamily dir} is only fetched when advancing the iterator, which means there is very little cost associated with creating the list and stopping halfway through it.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em dir} & The name of the directory to list \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} that walks over the files and directories in {\ttfamily dir}. On failure, it returns {\ttfamily NULL}.
\end{DoxyReturn}
\begin{DoxyNote}{Note}
The iterator hands the user a stringshared value with the full path. The user must free the string using \mbox{\hyperlink{group__Eina__Stringshare__Group_ga5538b4a134987b8a01744fad1a845ba4}{eina\+\_\+stringshare\+\_\+del()}} on it.

The container for the iterator is of type DIR$\ast$. 

The iterator walks over \textquotesingle{}.\textquotesingle{} and \textquotesingle{}..\textquotesingle{} without returning them.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__File__Group_ga581f32b7e4858077861da108ea6d3948}{eina\+\_\+file\+\_\+direct\+\_\+ls()}} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_con_client_example_8c-example}{ecore\+\_\+con\+\_\+client\+\_\+example.\+c}}, \mbox{\hyperlink{ecore_thread_example_8c-example}{ecore\+\_\+thread\+\_\+example.\+c}}, and \mbox{\hyperlink{eina_file_01_8c-example}{eina\+\_\+file\+\_\+01.\+c}}.\end{Desc}


References \mbox{\hyperlink{group__Eina__Magic__Group_ga470f5ce28eaaf59ce80523be8471c5e0}{EINA\+\_\+\+MAGIC\+\_\+\+SET}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Types__Group_ga70675a75a5fb3e9a51d5af985a1fd3aa}{EINA\+\_\+\+UNLIKELY}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gad1ea4d3a7e58b47b23073a58e869d167}{FUNC\+\_\+\+ITERATOR\+\_\+\+FREE}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gab41f5a30f0a2030f4a832548d18332db}{FUNC\+\_\+\+ITERATOR\+\_\+\+GET\+\_\+\+CONTAINER}}, and \mbox{\hyperlink{group__Eina__Iterator__Group_gaec80e80b2867e391b0b27f5f20c3a5b3}{FUNC\+\_\+\+ITERATOR\+\_\+\+NEXT}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga31221ab03e0e4e1d9b33be3950a19d06}\label{group__Eina__File__Group_ga31221ab03e0e4e1d9b33be3950a19d06}} 
\index{File@{File}!eina\_file\_stat\_ls@{eina\_file\_stat\_ls}}
\index{eina\_file\_stat\_ls@{eina\_file\_stat\_ls}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_stat\_ls()}{eina\_file\_stat\_ls()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ eina\+\_\+file\+\_\+stat\+\_\+ls (\begin{DoxyParamCaption}\item[{const char $\ast$}]{dir }\end{DoxyParamCaption})}



Gets an iterator to list the content of a directory, with direct information. 

This returns an iterator for \mbox{\hyperlink{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}{Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info}}, the name of each file in {\ttfamily dir} is only fetched when advancing the iterator, which means there is cost associated with creating the list and stopping halfway through it.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em dir} & The name of the directory to list\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} that walks over the files and directories in {\ttfamily dir}. On failure, it returns {\ttfamily NULL}.
\end{DoxyReturn}
\begin{DoxyWarning}{Warning}
The \mbox{\hyperlink{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}{Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info}} returned by the iterator {\bfseries{must not}} be modified in any way. 

When the iterator is advanced or deleted the \mbox{\hyperlink{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}{Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info}} returned is no longer valid.
\end{DoxyWarning}
\begin{DoxyNote}{Note}
The container for the iterator is of type DIR$\ast$. 

The iterator walks over \textquotesingle{}.\textquotesingle{} and \textquotesingle{}..\textquotesingle{} without returning them. 

The difference between this function and \mbox{\hyperlink{group__Eina__File__Group_ga581f32b7e4858077861da108ea6d3948}{eina\+\_\+file\+\_\+direct\+\_\+ls()}} is that it guarantees the file type information to be correct by incurring a possible performance penalty.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__File__Group_ga581f32b7e4858077861da108ea6d3948}{eina\+\_\+file\+\_\+direct\+\_\+ls()}} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eina_file_01_8c-example}{eina\+\_\+file\+\_\+01.\+c}}.\end{Desc}


References \mbox{\hyperlink{group__Eina__File__Group_ga581f32b7e4858077861da108ea6d3948}{eina\+\_\+file\+\_\+direct\+\_\+ls()}}, \mbox{\hyperlink{group__Eina__Magic__Group_ga470f5ce28eaaf59ce80523be8471c5e0}{EINA\+\_\+\+MAGIC\+\_\+\+SET}}, \mbox{\hyperlink{group__Eina__File__Group_ga868d33cdb2c1a17ad3d76efc6bbbd5e0}{EINA\+\_\+\+PATH\+\_\+\+MAX}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Types__Group_ga70675a75a5fb3e9a51d5af985a1fd3aa}{EINA\+\_\+\+UNLIKELY}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gad1ea4d3a7e58b47b23073a58e869d167}{FUNC\+\_\+\+ITERATOR\+\_\+\+FREE}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gab41f5a30f0a2030f4a832548d18332db}{FUNC\+\_\+\+ITERATOR\+\_\+\+GET\+\_\+\+CONTAINER}}, and \mbox{\hyperlink{group__Eina__Iterator__Group_gaec80e80b2867e391b0b27f5f20c3a5b3}{FUNC\+\_\+\+ITERATOR\+\_\+\+NEXT}}.



Referenced by \mbox{\hyperlink{group__Eina__File__Group_gacb53e3286cf85a6652891ee5e5ec917b}{eina\+\_\+file\+\_\+dir\+\_\+list()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga27f6c06f171f1e28442f7f84acef5666}\label{group__Eina__File__Group_ga27f6c06f171f1e28442f7f84acef5666}} 
\index{File@{File}!eina\_file\_statat@{eina\_file\_statat}}
\index{eina\_file\_statat@{eina\_file\_statat}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_statat()}{eina\_file\_statat()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} int eina\+\_\+file\+\_\+statat (\begin{DoxyParamCaption}\item[{void $\ast$}]{container,  }\item[{\mbox{\hyperlink{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}{Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info}} $\ast$}]{info,  }\item[{\mbox{\hyperlink{group__Eina__File__Group_gab15fe1278f044850fcb24417a47364a8}{Eina\+\_\+\+Stat}} $\ast$}]{buf }\end{DoxyParamCaption})}



Uses information provided by \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} of \mbox{\hyperlink{group__Eina__File__Group_ga31221ab03e0e4e1d9b33be3950a19d06}{eina\+\_\+file\+\_\+stat\+\_\+ls()}} or \mbox{\hyperlink{group__Eina__File__Group_ga581f32b7e4858077861da108ea6d3948}{eina\+\_\+file\+\_\+direct\+\_\+ls()}} to call stat in the most efficient way on your system. 

This function calls fstatat or stat depending on what your system supports. This makes it efficient and simple to use on your side without complex detection already done inside Eina on what the system can do.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em container} & The container returned by \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} using \mbox{\hyperlink{group__Eina__Iterator__Group_gab41f34ca186b6b6508291dad138f7062}{eina\+\_\+iterator\+\_\+container\+\_\+get()}} \\
\hline
\mbox{\texttt{ in}}  & {\em info} & The content of the current \mbox{\hyperlink{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}{Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info}} provided by \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} \\
\hline
\mbox{\texttt{ in}}  & {\em buf} & The location put the result of the stat \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily 0} is returned on success, otherwise {\ttfamily -\/1} is returned on error and errno is set appropriately
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__File__Group_ga581f32b7e4858077861da108ea6d3948}{eina\+\_\+file\+\_\+direct\+\_\+ls()}} 

\mbox{\hyperlink{group__Eina__File__Group_ga31221ab03e0e4e1d9b33be3950a19d06}{eina\+\_\+file\+\_\+stat\+\_\+ls()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References \mbox{\hyperlink{struct__Eina__Stat_ada067299e3d8f39599241da8a55852f3}{\+\_\+\+Eina\+\_\+\+Stat\+::atime}}, \mbox{\hyperlink{struct__Eina__Stat_af9df7b16d7f959252b24d0a518995f4c}{\+\_\+\+Eina\+\_\+\+Stat\+::atimensec}}, \mbox{\hyperlink{struct__Eina__Stat_a93235d019fa84b9e83908a19d705af52}{\+\_\+\+Eina\+\_\+\+Stat\+::blksize}}, \mbox{\hyperlink{struct__Eina__Stat_a4e691ff458cb886a32cfa3ea64f8cc97}{\+\_\+\+Eina\+\_\+\+Stat\+::blocks}}, \mbox{\hyperlink{struct__Eina__Stat_adeb3759b90610d0fa740378be7f45318}{\+\_\+\+Eina\+\_\+\+Stat\+::ctime}}, \mbox{\hyperlink{struct__Eina__Stat_ae04acb6617b18375bd751df59525d0e4}{\+\_\+\+Eina\+\_\+\+Stat\+::ctimensec}}, \mbox{\hyperlink{struct__Eina__Stat_a25cdeae98b2fac783a73ade9a86fa14d}{\+\_\+\+Eina\+\_\+\+Stat\+::dev}}, \mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a4e8e6ab5ad07461bf2e97981d0c6f745}{EINA\+\_\+\+FILE\+\_\+\+BLK}}, \mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a3c0a5d44c060edb31c813aa04a025d2a}{EINA\+\_\+\+FILE\+\_\+\+CHR}}, \mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a0b8844f30974a2fa27af9ba78bcfaa53}{EINA\+\_\+\+FILE\+\_\+\+DIR}}, \mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8aeffdbcaeae950a9c786736495c9e6ae6}{EINA\+\_\+\+FILE\+\_\+\+FIFO}}, \mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8abcfb23817258fffca146c9c43df45862}{EINA\+\_\+\+FILE\+\_\+\+LNK}}, \mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8ae5c8a949a0de3a8fc46dcf02a57df381}{EINA\+\_\+\+FILE\+\_\+\+REG}}, \mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8a7b2507d72b963615be2bef550d98c188}{EINA\+\_\+\+FILE\+\_\+\+SOCK}}, \mbox{\hyperlink{group__Eina__File__Group_gga0b7b2db79f9a05b07273fb3428d46cd8aa271a0f3cd77f21c405a7e2636c4b064}{EINA\+\_\+\+FILE\+\_\+\+UNKNOWN}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{struct__Eina__Stat_af27831611bd90454a7f4895248e2b65d}{\+\_\+\+Eina\+\_\+\+Stat\+::gid}}, \mbox{\hyperlink{struct__Eina__Stat_a75c57f4137c999b56ab1644a32b02c8b}{\+\_\+\+Eina\+\_\+\+Stat\+::ino}}, \mbox{\hyperlink{struct__Eina__Stat_a9592a3a7e4ce82ba95ce094cba4b6ba6}{\+\_\+\+Eina\+\_\+\+Stat\+::mode}}, \mbox{\hyperlink{struct__Eina__Stat_ab7831e00d54804a0105fac9f7b881b24}{\+\_\+\+Eina\+\_\+\+Stat\+::mtime}}, \mbox{\hyperlink{struct__Eina__Stat_a9bb9fb0dbcf06d476f4eebb1146754b1}{\+\_\+\+Eina\+\_\+\+Stat\+::mtimensec}}, \mbox{\hyperlink{struct__Eina__File__Direct__Info_a824ea1719b5c9ced439dcf98412786d3}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info\+::name\+\_\+start}}, \mbox{\hyperlink{struct__Eina__Stat_a517249fb1e31b7e3c6631daccdfecd50}{\+\_\+\+Eina\+\_\+\+Stat\+::nlink}}, \mbox{\hyperlink{struct__Eina__File__Direct__Info_a85b1e39fb487005bf1427a1639fa06a8}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info\+::path}}, \mbox{\hyperlink{struct__Eina__Stat_a6925535f26de70972405cd0c7e514ab7}{\+\_\+\+Eina\+\_\+\+Stat\+::rdev}}, \mbox{\hyperlink{struct__Eina__Stat_af7c6c5533f01b5db152598345f0ad671}{\+\_\+\+Eina\+\_\+\+Stat\+::size}}, \mbox{\hyperlink{struct__Eina__File__Direct__Info_a771ccc59adfbd2f5a11ad5384c666683}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info\+::type}}, and \mbox{\hyperlink{struct__Eina__Stat_a53d2f4b0cbae26abbee56deea550b367}{\+\_\+\+Eina\+\_\+\+Stat\+::uid}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga094cc814e58b6951aa392f5dd4b2fe4d}\label{group__Eina__File__Group_ga094cc814e58b6951aa392f5dd4b2fe4d}} 
\index{File@{File}!eina\_file\_close\_from@{eina\_file\_close\_from}}
\index{eina\_file\_close\_from@{eina\_file\_close\_from}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_close\_from()}{eina\_file\_close\_from()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+file\+\_\+close\+\_\+from (\begin{DoxyParamCaption}\item[{int}]{fd,  }\item[{int $\ast$}]{except\+\_\+fd }\end{DoxyParamCaption})}



Close all file descriptors that are open at or above the given fd. 

This closes all open file descriptors that are equal to or of higher value than the given inpit fd given. This is intended for niche use like closing all open files just before exec()ing a new process after calling fork(). The except\+\_\+fd array can be NULL if no fd\textquotesingle{}s are to be skipped, but if some fd\textquotesingle{}s are to skip being closed then this will be an array of fd numbers being terminated by a fd value of -\/1.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em fd} & The fd value to begin closing at \\
\hline
\mbox{\texttt{ in}}  & {\em except\+\_\+fd} & An array of fd\textquotesingle{}s not to close terminated by -\/1 as the last invalid fd\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+24 
\end{DoxySince}


References \mbox{\hyperlink{eina__alloca_8h_ae13861224cb6597c3171a910683cb5fc}{alloca()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Eina__File__Group_gac77efa39c12ba6880a5bbdca004080fb}\label{group__Eina__File__Group_gac77efa39c12ba6880a5bbdca004080fb}} 
\index{File@{File}!eina\_file\_mkstemp@{eina\_file\_mkstemp}}
\index{eina\_file\_mkstemp@{eina\_file\_mkstemp}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_mkstemp()}{eina\_file\_mkstemp()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} int eina\+\_\+file\+\_\+mkstemp (\begin{DoxyParamCaption}\item[{const char $\ast$}]{templatename,  }\item[{\mbox{\hyperlink{group__Eina__Stringshare__Group_gae8d53f367d5da5acfd19af6c235831d5}{Eina\+\_\+\+Tmpstr}} $\ast$$\ast$}]{path }\end{DoxyParamCaption})}



Generates and creates a uniquely named temporary file from a template name. 

The generated file is opened with the open(2) {\ttfamily O\+\_\+\+EXCL} flag.

This function calls mkstemp(), generates a unique temporary filename from template, creates and opens the file, and returns an open file descriptor for the file.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em templatename} & This is a string. It must contain the six characters \textquotesingle{}XXXXXX\textquotesingle{} at the end or directly followed by an extension as in \textquotesingle{}prefix\+XXXXXX.\+ext\textquotesingle{}. \\
\hline
\mbox{\texttt{ out}}  & {\em path} & The path to the created temporary file, or {\ttfamily NULL} in case of failure. It must be released by \mbox{\hyperlink{group__Eina__Stringshare__Group_ga0c32cf7aadbc1fcd60500d5bb9c03c93}{eina\+\_\+tmpstr\+\_\+del()}}. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
On success {\ttfamily file} descriptor of the temporary file is returned, On error {\ttfamily -\/1} is returned, in which case {\ttfamily errno} is set appropriately.
\end{DoxyReturn}
\begin{DoxyNote}{Note}
If a filename extension was specified in {\ttfamily templatename}, then the new {\ttfamily path} will also contain this extension (since 1.\+10).

If the {\ttfamily templatename} is a simple file name (no relative or absolute path to another directory), then a temporary file will be created inside the system temporary directory (
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Tools__Group_gad2748011998106088d3a54e3d1115715}{eina\+\_\+environment\+\_\+tmp\+\_\+get()}}). If the {\ttfamily templatename} contains a directory separator (\textquotesingle{}/\textquotesingle{}, or \textquotesingle{}\textbackslash{}\textquotesingle{} on Windows) then the file will be created inside this directory, which must exist and be writeable. Use ./filename.XXXXXX to create files in the current working directory. (since 1.\+17)

\mbox{\hyperlink{group__Eina__File__Group_gaa4571fad8d5e94f3a1936bb09beae16c}{eina\+\_\+file\+\_\+mkdtemp()}} 
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eet-data-cipher_decipher_8c-example}{eet-\/data-\/cipher\+\_\+decipher.\+c}}.\end{Desc}


References \mbox{\hyperlink{group__Eina__Tools__Group_gad2748011998106088d3a54e3d1115715}{eina\+\_\+environment\+\_\+tmp\+\_\+get()}}, \mbox{\hyperlink{group__Eina__File__Group_gaafc34529ee88ef8b528f62dab8ffe469}{eina\+\_\+file\+\_\+path\+\_\+join()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__String__Group_gae28caa0c42c4e76ae584f22bd3615723}{eina\+\_\+strlcpy()}}, and \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4d785a1e6484d0454568a580ee9e466f}{eina\+\_\+tmpstr\+\_\+add()}}.



Referenced by \mbox{\hyperlink{group__Ecore__File__Group_gadcb442b00a20cb19e2cd84fa9910b9d6}{ecore\+\_\+file\+\_\+mv()}}, and \mbox{\hyperlink{Ecore__X_8h_aca0475dc578462a33d67471482627ca5}{ecore\+\_\+x\+\_\+resource\+\_\+db\+\_\+flush()}}.

\mbox{\Hypertarget{group__Eina__File__Group_gaa4571fad8d5e94f3a1936bb09beae16c}\label{group__Eina__File__Group_gaa4571fad8d5e94f3a1936bb09beae16c}} 
\index{File@{File}!eina\_file\_mkdtemp@{eina\_file\_mkdtemp}}
\index{eina\_file\_mkdtemp@{eina\_file\_mkdtemp}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_mkdtemp()}{eina\_file\_mkdtemp()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+file\+\_\+mkdtemp (\begin{DoxyParamCaption}\item[{const char $\ast$}]{templatename,  }\item[{\mbox{\hyperlink{group__Eina__Stringshare__Group_gae8d53f367d5da5acfd19af6c235831d5}{Eina\+\_\+\+Tmpstr}} $\ast$$\ast$}]{path }\end{DoxyParamCaption})}



Generates and creates a uniquely named temporary directory from a template name. 

This function calls mkdtemp(). The directory is then created with permissions 0700.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em templatename} & This is a string. The last six characters of {\ttfamily templatename} must be XXXXXX. \\
\hline
\mbox{\texttt{ out}}  & {\em path} & The path to the created temporary directory, or {\ttfamily NULL} in case of failure. It must be released by \mbox{\hyperlink{group__Eina__Stringshare__Group_ga0c32cf7aadbc1fcd60500d5bb9c03c93}{eina\+\_\+tmpstr\+\_\+del()}}. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
On success {\ttfamily EINA\+\_\+\+TRUE} is returned, On error {\ttfamily EINA\+\_\+\+FALSE} is returned, in which case {\ttfamily errno} is set appropriately.
\end{DoxyReturn}
\begin{DoxyNote}{Note}
If the {\ttfamily templatename} is a simple directory name (no relative or absolute path to another directory), then a temporary directory will be created inside the system temporary directory (
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__Tools__Group_gad2748011998106088d3a54e3d1115715}{eina\+\_\+environment\+\_\+tmp\+\_\+get()}}). If the {\ttfamily templatename} contains a directory separator (\textquotesingle{}/\textquotesingle{}, or \textquotesingle{}\textbackslash{}\textquotesingle{} on Windows) then the temporary directory will be created inside that other directory, which must exist and be writeable. (since 1.\+17)

\mbox{\hyperlink{group__Eina__File__Group_gac77efa39c12ba6880a5bbdca004080fb}{eina\+\_\+file\+\_\+mkstemp()}} 
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Tools__Group_gad2748011998106088d3a54e3d1115715}{eina\+\_\+environment\+\_\+tmp\+\_\+get()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__File__Group_gaafc34529ee88ef8b528f62dab8ffe469}{eina\+\_\+file\+\_\+path\+\_\+join()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__String__Group_gae28caa0c42c4e76ae584f22bd3615723}{eina\+\_\+strlcpy()}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4d785a1e6484d0454568a580ee9e466f}{eina\+\_\+tmpstr\+\_\+add()}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga581f32b7e4858077861da108ea6d3948}\label{group__Eina__File__Group_ga581f32b7e4858077861da108ea6d3948}} 
\index{File@{File}!eina\_file\_direct\_ls@{eina\_file\_direct\_ls}}
\index{eina\_file\_direct\_ls@{eina\_file\_direct\_ls}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_direct\_ls()}{eina\_file\_direct\_ls()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ eina\+\_\+file\+\_\+direct\+\_\+ls (\begin{DoxyParamCaption}\item[{const char $\ast$}]{dir }\end{DoxyParamCaption})}



Gets an iterator to list the content of a directory, with direct information. 

This returns an iterator for \mbox{\hyperlink{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}{Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info}}, the name of each file in {\ttfamily dir} is only fetched when advancing the iterator, which means there is cost associated with creating the list and stopping halfway through it.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em dir} & The name of the directory to list\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An Eina\+\_\+\+Iterator that walks over the files and directories in {\ttfamily dir}. On failure, it returns {\ttfamily NULL}.
\end{DoxyReturn}
\begin{DoxyWarning}{Warning}
If readdir\+\_\+r doesn\textquotesingle{}t contain file type information, file type is EINA\+\_\+\+FILE\+\_\+\+UNKNOWN. 

The \mbox{\hyperlink{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}{Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info}} returned by the iterator {\bfseries{must not}} be modified in any way. 

When the iterator is advanced or deleted the \mbox{\hyperlink{group__Eina__File__Group_ga8e8779c9f28937a642dbe1be86760646}{Eina\+\_\+\+File\+\_\+\+Direct\+\_\+\+Info}} returned is no longer valid.
\end{DoxyWarning}
\begin{DoxyNote}{Note}
The container for the iterator is of type DIR$\ast$. 

The iterator walks over \textquotesingle{}.\textquotesingle{} and \textquotesingle{}..\textquotesingle{} without returning them. 

The difference between this function and \mbox{\hyperlink{group__Eina__File__Group_ga31221ab03e0e4e1d9b33be3950a19d06}{eina\+\_\+file\+\_\+stat\+\_\+ls()}} is that it may not get the file type information however it is likely to be faster.
\end{DoxyNote}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__File__Group_gab744fcd8eb2369fed66520ff82930650}{eina\+\_\+file\+\_\+ls()}} 
\end{DoxySeeAlso}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{eina_file_01_8c-example}{eina\+\_\+file\+\_\+01.\+c}}.\end{Desc}


References \mbox{\hyperlink{group__Eina__Magic__Group_ga470f5ce28eaaf59ce80523be8471c5e0}{EINA\+\_\+\+MAGIC\+\_\+\+SET}}, \mbox{\hyperlink{group__Eina__File__Group_ga868d33cdb2c1a17ad3d76efc6bbbd5e0}{EINA\+\_\+\+PATH\+\_\+\+MAX}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Types__Group_ga70675a75a5fb3e9a51d5af985a1fd3aa}{EINA\+\_\+\+UNLIKELY}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gad1ea4d3a7e58b47b23073a58e869d167}{FUNC\+\_\+\+ITERATOR\+\_\+\+FREE}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gab41f5a30f0a2030f4a832548d18332db}{FUNC\+\_\+\+ITERATOR\+\_\+\+GET\+\_\+\+CONTAINER}}, and \mbox{\hyperlink{group__Eina__Iterator__Group_gaec80e80b2867e391b0b27f5f20c3a5b3}{FUNC\+\_\+\+ITERATOR\+\_\+\+NEXT}}.



Referenced by \mbox{\hyperlink{group__Ecore__File__Group_ga5f6777eb4beea434372df0aa7357979b}{ecore\+\_\+file\+\_\+dir\+\_\+is\+\_\+empty()}}, \mbox{\hyperlink{group__Ecore__File__Group_gab7baa24c2abea205b4d1f92397f1bda0}{ecore\+\_\+file\+\_\+ls()}}, \mbox{\hyperlink{group__Ecore__File__Group_ga6e2d09d544f8e2b53c9518d521e1efd0}{ecore\+\_\+file\+\_\+recursive\+\_\+rm()}}, \mbox{\hyperlink{group__Edje__General__Group_ga3ad1025c24e7262cf489afb042171b43}{edje\+\_\+available\+\_\+modules\+\_\+get()}}, and \mbox{\hyperlink{group__Eina__File__Group_ga31221ab03e0e4e1d9b33be3950a19d06}{eina\+\_\+file\+\_\+stat\+\_\+ls()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga4c11cce335038a46c2979f1ecf5f3d33}\label{group__Eina__File__Group_ga4c11cce335038a46c2979f1ecf5f3d33}} 
\index{File@{File}!eina\_file\_path\_sanitize@{eina\_file\_path\_sanitize}}
\index{eina\_file\_path\_sanitize@{eina\_file\_path\_sanitize}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_path\_sanitize()}{eina\_file\_path\_sanitize()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} char $\ast$ eina\+\_\+file\+\_\+path\+\_\+sanitize (\begin{DoxyParamCaption}\item[{const char $\ast$}]{path }\end{DoxyParamCaption})}



Sanitizes the file path. 

This function takes care of adding the current working directory if its a relative path and also removes all \textquotesingle{}..\textquotesingle{} and \textquotesingle{}//\textquotesingle{} references in the original path.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em path} & The path to sanitize\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An allocated string with the sanitized path
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__File__Group_ga9ca2fa022c056bcc3dfa15618531524b}{eina\+\_\+file\+\_\+current\+\_\+directory\+\_\+get()}}, \mbox{\hyperlink{group__Eina__File__Group_ga3eb6309933f0a698eda7cf41ed21fb5e}{eina\+\_\+file\+\_\+path\+\_\+relative()}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga0c32cf7aadbc1fcd60500d5bb9c03c93}{eina\+\_\+tmpstr\+\_\+del()}}, and \mbox{\hyperlink{group__Eina__Stringshare__Group_ga930d8de27f0e8d6b6445a6123ce97380}{eina\+\_\+tmpstr\+\_\+len()}}.



Referenced by \mbox{\hyperlink{group__Elm__General_gae9c899a5910733a49d4a470ae61ca08d}{efl\+\_\+quicklaunch\+\_\+prepare()}}, \mbox{\hyperlink{group__Efreet__Desktop_ga45917cf8b9ade3bce4a0d86f3bc77bd1}{efreet\+\_\+desktop\+\_\+new()}}, \mbox{\hyperlink{group__Efreet__Desktop_gab3c8380d12dba2118e28faefa7f92270}{efreet\+\_\+desktop\+\_\+uncached\+\_\+new()}}, \mbox{\hyperlink{group__Efreet__Icon_gaa66e6fbb30c456e6d3ace6ca94509217}{efreet\+\_\+icon\+\_\+deprecated\+\_\+user\+\_\+dir\+\_\+get()}}, \mbox{\hyperlink{group__Efreet__Icon_ga79fb838f5a204c40a41364bf287f70c3}{efreet\+\_\+icon\+\_\+user\+\_\+dir\+\_\+get()}}, \mbox{\hyperlink{group__Elua_ga3ef02ac4acf29212793720849391d4b8}{elua\+\_\+state\+\_\+dirs\+\_\+fill()}}, \mbox{\hyperlink{group__Elua_ga92e75b39e56082d05c2beb7bdf401a15}{elua\+\_\+state\+\_\+dirs\+\_\+set()}}, \mbox{\hyperlink{group__Elua_ga1c0e7c790bcfb9f0e9b19295d6e953f4}{elua\+\_\+state\+\_\+include\+\_\+path\+\_\+add()}}, \mbox{\hyperlink{group__Ethumb__Basics_gabf9b670b9ddd23806dbd91e6681f2866}{ethumb\+\_\+file\+\_\+set()}}, and \mbox{\hyperlink{group__Ethumb__Setup_ga8183c0ed98404c771c02a2e0bca76760}{ethumb\+\_\+thumb\+\_\+dir\+\_\+path\+\_\+set()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga70b5eff251697b3be9ae6c9eb17aadbf}\label{group__Eina__File__Group_ga70b5eff251697b3be9ae6c9eb17aadbf}} 
\index{File@{File}!eina\_file\_copy@{eina\_file\_copy}}
\index{eina\_file\_copy@{eina\_file\_copy}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_copy()}{eina\_file\_copy()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+file\+\_\+copy (\begin{DoxyParamCaption}\item[{const char $\ast$}]{src,  }\item[{const char $\ast$}]{dst,  }\item[{\mbox{\hyperlink{group__Eina__File__Group_ga64acf75a3d09f9ef5ad04173a628cc32}{Eina\+\_\+\+File\+\_\+\+Copy\+\_\+\+Flags}}}]{flags,  }\item[{\mbox{\hyperlink{group__Eina__File__Group_gaa08a39ec2e9abfa703d15822a074f521}{Eina\+\_\+\+File\+\_\+\+Copy\+\_\+\+Progress}}}]{cb,  }\item[{const void $\ast$}]{cb\+\_\+data }\end{DoxyParamCaption})}



Copies one file to another using the fastest possible way and report progress. 

This function tries to splice if it is available. It is blocked until the whole file is copied or it fails.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em src} & The source file. \\
\hline
\mbox{\texttt{ in}}  & {\em dst} & The destination file. \\
\hline
\mbox{\texttt{ in}}  & {\em flags} & Controls what is copied (data is always copied). \\
\hline
\mbox{\texttt{ in}}  & {\em cb} & If it is provided will be called with file copy progress information. \\
\hline
\mbox{\texttt{ in}}  & {\em cb\+\_\+data} & Context data to provide to {\ttfamily cb} during copy. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} on success, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}} otherwise (and {\ttfamily dst} will be deleted)
\end{DoxyReturn}
\begin{DoxyNote}{Note}
During the progress it may call back {\ttfamily cb} with the progress summary. 
\end{DoxyNote}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gafa24bc421bcbbf70e5512619863fb3fc}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+FALSE\+\_\+\+GOTO}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gaa083dd2da7053e9b7b39cdc72326d56d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+GOTO}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1dbe0d7e3c6b10f4bd49a2a132d73269}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+TRUE\+\_\+\+RETURN\+\_\+\+VAL}}, and \mbox{\hyperlink{group__Eina__Xattr__Group_gaf14bda878d1546e1e996804b43ee0991}{eina\+\_\+xattr\+\_\+fd\+\_\+copy()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga9579ba508358c74ea57bd8906801cfe5}\label{group__Eina__File__Group_ga9579ba508358c74ea57bd8906801cfe5}} 
\index{File@{File}!eina\_file\_open@{eina\_file\_open}}
\index{eina\_file\_open@{eina\_file\_open}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_open()}{eina\_file\_open()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$ eina\+\_\+file\+\_\+open (\begin{DoxyParamCaption}\item[{const char $\ast$}]{name,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{shared }\end{DoxyParamCaption})}



Gets a read-\/only handler to a file. 

This opens a file in the read-\/only mode. {\ttfamily name} should be an absolute path. An \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} handle can be shared among multiple instances if {\ttfamily shared} is \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, otherwise.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em name} & The filename to open \\
\hline
\mbox{\texttt{ in}}  & {\em shared} & Requested a shm\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} handle to the file
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__File__Group_ga566b1dffb98a71425706508ba19e12ea}{\+\_\+eina\+\_\+file\+\_\+cache}}, \mbox{\hyperlink{group__Eina__File__Group_ga30e9ea07586b204a15c736af468616d2}{\+\_\+eina\+\_\+file\+\_\+lock\+\_\+cache}}, \mbox{\hyperlink{struct__Eina__File_a4ce46b533afbd57a2f4fe992bed7d8f4}{\+\_\+\+Eina\+\_\+\+File\+::delete\+\_\+me}}, \mbox{\hyperlink{group__Eina__File__Group_ga858aff49902b2278be3e59aff989ed46}{eina\+\_\+file\+\_\+close\+\_\+on\+\_\+exec()}}, \mbox{\hyperlink{group__Eina__File__Group_ga279f49595634c5825f579f98b8c58780}{eina\+\_\+file\+\_\+map\+\_\+key\+\_\+cmp()}}, \mbox{\hyperlink{group__Eina__File__Group_ga61afa15fd0c3f3938179b041c1bc7226}{eina\+\_\+file\+\_\+map\+\_\+key\+\_\+hash()}}, \mbox{\hyperlink{group__Eina__File__Group_ga448a87e4666e16adb3d4289c210c549e}{eina\+\_\+file\+\_\+map\+\_\+key\+\_\+length()}}, \mbox{\hyperlink{group__Eina__File__Group_ga46b8ebef3355ef71aaa85549d26f65d3}{eina\+\_\+file\+\_\+statgen\+\_\+get()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga930bcae4b1c589195787f82928d1f605}{EINA\+\_\+\+FREE\+\_\+\+CB}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga315f85c5deae8e099e5a5a17d3557456}{eina\+\_\+hash\+\_\+del()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga84a3b957ede675cb03f3c344695c1282}{eina\+\_\+hash\+\_\+direct\+\_\+add()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga6e9dc02a249e1fcdb64e38e7dc47afb3}{eina\+\_\+hash\+\_\+find()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga8676c1d28a50581fc4c04d5c3092eacb}{eina\+\_\+hash\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Hash__Group_gaa1a3ef16d0247ba9a05648c16ccb3da6}{eina\+\_\+hash\+\_\+pointer\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga1c48d74b1ed071d8c156a98f5f0a06f6}{EINA\+\_\+\+KEY\+\_\+\+CMP}}, \mbox{\hyperlink{group__Eina__Hash__Group_gaf53593bdd5cc3d238e5eea2ae86d42a0}{EINA\+\_\+\+KEY\+\_\+\+HASH}}, \mbox{\hyperlink{group__Eina__Hash__Group_gaaaa18f69c9854f63beae15c42f1256b8}{EINA\+\_\+\+KEY\+\_\+\+LENGTH}}, \mbox{\hyperlink{group__Eina__Magic__Group_ga470f5ce28eaaf59ce80523be8471c5e0}{EINA\+\_\+\+MAGIC\+\_\+\+SET}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga5538b4a134987b8a01744fad1a845ba4}{eina\+\_\+stringshare\+\_\+del()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{struct__Eina__File_ab2faf024c321a133252a5661591560de}{\+\_\+\+Eina\+\_\+\+File\+::filename}}, \mbox{\hyperlink{struct__Eina__File_af65d69e588731533125018298cd06503}{\+\_\+\+Eina\+\_\+\+File\+::length}}, \mbox{\hyperlink{struct__Eina__File_a07074435f639f601dc80e908b54ad1d8}{\+\_\+\+Eina\+\_\+\+File\+::mtime}}, and \mbox{\hyperlink{struct__Eina__File_abab8dd1747c8602b43a44deaf28dae56}{\+\_\+\+Eina\+\_\+\+File\+::statgen}}.



Referenced by \mbox{\hyperlink{group__Edje__Object__File_gab459d255f85ab555b24181fbd3f2634a}{edje\+\_\+file\+\_\+collection\+\_\+list()}}, \mbox{\hyperlink{group__Edje__Object__File_ga12db17c029d2855a46759314a538694b}{edje\+\_\+file\+\_\+color\+\_\+class\+\_\+used\+\_\+list()}}, \mbox{\hyperlink{group__Edje__General__Group_ga8ee3a920b454b75ac3e273245d865061}{edje\+\_\+file\+\_\+data\+\_\+get()}}, \mbox{\hyperlink{group__Edje__Object__File_ga068228de33199dd1dd15495e38368309}{edje\+\_\+file\+\_\+group\+\_\+exists()}}, \mbox{\hyperlink{group__Eet__Cipher__Group_ga0bedcc0ed03bcf6f09002cc888c755e2}{eet\+\_\+identity\+\_\+open()}}, and \mbox{\hyperlink{group__Eet__File__Group_ga675160a758832ee812edf7f64ed30ee6}{eet\+\_\+open()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga71823e5f7683d1589cb49c0f7bcbaf14}\label{group__Eina__File__Group_ga71823e5f7683d1589cb49c0f7bcbaf14}} 
\index{File@{File}!eina\_file\_virtualize@{eina\_file\_virtualize}}
\index{eina\_file\_virtualize@{eina\_file\_virtualize}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_virtualize()}{eina\_file\_virtualize()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$ eina\+\_\+file\+\_\+virtualize (\begin{DoxyParamCaption}\item[{const char $\ast$}]{virtual\+\_\+name,  }\item[{const void $\ast$}]{data,  }\item[{unsigned long long}]{length,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{copy }\end{DoxyParamCaption})}



Creates a virtual file from a memory pointer. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em virtual\+\_\+name} & A virtual name for Eina\+\_\+\+File, if {\ttfamily NULL}, a generated one will be given \\
\hline
\mbox{\texttt{ in}}  & {\em data} & The memory pointer to take data from \\
\hline
\mbox{\texttt{ in}}  & {\em length} & The length of the data in memory \\
\hline
\mbox{\texttt{ in}}  & {\em copy} & \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} if the data must be copied \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} handle to the file
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}


References \mbox{\hyperlink{struct__Eina__File_a0fa77328e2dda50cd447f617f6dcf111}{\+\_\+\+Eina\+\_\+\+File\+::copied}}, \mbox{\hyperlink{group__Eina__File__Group_ga279f49595634c5825f579f98b8c58780}{eina\+\_\+file\+\_\+map\+\_\+key\+\_\+cmp()}}, \mbox{\hyperlink{group__Eina__File__Group_ga61afa15fd0c3f3938179b041c1bc7226}{eina\+\_\+file\+\_\+map\+\_\+key\+\_\+hash()}}, \mbox{\hyperlink{group__Eina__File__Group_ga448a87e4666e16adb3d4289c210c549e}{eina\+\_\+file\+\_\+map\+\_\+key\+\_\+length()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga930bcae4b1c589195787f82928d1f605}{EINA\+\_\+\+FREE\+\_\+\+CB}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga8676c1d28a50581fc4c04d5c3092eacb}{eina\+\_\+hash\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Hash__Group_gaa1a3ef16d0247ba9a05648c16ccb3da6}{eina\+\_\+hash\+\_\+pointer\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga1c48d74b1ed071d8c156a98f5f0a06f6}{EINA\+\_\+\+KEY\+\_\+\+CMP}}, \mbox{\hyperlink{group__Eina__Hash__Group_gaf53593bdd5cc3d238e5eea2ae86d42a0}{EINA\+\_\+\+KEY\+\_\+\+HASH}}, \mbox{\hyperlink{group__Eina__Hash__Group_gaaaa18f69c9854f63beae15c42f1256b8}{EINA\+\_\+\+KEY\+\_\+\+LENGTH}}, \mbox{\hyperlink{group__Eina__Magic__Group_ga470f5ce28eaaf59ce80523be8471c5e0}{EINA\+\_\+\+MAGIC\+\_\+\+SET}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga4e3ce40744291c1fb8574e26883c0bf2}{eina\+\_\+stringshare\+\_\+add()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{struct__Eina__File_af16ee152235b1e73cecbfbc49046cfe6}{\+\_\+\+Eina\+\_\+\+File\+::fd}}, \mbox{\hyperlink{struct__Eina__File_ab2faf024c321a133252a5661591560de}{\+\_\+\+Eina\+\_\+\+File\+::filename}}, \mbox{\hyperlink{struct__Eina__File_abf04bdf1861d8a17c475c01a0655b066}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+map}}, \mbox{\hyperlink{struct__Eina__File_af65d69e588731533125018298cd06503}{\+\_\+\+Eina\+\_\+\+File\+::length}}, \mbox{\hyperlink{struct__Eina__File_a27cefdfba152ba3a8e43d708eafb71dd}{\+\_\+\+Eina\+\_\+\+File\+::lock}}, \mbox{\hyperlink{struct__Eina__File_af202d60b864203f478325b0203283692}{\+\_\+\+Eina\+\_\+\+File\+::map}}, \mbox{\hyperlink{struct__Eina__File_a07074435f639f601dc80e908b54ad1d8}{\+\_\+\+Eina\+\_\+\+File\+::mtime}}, \mbox{\hyperlink{struct__Eina__File_a5db9d54f81084ab96f524270e3247e26}{\+\_\+\+Eina\+\_\+\+File\+::refcount}}, and \mbox{\hyperlink{struct__Eina__File_aa24e58153abfcb2b0a68364280ed8be6}{\+\_\+\+Eina\+\_\+\+File\+::rmap}}.



Referenced by \mbox{\hyperlink{group__Eina__File__Group_gad4bdb938ea01bafc6b194306f890e086}{eina\+\_\+file\+\_\+dup()}}, and \mbox{\hyperlink{group__Evas__Object__Image_ga94f1b90ceef0087a96f471eede5b47eb}{evas\+\_\+object\+\_\+image\+\_\+memfile\+\_\+set()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga101e94320e419cb01a83d730a762be31}\label{group__Eina__File__Group_ga101e94320e419cb01a83d730a762be31}} 
\index{File@{File}!eina\_file\_virtual@{eina\_file\_virtual}}
\index{eina\_file\_virtual@{eina\_file\_virtual}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_virtual()}{eina\_file\_virtual()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+file\+\_\+virtual (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file }\end{DoxyParamCaption})}



Tells if a file is a real file or only exists in memory. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & The file to test \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} if the file is a virtual file
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga675ed9c701faa581e04fa6c9289376f4}\label{group__Eina__File__Group_ga675ed9c701faa581e04fa6c9289376f4}} 
\index{File@{File}!eina\_file\_refresh@{eina\_file\_refresh}}
\index{eina\_file\_refresh@{eina\_file\_refresh}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_refresh()}{eina\_file\_refresh()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+file\+\_\+refresh (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file }\end{DoxyParamCaption})}



Refreshes file information. 

All current map continue to exist. You need to manually delete and recreate them to have the new correct mapping.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em file} & The file to refresh \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} if the file has changed
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__File__Group_ga64a3123b8e0b9698d30611bacd548b9e}{eina\+\_\+file\+\_\+flush()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{struct__Eina__File_af16ee152235b1e73cecbfbc49046cfe6}{\+\_\+\+Eina\+\_\+\+File\+::fd}}, \mbox{\hyperlink{struct__Eina__File_ab2faf024c321a133252a5661591560de}{\+\_\+\+Eina\+\_\+\+File\+::filename}}, \mbox{\hyperlink{struct__Eina__File_a517f56f5a4263127b7db670ba98d4775}{\+\_\+\+Eina\+\_\+\+File\+::inode}}, \mbox{\hyperlink{struct__Eina__File_af65d69e588731533125018298cd06503}{\+\_\+\+Eina\+\_\+\+File\+::length}}, and \mbox{\hyperlink{struct__Eina__File_a07074435f639f601dc80e908b54ad1d8}{\+\_\+\+Eina\+\_\+\+File\+::mtime}}.



Referenced by \mbox{\hyperlink{group__Evas__Object__Image_ga6e1ffafa0d3c55517128cb51b4596831}{evas\+\_\+object\+\_\+image\+\_\+reload()}}.

\mbox{\Hypertarget{group__Eina__File__Group_gad4bdb938ea01bafc6b194306f890e086}\label{group__Eina__File__Group_gad4bdb938ea01bafc6b194306f890e086}} 
\index{File@{File}!eina\_file\_dup@{eina\_file\_dup}}
\index{eina\_file\_dup@{eina\_file\_dup}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_dup()}{eina\_file\_dup()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$ eina\+\_\+file\+\_\+dup (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file }\end{DoxyParamCaption})}



Duplicates a read-\/only handler of a previously open file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & To duplicate a reference to \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} handle of the duplicated file
\end{DoxyReturn}
\begin{DoxyNote}{Note}
Opens a file in read-\/only mode.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}


References \mbox{\hyperlink{struct__Eina__File_a0fa77328e2dda50cd447f617f6dcf111}{\+\_\+\+Eina\+\_\+\+File\+::copied}}, \mbox{\hyperlink{group__Eina__File__Group_ga71823e5f7683d1589cb49c0f7bcbaf14}{eina\+\_\+file\+\_\+virtualize()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{struct__Eina__File_ab2faf024c321a133252a5661591560de}{\+\_\+\+Eina\+\_\+\+File\+::filename}}, \mbox{\hyperlink{struct__Eina__File_abf04bdf1861d8a17c475c01a0655b066}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+map}}, \mbox{\hyperlink{struct__Eina__File_af65d69e588731533125018298cd06503}{\+\_\+\+Eina\+\_\+\+File\+::length}}, \mbox{\hyperlink{struct__Eina__File_a27cefdfba152ba3a8e43d708eafb71dd}{\+\_\+\+Eina\+\_\+\+File\+::lock}}, and \mbox{\hyperlink{struct__Eina__File_a5db9d54f81084ab96f524270e3247e26}{\+\_\+\+Eina\+\_\+\+File\+::refcount}}.



Referenced by \mbox{\hyperlink{group__Eet__File__Group_gab6c2e3d0ef53d273f30f359c3e151665}{eet\+\_\+mmap()}}, \mbox{\hyperlink{group__Elm__Theme_ga6dbc1857ae05f9e7f9fba7ad7e479c66}{elm\+\_\+theme\+\_\+extension\+\_\+mmap\+\_\+add()}}, and \mbox{\hyperlink{group__Elm__Theme_gad2355bf673f163dbdeba76d2e7b3564c}{elm\+\_\+theme\+\_\+overlay\+\_\+mmap\+\_\+add()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga6b19a0682a3747cb5c313dc7d0e41a90}\label{group__Eina__File__Group_ga6b19a0682a3747cb5c313dc7d0e41a90}} 
\index{File@{File}!eina\_file\_close@{eina\_file\_close}}
\index{eina\_file\_close@{eina\_file\_close}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_close()}{eina\_file\_close()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+file\+\_\+close (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file }\end{DoxyParamCaption})}



Unrefs the file handler. 

This decrements the file\textquotesingle{}s reference count and if it reaches zero it closes the file.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & The file handler to unref\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__File__Group_ga566b1dffb98a71425706508ba19e12ea}{\+\_\+eina\+\_\+file\+\_\+cache}}, \mbox{\hyperlink{group__Eina__File__Group_ga30e9ea07586b204a15c736af468616d2}{\+\_\+eina\+\_\+file\+\_\+lock\+\_\+cache}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__File__Group_ga9360f0d850bb1bf8bf40027985f4ed42}{eina\+\_\+file\+\_\+clean\+\_\+close()}}, \mbox{\hyperlink{group__Eina__Hash__Group_gae39ec64f5bc2b8bcb823b629555cc332}{eina\+\_\+hash\+\_\+del\+\_\+by\+\_\+key\+\_\+hash()}}, \mbox{\hyperlink{group__Eina__Hash__Group_gaa99a33c2e83108ed3a08d613c88ef59d}{eina\+\_\+hash\+\_\+find\+\_\+by\+\_\+hash()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga28c1f0f114ca3e2910cce197c8fbbfd9}{eina\+\_\+hash\+\_\+superfast()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{struct__Eina__File_ab2faf024c321a133252a5661591560de}{\+\_\+\+Eina\+\_\+\+File\+::filename}}, \mbox{\hyperlink{struct__Eina__File_a27cefdfba152ba3a8e43d708eafb71dd}{\+\_\+\+Eina\+\_\+\+File\+::lock}}, and \mbox{\hyperlink{struct__Eina__File_a5db9d54f81084ab96f524270e3247e26}{\+\_\+\+Eina\+\_\+\+File\+::refcount}}.



Referenced by \mbox{\hyperlink{group__Edje__Object__File_gab459d255f85ab555b24181fbd3f2634a}{edje\+\_\+file\+\_\+collection\+\_\+list()}}, \mbox{\hyperlink{group__Edje__Object__File_ga12db17c029d2855a46759314a538694b}{edje\+\_\+file\+\_\+color\+\_\+class\+\_\+used\+\_\+list()}}, \mbox{\hyperlink{group__Edje__General__Group_ga8ee3a920b454b75ac3e273245d865061}{edje\+\_\+file\+\_\+data\+\_\+get()}}, \mbox{\hyperlink{group__Edje__Object__File_ga068228de33199dd1dd15495e38368309}{edje\+\_\+file\+\_\+group\+\_\+exists()}}, \mbox{\hyperlink{group__Eet__Cipher__Group_ga0bedcc0ed03bcf6f09002cc888c755e2}{eet\+\_\+identity\+\_\+open()}}, \mbox{\hyperlink{group__Eet__File__Group_ga675160a758832ee812edf7f64ed30ee6}{eet\+\_\+open()}}, \mbox{\hyperlink{group__Elm__Theme_ga9dae0883a2c3500294f3ebe69407eb78}{elm\+\_\+theme\+\_\+flush()}}, \mbox{\hyperlink{group__Elm__Theme_gad2355bf673f163dbdeba76d2e7b3564c}{elm\+\_\+theme\+\_\+overlay\+\_\+mmap\+\_\+add()}}, \mbox{\hyperlink{group__Elua_gaaf5c1391a7660da2bb633e15dbeb8b68}{elua\+\_\+io\+\_\+loadfile()}}, \mbox{\hyperlink{group__Emile__Image__Group_ga766f5079dd65f838fad6631d6c55f52d}{emile\+\_\+image\+\_\+close()}}, and \mbox{\hyperlink{group__Evas__Object__Image_ga94f1b90ceef0087a96f471eede5b47eb}{evas\+\_\+object\+\_\+image\+\_\+memfile\+\_\+set()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga2f57057d1d66e6392a832674a69c1278}\label{group__Eina__File__Group_ga2f57057d1d66e6392a832674a69c1278}} 
\index{File@{File}!eina\_file\_size\_get@{eina\_file\_size\_get}}
\index{eina\_file\_size\_get@{eina\_file\_size\_get}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_size\_get()}{eina\_file\_size\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} size\+\_\+t eina\+\_\+file\+\_\+size\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file }\end{DoxyParamCaption})}



Gets the file size at open time. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & The file handler to request the size from \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The length of the file
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}


References \mbox{\hyperlink{struct__Eina__File_af65d69e588731533125018298cd06503}{\+\_\+\+Eina\+\_\+\+File\+::length}}.



Referenced by \mbox{\hyperlink{group__Eet__Cipher__Group_ga0bedcc0ed03bcf6f09002cc888c755e2}{eet\+\_\+identity\+\_\+open()}}, \mbox{\hyperlink{group__Eet__File__Group_gab6c2e3d0ef53d273f30f359c3e151665}{eet\+\_\+mmap()}}, \mbox{\hyperlink{group__Eet__File__Group_ga675160a758832ee812edf7f64ed30ee6}{eet\+\_\+open()}}, \mbox{\hyperlink{group__Eio__Map_gab40731438087bf6f07e591ed35bfe71b}{eio\+\_\+file\+\_\+map\+\_\+all()}}, and \mbox{\hyperlink{group__Elua_gaaf5c1391a7660da2bb633e15dbeb8b68}{elua\+\_\+io\+\_\+loadfile()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga66eff3fe50ea11e60f48d65871a3060b}\label{group__Eina__File__Group_ga66eff3fe50ea11e60f48d65871a3060b}} 
\index{File@{File}!eina\_file\_mtime\_get@{eina\_file\_mtime\_get}}
\index{eina\_file\_mtime\_get@{eina\_file\_mtime\_get}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_mtime\_get()}{eina\_file\_mtime\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} time\+\_\+t eina\+\_\+file\+\_\+mtime\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file }\end{DoxyParamCaption})}



Gets the last modification time of an open file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & The file handler to request the modification time from \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The last modification time
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}


References \mbox{\hyperlink{struct__Eina__File_a07074435f639f601dc80e908b54ad1d8}{\+\_\+\+Eina\+\_\+\+File\+::mtime}}.

\mbox{\Hypertarget{group__Eina__File__Group_gae5b1bd03a9dc86e3262ef606ba92bb26}\label{group__Eina__File__Group_gae5b1bd03a9dc86e3262ef606ba92bb26}} 
\index{File@{File}!eina\_file\_filename\_get@{eina\_file\_filename\_get}}
\index{eina\_file\_filename\_get@{eina\_file\_filename\_get}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_filename\_get()}{eina\_file\_filename\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} const char $\ast$ eina\+\_\+file\+\_\+filename\+\_\+get (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file }\end{DoxyParamCaption})}



Gets the filename of an open file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & The file handler to request the name from \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The stringshared filename of the file
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}


References \mbox{\hyperlink{struct__Eina__File_ab2faf024c321a133252a5661591560de}{\+\_\+\+Eina\+\_\+\+File\+::filename}}.



Referenced by \mbox{\hyperlink{group__Edje__Object__File_ga8d44d75ddf833e86e2dc54d81e17e9d5}{edje\+\_\+mmap\+\_\+group\+\_\+exists()}}, \mbox{\hyperlink{group__Eet__File__Group_gab6c2e3d0ef53d273f30f359c3e151665}{eet\+\_\+mmap()}}, \mbox{\hyperlink{group__File_gacc82488f9c2dd72b9e6e826170df09ac}{elm\+\_\+code\+\_\+file\+\_\+filename\+\_\+get()}}, \mbox{\hyperlink{group__File_ga74d4812bc68759d927e97aff69c21f48}{elm\+\_\+code\+\_\+file\+\_\+path\+\_\+get()}}, \mbox{\hyperlink{group__Elm__Theme_ga6dbc1857ae05f9e7f9fba7ad7e479c66}{elm\+\_\+theme\+\_\+extension\+\_\+mmap\+\_\+add()}}, \mbox{\hyperlink{group__Elm__Theme_ga2f2a9f5ec921352ba68d5930cb9c0956}{elm\+\_\+theme\+\_\+group\+\_\+path\+\_\+find()}}, and \mbox{\hyperlink{group__Elm__Theme_gad2355bf673f163dbdeba76d2e7b3564c}{elm\+\_\+theme\+\_\+overlay\+\_\+mmap\+\_\+add()}}.

\mbox{\Hypertarget{group__Eina__File__Group_gaaae75d2d9146ccadab0b56e1e588d389}\label{group__Eina__File__Group_gaaae75d2d9146ccadab0b56e1e588d389}} 
\index{File@{File}!eina\_file\_xattr\_get@{eina\_file\_xattr\_get}}
\index{eina\_file\_xattr\_get@{eina\_file\_xattr\_get}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_xattr\_get()}{eina\_file\_xattr\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ eina\+\_\+file\+\_\+xattr\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file }\end{DoxyParamCaption})}



Gets the extended attribute of an open file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & The file handler to request the extended attribute from \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An iterator
\end{DoxyReturn}
\begin{DoxyNote}{Note}
The iterator lists all the extended attribute names without allocating them, so you need to copy them yourself if needed.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Xattr__Group_ga9796b89648f4d38038fd3d8e988b3c56}{eina\+\_\+xattr\+\_\+fd\+\_\+ls()}}, and \mbox{\hyperlink{struct__Eina__File_af16ee152235b1e73cecbfbc49046cfe6}{\+\_\+\+Eina\+\_\+\+File\+::fd}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga83f721e6dd1387b33a50168ff51ed7cb}\label{group__Eina__File__Group_ga83f721e6dd1387b33a50168ff51ed7cb}} 
\index{File@{File}!eina\_file\_xattr\_value\_get@{eina\_file\_xattr\_value\_get}}
\index{eina\_file\_xattr\_value\_get@{eina\_file\_xattr\_value\_get}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_xattr\_value\_get()}{eina\_file\_xattr\_value\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ eina\+\_\+file\+\_\+xattr\+\_\+value\+\_\+get (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file }\end{DoxyParamCaption})}



Gets the extended attribute of an open file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & The file handler to request the extended attribute from \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An iterator
\end{DoxyReturn}
\begin{DoxyNote}{Note}
The iterator lists all the extended attribute names without allocating them, so you need to copy them yourself if needed. It returns the Eina\+\_\+\+Xattr structure.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Xattr__Group_ga6b9fe7335ae41d5a0a33b764b110046d}{eina\+\_\+xattr\+\_\+value\+\_\+fd\+\_\+ls()}}, and \mbox{\hyperlink{struct__Eina__File_af16ee152235b1e73cecbfbc49046cfe6}{\+\_\+\+Eina\+\_\+\+File\+::fd}}.

\mbox{\Hypertarget{group__Eina__File__Group_gaae165c21af09fca39c2d1f89a92cb6b1}\label{group__Eina__File__Group_gaae165c21af09fca39c2d1f89a92cb6b1}} 
\index{File@{File}!eina\_file\_map\_all@{eina\_file\_map\_all}}
\index{eina\_file\_map\_all@{eina\_file\_map\_all}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_map\_all()}{eina\_file\_map\_all()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void $\ast$ eina\+\_\+file\+\_\+map\+\_\+all (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file,  }\item[{\mbox{\hyperlink{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}{Eina\+\_\+\+File\+\_\+\+Populate}}}]{rule }\end{DoxyParamCaption})}



Maps all the files to a buffer. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & The file handler to map in the memory \\
\hline
\mbox{\texttt{ in}}  & {\em rule} & The rule to apply to the mapped memory \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to a buffer that maps all the file content ~\newline
 {\ttfamily NULL} if it fails
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aa6c05201c80772a294c16800d7ca46a1d}{EINA\+\_\+\+FILE\+\_\+\+POPULATE}}, \mbox{\hyperlink{group__Eina__File__Group_ga231e2453311f74c18d80ab75904f6a08}{eina\+\_\+file\+\_\+virtual\+\_\+map\+\_\+all()}}, \mbox{\hyperlink{group__Eina__Mmap__Group_gaf51405e08c9985f057b8d0137846c905}{eina\+\_\+mmap\+\_\+safety\+\_\+enabled\+\_\+set()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{struct__Eina__File_af16ee152235b1e73cecbfbc49046cfe6}{\+\_\+\+Eina\+\_\+\+File\+::fd}}, \mbox{\hyperlink{struct__Eina__File_a926c715b95fdd5c0a528363d740dd0e9}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+hugetlb}}, \mbox{\hyperlink{struct__Eina__File_abf04bdf1861d8a17c475c01a0655b066}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+map}}, \mbox{\hyperlink{struct__Eina__File_ac3a88ace50ec855e101bdb0f59b94e85}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+refcount}}, \mbox{\hyperlink{struct__Eina__File_af65d69e588731533125018298cd06503}{\+\_\+\+Eina\+\_\+\+File\+::length}}, \mbox{\hyperlink{struct__Eina__File_a27cefdfba152ba3a8e43d708eafb71dd}{\+\_\+\+Eina\+\_\+\+File\+::lock}}, \mbox{\hyperlink{evil__mman_8h_a57028962c2a7c0c802ca6613492f2ef3}{MAP\+\_\+\+SHARED}}, and \mbox{\hyperlink{evil__mman_8h_a15bf68ce8b590838b3a5c0b639d8d519}{PROT\+\_\+\+READ}}.



Referenced by \mbox{\hyperlink{group__Eet__Cipher__Group_ga0bedcc0ed03bcf6f09002cc888c755e2}{eet\+\_\+identity\+\_\+open()}}, \mbox{\hyperlink{group__Eet__File__Group_gab6c2e3d0ef53d273f30f359c3e151665}{eet\+\_\+mmap()}}, \mbox{\hyperlink{group__Eet__File__Group_ga675160a758832ee812edf7f64ed30ee6}{eet\+\_\+open()}}, \mbox{\hyperlink{group__Eina__File__Group_gacc5e106a05988043f10a57b7b61ccba6}{eina\+\_\+file\+\_\+map\+\_\+lines()}}, \mbox{\hyperlink{group__Eina__File__Group_ga5c56a04cf4de6d43f73ce39b970132fa}{eina\+\_\+file\+\_\+map\+\_\+new()}}, and \mbox{\hyperlink{group__Elua_gaaf5c1391a7660da2bb633e15dbeb8b68}{elua\+\_\+io\+\_\+loadfile()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga5c56a04cf4de6d43f73ce39b970132fa}\label{group__Eina__File__Group_ga5c56a04cf4de6d43f73ce39b970132fa}} 
\index{File@{File}!eina\_file\_map\_new@{eina\_file\_map\_new}}
\index{eina\_file\_map\_new@{eina\_file\_map\_new}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_map\_new()}{eina\_file\_map\_new()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void $\ast$ eina\+\_\+file\+\_\+map\+\_\+new (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file,  }\item[{\mbox{\hyperlink{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}{Eina\+\_\+\+File\+\_\+\+Populate}}}]{rule,  }\item[{unsigned long int}]{offset,  }\item[{unsigned long int}]{length }\end{DoxyParamCaption})}



Maps a part of the file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & The file handler to map in the memory \\
\hline
\mbox{\texttt{ in}}  & {\em rule} & The rule to apply to the mapped memory \\
\hline
\mbox{\texttt{ in}}  & {\em offset} & The offset inside the file \\
\hline
\mbox{\texttt{ in}}  & {\em length} & The length of the memory to map \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A valid pointer to the system memory with {\ttfamily length} valid bytes in it ~\newline
 And {\ttfamily NULL} if not inside the file or anything else goes wrong.
\end{DoxyReturn}
\begin{DoxyNote}{Note}
This does handle reference counting so it can share the same memory area.
\end{DoxyNote}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__File__Group_gaae165c21af09fca39c2d1f89a92cb6b1}{eina\+\_\+file\+\_\+map\+\_\+all()}}, \mbox{\hyperlink{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aa6c05201c80772a294c16800d7ca46a1d}{EINA\+\_\+\+FILE\+\_\+\+POPULATE}}, \mbox{\hyperlink{group__Eina__File__Group_gada097a9bd6adfc1f02de327eff447bee}{eina\+\_\+file\+\_\+virtual\+\_\+map\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga5e72d0c5397936512407ce8cd66e98d6}{eina\+\_\+hash\+\_\+add()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga84a3b957ede675cb03f3c344695c1282}{eina\+\_\+hash\+\_\+direct\+\_\+add()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga6e9dc02a249e1fcdb64e38e7dc47afb3}{eina\+\_\+hash\+\_\+find()}}, \mbox{\hyperlink{group__Eina__Mmap__Group_gaf51405e08c9985f057b8d0137846c905}{eina\+\_\+mmap\+\_\+safety\+\_\+enabled\+\_\+set()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{struct__Eina__File_af16ee152235b1e73cecbfbc49046cfe6}{\+\_\+\+Eina\+\_\+\+File\+::fd}}, \mbox{\hyperlink{struct__Eina__File__Map_af31ebb1c95ec32afb80bc71de0c40851}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::hugetlb}}, \mbox{\hyperlink{struct__Eina__File_af65d69e588731533125018298cd06503}{\+\_\+\+Eina\+\_\+\+File\+::length}}, \mbox{\hyperlink{struct__Eina__File__Map_a9fdf885de07d9a83a9a1ada2877993aa}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::length}}, \mbox{\hyperlink{struct__Eina__File_a27cefdfba152ba3a8e43d708eafb71dd}{\+\_\+\+Eina\+\_\+\+File\+::lock}}, \mbox{\hyperlink{struct__Eina__File_af202d60b864203f478325b0203283692}{\+\_\+\+Eina\+\_\+\+File\+::map}}, \mbox{\hyperlink{struct__Eina__File__Map_af6723f01f771d25e3f599d2e485d4473}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::map}}, \mbox{\hyperlink{evil__mman_8h_a57028962c2a7c0c802ca6613492f2ef3}{MAP\+\_\+\+SHARED}}, \mbox{\hyperlink{struct__Eina__File__Map_a8a2a05bea6bcac2e824ed093e67f9a11}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::offset}}, \mbox{\hyperlink{evil__mman_8h_a15bf68ce8b590838b3a5c0b639d8d519}{PROT\+\_\+\+READ}}, \mbox{\hyperlink{struct__Eina__File__Map_a55b4942083045865f44401ed4155bd61}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::refcount}}, and \mbox{\hyperlink{struct__Eina__File_aa24e58153abfcb2b0a68364280ed8be6}{\+\_\+\+Eina\+\_\+\+File\+::rmap}}.

\mbox{\Hypertarget{group__Eina__File__Group_gaf52b237fec73dbbcd411c8f999c5b5df}\label{group__Eina__File__Group_gaf52b237fec73dbbcd411c8f999c5b5df}} 
\index{File@{File}!eina\_file\_map\_free@{eina\_file\_map\_free}}
\index{eina\_file\_map\_free@{eina\_file\_map\_free}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_map\_free()}{eina\_file\_map\_free()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+file\+\_\+map\+\_\+free (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file,  }\item[{void $\ast$}]{map }\end{DoxyParamCaption})}



Unrefs and unmaps memory if possible. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & The file handler to unmap memory from \\
\hline
\mbox{\texttt{ in}}  & {\em map} & The memory map to unref and unmap\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+1 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__File__Group_ga7fc3c176abeb346004562e5ddfdf6e0f}{eina\+\_\+file\+\_\+common\+\_\+map\+\_\+free()}}, \mbox{\hyperlink{group__Eina__File__Group_ga105fa4c85c984190da9c5f22b509fd15}{eina\+\_\+file\+\_\+virtual\+\_\+map\+\_\+free()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}, \mbox{\hyperlink{struct__Eina__File_abf04bdf1861d8a17c475c01a0655b066}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+map}}, \mbox{\hyperlink{struct__Eina__File_ac3a88ace50ec855e101bdb0f59b94e85}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+refcount}}, \mbox{\hyperlink{struct__Eina__File_af65d69e588731533125018298cd06503}{\+\_\+\+Eina\+\_\+\+File\+::length}}, \mbox{\hyperlink{struct__Eina__File_a27cefdfba152ba3a8e43d708eafb71dd}{\+\_\+\+Eina\+\_\+\+File\+::lock}}, and \mbox{\hyperlink{group__Evil__Mman_gaee9b4343ae30d988ed11c979c814a258}{munmap()}}.



Referenced by \mbox{\hyperlink{group__Eet__Cipher__Group_ga0bedcc0ed03bcf6f09002cc888c755e2}{eet\+\_\+identity\+\_\+open()}}, and \mbox{\hyperlink{group__Elua_gaaf5c1391a7660da2bb633e15dbeb8b68}{elua\+\_\+io\+\_\+loadfile()}}.

\mbox{\Hypertarget{group__Eina__File__Group_gaace9cb589759c6638e5bef044445091b}\label{group__Eina__File__Group_gaace9cb589759c6638e5bef044445091b}} 
\index{File@{File}!eina\_file\_map\_populate@{eina\_file\_map\_populate}}
\index{eina\_file\_map\_populate@{eina\_file\_map\_populate}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_map\_populate()}{eina\_file\_map\_populate()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+file\+\_\+map\+\_\+populate (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file,  }\item[{\mbox{\hyperlink{group__Eina__File__Group_ga2788825dfdd797282112148f2f65ec7a}{Eina\+\_\+\+File\+\_\+\+Populate}}}]{rule,  }\item[{const void $\ast$}]{map,  }\item[{unsigned long int}]{offset,  }\item[{unsigned long int}]{length }\end{DoxyParamCaption})}



Asks the OS to populate or otherwise pages of memory in file mapping. 

This advises the operating system as to what to do with the memory mapped to the given {\ttfamily file}. This affects a specific range of memory and may not be honored if the system chooses to ignore the request.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & The file handle from which the map comes \\
\hline
\mbox{\texttt{ in}}  & {\em rule} & The rule to apply to the mapped memory \\
\hline
\mbox{\texttt{ in}}  & {\em map} & Memory that was mapped inside of which the memory range is \\
\hline
\mbox{\texttt{ in}}  & {\em offset} & The offset in bytes from the start of the map address \\
\hline
\mbox{\texttt{ in}}  & {\em length} & The length in bytes of the memory region to populate\\
\hline
\end{DoxyParams}
\begin{DoxySince}{Since}
1.\+8 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__Hash__Group_ga6e9dc02a249e1fcdb64e38e7dc47afb3}{eina\+\_\+hash\+\_\+find()}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN}}, \mbox{\hyperlink{struct__Eina__File_a926c715b95fdd5c0a528363d740dd0e9}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+hugetlb}}, \mbox{\hyperlink{struct__Eina__File_abf04bdf1861d8a17c475c01a0655b066}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+map}}, \mbox{\hyperlink{struct__Eina__File__Map_af31ebb1c95ec32afb80bc71de0c40851}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::hugetlb}}, \mbox{\hyperlink{struct__Eina__File_af65d69e588731533125018298cd06503}{\+\_\+\+Eina\+\_\+\+File\+::length}}, \mbox{\hyperlink{struct__Eina__File__Map_a9fdf885de07d9a83a9a1ada2877993aa}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::length}}, \mbox{\hyperlink{struct__Eina__File_a27cefdfba152ba3a8e43d708eafb71dd}{\+\_\+\+Eina\+\_\+\+File\+::lock}}, and \mbox{\hyperlink{struct__Eina__File_aa24e58153abfcb2b0a68364280ed8be6}{\+\_\+\+Eina\+\_\+\+File\+::rmap}}.

\mbox{\Hypertarget{group__Eina__File__Group_gacc5e106a05988043f10a57b7b61ccba6}\label{group__Eina__File__Group_gacc5e106a05988043f10a57b7b61ccba6}} 
\index{File@{File}!eina\_file\_map\_lines@{eina\_file\_map\_lines}}
\index{eina\_file\_map\_lines@{eina\_file\_map\_lines}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_map\_lines()}{eina\_file\_map\_lines()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}} $\ast$ eina\+\_\+file\+\_\+map\+\_\+lines (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file }\end{DoxyParamCaption})}



Maps line by line in the memory efficiently using an \mbox{\hyperlink{group__Eina__Iterator__Group_ga15b975bb881d955249ce13d4ebc96948}{Eina\+\_\+\+Iterator}}. 

This function returns an iterator that acts like fgets without useless memcpy. Be aware that once eina\+\_\+iterator\+\_\+next has been called, nothing can guarantee that the memory is still going to be mapped.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & The file to run over \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An Eina\+\_\+\+Iterator that produces \mbox{\hyperlink{group__Eina__File__Group_ga2c5c3fdefe5df8c774d5623b7a6e7047}{Eina\+\_\+\+File\+\_\+\+Line}}
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+3 
\end{DoxySince}


References \mbox{\hyperlink{struct__Eina__Lines__Iterator_af8b25e68ca8f6aebfbfb2df9ede5371b}{\+\_\+\+Eina\+\_\+\+Lines\+\_\+\+Iterator\+::boundary}}, \mbox{\hyperlink{struct__Eina__Lines__Iterator_ae7ea66c4aabcbdbd32d50f3573d2049a}{\+\_\+\+Eina\+\_\+\+Lines\+\_\+\+Iterator\+::current}}, \mbox{\hyperlink{group__Eina__File__Group_gaae165c21af09fca39c2d1f89a92cb6b1}{eina\+\_\+file\+\_\+map\+\_\+all()}}, \mbox{\hyperlink{group__Eina__File__Group_gga2788825dfdd797282112148f2f65ec7aabb92031c2d448a1659117121866229b2}{EINA\+\_\+\+FILE\+\_\+\+SEQUENTIAL}}, \mbox{\hyperlink{group__Eina__Magic__Group_ga470f5ce28eaaf59ce80523be8471c5e0}{EINA\+\_\+\+MAGIC\+\_\+\+SET}}, \mbox{\hyperlink{struct__Eina__File__Line_a51aceeb520cd8e0b56a20882a3eb2c4a}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Line\+::end}}, \mbox{\hyperlink{struct__Eina__Lines__Iterator_a04d244ebf9fd983ecf6868e832a69493}{\+\_\+\+Eina\+\_\+\+Lines\+\_\+\+Iterator\+::end}}, \mbox{\hyperlink{struct__Eina__Lines__Iterator_ab39797c9d8561ae5bb54130f16fc5e3b}{\+\_\+\+Eina\+\_\+\+Lines\+\_\+\+Iterator\+::fp}}, \mbox{\hyperlink{struct__Eina__Iterator_a3367d7b0def2730f91ba2528fb9c21d6}{\+\_\+\+Eina\+\_\+\+Iterator\+::free}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gad1ea4d3a7e58b47b23073a58e869d167}{FUNC\+\_\+\+ITERATOR\+\_\+\+FREE}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gab41f5a30f0a2030f4a832548d18332db}{FUNC\+\_\+\+ITERATOR\+\_\+\+GET\+\_\+\+CONTAINER}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gaec80e80b2867e391b0b27f5f20c3a5b3}{FUNC\+\_\+\+ITERATOR\+\_\+\+NEXT}}, \mbox{\hyperlink{struct__Eina__Iterator_ad6e11988297f629a96f4ebc84a96f7b6}{\+\_\+\+Eina\+\_\+\+Iterator\+::get\+\_\+container}}, \mbox{\hyperlink{struct__Eina__File__Line_afc5008364320045b30dad16a46715826}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Line\+::index}}, \mbox{\hyperlink{struct__Eina__Lines__Iterator_adc81c761eda687b0bcc45a9857f9f917}{\+\_\+\+Eina\+\_\+\+Lines\+\_\+\+Iterator\+::iterator}}, \mbox{\hyperlink{struct__Eina__File__Line_a6078272a2fd4df7daedb90569b3ef95f}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Line\+::length}}, \mbox{\hyperlink{struct__Eina__File_af65d69e588731533125018298cd06503}{\+\_\+\+Eina\+\_\+\+File\+::length}}, \mbox{\hyperlink{struct__Eina__File_a27cefdfba152ba3a8e43d708eafb71dd}{\+\_\+\+Eina\+\_\+\+File\+::lock}}, \mbox{\hyperlink{struct__Eina__Lines__Iterator_aea21d8a59d149d283443aa33a2ce269b}{\+\_\+\+Eina\+\_\+\+Lines\+\_\+\+Iterator\+::map}}, \mbox{\hyperlink{struct__Eina__Iterator_a7909c5b443279e436f643c4e6e81a5bb}{\+\_\+\+Eina\+\_\+\+Iterator\+::next}}, \mbox{\hyperlink{struct__Eina__File_a5db9d54f81084ab96f524270e3247e26}{\+\_\+\+Eina\+\_\+\+File\+::refcount}}, \mbox{\hyperlink{struct__Eina__File__Line_a2d35dbf428e30a44ace59a80b458a59f}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Line\+::start}}, and \mbox{\hyperlink{struct__Eina__Iterator_abffd33e8457342ede2c6c6c0ed1af275}{\+\_\+\+Eina\+\_\+\+Iterator\+::version}}.

\mbox{\Hypertarget{group__Eina__File__Group_gaf5588cddea780ff60c49cc71941648d1}\label{group__Eina__File__Group_gaf5588cddea780ff60c49cc71941648d1}} 
\index{File@{File}!eina\_file\_map\_faulted@{eina\_file\_map\_faulted}}
\index{eina\_file\_map\_faulted@{eina\_file\_map\_faulted}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_map\_faulted()}{eina\_file\_map\_faulted()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+file\+\_\+map\+\_\+faulted (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file,  }\item[{void $\ast$}]{map }\end{DoxyParamCaption})}



Tells whether there has been an IO error during the life of a mmaped file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & The file handler to the mmaped file \\
\hline
\mbox{\texttt{ in}}  & {\em map} & The memory map to check if an error occurred on it \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} if there has been an IO error, otherwise \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+2 
\end{DoxySince}


References \mbox{\hyperlink{struct__Eina__File_a0b52b3136c3a63731f86aa72ea53c5dc}{\+\_\+\+Eina\+\_\+\+File\+::dead\+\_\+map}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga6e9dc02a249e1fcdb64e38e7dc47afb3}{eina\+\_\+hash\+\_\+find()}}, \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\+\_\+\+LIST\+\_\+\+FOREACH}}, \mbox{\hyperlink{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{EINA\+\_\+\+SAFETY\+\_\+\+ON\+\_\+\+NULL\+\_\+\+RETURN\+\_\+\+VAL}}, \mbox{\hyperlink{struct__Eina__File__Map_a1bed4534b6c737cda3d80bfb64f3b31e}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::faulty}}, \mbox{\hyperlink{struct__Eina__File_a05c7a2eae472d39736014d4847ad3d03}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+faulty}}, \mbox{\hyperlink{struct__Eina__File_abf04bdf1861d8a17c475c01a0655b066}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+map}}, \mbox{\hyperlink{struct__Eina__File_a27cefdfba152ba3a8e43d708eafb71dd}{\+\_\+\+Eina\+\_\+\+File\+::lock}}, \mbox{\hyperlink{struct__Eina__File__Map_af6723f01f771d25e3f599d2e485d4473}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::map}}, and \mbox{\hyperlink{struct__Eina__File_aa24e58153abfcb2b0a68364280ed8be6}{\+\_\+\+Eina\+\_\+\+File\+::rmap}}.

\mbox{\Hypertarget{group__Eina__File__Group_gadf638f95abe9aa175b6aaa3762bc1b54}\label{group__Eina__File__Group_gadf638f95abe9aa175b6aaa3762bc1b54}} 
\index{File@{File}!eina\_file\_path\_join\_len@{eina\_file\_path\_join\_len}}
\index{eina\_file\_path\_join\_len@{eina\_file\_path\_join\_len}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_path\_join\_len()}{eina\_file\_path\_join\_len()}}
{\footnotesize\ttfamily static size\+\_\+t eina\+\_\+file\+\_\+path\+\_\+join\+\_\+len (\begin{DoxyParamCaption}\item[{char $\ast$}]{dst,  }\item[{size\+\_\+t}]{size,  }\item[{const char $\ast$}]{a,  }\item[{size\+\_\+t}]{a\+\_\+len,  }\item[{const char $\ast$}]{b,  }\item[{size\+\_\+t}]{b\+\_\+len }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Joins two paths of known length. 

This function is similar to \mbox{\hyperlink{group__Eina__String__Group_gae36d8226b2c2e320f64d8a946f960c7b}{eina\+\_\+str\+\_\+join\+\_\+len()}}, but the separator is \textquotesingle{}\textbackslash{}\textquotesingle{} on Windows and \textquotesingle{}/\textquotesingle{} otherwise.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ out}}  & {\em dst} & The buffer to store the result. \\
\hline
\mbox{\texttt{ in}}  & {\em size} & Size (in byte) of the buffer. \\
\hline
\mbox{\texttt{ in}}  & {\em a} & First path to use. \\
\hline
\mbox{\texttt{ in}}  & {\em a\+\_\+len} & length of {\ttfamily a}. \\
\hline
\mbox{\texttt{ in}}  & {\em b} & Second path to use. \\
\hline
\mbox{\texttt{ in}}  & {\em b\+\_\+len} & length of {\ttfamily b}. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The number of characters printed.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__String__Group_gae36d8226b2c2e320f64d8a946f960c7b}{eina\+\_\+str\+\_\+join\+\_\+len()}} 

\mbox{\hyperlink{group__Eina__File__Group_gaafc34529ee88ef8b528f62dab8ffe469}{eina\+\_\+file\+\_\+path\+\_\+join()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+16 
\end{DoxySince}
\mbox{\Hypertarget{group__Eina__File__Group_gaafc34529ee88ef8b528f62dab8ffe469}\label{group__Eina__File__Group_gaafc34529ee88ef8b528f62dab8ffe469}} 
\index{File@{File}!eina\_file\_path\_join@{eina\_file\_path\_join}}
\index{eina\_file\_path\_join@{eina\_file\_path\_join}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_path\_join()}{eina\_file\_path\_join()}}
{\footnotesize\ttfamily static size\+\_\+t eina\+\_\+file\+\_\+path\+\_\+join (\begin{DoxyParamCaption}\item[{char $\ast$}]{dst,  }\item[{size\+\_\+t}]{size,  }\item[{const char $\ast$}]{a,  }\item[{const char $\ast$}]{b }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}



Joins two paths of known length. 

This function is similar to \mbox{\hyperlink{group__Eina__File__Group_gadf638f95abe9aa175b6aaa3762bc1b54}{eina\+\_\+file\+\_\+path\+\_\+join\+\_\+len()}}, but will compute the length of {\ttfamily a} and {\ttfamily b} using strlen(). The path separator is \textquotesingle{}\textbackslash{}\textquotesingle{} on Windows and \textquotesingle{}/\textquotesingle{} otherwise.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ out}}  & {\em dst} & The buffer to store the result. \\
\hline
\mbox{\texttt{ in}}  & {\em size} & Size (in byte) of the buffer. \\
\hline
\mbox{\texttt{ in}}  & {\em a} & First string to use. \\
\hline
\mbox{\texttt{ in}}  & {\em b} & Second string to use. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The number of characters printed.
\end{DoxyReturn}
\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{group__Eina__File__Group_gadf638f95abe9aa175b6aaa3762bc1b54}{eina\+\_\+file\+\_\+path\+\_\+join\+\_\+len()}}
\end{DoxySeeAlso}
\begin{DoxySince}{Since}
1.\+16 
\end{DoxySince}


Referenced by \mbox{\hyperlink{group__Eina__File__Group_gaa4571fad8d5e94f3a1936bb09beae16c}{eina\+\_\+file\+\_\+mkdtemp()}}, \mbox{\hyperlink{group__Eina__File__Group_gac77efa39c12ba6880a5bbdca004080fb}{eina\+\_\+file\+\_\+mkstemp()}}, and \mbox{\hyperlink{group__Eina__Prefix__Group_ga92b8591293b0be7c1621e082229e3963}{eina\+\_\+prefix\+\_\+new()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga17a1e47031010d4c34c96f9726d9f0e0}\label{group__Eina__File__Group_ga17a1e47031010d4c34c96f9726d9f0e0}} 
\index{File@{File}!eina\_file\_unlink@{eina\_file\_unlink}}
\index{eina\_file\_unlink@{eina\_file\_unlink}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_unlink()}{eina\_file\_unlink()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+file\+\_\+unlink (\begin{DoxyParamCaption}\item[{const char $\ast$}]{pathname }\end{DoxyParamCaption})}



Unlinks file. 

This function is a wrapper around the unlink() system call. It removes a link to a file.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em pathname} & File name to unlink. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} if the unlink was successful, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}} otherwise..
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+19 
\end{DoxySince}


References \mbox{\hyperlink{group__Eina__File__Group_ga566b1dffb98a71425706508ba19e12ea}{\+\_\+eina\+\_\+file\+\_\+cache}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga6e9dc02a249e1fcdb64e38e7dc47afb3}{eina\+\_\+hash\+\_\+find()}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga5538b4a134987b8a01744fad1a845ba4}{eina\+\_\+stringshare\+\_\+del()}}, and \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga858aff49902b2278be3e59aff989ed46}\label{group__Eina__File__Group_ga858aff49902b2278be3e59aff989ed46}} 
\index{File@{File}!eina\_file\_close\_on\_exec@{eina\_file\_close\_on\_exec}}
\index{eina\_file\_close\_on\_exec@{eina\_file\_close\_on\_exec}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_close\_on\_exec()}{eina\_file\_close\_on\_exec()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+file\+\_\+close\+\_\+on\+\_\+exec (\begin{DoxyParamCaption}\item[{int}]{fd,  }\item[{\mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}}}]{on }\end{DoxyParamCaption})}



Make sure a file descriptor will be closed on exec. 

This function is a wrapper around the fnctl() system call. It makes sure that the fd will be closed whenever exec is called.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em fd} & File descriptor to enforce close on exec on. \\
\hline
\mbox{\texttt{ in}}  & {\em on} & \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} will turn close on exec on, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}} will turn it off. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}} if it will be closed on exec, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}} otherwise..
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+20 
\end{DoxySince}
\begin{Desc}
\item[Examples]\par
\mbox{\hyperlink{ecore_fd_handler_gnutls_example_8c-example}{ecore\+\_\+fd\+\_\+handler\+\_\+gnutls\+\_\+example.\+c}}.\end{Desc}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, and \mbox{\hyperlink{group__Evil_ga454bde45f2e42a909a704d160869aad5}{fcntl()}}.



Referenced by \mbox{\hyperlink{group__Ecore__Pipe__Group_gaaa0c221d03d11b90e48ba0b3cd70e7c8}{ecore\+\_\+pipe\+\_\+full\+\_\+add()}}, \mbox{\hyperlink{group__Eina__File__Group_ga9579ba508358c74ea57bd8906801cfe5}{eina\+\_\+file\+\_\+open()}}, and \mbox{\hyperlink{group__Eina__Mmap__Group_gaf51405e08c9985f057b8d0137846c905}{eina\+\_\+mmap\+\_\+safety\+\_\+enabled\+\_\+set()}}.

\mbox{\Hypertarget{group__Eina__File__Group_gab469200d2a61bd3d52fa49cc33430432}\label{group__Eina__File__Group_gab469200d2a61bd3d52fa49cc33430432}} 
\index{File@{File}!eina\_file\_statgen\_next@{eina\_file\_statgen\_next}}
\index{eina\_file\_statgen\_next@{eina\_file\_statgen\_next}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_statgen\_next()}{eina\_file\_statgen\_next()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+file\+\_\+statgen\+\_\+next (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Force the stat generation counter to tick over so any following i/o does real i/o and stat calls. 

\begin{DoxySince}{Since}
1.\+23 
\end{DoxySince}
\mbox{\Hypertarget{group__Eina__File__Group_ga46b8ebef3355ef71aaa85549d26f65d3}\label{group__Eina__File__Group_ga46b8ebef3355ef71aaa85549d26f65d3}} 
\index{File@{File}!eina\_file\_statgen\_get@{eina\_file\_statgen\_get}}
\index{eina\_file\_statgen\_get@{eina\_file\_statgen\_get}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_statgen\_get()}{eina\_file\_statgen\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} \mbox{\hyperlink{group__Eina__File__Group_ga14b7b651c6a2ea038f008e908995e9a5}{Eina\+\_\+\+Statgen}} eina\+\_\+file\+\_\+statgen\+\_\+get (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Get the current stat generation counter value. 

\begin{DoxyReturn}{Returns}
0 if you should always do stat calls and compare, or some other value that changes like a generation counter 
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+23 
\end{DoxySince}


Referenced by \mbox{\hyperlink{group__Eina__File__Group_ga9579ba508358c74ea57bd8906801cfe5}{eina\+\_\+file\+\_\+open()}}.

\mbox{\Hypertarget{group__Eina__File__Group_gaa8ed719654ce26fa3f7c18eb3c41c21e}\label{group__Eina__File__Group_gaa8ed719654ce26fa3f7c18eb3c41c21e}} 
\index{File@{File}!eina\_file\_statgen\_enable@{eina\_file\_statgen\_enable}}
\index{eina\_file\_statgen\_enable@{eina\_file\_statgen\_enable}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_statgen\_enable()}{eina\_file\_statgen\_enable()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+file\+\_\+statgen\+\_\+enable (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Enable stat generation count optimiziing to only stat/do file i/o between generation counts changing. 

\begin{DoxySince}{Since}
1.\+23 
\end{DoxySince}
\mbox{\Hypertarget{group__Eina__File__Group_ga99f6ad9e21c5315406589b79bb398c56}\label{group__Eina__File__Group_ga99f6ad9e21c5315406589b79bb398c56}} 
\index{File@{File}!eina\_file\_statgen\_disable@{eina\_file\_statgen\_disable}}
\index{eina\_file\_statgen\_disable@{eina\_file\_statgen\_disable}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_statgen\_disable()}{eina\_file\_statgen\_disable()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga6ac08753ba12bc9c7a0390cf67868f4f}{EINA\+\_\+\+API}} void eina\+\_\+file\+\_\+statgen\+\_\+disable (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Disable stat generation count optimiziing to only stat/do file i/o between generation counts changing. 

\begin{DoxySince}{Since}
1.\+23 
\end{DoxySince}
\mbox{\Hypertarget{group__Eina__File__Group_ga3eb6309933f0a698eda7cf41ed21fb5e}\label{group__Eina__File__Group_ga3eb6309933f0a698eda7cf41ed21fb5e}} 
\index{File@{File}!eina\_file\_path\_relative@{eina\_file\_path\_relative}}
\index{eina\_file\_path\_relative@{eina\_file\_path\_relative}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_path\_relative()}{eina\_file\_path\_relative()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool}} eina\+\_\+file\+\_\+path\+\_\+relative (\begin{DoxyParamCaption}\item[{const char $\ast$}]{path }\end{DoxyParamCaption})}



Determines if a path is relative or absolute. 

The implementation simply checks if the first char in the path is \textquotesingle{}/\textquotesingle{}. If it is not, the path is considered relative.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em path} & The path to check.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
EINA\+\_\+\+TRUE if the path is relative, EINA\+\_\+\+FALSE otherwise. 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, and \mbox{\hyperlink{group__Evil_ga6f80c58cfd19ff9a289fc7f9a8f6de53}{evil\+\_\+path\+\_\+is\+\_\+absolute()}}.



Referenced by \mbox{\hyperlink{group__Eina__File__Group_ga4c11cce335038a46c2979f1ecf5f3d33}{eina\+\_\+file\+\_\+path\+\_\+sanitize()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga9ca2fa022c056bcc3dfa15618531524b}\label{group__Eina__File__Group_ga9ca2fa022c056bcc3dfa15618531524b}} 
\index{File@{File}!eina\_file\_current\_directory\_get@{eina\_file\_current\_directory\_get}}
\index{eina\_file\_current\_directory\_get@{eina\_file\_current\_directory\_get}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_current\_directory\_get()}{eina\_file\_current\_directory\_get()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group__Eina__Stringshare__Group_gae8d53f367d5da5acfd19af6c235831d5}{Eina\+\_\+\+Tmpstr}} $\ast$ eina\+\_\+file\+\_\+current\+\_\+directory\+\_\+get (\begin{DoxyParamCaption}\item[{const char $\ast$}]{path,  }\item[{size\+\_\+t}]{len }\end{DoxyParamCaption})}



Gets the current directory and optionally appends a path to it. 

If a string was passed in via the {\ttfamily path} parameter, it will be appended to the current working directory. Presumably, this will be a relative path.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em path} & The path to append to the current directory. \\
\hline
\mbox{\texttt{ in}}  & {\em len} & The length of {\ttfamily path}.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to a string that contains the absolute path to the current working directory plus any path you send in. 
\end{DoxyReturn}


References \mbox{\hyperlink{eina__alloca_8h_ae13861224cb6597c3171a910683cb5fc}{alloca()}}, and \mbox{\hyperlink{group__Eina__Stringshare__Group_ga152c4fcadadaa2a5c72266c72bc6956e}{eina\+\_\+tmpstr\+\_\+add\+\_\+length()}}.



Referenced by \mbox{\hyperlink{group__Eina__File__Group_ga4c11cce335038a46c2979f1ecf5f3d33}{eina\+\_\+file\+\_\+path\+\_\+sanitize()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga77832abe1c2549b02abf98f665a40f19}\label{group__Eina__File__Group_ga77832abe1c2549b02abf98f665a40f19}} 
\index{File@{File}!eina\_file\_cleanup@{eina\_file\_cleanup}}
\index{eina\_file\_cleanup@{eina\_file\_cleanup}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_cleanup()}{eina\_file\_cleanup()}}
{\footnotesize\ttfamily char $\ast$ eina\+\_\+file\+\_\+cleanup (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__Stringshare__Group_gae8d53f367d5da5acfd19af6c235831d5}{Eina\+\_\+\+Tmpstr}} $\ast$}]{path }\end{DoxyParamCaption})}



Cleans up Eina after a file is no longer needed. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em path} & The path of the file.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
On success, it will return the {\ttfamily path} string. If {\ttfamily path} is {\ttfamily NULL}, it will return and empty string. 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Eina__Stringshare__Group_ga0c32cf7aadbc1fcd60500d5bb9c03c93}{eina\+\_\+tmpstr\+\_\+del()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga9360f0d850bb1bf8bf40027985f4ed42}\label{group__Eina__File__Group_ga9360f0d850bb1bf8bf40027985f4ed42}} 
\index{File@{File}!eina\_file\_clean\_close@{eina\_file\_clean\_close}}
\index{eina\_file\_clean\_close@{eina\_file\_clean\_close}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_clean\_close()}{eina\_file\_clean\_close()}}
{\footnotesize\ttfamily void eina\+\_\+file\+\_\+clean\+\_\+close (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file }\end{DoxyParamCaption})}



Closes and cleans up after an Eina file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em file} & The path of the file. \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{group__Eina__File__Group_ga6960f0b4d94996a4beb965a684d92dea}{eina\+\_\+file\+\_\+real\+\_\+close()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga76829f09c99852b1536efc813d99fc78}{eina\+\_\+hash\+\_\+free()}}, \mbox{\hyperlink{group__Eina__Magic__Group_ga470f5ce28eaaf59ce80523be8471c5e0}{EINA\+\_\+\+MAGIC\+\_\+\+SET}}, \mbox{\hyperlink{group__Eina__Stringshare__Group_ga5538b4a134987b8a01744fad1a845ba4}{eina\+\_\+stringshare\+\_\+del()}}, \mbox{\hyperlink{struct__Eina__File_ab2faf024c321a133252a5661591560de}{\+\_\+\+Eina\+\_\+\+File\+::filename}}, \mbox{\hyperlink{struct__Eina__File_af202d60b864203f478325b0203283692}{\+\_\+\+Eina\+\_\+\+File\+::map}}, and \mbox{\hyperlink{struct__Eina__File_aa24e58153abfcb2b0a68364280ed8be6}{\+\_\+\+Eina\+\_\+\+File\+::rmap}}.



Referenced by \mbox{\hyperlink{group__Eina__File__Group_ga6b19a0682a3747cb5c313dc7d0e41a90}{eina\+\_\+file\+\_\+close()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga6960f0b4d94996a4beb965a684d92dea}\label{group__Eina__File__Group_ga6960f0b4d94996a4beb965a684d92dea}} 
\index{File@{File}!eina\_file\_real\_close@{eina\_file\_real\_close}}
\index{eina\_file\_real\_close@{eina\_file\_real\_close}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_real\_close()}{eina\_file\_real\_close()}}
{\footnotesize\ttfamily void eina\+\_\+file\+\_\+real\+\_\+close (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file }\end{DoxyParamCaption})}



Closes a file from the OS perspective. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em file} & The path of the file. \\
\hline
\end{DoxyParams}


Referenced by \mbox{\hyperlink{group__Eina__File__Group_ga9360f0d850bb1bf8bf40027985f4ed42}{eina\+\_\+file\+\_\+clean\+\_\+close()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga64a3123b8e0b9698d30611bacd548b9e}\label{group__Eina__File__Group_ga64a3123b8e0b9698d30611bacd548b9e}} 
\index{File@{File}!eina\_file\_flush@{eina\_file\_flush}}
\index{eina\_file\_flush@{eina\_file\_flush}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_flush()}{eina\_file\_flush()}}
{\footnotesize\ttfamily void eina\+\_\+file\+\_\+flush (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file,  }\item[{unsigned long int}]{length }\end{DoxyParamCaption})}



Resets the internal housekeeping structures after a file has changed. 

Despite the name, this routine does not write anything to disk. It invalidates the memory maps for the file. If the file has shrunk, it also adds any mapped regions past the end of the file to the dead\+\_\+map.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em file} & The file. \\
\hline
\mbox{\texttt{ in}}  & {\em length} & The current length of the file after the change. \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{struct__Eina__File_a0b52b3136c3a63731f86aa72ea53c5dc}{\+\_\+\+Eina\+\_\+\+File\+::dead\+\_\+map}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga315f85c5deae8e099e5a5a17d3557456}{eina\+\_\+hash\+\_\+del()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga1fa6b5d170d65706416bfb1446d7b1b8}{eina\+\_\+hash\+\_\+iterator\+\_\+data\+\_\+new()}}, \mbox{\hyperlink{group__Eina__Iterator__Group_gac7314580e18868ef229f5d2814562794}{EINA\+\_\+\+ITERATOR\+\_\+\+FOREACH}}, \mbox{\hyperlink{group__Eina__Iterator__Group_ga50da005e8d26c0a043d0d1c025bc9008}{eina\+\_\+iterator\+\_\+free()}}, \mbox{\hyperlink{group__Eina__List__Group_ga625698a383dda8fc0db245a1c7608c49}{eina\+\_\+list\+\_\+append()}}, \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\+\_\+\+LIST\+\_\+\+FOREACH}}, \mbox{\hyperlink{group__Eina__List__Group_gab4f661f25a58eec025a372c8c6861fc9}{eina\+\_\+list\+\_\+merge()}}, \mbox{\hyperlink{struct__Eina__File_abf04bdf1861d8a17c475c01a0655b066}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+map}}, \mbox{\hyperlink{struct__Eina__File_ac3a88ace50ec855e101bdb0f59b94e85}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+refcount}}, \mbox{\hyperlink{struct__Eina__File_af65d69e588731533125018298cd06503}{\+\_\+\+Eina\+\_\+\+File\+::length}}, \mbox{\hyperlink{struct__Eina__File__Map_a9fdf885de07d9a83a9a1ada2877993aa}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::length}}, \mbox{\hyperlink{struct__Eina__File_a27cefdfba152ba3a8e43d708eafb71dd}{\+\_\+\+Eina\+\_\+\+File\+::lock}}, \mbox{\hyperlink{struct__Eina__File_af202d60b864203f478325b0203283692}{\+\_\+\+Eina\+\_\+\+File\+::map}}, \mbox{\hyperlink{struct__Eina__File__Map_af6723f01f771d25e3f599d2e485d4473}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::map}}, \mbox{\hyperlink{struct__Eina__File__Map_a8a2a05bea6bcac2e824ed093e67f9a11}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::offset}}, \mbox{\hyperlink{struct__Eina__File_a5db9d54f81084ab96f524270e3247e26}{\+\_\+\+Eina\+\_\+\+File\+::refcount}}, \mbox{\hyperlink{struct__Eina__File__Map_a55b4942083045865f44401ed4155bd61}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::refcount}}, and \mbox{\hyperlink{struct__Eina__File_aa24e58153abfcb2b0a68364280ed8be6}{\+\_\+\+Eina\+\_\+\+File\+::rmap}}.



Referenced by \mbox{\hyperlink{group__Eina__File__Group_ga675ed9c701faa581e04fa6c9289376f4}{eina\+\_\+file\+\_\+refresh()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga7fc3c176abeb346004562e5ddfdf6e0f}\label{group__Eina__File__Group_ga7fc3c176abeb346004562e5ddfdf6e0f}} 
\index{File@{File}!eina\_file\_common\_map\_free@{eina\_file\_common\_map\_free}}
\index{eina\_file\_common\_map\_free@{eina\_file\_common\_map\_free}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_common\_map\_free()}{eina\_file\_common\_map\_free()}}
{\footnotesize\ttfamily void eina\+\_\+file\+\_\+common\+\_\+map\+\_\+free (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file,  }\item[{void $\ast$}]{map,  }\item[{void($\ast$)(\mbox{\hyperlink{group__Eina__File__Group_gaa386401312fe1dd48e84637fa7a728b6}{Eina\+\_\+\+File\+\_\+\+Map}} $\ast$map)}]{free\+\_\+func }\end{DoxyParamCaption})}



Removes a mapped region from the file and frees the resources. 

This routine will remove a previously mapped region from the internal Eina File housekeeping and free the resources associated with it. In the case where the map is part of the dead\+\_\+map, {\ttfamily free\+\_\+func} will be called to handle the actual deallocation.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em file} & The file. \\
\hline
\mbox{\texttt{ in,out}}  & {\em map} & The memory mapped region that is to be freed. \\
\hline
\mbox{\texttt{ in}}  & {\em free\+\_\+func} & A pointer to a function that will be called to free up the resources used by the map. \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{struct__Eina__File_a0b52b3136c3a63731f86aa72ea53c5dc}{\+\_\+\+Eina\+\_\+\+File\+::dead\+\_\+map}}, \mbox{\hyperlink{group__Eina__Types__Group_ga1feb115f8e9913e806e090d9bd5a7301}{EINA\+\_\+\+FALSE}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga315f85c5deae8e099e5a5a17d3557456}{eina\+\_\+hash\+\_\+del()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga6e9dc02a249e1fcdb64e38e7dc47afb3}{eina\+\_\+hash\+\_\+find()}}, \mbox{\hyperlink{group__Eina__List__Group_gac6efafc19f526d916cdb9757240a8773}{EINA\+\_\+\+LIST\+\_\+\+FOREACH}}, \mbox{\hyperlink{group__Eina__List__Group_gaf86ee0fd9fe0643ece301fc86f04e720}{eina\+\_\+list\+\_\+remove\+\_\+list()}}, \mbox{\hyperlink{group__Eina__Types__Group_ga05c12dacc8b4058994df842b41be85fc}{EINA\+\_\+\+TRUE}}, \mbox{\hyperlink{struct__Eina__File__Map_a9fdf885de07d9a83a9a1ada2877993aa}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::length}}, \mbox{\hyperlink{struct__Eina__File_af202d60b864203f478325b0203283692}{\+\_\+\+Eina\+\_\+\+File\+::map}}, \mbox{\hyperlink{struct__Eina__File__Map_af6723f01f771d25e3f599d2e485d4473}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::map}}, \mbox{\hyperlink{struct__Eina__File__Map_a8a2a05bea6bcac2e824ed093e67f9a11}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::offset}}, \mbox{\hyperlink{struct__Eina__File__Map_a55b4942083045865f44401ed4155bd61}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::refcount}}, and \mbox{\hyperlink{struct__Eina__File_aa24e58153abfcb2b0a68364280ed8be6}{\+\_\+\+Eina\+\_\+\+File\+::rmap}}.



Referenced by \mbox{\hyperlink{group__Eina__File__Group_gaf52b237fec73dbbcd411c8f999c5b5df}{eina\+\_\+file\+\_\+map\+\_\+free()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga231e2453311f74c18d80ab75904f6a08}\label{group__Eina__File__Group_ga231e2453311f74c18d80ab75904f6a08}} 
\index{File@{File}!eina\_file\_virtual\_map\_all@{eina\_file\_virtual\_map\_all}}
\index{eina\_file\_virtual\_map\_all@{eina\_file\_virtual\_map\_all}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_virtual\_map\_all()}{eina\_file\_virtual\_map\_all()}}
{\footnotesize\ttfamily void $\ast$ eina\+\_\+file\+\_\+virtual\+\_\+map\+\_\+all (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file }\end{DoxyParamCaption})}



Map the entire contents of a virtual file to a buffer. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em file} & The virtual file to map in memory \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The buffer 
\end{DoxyReturn}


References \mbox{\hyperlink{struct__Eina__File_abf04bdf1861d8a17c475c01a0655b066}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+map}}, \mbox{\hyperlink{struct__Eina__File_ac3a88ace50ec855e101bdb0f59b94e85}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+refcount}}, and \mbox{\hyperlink{struct__Eina__File_a27cefdfba152ba3a8e43d708eafb71dd}{\+\_\+\+Eina\+\_\+\+File\+::lock}}.



Referenced by \mbox{\hyperlink{group__Eina__File__Group_gaae165c21af09fca39c2d1f89a92cb6b1}{eina\+\_\+file\+\_\+map\+\_\+all()}}.

\mbox{\Hypertarget{group__Eina__File__Group_gada097a9bd6adfc1f02de327eff447bee}\label{group__Eina__File__Group_gada097a9bd6adfc1f02de327eff447bee}} 
\index{File@{File}!eina\_file\_virtual\_map\_new@{eina\_file\_virtual\_map\_new}}
\index{eina\_file\_virtual\_map\_new@{eina\_file\_virtual\_map\_new}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_virtual\_map\_new()}{eina\_file\_virtual\_map\_new()}}
{\footnotesize\ttfamily void $\ast$ eina\+\_\+file\+\_\+virtual\+\_\+map\+\_\+new (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file,  }\item[{unsigned long int}]{offset,  }\item[{unsigned long int}]{length }\end{DoxyParamCaption})}



Map a part of a virtual file to a buffer. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em file} & The virtual file to map in memory \\
\hline
\mbox{\texttt{ in}}  & {\em offset} & The offset inside the file to start mapping \\
\hline
\mbox{\texttt{ in}}  & {\em length} & The length of the region to map \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The buffer 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Eina__Hash__Group_ga5e72d0c5397936512407ce8cd66e98d6}{eina\+\_\+hash\+\_\+add()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga84a3b957ede675cb03f3c344695c1282}{eina\+\_\+hash\+\_\+direct\+\_\+add()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga6e9dc02a249e1fcdb64e38e7dc47afb3}{eina\+\_\+hash\+\_\+find()}}, \mbox{\hyperlink{struct__Eina__File_abf04bdf1861d8a17c475c01a0655b066}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+map}}, \mbox{\hyperlink{struct__Eina__File__Map_a9fdf885de07d9a83a9a1ada2877993aa}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::length}}, \mbox{\hyperlink{struct__Eina__File_a27cefdfba152ba3a8e43d708eafb71dd}{\+\_\+\+Eina\+\_\+\+File\+::lock}}, \mbox{\hyperlink{struct__Eina__File_af202d60b864203f478325b0203283692}{\+\_\+\+Eina\+\_\+\+File\+::map}}, \mbox{\hyperlink{struct__Eina__File__Map_af6723f01f771d25e3f599d2e485d4473}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::map}}, \mbox{\hyperlink{struct__Eina__File__Map_a8a2a05bea6bcac2e824ed093e67f9a11}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::offset}}, \mbox{\hyperlink{struct__Eina__File__Map_a55b4942083045865f44401ed4155bd61}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::refcount}}, and \mbox{\hyperlink{struct__Eina__File_aa24e58153abfcb2b0a68364280ed8be6}{\+\_\+\+Eina\+\_\+\+File\+::rmap}}.



Referenced by \mbox{\hyperlink{group__Eina__File__Group_ga5c56a04cf4de6d43f73ce39b970132fa}{eina\+\_\+file\+\_\+map\+\_\+new()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga105fa4c85c984190da9c5f22b509fd15}\label{group__Eina__File__Group_ga105fa4c85c984190da9c5f22b509fd15}} 
\index{File@{File}!eina\_file\_virtual\_map\_free@{eina\_file\_virtual\_map\_free}}
\index{eina\_file\_virtual\_map\_free@{eina\_file\_virtual\_map\_free}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_virtual\_map\_free()}{eina\_file\_virtual\_map\_free()}}
{\footnotesize\ttfamily void eina\+\_\+file\+\_\+virtual\+\_\+map\+\_\+free (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group__Eina__File__Group_ga20697123547cbc937c6c9dd845af0403}{Eina\+\_\+\+File}} $\ast$}]{file,  }\item[{void $\ast$}]{map }\end{DoxyParamCaption})}



Unref and unmap memory if possible. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in,out}}  & {\em file} & The file handler to unmap memory from. \\
\hline
\mbox{\texttt{ in,out}}  & {\em map} & Memory map to unref and unmap. \\
\hline
\end{DoxyParams}


References \mbox{\hyperlink{group__Eina__Hash__Group_ga315f85c5deae8e099e5a5a17d3557456}{eina\+\_\+hash\+\_\+del()}}, \mbox{\hyperlink{group__Eina__Hash__Group_ga6e9dc02a249e1fcdb64e38e7dc47afb3}{eina\+\_\+hash\+\_\+find()}}, \mbox{\hyperlink{struct__Eina__File_abf04bdf1861d8a17c475c01a0655b066}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+map}}, \mbox{\hyperlink{struct__Eina__File_ac3a88ace50ec855e101bdb0f59b94e85}{\+\_\+\+Eina\+\_\+\+File\+::global\+\_\+refcount}}, \mbox{\hyperlink{struct__Eina__File__Map_a9fdf885de07d9a83a9a1ada2877993aa}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::length}}, \mbox{\hyperlink{struct__Eina__File_a27cefdfba152ba3a8e43d708eafb71dd}{\+\_\+\+Eina\+\_\+\+File\+::lock}}, \mbox{\hyperlink{struct__Eina__File_af202d60b864203f478325b0203283692}{\+\_\+\+Eina\+\_\+\+File\+::map}}, \mbox{\hyperlink{struct__Eina__File__Map_a8a2a05bea6bcac2e824ed093e67f9a11}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::offset}}, \mbox{\hyperlink{struct__Eina__File__Map_a55b4942083045865f44401ed4155bd61}{\+\_\+\+Eina\+\_\+\+File\+\_\+\+Map\+::refcount}}, and \mbox{\hyperlink{struct__Eina__File_aa24e58153abfcb2b0a68364280ed8be6}{\+\_\+\+Eina\+\_\+\+File\+::rmap}}.



Referenced by \mbox{\hyperlink{group__Eina__File__Group_gaf52b237fec73dbbcd411c8f999c5b5df}{eina\+\_\+file\+\_\+map\+\_\+free()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga448a87e4666e16adb3d4289c210c549e}\label{group__Eina__File__Group_ga448a87e4666e16adb3d4289c210c549e}} 
\index{File@{File}!eina\_file\_map\_key\_length@{eina\_file\_map\_key\_length}}
\index{eina\_file\_map\_key\_length@{eina\_file\_map\_key\_length}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_map\_key\_length()}{eina\_file\_map\_key\_length()}}
{\footnotesize\ttfamily unsigned int eina\+\_\+file\+\_\+map\+\_\+key\+\_\+length (\begin{DoxyParamCaption}\item[{const void $\ast$}]{key }\end{DoxyParamCaption})}



Get the length of a map key. 

\begin{DoxyWarning}{Warning}
This function is not yet implemented. At present it only returns 
\begin{DoxyCode}{0}
\DoxyCodeLine{\textcolor{keyword}{sizeof}\ (\textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{long}\ int)\ *\ 2\ }

\end{DoxyCode}

\end{DoxyWarning}

\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em key} & The key for which length will be calculated.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The length of the key. 
\end{DoxyReturn}


Referenced by \mbox{\hyperlink{group__Eina__File__Group_ga9579ba508358c74ea57bd8906801cfe5}{eina\+\_\+file\+\_\+open()}}, and \mbox{\hyperlink{group__Eina__File__Group_ga71823e5f7683d1589cb49c0f7bcbaf14}{eina\+\_\+file\+\_\+virtualize()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga279f49595634c5825f579f98b8c58780}\label{group__Eina__File__Group_ga279f49595634c5825f579f98b8c58780}} 
\index{File@{File}!eina\_file\_map\_key\_cmp@{eina\_file\_map\_key\_cmp}}
\index{eina\_file\_map\_key\_cmp@{eina\_file\_map\_key\_cmp}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_map\_key\_cmp()}{eina\_file\_map\_key\_cmp()}}
{\footnotesize\ttfamily int eina\+\_\+file\+\_\+map\+\_\+key\+\_\+cmp (\begin{DoxyParamCaption}\item[{const unsigned long long int $\ast$}]{key1,  }\item[{int}]{key1\+\_\+length,  }\item[{const unsigned long long int $\ast$}]{key2,  }\item[{int}]{key2\+\_\+length }\end{DoxyParamCaption})}



Compares two map keys. 

The implementation assumes that {\ttfamily key1} and {\ttfamily key2} are both pointers to an array with 2 elements, as is the case with the Eina file map keys.


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em key1} & The first key. \\
\hline
\mbox{\texttt{ in}}  & {\em key1\+\_\+length} & The length of the first key. \\
\hline
\mbox{\texttt{ in}}  & {\em key2} & The second key. \\
\hline
\mbox{\texttt{ in}}  & {\em key2\+\_\+length} & The length of the second key.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Positive number if Key1 \texorpdfstring{$>$}{>} Key2, else a negative number. Will return zero if both elements of the key are exactly the same. 
\end{DoxyReturn}


Referenced by \mbox{\hyperlink{group__Eina__File__Group_ga9579ba508358c74ea57bd8906801cfe5}{eina\+\_\+file\+\_\+open()}}, and \mbox{\hyperlink{group__Eina__File__Group_ga71823e5f7683d1589cb49c0f7bcbaf14}{eina\+\_\+file\+\_\+virtualize()}}.

\mbox{\Hypertarget{group__Eina__File__Group_ga61afa15fd0c3f3938179b041c1bc7226}\label{group__Eina__File__Group_ga61afa15fd0c3f3938179b041c1bc7226}} 
\index{File@{File}!eina\_file\_map\_key\_hash@{eina\_file\_map\_key\_hash}}
\index{eina\_file\_map\_key\_hash@{eina\_file\_map\_key\_hash}!File@{File}}
\doxysubsubsection{\texorpdfstring{eina\_file\_map\_key\_hash()}{eina\_file\_map\_key\_hash()}}
{\footnotesize\ttfamily int eina\+\_\+file\+\_\+map\+\_\+key\+\_\+hash (\begin{DoxyParamCaption}\item[{const unsigned long long int $\ast$}]{key,  }\item[{int}]{key\+\_\+length }\end{DoxyParamCaption})}



Creates a hash from a map key. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em key} & A pointer to the key. \\
\hline
\mbox{\texttt{ in}}  & {\em key\+\_\+length} & The length of the key.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A key hash. 
\end{DoxyReturn}


References \mbox{\hyperlink{group__Eina__Hash__Group_ga59af62e37bbdab2cf63f49295fd57213}{eina\+\_\+hash\+\_\+int64()}}.



Referenced by \mbox{\hyperlink{group__Eina__File__Group_ga9579ba508358c74ea57bd8906801cfe5}{eina\+\_\+file\+\_\+open()}}, and \mbox{\hyperlink{group__Eina__File__Group_ga71823e5f7683d1589cb49c0f7bcbaf14}{eina\+\_\+file\+\_\+virtualize()}}.

