funzip.c revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1998-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
#include <ast.h>
#include <error.h>
#include <sfdcgzip.h>
static const char usage[] =
"[-?\n@(#)$Id: funzip (AT&T Research) 1998-08-11 $\n]"
"[+NAME?funzip - fast gunzip]"
"[+DESCRIPTION?\bfunzip\b decompresses \bgzip\b(1) compressed files."
" By default \bgzip\b crc32 cyclic redundancy checking is disabled."
" This may speed up decompression by 25% or more over \bgunzip\b(1)."
" Most data corruption errors are still caught even with crc disabled.]"
"[x:crc?Enable \agzip\a crc32 cyclic redundancy checking for decompress."
" On some systems this can double the execution wall time."
" Most data corruption errors are still caught even with \bnocrc\b.]"
"\n"
"\n[ file ]\n"
"\n"
"[+SEE ALSO?\bgzip\b(1), \bgunzip\b(1), \blibz\b(3)]"
;
int
{
char* file;
int r;
int flags = SFGZ_NOCRC;
for (;;)
{
{
case 'x':
flags &= ~SFGZ_NOCRC;
continue;
case '?':
continue;
case ':':
continue;
}
break;
}
{
}
else if (!r)
return 0;
}