GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> ZFS / V0-0-2 > zcompress / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

zcompress.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <ZFS/ZLIB_file_compress.h>
#include <ZFS/zcompress.h>
#include <MSG/MSG_pubdefs.h>
#include <MSG/MSG_printProc.h>
#include <PBS/TASK.h>

Defines

#define ZLIB_BUF_SIZE   0x8000

Functions

int zcompress (const char *inName, const char *outName)
int main (int argc, char **argv)

Detailed Description

A file compression utility using the zlib encoder.

Define Documentation

#define ZLIB_BUF_SIZE   0x8000

The size in bytes of ZLIB data buffers.

Referenced by zcompress().


Function Documentation

int main ( int  argc,
char **  argv 
)

The UNIX application entry point.

Parameters:
argc The number of command line arguments.
argv Pointers to the command line arguments.
Return values:
0 Success.
-1 Failure.

References zcompress().

int zcompress ( const char *  inName,
const char *  outName 
)

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

Parameters:
inName The name of the input file to compress.
outName The name of the compressed output file.
Return values:
0 Success.
-1 Failure.

References ZLIB_BUF_SIZE, and ZLIB_fileCompressFromFile().

Referenced by main().


Generated on Wed Nov 21 22:24:09 2012 by  doxygen 1.5.8