/***********************************************************************1* *2* This software is part of the ast package *3* Copyright (c) 1987-2012 AT&T Intellectual Property *4* and is licensed under the *5* Eclipse Public License, Version 1.0 *6* by AT&T Intellectual Property *7* *8* A copy of the License is available at *9* http://www.eclipse.org/org/documents/epl-v10.html *10* (with md5 checksum b35adb5213ca9657e911e9befb180842) *11* *12* Information and Software Systems Research *13* AT&T Research *14* Florham Park NJ *15* *16* Glenn Fowler <[email protected]> *17* *18***********************************************************************/19#pragma prototyped2021/*22* pax vczip format23*/2425#include "format.h"2627static int28vczip_getprologue(Pax_t* pax, Format_t* fp, Archive_t* ap, File_t* f, unsigned char* buf, size_t size)29{30if (size < 4 || buf[0] != 0326 || buf[1] != 0303 || buf[2] != 0304 || buf[3] && buf[3] != 0330)31return 0;32ap->uncompressed = ap->io->size * 25;33return 1;34}3536static Compress_format_t pax_vczip_data =37{380,39{ "vcunzip" },40{ 0 },41};4243Format_t pax_vczip_format =44{45"vczip",46"vc|vz",47"vcodex compression; the details value is the compression \b--method\b=\amethod\a",480,49COMPRESS|IN|OUT,500,510,520,53PAXNEXT(vczip),54&pax_vczip_data,550,56vczip_getprologue,570,580,590,600,610,620,630,640,650,660,67068};6970PAXLIB(vczip)717273