\hypertarget{fi_8c}{
\section{fi.c File Reference}
\label{fi_8c}\index{fi.c@{fi.c}}
}
Wrapper functions to stdio calls for reading a file. 

{\tt \#include \char`\"{}fi\_\-p.h\char`\"{}}\par
{\tt \#include \char`\"{}error.h\char`\"{}}\par
{\tt \#include \char`\"{}PBS/BSWP.h\char`\"{}}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$sys/types.h$>$}\par
{\tt \#include $<$sys/stat.h$>$}\par
{\tt \#include $<$fcntl.h$>$}\par
{\tt \#include $<$unistd.h$>$}\par


Include dependency graph for fi.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=198pt]{fi_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
unsigned \hyperlink{fi_8c_a0}{file\_\-open} (int $\ast$fd, const char $\ast$name)
\begin{CompactList}\small\item\em Open the file for reading and verify the version information. \item\end{CompactList}\item 
unsigned \hyperlink{fi_8c_a1}{file\_\-close} (int fd)
\begin{CompactList}\small\item\em Closes the file. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Wrapper functions to stdio calls for reading a file. 

\begin{Desc}
\item[Author:]James Swain -- \href{mailto:jswain@slac.stanford.edu}{\tt jswain@slac.stanford.edu}\end{Desc}


\subsection{Function Documentation}
\hypertarget{fi_8c_a1}{
\index{fi.c@{fi.c}!file_close@{file\_\-close}}
\index{file_close@{file\_\-close}!fi.c@{fi.c}}
\subsubsection[file\_\-close]{\setlength{\rightskip}{0pt plus 5cm}unsigned file\_\-close (int {\em fd})}}
\label{fi_8c_a1}


Closes the file. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em fd}]File descriptor of the file to close \end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em RIMG\_\-FILE\_\-CLOSE}]if the file close failed \item[{\em QCFG\_\-SUCCESS}]if all goes well\end{description}
\end{Desc}
\hypertarget{fi_8c_a0}{
\index{fi.c@{fi.c}!file_open@{file\_\-open}}
\index{file_open@{file\_\-open}!fi.c@{fi.c}}
\subsubsection[file\_\-open]{\setlength{\rightskip}{0pt plus 5cm}unsigned file\_\-open (int $\ast$ {\em fd}, const char $\ast$ {\em name})}}
\label{fi_8c_a0}


Open the file for reading and verify the version information. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em fd}]Pointer to location to place the file descriptor \item[{\em name}]Full pathname of the file to open \end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em QCFG\_\-SUCCESS}]if the file opens for reading \item[{\em RIM\_\-FILE\_\-OPEN}]if the file fails to open \item[{\em QCFG\_\-FILE\_\-VERSION}]the version information at the head of the file is inconsisten with the current LATC version\end{description}
\end{Desc}
