\hypertarget{zcompress_8c}{
\section{zcompress.c File Reference}
\label{zcompress_8c}\index{zcompress.c@{zcompress.c}}
}
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$unistd.h$>$}\par
{\tt \#include $<$fcntl.h$>$}\par
{\tt \#include $<$sys/types.h$>$}\par
{\tt \#include $<$sys/stat.h$>$}\par
{\tt \#include $<$ZFS/ZLIB\_\-file\_\-compress.h$>$}\par
{\tt \#include $<$ZFS/zcompress.h$>$}\par
{\tt \#include $<$MSG/MSG\_\-pubdefs.h$>$}\par
{\tt \#include $<$MSG/MSG\_\-printProc.h$>$}\par
{\tt \#include $<$PBS/TASK.h$>$}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{zcompress_8c_ee79ea870e3b3807cae3db5655993a7e}{ZLIB\_\-BUF\_\-SIZE}~0x8000
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{zcompress_8c_374d6236fcdecad77c78096464bd946e}{zcompress} (const char $\ast$inName, const char $\ast$outName)
\item 
int \hyperlink{zcompress_8c_3c04138a5bfe5d72780bb7e82a18e627}{main} (int argc, char $\ast$$\ast$argv)
\end{CompactItemize}


\subsection{Detailed Description}
A file compression utility using the zlib encoder. 

\subsection{Define Documentation}
\hypertarget{zcompress_8c_ee79ea870e3b3807cae3db5655993a7e}{
\index{zcompress.c@{zcompress.c}!ZLIB\_\-BUF\_\-SIZE@{ZLIB\_\-BUF\_\-SIZE}}
\index{ZLIB\_\-BUF\_\-SIZE@{ZLIB\_\-BUF\_\-SIZE}!zcompress.c@{zcompress.c}}
\subsubsection[{ZLIB\_\-BUF\_\-SIZE}]{\setlength{\rightskip}{0pt plus 5cm}\#define ZLIB\_\-BUF\_\-SIZE~0x8000}}
\label{zcompress_8c_ee79ea870e3b3807cae3db5655993a7e}


The size in bytes of ZLIB data buffers. 

Referenced by zcompress().

\subsection{Function Documentation}
\hypertarget{zcompress_8c_3c04138a5bfe5d72780bb7e82a18e627}{
\index{zcompress.c@{zcompress.c}!main@{main}}
\index{main@{main}!zcompress.c@{zcompress.c}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, \/  char $\ast$$\ast$ {\em argv})}}
\label{zcompress_8c_3c04138a5bfe5d72780bb7e82a18e627}


The UNIX application entry point.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em argc}]The number of command line arguments. \item[{\em argv}]Pointers to the command line arguments.\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em 0}]Success. \item[{\em -1}]Failure. \end{description}
\end{Desc}


References zcompress().\hypertarget{zcompress_8c_374d6236fcdecad77c78096464bd946e}{
\index{zcompress.c@{zcompress.c}!zcompress@{zcompress}}
\index{zcompress@{zcompress}!zcompress.c@{zcompress.c}}
\subsubsection[{zcompress}]{\setlength{\rightskip}{0pt plus 5cm}int zcompress (const char $\ast$ {\em inName}, \/  const char $\ast$ {\em outName})}}
\label{zcompress_8c_374d6236fcdecad77c78096464bd946e}


The VxWorks entry point. Encodes the input data and writes out the encoded data.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em inName}]The name of the input file to compress. \item[{\em outName}]The name of the compressed output file.\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em 0}]Success. \item[{\em -1}]Failure. \end{description}
\end{Desc}


References ZLIB\_\-BUF\_\-SIZE, and ZLIB\_\-fileCompressFromFile().

Referenced by main().