bsd version of arc

Mark W. Eichin eichin at athena.mit.edu
Wed Apr 6 20:02:00 AEST 1988


In article <4395 at b-tech.UUCP> zeeff at b-tech.UUCP (Jon Zeeff) writes:
>Subject: bsd version of arc
>Newsgroups: comp.sources.d
>
>After running lint on this thing, I find it amazing that it works for 
>anyone.  Does anyone have diffs for a lint free version or a version 
>with the bugs removed?  (yes, some nasty ones did turn up) 
>
>--Jon
>
>Moral of the story: "lint *.c" isn't hard to do.  Always use it on 
>any code you work on.  
>-- 
>Jon Zeeff           		Branch Technology,
>uunet!umix!b-tech!zeeff  	zeeff%b-tech.uucp at umix.cc.umich.edu


I built it here (vax 4.3bsd) and tried un-arc'ing something I had been
sent, and had it barf with "Stack Overflow" and other errors. It would
also produce total garbage for some of the files.

On following up another announcement, and finally being able to get
through to IUVAX.CS.INDIANA.EDU, I ftp'd their version. It is
definitely newer, although most of the work is adding a `squash'
module. The diffs that DIDN'T deal with squash mode follow:

diff -r ARC/arclzw.c IUarc/arclzw.c
109c109
< #if MSODS
---
> #if MSDOS
565c565,566
<     local = (pred + foll) | 0x0800;    /* create the hash key */
---
>     local = ((pred + foll) | 0x0800) & 0xffff;    /* create the hash key */
>     /*local = (pred + foll) | 0x0800;    /* create the hash key */
574c575,576
<     return ((pred+foll)*15073)&0xFFF;  /* faster hash */
---
>     return (((pred+foll)&0xffff)*15073)&0xFFF;  /* faster hash */
>     /*return ((pred+foll)*15073)&0xFFF;  /* faster hash */
diff -r ARC/arcm.h IUarc/arcm.h
25c25
< #define ARCVER 8   /*                   archive header version code   */
---
> #define ARCVER 9   /*                   archive header version code   */

This version still hangs in certain parts of the archive I was
attacking, but now only gets stuck on one file. Someone who wants to
seriously hunt this down can ask me, but effort would be better spent
in finding a more recent version of ARC to post!

I don't know who at indiana it was, but the scrap of posting I still
have follows:

>   Someone ported the actual PC Arc program to Unix and posted it last year.
>We have a copy of the source here. You can ftp it from pub/arc/* at
>iuvax.cs.indiana.edu.

				Mark Eichin
			<eichin at athena.mit.edu>
		SIPB Member & Project Athena ``Watchmaker'' 



More information about the Comp.sources.bugs mailing list