Path: utzoo!utgpu!watmath!uunet!xanth!galaxia!lazlo!gizzmo!fthood!egray From: egray@fthood.UUCP Newsgroups: unix-pc.sources Subject: Arc v5.21 (1 of 6) Message-ID: <6800095@fthood> Date: 1 Jan 89 19:36:00 GMT Lines: 2155 Nf-ID: #N:fthood:6800095:000:58181 Nf-From: fthood.UUCP!egray Jan 1 13:36:00 1989 Howdy netlanders... I've gotten a few request lately to post my version of the Arc v5.21 source that contains the squashing algorithm. This is part 1 (of 6) to the Arc v5.21 distribution package. This distribution of Arc v5.21 was derived almost entirely from work by Howard Chu (uunet!umix!hyc). This code includes the five offical patches (patch #1, patch #1b, patch #2, patch #2b, and patch #3). With the use of the preprocessor definition LOCAL, you can include my local enhancements and changes. The following changes were made: 1) By default, Unix file names are changed to meet MSDOS file name restrictions when added to an archive. Also, file names are folded to lowercase when extracted. This feature can be disabled by the use of the -z option. 2) Duplicate file names no longer cause a fatal error, the second file name is mearly skipped. This version is somewhat specific to the AT&T Unix PC 7300/3b1 (all the wierd stuff is in scandir.c and tmclock.c). Emmet P. Gray US Army, HQ III Corps & Fort Hood ...!uunet!uiucuxc!fthood!egray Attn: AFZF-DE-ENV Directorate of Engineering & Housing Environmental Management Office Fort Hood, TX 76544-5057 ------------------------------------------------------------------------------ #! /bin/sh # This is a shell archive, meaning: # 1. Remove everything above the #! /bin/sh line. # 2. Save the resulting text in a file. # 3. Execute the file with /bin/sh (not csh) to create: # Arc521.doc # This archive created: Sun Jan 1 12:48:03 1989 export PATH; PATH=/bin:/usr/bin:$PATH echo shar: "extracting 'Arc521.doc'" '(54142 characters)' if test -f 'Arc521.doc' then echo shar: "will not over-write existing file 'Arc521.doc'" else sed 's/^X//' << \SHAR_EOF > 'Arc521.doc' X X X X X X X X X X X X X ARC X X File Archive Utility X Version 5.20 X X X X X X X X X X X X X X X X X X X X X X X X X X (C)COPYRIGHT 1985,86 X by X System Enhancement Associates, Inc. X ALL RIGHTS RESERVED X X X X X XThis document describes version 5.20 of the ARC file Xutility, which was created by System Enhancement XAssociates, Inc. in October of 1986. X X X TABLE OF CONTENTS X X X XSection Page X X XIntroduction .................................... 1 XUsing ARC ....................................... 3 XARC commands .................................... 5 X Adding files ................................ 5 X Extracting files ............................ 7 X Deleting files .............................. 8 X Listing archive entries ..................... 8 X Running files ............................... 10 X Printing files .............................. 11 X Testing an archive .......................... 11 X Converting an archive ....................... 12 XARC options ..................................... 13 X Suppressing compression ..................... 13 X Backup retention ............................ 14 X Message suppression ......................... 15 X Encryption/Decryption ....................... 17 XRAMdisk support ................................. 18 XMARC ............................................ 19 XARCE ............................................ 20 XVersion numbers ................................. 21 XCommon questions and answers .................... 22 XMaintenance contracts ........................... 24 XRevision history ................................ 25 X Changes in version 3 ........................ 25 X Changes in version 4 ........................ 25 X Changes in version 4.1 ...................... 26 X Changes in version 4.3 ...................... 26 X Changes in version 4.4 ...................... 27 X Changes in version 4.5 ...................... 27 X Changes in version 5.0 ...................... 28 X Changes in version 5.1 ...................... 29 X Changes in version 5.2 ...................... 30 XProgram history and credits ..................... 31 XBulletin boards ................................. 33 XSite licenses ................................... 34 X X X X X X X X X X X X X X INTRODUCTION X X X XARC is the copyrighted property of System Enhancement XAssociates, Inc. You are granted a limited license to Xuse ARC, and to copy it and distribute it, provided Xthat the following conditions are met: X X1) No fee may be charged for such copying and X distribution. X X2) ARC may ONLY be distributed in its original, X unmodified state. X X3) ARC may *not* be distributed, in whole or in part, as X part of any commercial product or service without X the express written permission of System X Enhancement Associates. X X XContributions for the use of this program will be Xappreciated, and should be sent to: X X System Enhancement Associates, Inc. X 21 New Street, Wayne NJ 07470 X XYou may not use this product in a commercial Xenvironment or a governmental organization without Xpaying a license fee of $35. Site licenses and Xcommercial distribution licenses are available. A Xprogram disk and printed documentation are available Xfor $50. See the order form enclosed with this manual Xfor more details. X X X XARC is user supported software. This means that you Xmay copy it freely and give the copies away to anyone Xyou wish, at no cost. They are in turn requested to Xsend in a contribution if they decide to use it. X XThe user supported software concept (often referred to Xas "shareware") is an attempt to provide software at low Xcost. The cost of offering a new product by Xconventional means is staggering, and hence dissuades Xmany independent authors and small companies from Xdeveloping and promoting their ideas. User supported Xsoftware is an attempt to develop a new marketing Xchannel, where products can be introduced at low cost. X X X X XARC Page 1 X If user supported software works, then everyone will Xbenefit. The user will benefit by receiving quality Xproducts at low cost, and by being able to "test Xdrive" software thoroughly before purchasing it. The Xauthor benefits by being able to enter the commercial Xsoftware arena without first needing large sources of Xventure capital. X XBut it can only work with your support. We're not Xjust talking about ARC here, but about all user Xsupported software. If you obtain a user supported Xprogram from a friend or colleague, and are still Xusing it after a couple of weeks, then it is obviously Xworth something to you, and a contribution should be Xsent. X X X XAnd now, back to ARC: X XARC is used to create and maintain file archives. An Xarchive is a group of files collected together into Xone file in such a way that the individual files may Xbe recovered intact. X XARC is different from other archive and library Xutilities in that it automatically compresses the Xfiles being archived, so that the resulting archive Xtakes up a minimum amount of space. X XWhen ARC is used to add a file to an archive it Xanalyzes the file to determine which of three storage Xmethods will result in the greatest savings. These Xthree methods are: X X1) No compression; the file is stored as is. X X2) Repeated-character compression; repeated sequences X of the same byte value are collapsed into a three- X byte code sequence. X X3) Dynamic Lempel-Zev compression; the file is stored X as a series of variable size bit codes which X represent character strings, and which are created X "on the fly". X XNote that since one of the three methods involves no Xcompression at all, the resulting archive entry will Xnever be larger than the original file. X X X X X XARC Page 2 X USING ARC X X X XARC is invoked with a command of the following format: X X ARC [