//+++2002-08-17
// Copyright (C) 2001,2002 Mike Rieker, Beverly, MA USA
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; version 2 of the License.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//---2002-08-17
/************************************************************************/
/* */
/* GZIP utiliti */
/* */
/************************************************************************/
#include "ozone.h"
#include "oz_crtl_malloc.h"
#include "oz_io_fs.h"
#include "oz_knl_lock.h"
#include "oz_knl_status.h"
#include "oz_sys_io.h"
#include "oz_sys_io_fs.h"
#include "oz_sys_io_fs_printf.h"
#include "oz_util_start.h"
#include "gzip.h"
static char *pn = "gzip";
static char *input_file, *output_file;
static OZ_Handle h_in, h_out;
static uLong exstat;
static int readroutine (void *dummy, int siz, char *buf, int *len, char **pnt);
static int writeroutine (void *dummy, int siz, char *buf);
static void errorroutine (void *dummy, int code, char *msg);
static void *mallocroutine (void *dummy, int size);
static void freeroutine (void *dummy, void *buff);
uLong oz_util_main (int argc, char *argv[])
{
int fc;
OZ_IO_fs_create fs_create;
OZ_IO_fs_open fs_open;
uLong sts;
if (argc > 0) pn = argv[0];
if (argc != 3) {
oz_sys_io_fs_printf (oz_util_h_error, "usage: %s