dss-compress.h revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2002-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
/*
* compress query
*/
static const char compress_usage[] =
"[-1ls5P?\n@(#)$Id: dss compress query (AT&T Research) 2003-05-05 $\n]"
"[+PLUGIN?\findex\f]"
"[+DESCRIPTION?The \bdss\b \bcompress\b query compresses the parent output"
" stream according to \amethod\a. If \amethod\a is omitted then"
" the method preferred compression, if specified, is used, otherwise"
" \bgzip\b is assumed. The methods are:]{"
" [+bzip?\bbzip\b(1) (a.k.a. bzip2) compression using the"
" \bsfdcbzip\b(3) discipline for \b-lbz\b.]"
" [+gzip?\bgzip\b(1) compression using the \bsfdcgzip\b(3)"
" discipline for \b-lz\b.]"
" [+lzw?\bcompress\b(1) LZW compression using the \bsfdclzw\b(3)"
" discipline.]"
" [+pzip?\bpzip\b(1) compression using the \bsfdcpzip\b(3)"
" discipline for \b-lpz\b. \aoperand\a must specify"
" the \bpzip\b(1) partition file.]"
"}"
"\n"
"\n[ method [ operand ] ]\n"
"\n"
;
static int
{
char* meth;
for (;;)
{
{
case '?':
continue;
case ':':
continue;
}
break;
}
return -1;
{
return -1;
}
{
}
else
{
if (*++argv)
{
return -1;
}
return -1;
}
return 0;
}
#define QUERY_compress \
{ \
"compress", \
"compress parent output stream", \
CXH, \
compress_beg, \
0, \
0, \
0 \
}