Dec 102017
 
Source for arc utility w/squash algorithm (archive & compress).
File ARC521_C.ZIP from The Programmer’s Corner in
Category C Source Code
Source for arc utility w/squash algorithm (archive & compress).
File Name File Size Zip Size Zip Type
ARC.1 7232 3086 deflated
ARC.C 11146 4201 deflated
ARC.DOC 10389 3462 deflated
ARC.H 3318 1391 deflated
ARC521.DOC 54142 17405 deflated
ARCADD.C 9286 3064 deflated
ARCCODE.C 1204 685 deflated
ARCCVT.C 3396 1468 deflated
ARCDATA.C 2070 856 deflated
ARCDEL.C 2055 969 deflated
ARCDOS.C 5008 2012 deflated
ARCEXT.C 4898 1887 deflated
ARCINFO 5577 2479 deflated
ARCIO.C 7418 2761 deflated
ARCLST.C 4418 1707 deflated
ARCLZW.C 22109 7459 deflated
ARCMATCH.C 3026 1266 deflated
ARCMISC.C 8418 2759 deflated
ARCPACK.C 7376 2666 deflated
ARCRUN.C 3838 1598 deflated
ARCS.H 1645 745 deflated
ARCSQ.C 14613 5296 deflated
ARCSQS.C 11514 4075 deflated
ARCSVC.C 4680 1855 deflated
ARCTST.C 1284 684 deflated
ARCUNP.C 5347 2132 deflated
ARCUSQ.C 2484 1169 deflated
CHANGES.521 1892 863 deflated
DTIME.C 9032 2731 deflated
DTIMEP.LEX 7327 2386 deflated
GETWD.C 787 352 deflated
LEXEDIT.SED 356 229 deflated
LEXSTRIN.C 3713 1246 deflated
LIBTWS.3 2241 953 deflated
LIBTWS.DOC 3592 1141 deflated
MAKE.TWS 1323 676 deflated
MAKEFILE 3163 984 deflated
MANIFEST 2413 1018 deflated
MARC.C 9053 3190 deflated
PATCHES 32469 7963 deflated
READ.ME 2314 1244 deflated
README 539 353 deflated
RENAME.C 280 186 deflated
SCANDIR.3 2353 1157 deflated
SCANDIR.C 1875 834 deflated
SCANDIR.DOC 5567 1470 deflated
TWS.H 2985 1228 deflated
UTIMES.C 397 206 deflated

Download File ARC521_C.ZIP Here

Contents of the READ.ME file


Hello again,
herein you should be pleased to find the complete sources for the
latest and greatest version of ARC, based on the sources for version 5.21
of the MSDOS ARC program. The patches to the previous release, 5.12, with
squashing algorithm, have also been applied here. The code is known to
work on a Sun 3 running SunOS 3.4, Apollo DN3000 running SR9.7 DOMAIN/IX,
Vax 750 running 4.3BSD, and IBM 3090 running MTS. It is also now working
on Atari STs, as well as Apollo DN3000 running SR10 DOMAIN/OS (Beta).

Also included is a detailed description of the format of a .ARC
file directory entry, in the file named Arcinfo. Could be useful if you're
trying to port ARC to any more esoteric systems...

Jon Zeeff has sent along some code he used to get this working on
Sys V style machines. Looks like scandir is all that's really missing. I
haven't tried any of it out for myself yet, but the code is in the file
"Sysvarcstuf" should you need it.

One final necessary inclusion: sources for libtws.a, which was
posted a long time ago to mod.sources as part of a package he called
"phoon" - a program that calculated and displayed the PHase of the mOON.
The only thing I use the time routines for here is to convert an expanded
date/time back into a Unix style time value, for keeping file modification
times straight.

Thanks to Leo Wilson ([email protected]) for sending his copy of
a man page for ARC. I've updated it for this version, and included it here
as well.

The default value of the (I)mage mode flag has changed. ARC will
now treat files as binary files, unless the 'i' flag is given. Handling of
Carriage Returns has been improved a bit. ARC is now a little smarter about
temporary files as well.

To compile all this stuff... Edit Make.tws (shouldn't need to change anything
here, really.) Edit arc.h. After that, just type make and wait a while...
(Oh yeah - there's a few makefile macros that need redefining for Atari ST...)
Ok... Well, I've had this for a while, and it works for me, but if somehow
I've goofed, let me know.

/
/_ , ,_. Howard Chu
/ /(_/(__ University of Michigan
/ Computing Center College of LS&A
' Unix Project Information Systems


Contents of the README file


Hello again,
herein you should be pleased to find the complete sources for the
latest and greatest version of ARC, based on the sources for version 5.21
of the MSDOS ARC program. The patches to the previous release, 5.12, with
squashing algorithm, have also been applied here. The code is known to
work on a Sun 3 running SunOS 3.4, Apollo DN3000 running SR9.7 DOMAIN/IX,
Vax 750 running 4.3BSD, and IBM 3090 running MTS. It is also now working
on Atari STs, as well as Apollo DN3000 running SR10 DOMAIN/OS (Beta).

Also included is a detailed description of the format of a .ARC
file directory entry, in the file named Arcinfo. Could be useful if you're
trying to port ARC to any more esoteric systems...

Jon Zeeff has sent along some code he used to get this working on
Sys V style machines. Looks like scandir is all that's really missing. I
haven't tried any of it out for myself yet, but the code is in the file
"Sysvarcstuf" should you need it.

One final necessary inclusion: sources for libtws.a, which was
posted a long time ago to mod.sources as part of a package he called
"phoon" - a program that calculated and displayed the PHase of the mOON.
The only thing I use the time routines for here is to convert an expanded
date/time back into a Unix style time value, for keeping file modification
times straight.

Thanks to Leo Wilson ([email protected]) for sending his copy of
a man page for ARC. I've updated it for this version, and included it here
as well.

The default value of the (I)mage mode flag has changed. ARC will
now treat files as binary files, unless the 'i' flag is given. Handling of
Carriage Returns has been improved a bit. ARC is now a little smarter about
temporary files as well.

To compile all this stuff... Edit Make.tws (shouldn't need to change anything
here, really.) Edit arc.h. After that, just type make and wait a while...
(Oh yeah - there's a few makefile macros that need redefining for Atari ST...)
Ok... Well, I've had this for a while, and it works for me, but if somehow
I've goofed, let me know.

/
/_ , ,_. Howard Chu
/ /(_/(__ University of Michigan
/ Computing Center College of LS&A
' Unix Project Information Systems
The enclosed files should be sufficient for bringing up ARC on a Sys V R3
system. As Jon mentions, Doug Gwyn's directory routines are needed for
Sys V R2. The enclosed copy of scandir is new, as far as I can tell, and
I've removed the (unneeded) ftw.? files. Also added a rename() routine,
courtesy of Janet Walz. (And an addition from Rich Salz.)

[see comp.sources.unix, volume 9, for gwyn-dir-lib...]

Thanks again to Jon Zeeff, Janet Walz, and Rich Salz for their help.
-- Howard Chu
[email protected]
{uunet,rutgers}!umix!hyc


 December 10, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)