\hypertarget{zcompress_8c}{
\section{zcompress.c File Reference}
\label{zcompress_8c}\index{zcompress.c@{zcompress.c}}
}
{\tt \#include \char`\"{}stdio.h\char`\"{}}\par
{\tt \#include \char`\"{}stdlib.h\char`\"{}}\par
{\tt \#include \char`\"{}unistd.h\char`\"{}}\par
{\tt \#include \char`\"{}fcntl.h\char`\"{}}\par
{\tt \#include \char`\"{}sys/types.h\char`\"{}}\par
{\tt \#include \char`\"{}sys/stat.h\char`\"{}}\par
{\tt \#include \char`\"{}ZFS/ZLIB\_\-file\_\-compress.h\char`\"{}}\par
{\tt \#include \char`\"{}ZFS/zcompress.h\char`\"{}}\par
{\tt \#include \char`\"{}MSG/MSG\_\-pubdefs.h\char`\"{}}\par
{\tt \#include \char`\"{}MSG/MSG\_\-print\-Proc.h\char`\"{}}\par
{\tt \#include \char`\"{}PBS/TASK.h\char`\"{}}\par


Include dependency graph for zcompress.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=150pt]{zcompress_8c__incl}
\end{center}
\end{figure}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{zcompress_8c_a0}{ZLIB\_\-BUF\_\-SIZE}~0x8000
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int \hyperlink{zcompress_8c_a1}{zcompress} (const char $\ast$in\-Name, const char $\ast$out\-Name)
\item 
int \hyperlink{zcompress_8c_a2}{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_a0}{
\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_a0}


The size in bytes of ZLIB data buffers.

\subsection{Function Documentation}
\hypertarget{zcompress_8c_a2}{
\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_a2}


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}
\hypertarget{zcompress_8c_a1}{
\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 in\-Name}, const char $\ast$ {\em out\-Name})}}
\label{zcompress_8c_a1}


The Vx\-Works entry point. Encodes the input data and writes out the encoded data.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em in\-Name}]The name of the input file to compress. \item[{\em out\-Name}]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}
