home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume20 / compress / part01 next >
SHell self-extracting ARchive  |  1991-06-26  |  55.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 44 61 76 65 | 20 4d 61 63 6b 20 3c 63 |om: Dave| Mack <c|
|00000030| 73 75 40 61 6c 65 6d 62 | 69 63 2e 41 43 53 2e 43 |su@alemb|ic.ACS.C|
|00000040| 4f 4d 3e 0a 53 75 62 6a | 65 63 74 3a 20 20 76 32 |OM>.Subj|ect: v2|
|00000050| 30 69 30 36 34 3a 20 20 | 63 6f 6d 70 72 65 73 73 |0i064: |compress|
|00000060| 20 2d 20 43 6f 6d 70 72 | 65 73 73 20 34 2e 31 2c | - Compr|ess 4.1,|
|00000070| 20 50 61 72 74 30 31 2f | 30 32 0a 4d 65 73 73 61 | Part01/|02.Messa|
|00000080| 67 65 2d 49 44 3a 20 3c | 63 73 6d 2d 76 32 30 69 |ge-ID: <|csm-v20i|
|00000090| 30 36 34 3d 63 6f 6d 70 | 72 65 73 73 2e 31 33 33 |064=comp|ress.133|
|000000a0| 38 30 37 40 73 70 61 72 | 6b 79 2e 69 6d 64 2e 73 |807@spar|ky.imd.s|
|000000b0| 74 65 72 6c 69 6e 67 2e | 63 6f 6d 3e 0a 58 2d 4d |terling.|com>.X-M|
|000000c0| 64 34 2d 53 69 67 6e 61 | 74 75 72 65 3a 20 38 33 |d4-Signa|ture: 83|
|000000d0| 62 36 34 39 66 36 64 62 | 38 38 37 37 35 61 62 30 |b649f6db|88775ab0|
|000000e0| 32 61 35 38 30 62 66 61 | 66 30 37 61 36 63 0a 44 |2a580bfa|f07a6c.D|
|000000f0| 61 74 65 3a 20 54 75 65 | 2c 20 32 35 20 4a 75 6e |ate: Tue|, 25 Jun|
|00000100| 20 31 39 39 31 20 31 38 | 3a 33 38 3a 35 31 20 47 | 1991 18|:38:51 G|
|00000110| 4d 54 0a 41 70 70 72 6f | 76 65 64 3a 20 6b 65 6e |MT.Appro|ved: ken|
|00000120| 74 40 73 70 61 72 6b 79 | 2e 69 6d 64 2e 73 74 65 |t@sparky|.imd.ste|
|00000130| 72 6c 69 6e 67 2e 63 6f | 6d 0a 0a 53 75 62 6d 69 |rling.co|m..Submi|
|00000140| 74 74 65 64 2d 62 79 3a | 20 44 61 76 65 20 4d 61 |tted-by:| Dave Ma|
|00000150| 63 6b 20 3c 63 73 75 40 | 61 6c 65 6d 62 69 63 2e |ck <csu@|alembic.|
|00000160| 41 43 53 2e 43 4f 4d 3e | 0a 50 6f 73 74 69 6e 67 |ACS.COM>|.Posting|
|00000170| 2d 6e 75 6d 62 65 72 3a | 20 56 6f 6c 75 6d 65 20 |-number:| Volume |
|00000180| 32 30 2c 20 49 73 73 75 | 65 20 36 34 0a 41 72 63 |20, Issu|e 64.Arc|
|00000190| 68 69 76 65 2d 6e 61 6d | 65 3a 20 63 6f 6d 70 72 |hive-nam|e: compr|
|000001a0| 65 73 73 2f 70 61 72 74 | 30 31 0a 45 6e 76 69 72 |ess/part|01.Envir|
|000001b0| 6f 6e 6d 65 6e 74 3a 20 | 55 4e 49 58 0a 0a 54 68 |onment: |UNIX..Th|
|000001c0| 69 73 20 69 73 20 43 6f | 6d 70 72 65 73 73 2c 20 |is is Co|mpress, |
|000001d0| 56 65 72 73 69 6f 6e 20 | 34 2e 31 2e 20 54 68 69 |Version |4.1. Thi|
|000001e0| 73 20 73 75 62 6d 69 73 | 73 69 6f 6e 20 63 6f 6e |s submis|sion con|
|000001f0| 73 69 73 74 73 20 6f 66 | 20 74 77 6f 20 70 61 72 |sists of| two par|
|00000200| 74 73 2e 0a 0a 4d 6f 64 | 69 66 69 63 61 74 69 6f |ts...Mod|ificatio|
|00000210| 6e 73 20 66 6f 72 20 76 | 65 72 73 69 6f 6e 20 34 |ns for v|ersion 4|
|00000220| 2e 31 3a 20 0a 20 20 6f | 20 41 64 64 65 64 20 2d |.1: . o| Added -|
|00000230| 72 20 63 6f 6d 6d 61 6e | 64 20 6c 69 6e 65 20 66 |r comman|d line f|
|00000240| 6c 61 67 20 74 6f 20 61 | 6c 6c 6f 77 20 72 65 63 |lag to a|llow rec|
|00000250| 75 72 73 69 76 65 20 63 | 6f 6d 70 72 65 73 73 69 |ursive c|ompressi|
|00000260| 6f 6e 2f 0a 20 20 20 20 | 64 65 63 6f 6d 70 72 65 |on/. |decompre|
|00000270| 73 73 69 6f 6e 20 6f 66 | 20 64 69 72 65 63 74 6f |ssion of| directo|
|00000280| 72 79 20 74 72 65 65 73 | 2e 20 41 73 20 61 20 73 |ry trees|. As a s|
|00000290| 69 64 65 2d 65 66 66 65 | 63 74 2c 20 63 6f 6d 70 |ide-effe|ct, comp|
|000002a0| 72 65 73 73 0a 20 20 20 | 20 6e 6f 20 6c 6f 6e 67 |ress. | no long|
|000002b0| 65 72 20 74 72 69 65 73 | 20 74 6f 20 63 6f 6d 70 |er tries| to comp|
|000002c0| 72 65 73 73 2f 64 65 63 | 6f 6d 70 72 65 73 73 20 |ress/dec|ompress |
|000002d0| 61 6e 79 74 68 69 6e 67 | 20 74 68 61 74 20 69 73 |anything| that is|
|000002e0| 6e 27 74 0a 20 20 20 20 | 61 20 72 65 67 75 6c 61 |n't. |a regula|
|000002f0| 72 20 66 69 6c 65 2e 20 | 49 6e 20 70 61 72 74 69 |r file. |In parti|
|00000300| 63 75 6c 61 72 2c 20 69 | 74 20 69 67 6e 6f 72 65 |cular, i|t ignore|
|00000310| 73 20 73 79 6d 62 6f 6c | 69 63 20 6c 69 6e 6b 73 |s symbol|ic links|
|00000320| 2e 0a 20 20 6f 20 7a 63 | 61 74 20 6e 6f 20 6c 6f |.. o zc|at no lo|
|00000330| 6e 67 65 72 20 63 61 72 | 65 73 20 77 68 65 74 68 |nger car|es wheth|
|00000340| 65 72 20 61 20 66 69 6c | 65 6e 61 6d 65 20 65 6e |er a fil|ename en|
|00000350| 64 73 20 69 6e 20 2e 5a | 20 6f 72 0a 20 20 20 20 |ds in .Z| or. |
|00000360| 6e 6f 74 20 2d 20 69 74 | 20 72 65 6c 69 65 73 20 |not - it| relies |
|00000370| 6f 6e 20 74 68 65 20 6d | 61 67 69 63 20 6e 75 6d |on the m|agic num|
|00000380| 62 65 72 20 69 6e 20 74 | 68 65 20 66 69 6c 65 2e |ber in t|he file.|
|00000390| 20 49 66 20 7a 63 61 74 | 0a 20 20 20 20 69 73 20 | If zcat|. is |
|000003a0| 67 69 76 65 6e 20 61 20 | 66 69 6c 65 6e 61 6d 65 |given a |filename|
|000003b0| 20 74 68 61 74 20 64 6f | 65 73 6e 27 74 20 65 6e | that do|esn't en|
|000003c0| 64 20 77 69 74 68 20 2e | 5a 20 61 6e 64 20 74 68 |d with .|Z and th|
|000003d0| 65 20 66 69 6c 65 0a 20 | 20 20 20 72 65 66 65 72 |e file. | refer|
|000003e0| 65 6e 63 65 64 20 64 6f | 65 73 6e 27 74 20 65 78 |enced do|esn't ex|
|000003f0| 69 73 74 2c 20 7a 63 61 | 74 20 77 69 6c 6c 20 61 |ist, zca|t will a|
|00000400| 70 70 65 6e 64 20 61 20 | 2e 5a 20 61 6e 64 20 74 |ppend a |.Z and t|
|00000410| 72 79 0a 20 20 20 20 74 | 6f 20 6f 70 65 6e 20 74 |ry. t|o open t|
|00000420| 68 61 74 20 69 6e 73 74 | 65 61 64 2e 0a 20 20 6f |hat inst|ead.. o|
|00000430| 20 63 6f 6d 70 72 65 73 | 73 20 2d 66 20 77 69 6c | compres|s -f wil|
|00000440| 6c 20 6e 6f 77 20 63 6f | 6d 70 72 65 73 73 20 6d |l now co|mpress m|
|00000450| 75 6c 74 69 70 6c 79 20 | 68 61 72 64 6c 69 6e 6b |ultiply |hardlink|
|00000460| 65 64 20 66 69 6c 65 73 | 2e 0a 20 20 20 20 55 6e |ed files|.. Un|
|00000470| 63 6f 6d 70 72 65 73 73 | 20 64 6f 65 73 20 6e 6f |compress| does no|
|00000480| 74 20 72 65 63 72 65 61 | 74 65 20 74 68 65 20 68 |t recrea|te the h|
|00000490| 61 72 64 20 6c 69 6e 6b | 2c 20 69 74 20 63 72 65 |ard link|, it cre|
|000004a0| 61 74 65 73 0a 20 20 20 | 20 61 20 6e 65 77 20 66 |ates. | a new f|
|000004b0| 69 6c 65 2e 0a 20 20 6f | 20 52 65 6d 6f 76 65 64 |ile.. o| Removed|
|000004c0| 20 63 6f 6d 70 72 65 73 | 73 64 69 72 2f 75 6e 63 | compres|sdir/unc|
|000004d0| 6f 6d 70 72 65 73 73 64 | 69 72 20 2d 20 6e 6f 20 |ompressd|ir - no |
|000004e0| 6c 6f 6e 67 65 72 20 6e | 65 65 64 65 64 2e 0a 20 |longer n|eeded.. |
|000004f0| 20 6f 20 52 65 6d 6f 76 | 65 64 20 61 74 6f 62 2f | o Remov|ed atob/|
|00000500| 62 74 6f 61 2f 74 61 72 | 6d 61 69 6c 2f 75 6e 74 |btoa/tar|mail/unt|
|00000510| 61 72 6d 61 69 6c 20 2d | 20 6d 79 20 76 65 72 73 |armail -| my vers|
|00000520| 69 6f 6e 73 20 61 72 65 | 0a 20 20 20 20 62 61 73 |ions are|. bas|
|00000530| 65 64 20 6f 6e 20 62 74 | 6f 61 20 35 2e 32 20 77 |ed on bt|oa 5.2 w|
|00000540| 68 69 63 68 20 69 73 20 | 6e 6f 74 20 63 6f 6d 70 |hich is |not comp|
|00000550| 61 74 69 62 6c 65 20 77 | 69 74 68 20 74 68 65 20 |atible w|ith the |
|00000560| 61 74 6f 62 0a 20 20 20 | 20 69 6e 63 6c 75 64 65 |atob. | include|
|00000570| 64 20 77 69 74 68 20 63 | 6f 6d 70 72 65 73 73 34 |d with c|ompress4|
|00000580| 2e 30 2e 0a 20 20 0a 41 | 63 6b 6e 6f 77 6c 65 64 |.0.. .A|cknowled|
|00000590| 67 6d 65 6e 74 73 3a 0a | 0a 50 61 74 20 4d 79 72 |gments:.|.Pat Myr|
|000005a0| 74 6f 20 28 72 77 69 6e | 67 21 70 61 74 40 63 73 |to (rwin|g!pat@cs|
|000005b0| 2e 77 61 73 68 69 6e 67 | 74 6f 6e 2e 65 64 75 29 |.washing|ton.edu)|
|000005c0| 20 64 65 73 65 72 76 65 | 73 20 74 68 65 20 63 72 | deserve|s the cr|
|000005d0| 65 64 69 74 0a 66 6f 72 | 20 75 6e 64 6f 69 6e 67 |edit.for| undoing|
|000005e0| 20 61 6c 6c 20 74 68 65 | 20 64 61 6d 61 67 65 20 | all the| damage |
|000005f0| 49 20 64 69 64 20 74 6f | 20 74 68 69 73 20 76 65 |I did to| this ve|
|00000600| 72 73 69 6f 6e 20 77 69 | 74 68 20 72 65 73 70 65 |rsion wi|th respe|
|00000610| 63 74 0a 74 6f 20 53 79 | 73 74 65 6d 20 56 20 61 |ct.to Sy|stem V a|
|00000620| 6e 64 20 66 6f 72 20 67 | 69 76 69 6e 67 20 6d 65 |nd for g|iving me|
|00000630| 20 74 68 65 20 6f 63 63 | 61 73 69 6f 6e 61 6c 20 | the occ|asional |
|00000640| 6b 69 63 6b 20 77 68 65 | 6e 20 6d 79 0a 63 68 61 |kick whe|n my.cha|
|00000650| 6e 67 65 73 20 63 6c 6f | 62 62 65 72 65 64 20 73 |nges clo|bbered s|
|00000660| 6f 6d 65 20 6e 65 63 65 | 73 73 61 72 79 20 66 75 |ome nece|ssary fu|
|00000670| 6e 63 74 69 6f 6e 61 6c | 69 74 79 2e 0a 0a 54 68 |nctional|ity...Th|
|00000680| 61 6e 6b 73 20 74 6f 20 | 4a 61 6d 65 73 20 41 2e |anks to |James A.|
|00000690| 20 57 6f 6f 64 73 20 66 | 6f 72 20 70 65 72 6d 69 | Woods f|or permi|
|000006a0| 74 74 69 6e 67 20 6d 65 | 20 74 6f 20 63 6f 72 72 |tting me| to corr|
|000006b0| 75 70 74 20 68 69 73 20 | 62 61 62 79 0a 61 6e 64 |upt his |baby.and|
|000006c0| 20 66 6f 72 20 70 61 73 | 73 69 6e 67 20 61 6c 6f | for pas|sing alo|
|000006d0| 6e 67 20 73 6f 6d 65 20 | 74 69 70 73 20 6f 6e 20 |ng some |tips on |
|000006e0| 77 61 79 73 20 74 6f 20 | 69 6d 70 72 6f 76 65 20 |ways to |improve |
|000006f0| 74 68 65 20 70 65 72 66 | 6f 72 6d 61 6e 63 65 0a |the perf|ormance.|
|00000700| 6f 76 65 72 20 34 2e 30 | 2e 0a 0a 54 68 61 6e 6b |over 4.0|...Thank|
|00000710| 73 20 74 6f 20 74 68 65 | 20 70 72 65 76 69 6f 75 |s to the| previou|
|00000720| 73 20 61 75 74 68 6f 72 | 73 20 77 68 6f 6d 20 49 |s author|s whom I|
|00000730| 20 64 69 64 6e 27 74 20 | 63 6f 6e 74 61 63 74 2c | didn't |contact,|
|00000740| 20 66 6f 72 20 6d 61 6b | 69 6e 67 0a 74 68 65 20 | for mak|ing.the |
|00000750| 70 72 6f 67 72 61 6d 20 | 61 76 61 69 6c 61 62 6c |program |availabl|
|00000760| 65 20 6f 72 69 67 69 6e | 61 6c 6c 79 2e 0a 0a 44 |e origin|ally...D|
|00000770| 61 76 65 20 4d 61 63 6b | 0a 2d 2d 2d 0a 23 21 20 |ave Mack|.---.#! |
|00000780| 2f 62 69 6e 2f 73 68 0a | 23 20 54 68 69 73 20 69 |/bin/sh.|# This i|
|00000790| 73 20 61 20 73 68 65 6c | 6c 20 61 72 63 68 69 76 |s a shel|l archiv|
|000007a0| 65 2e 20 20 52 65 6d 6f | 76 65 20 61 6e 79 74 68 |e. Remo|ve anyth|
|000007b0| 69 6e 67 20 62 65 66 6f | 72 65 20 74 68 69 73 20 |ing befo|re this |
|000007c0| 6c 69 6e 65 2c 20 74 68 | 65 6e 20 75 6e 70 61 63 |line, th|en unpac|
|000007d0| 6b 0a 23 20 69 74 20 62 | 79 20 73 61 76 69 6e 67 |k.# it b|y saving|
|000007e0| 20 69 74 20 69 6e 74 6f | 20 61 20 66 69 6c 65 20 | it into| a file |
|000007f0| 61 6e 64 20 74 79 70 69 | 6e 67 20 22 73 68 20 66 |and typi|ng "sh f|
|00000800| 69 6c 65 22 2e 20 20 54 | 6f 20 6f 76 65 72 77 72 |ile". T|o overwr|
|00000810| 69 74 65 20 65 78 69 73 | 74 69 6e 67 0a 23 20 66 |ite exis|ting.# f|
|00000820| 69 6c 65 73 2c 20 74 79 | 70 65 20 22 73 68 20 66 |iles, ty|pe "sh f|
|00000830| 69 6c 65 20 2d 63 22 2e | 20 20 59 6f 75 20 63 61 |ile -c".| You ca|
|00000840| 6e 20 61 6c 73 6f 20 66 | 65 65 64 20 74 68 69 73 |n also f|eed this|
|00000850| 20 61 73 20 73 74 61 6e | 64 61 72 64 20 69 6e 70 | as stan|dard inp|
|00000860| 75 74 20 76 69 61 0a 23 | 20 75 6e 73 68 61 72 2c |ut via.#| unshar,|
|00000870| 20 6f 72 20 62 79 20 74 | 79 70 69 6e 67 20 22 73 | or by t|yping "s|
|00000880| 68 20 3c 66 69 6c 65 22 | 2c 20 65 2e 67 2e 2e 20 |h <file"|, e.g.. |
|00000890| 20 49 66 20 74 68 69 73 | 20 61 72 63 68 69 76 65 | If this| archive|
|000008a0| 20 69 73 20 63 6f 6d 70 | 6c 65 74 65 2c 20 79 6f | is comp|lete, yo|
|000008b0| 75 0a 23 20 77 69 6c 6c | 20 73 65 65 20 74 68 65 |u.# will| see the|
|000008c0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6d 65 73 73 61 | followi|ng messa|
|000008d0| 67 65 20 61 74 20 74 68 | 65 20 65 6e 64 3a 0a 23 |ge at th|e end:.#|
|000008e0| 09 09 22 45 6e 64 20 6f | 66 20 61 72 63 68 69 76 |.."End o|f archiv|
|000008f0| 65 20 31 20 28 6f 66 20 | 32 29 2e 22 0a 23 20 43 |e 1 (of |2).".# C|
|00000900| 6f 6e 74 65 6e 74 73 3a | 20 20 52 45 41 44 4d 45 |ontents:| README|
|00000910| 20 63 6f 6d 70 72 65 73 | 73 2e 63 0a 23 20 57 72 | compres|s.c.# Wr|
|00000920| 61 70 70 65 64 20 62 79 | 20 63 73 75 40 61 6c 65 |apped by| csu@ale|
|00000930| 6d 62 69 63 20 6f 6e 20 | 54 68 75 20 4d 61 79 20 |mbic on |Thu May |
|00000940| 33 30 20 31 36 3a 32 34 | 3a 30 37 20 31 39 39 31 |30 16:24|:07 1991|
|00000950| 0a 50 41 54 48 3d 2f 62 | 69 6e 3a 2f 75 73 72 2f |.PATH=/b|in:/usr/|
|00000960| 62 69 6e 3a 2f 75 73 72 | 2f 75 63 62 20 3b 20 65 |bin:/usr|/ucb ; e|
|00000970| 78 70 6f 72 74 20 50 41 | 54 48 0a 69 66 20 74 65 |xport PA|TH.if te|
|00000980| 73 74 20 2d 66 20 27 52 | 45 41 44 4d 45 27 20 2d |st -f 'R|EADME' -|
|00000990| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|000009a0| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|000009b0| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|000009c0| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|000009d0| 66 69 6c 65 20 5c 22 27 | 52 45 41 44 4d 45 27 5c |file \"'|README'\|
|000009e0| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|000009f0| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00000a00| 52 45 41 44 4d 45 27 5c | 22 20 5c 28 37 38 35 34 |README'\|" \(7854|
|00000a10| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 73 65 | charact|ers\).se|
|00000a20| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 52 45 41 |d "s/^X/|/" >'REA|
|00000a30| 44 4d 45 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |DME' <<'|END_OF_F|
|00000a40| 49 4c 45 27 0a 58 43 6f | 6d 70 72 65 73 73 20 63 |ILE'.XCo|mpress c|
|00000a50| 6f 6d 70 72 65 73 73 65 | 73 20 66 69 6c 65 73 20 |ompresse|s files |
|00000a60| 75 73 69 6e 67 20 61 20 | 68 65 61 76 69 6c 79 20 |using a |heavily |
|00000a70| 6d 6f 64 69 66 69 65 64 | 20 76 65 72 73 69 6f 6e |modified| version|
|00000a80| 20 6f 66 20 74 68 65 0a | 58 4c 5a 57 20 61 6c 67 | of the.|XLZW alg|
|00000a90| 6f 72 69 74 68 6d 20 61 | 73 20 64 65 73 63 72 69 |orithm a|s descri|
|00000aa0| 62 65 64 20 69 6e 20 49 | 45 45 45 20 43 6f 6d 70 |bed in I|EEE Comp|
|00000ab0| 75 74 65 72 2c 20 4a 75 | 6e 65 20 31 39 38 34 2e |uter, Ju|ne 1984.|
|00000ac0| 0a 58 53 65 65 20 74 68 | 65 20 63 6f 6d 6d 65 6e |.XSee th|e commen|
|00000ad0| 74 73 20 69 6e 20 63 6f | 6d 70 72 65 73 73 2e 63 |ts in co|mpress.c|
|00000ae0| 20 61 6e 64 20 74 68 65 | 20 55 73 65 6e 65 74 20 | and the| Usenet |
|00000af0| 61 72 74 69 63 6c 65 20 | 61 74 0a 58 74 68 65 20 |article |at.Xthe |
|00000b00| 65 6e 64 20 6f 66 20 74 | 68 69 73 20 66 69 6c 65 |end of t|his file|
|00000b10| 20 66 6f 72 20 6d 6f 72 | 65 20 64 65 74 61 69 6c | for mor|e detail|
|00000b20| 73 2e 0a 58 0a 58 54 68 | 65 20 22 75 73 65 72 6d |s..X.XTh|e "userm|
|00000b30| 65 6d 22 20 73 63 72 69 | 70 74 20 61 74 74 65 6d |em" scri|pt attem|
|00000b40| 70 74 73 20 74 6f 20 64 | 65 74 65 72 6d 69 6e 65 |pts to d|etermine|
|00000b50| 20 74 68 65 20 6d 61 78 | 69 6d 75 6d 20 70 72 6f | the max|imum pro|
|00000b60| 63 65 73 73 20 73 69 7a | 65 2e 20 20 53 6f 6d 65 |cess siz|e. Some|
|00000b70| 0a 58 65 64 69 74 69 6e | 67 20 6f 66 20 74 68 65 |.Xeditin|g of the|
|00000b80| 20 73 63 72 69 70 74 20 | 6d 61 79 20 62 65 20 6e | script |may be n|
|00000b90| 65 63 65 73 73 61 72 79 | 20 28 73 65 65 20 74 68 |ecessary| (see th|
|00000ba0| 65 20 63 6f 6d 6d 65 6e | 74 73 29 2e 20 20 49 66 |e commen|ts). If|
|00000bb0| 20 79 6f 75 20 63 61 6e | 27 74 20 67 65 74 0a 58 | you can|'t get.X|
|00000bc0| 69 74 20 74 6f 20 77 6f | 72 6b 20 61 74 20 61 6c |it to wo|rk at al|
|00000bd0| 6c 2c 20 6a 75 73 74 20 | 63 72 65 61 74 65 20 66 |l, just |create f|
|00000be0| 69 6c 65 20 22 55 53 45 | 52 4d 45 4d 22 20 63 6f |ile "USE|RMEM" co|
|00000bf0| 6e 74 61 69 6e 69 6e 67 | 20 74 68 65 20 6d 61 78 |ntaining| the max|
|00000c00| 69 6d 75 6d 20 70 72 6f | 63 65 73 73 0a 58 73 69 |imum pro|cess.Xsi|
|00000c10| 7a 65 20 69 6e 20 64 65 | 63 69 6d 61 6c 2e 0a 58 |ze in de|cimal..X|
|00000c20| 0a 58 54 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |.XThe fo|llowing |
|00000c30| 70 72 65 70 72 6f 63 65 | 73 73 6f 72 20 73 79 6d |preproce|ssor sym|
|00000c40| 62 6f 6c 73 20 63 6f 6e | 74 72 6f 6c 20 74 68 65 |bols con|trol the|
|00000c50| 20 63 6f 6d 70 69 6c 61 | 74 69 6f 6e 20 6f 66 20 | compila|tion of |
|00000c60| 22 63 6f 6d 70 72 65 73 | 73 2e 63 22 3a 0a 58 0a |"compres|s.c":.X.|
|00000c70| 58 09 6f 20 55 53 45 52 | 4d 45 4d 09 09 4d 61 78 |X.o USER|MEM..Max|
|00000c80| 69 6d 75 6d 20 70 72 6f | 63 65 73 73 20 6d 65 6d |imum pro|cess mem|
|00000c90| 6f 72 79 20 6f 6e 20 74 | 68 65 20 73 79 73 74 65 |ory on t|he syste|
|00000ca0| 6d 0a 58 09 6f 20 53 41 | 43 52 45 44 4d 45 4d 09 |m.X.o SA|CREDMEM.|
|00000cb0| 09 41 6d 6f 75 6e 74 20 | 74 6f 20 72 65 73 65 72 |.Amount |to reser|
|00000cc0| 76 65 20 66 6f 72 20 6f | 74 68 65 72 20 70 72 6f |ve for o|ther pro|
|00000cd0| 63 65 73 65 73 0a 58 09 | 6f 20 53 49 47 4e 45 44 |ceses.X.|o SIGNED|
|00000ce0| 5f 43 4f 4d 50 41 52 45 | 5f 53 4c 4f 57 09 55 6e |_COMPARE|_SLOW.Un|
|00000cf0| 73 69 67 6e 65 64 20 63 | 6f 6d 70 61 72 65 20 69 |signed c|ompare i|
|00000d00| 6e 73 74 72 75 63 74 69 | 6f 6e 73 20 61 72 65 20 |nstructi|ons are |
|00000d10| 66 61 73 74 65 72 0a 58 | 09 6f 20 4e 4f 5f 55 43 |faster.X|.o NO_UC|
|00000d20| 48 41 52 09 09 44 6f 6e | 27 74 20 75 73 65 20 22 |HAR..Don|'t use "|
|00000d30| 75 6e 73 69 67 6e 65 64 | 20 63 68 61 72 22 20 74 |unsigned| char" t|
|00000d40| 79 70 65 73 0a 58 09 6f | 20 42 49 54 53 09 09 09 |ypes.X.o| BITS...|
|00000d50| 4f 76 65 72 72 75 6c 65 | 73 20 64 65 66 61 75 6c |Overrule|s defaul|
|00000d60| 74 20 73 65 74 20 62 79 | 20 55 53 45 52 4d 45 4d |t set by| USERMEM|
|00000d70| 2d 53 41 43 52 45 44 4d | 45 4d 0a 58 09 6f 20 76 |-SACREDM|EM.X.o v|
|00000d80| 61 78 09 09 09 47 65 6e | 65 72 61 74 65 20 69 6e |ax...Gen|erate in|
|00000d90| 6c 69 6e 65 20 61 73 73 | 65 6d 62 6c 65 72 0a 58 |line ass|embler.X|
|00000da0| 09 6f 20 69 6e 74 65 72 | 64 61 74 61 09 09 44 65 |.o inter|data..De|
|00000db0| 66 69 6e 65 73 20 53 49 | 47 4e 45 44 5f 43 4f 4d |fines SI|GNED_COM|
|00000dc0| 50 41 52 45 5f 53 4c 4f | 57 0a 58 09 6f 20 4d 5f |PARE_SLO|W.X.o M_|
|00000dd0| 58 45 4e 49 58 09 09 4d | 61 6b 65 73 20 61 72 72 |XENIX..M|akes arr|
|00000de0| 61 79 73 20 3c 20 36 35 | 35 33 36 20 62 79 74 65 |ays < 65|536 byte|
|00000df0| 73 20 65 61 63 68 0a 58 | 09 6f 20 70 64 70 31 31 |s each.X|.o pdp11|
|00000e00| 09 09 09 42 49 54 53 3d | 31 32 2c 20 4e 4f 5f 55 |...BITS=|12, NO_U|
|00000e10| 43 48 41 52 0a 58 09 6f | 20 7a 38 30 30 30 09 09 |CHAR.X.o| z8000..|
|00000e20| 09 42 49 54 53 3d 31 32 | 0a 58 09 6f 20 70 63 78 |.BITS=12|.X.o pcx|
|00000e30| 74 09 09 09 42 49 54 53 | 3d 31 32 0a 58 09 6f 20 |t...BITS|=12.X.o |
|00000e40| 53 48 4f 52 54 4e 41 4d | 45 53 09 09 44 69 73 61 |SHORTNAM|ES..Disa|
|00000e50| 6c 6c 6f 77 20 6c 6f 6e | 67 20 66 69 6c 65 6e 61 |llow lon|g filena|
|00000e60| 6d 65 73 20 28 20 3e 20 | 31 34 20 63 68 61 72 61 |mes ( > |14 chara|
|00000e70| 63 74 65 72 73 29 0a 58 | 09 6f 20 42 53 44 34 09 |cters).X|.o BSD4.|
|00000e80| 09 09 43 61 6c 6c 20 73 | 65 74 6c 69 6e 65 62 75 |..Call s|etlinebu|
|00000e90| 66 28 73 74 64 65 72 72 | 29 2c 20 6c 73 74 61 74 |f(stderr|), lstat|
|00000ea0| 20 76 73 20 73 74 61 74 | 2c 20 65 74 63 2e 0a 58 | vs stat|, etc..X|
|00000eb0| 09 6f 20 56 4f 49 44 53 | 49 47 09 09 73 69 67 6e |.o VOIDS|IG..sign|
|00000ec0| 61 6c 20 72 65 74 75 72 | 6e 73 20 61 20 76 6f 69 |al retur|ns a voi|
|00000ed0| 64 20 70 6f 69 6e 74 65 | 72 0a 58 09 6f 20 44 49 |d pointe|r.X.o DI|
|00000ee0| 52 45 4e 54 09 09 75 73 | 65 20 3c 64 69 72 65 6e |RENT..us|e <diren|
|00000ef0| 74 2e 68 3e 20 69 6e 73 | 74 65 61 64 20 6f 66 20 |t.h> ins|tead of |
|00000f00| 3c 73 79 73 2f 64 69 72 | 2e 68 3e 0a 58 0a 58 53 |<sys/dir|.h>.X.XS|
|00000f10| 65 65 20 74 68 65 20 63 | 6f 6d 6d 65 6e 74 73 20 |ee the c|omments |
|00000f20| 61 74 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |at the b|eginning|
|00000f30| 20 6f 66 20 74 68 65 20 | 4d 61 6b 65 66 69 6c 65 | of the |Makefile|
|00000f40| 2e 0a 58 0a 58 54 68 65 | 20 64 69 66 66 65 72 65 |..X.XThe| differe|
|00000f50| 6e 63 65 20 22 75 73 65 | 72 6d 65 6d 2d 73 61 63 |nce "use|rmem-sac|
|00000f60| 72 65 64 6d 65 6d 22 20 | 64 65 74 65 72 6d 69 6e |redmem" |determin|
|00000f70| 65 73 20 74 68 65 20 6d | 61 78 69 6d 75 6d 20 42 |es the m|aximum B|
|00000f80| 49 54 53 20 74 68 61 74 | 20 63 61 6e 20 62 65 0a |ITS that| can be.|
|00000f90| 58 73 70 65 63 69 66 69 | 65 64 20 77 69 74 68 20 |Xspecifi|ed with |
|00000fa0| 74 68 65 20 22 2d 62 22 | 20 66 6c 61 67 2e 0a 58 |the "-b"| flag..X|
|00000fb0| 0a 58 6d 65 6d 6f 72 79 | 3a 20 61 74 20 6c 65 61 |.Xmemory|: at lea|
|00000fc0| 73 74 09 09 42 49 54 53 | 0a 58 2d 2d 2d 2d 2d 2d |st..BITS|.X------|
|00000fd0| 20 20 2d 2d 20 2d 2d 2d | 2d 2d 20 20 20 20 20 20 | -- ---|-- |
|00000fe0| 20 20 20 20 20 20 20 20 | 20 20 2d 2d 2d 2d 0a 58 | | ----.X|
|00000ff0| 20 20 20 20 20 34 33 33 | 2c 34 38 34 09 09 09 20 | 433|,484... |
|00001000| 31 36 0a 58 20 20 20 20 | 20 32 32 39 2c 36 30 30 |16.X | 229,600|
|00001010| 09 09 09 20 31 35 0a 58 | 20 20 20 20 20 31 32 37 |... 15.X| 127|
|00001020| 2c 35 33 36 09 09 09 20 | 31 34 0a 58 20 20 20 20 |,536... |14.X |
|00001030| 20 20 37 33 2c 34 36 34 | 09 09 09 20 31 33 0a 58 | 73,464|... 13.X|
|00001040| 20 20 20 20 20 20 20 20 | 20 20 20 30 09 09 09 20 | | 0... |
|00001050| 31 32 0a 58 0a 58 54 68 | 65 20 64 65 66 61 75 6c |12.X.XTh|e defaul|
|00001060| 74 20 69 73 20 42 49 54 | 53 3d 31 36 2e 0a 58 0a |t is BIT|S=16..X.|
|00001070| 58 54 68 65 20 6d 61 78 | 69 6d 75 6d 20 62 69 74 |XThe max|imum bit|
|00001080| 73 20 63 61 6e 20 62 65 | 20 6f 76 65 72 72 75 6c |s can be| overrul|
|00001090| 6c 65 64 20 62 79 20 73 | 70 65 63 69 66 79 69 6e |led by s|pecifyin|
|000010a0| 67 20 22 2d 44 42 49 54 | 53 3d 62 69 74 73 22 20 |g "-DBIT|S=bits" |
|000010b0| 61 74 0a 58 63 6f 6d 70 | 69 6c 61 74 69 6f 6e 20 |at.Xcomp|ilation |
|000010c0| 74 69 6d 65 2e 0a 58 0a | 58 57 41 52 4e 49 4e 47 |time..X.|XWARNING|
|000010d0| 3a 20 66 69 6c 65 73 20 | 63 6f 6d 70 72 65 73 73 |: files |compress|
|000010e0| 65 64 20 6f 6e 20 61 20 | 6c 61 72 67 65 20 6d 61 |ed on a |large ma|
|000010f0| 63 68 69 6e 65 20 77 69 | 74 68 20 6d 6f 72 65 20 |chine wi|th more |
|00001100| 62 69 74 73 20 74 68 61 | 6e 20 61 6c 6c 6f 77 65 |bits tha|n allowe|
|00001110| 64 20 62 79 20 0a 58 61 | 20 76 65 72 73 69 6f 6e |d by .Xa| version|
|00001120| 20 6f 66 20 63 6f 6d 70 | 72 65 73 73 20 6f 6e 20 | of comp|ress on |
|00001130| 61 20 73 6d 61 6c 6c 65 | 72 20 6d 61 63 68 69 6e |a smalle|r machin|
|00001140| 65 20 63 61 6e 6e 6f 74 | 20 62 65 20 64 65 63 6f |e cannot| be deco|
|00001150| 6d 70 72 65 73 73 65 64 | 21 20 20 55 73 65 20 74 |mpressed|! Use t|
|00001160| 68 65 0a 58 22 2d 62 31 | 32 22 20 66 6c 61 67 20 |he.X"-b1|2" flag |
|00001170| 74 6f 20 67 65 6e 65 72 | 61 74 65 20 61 20 66 69 |to gener|ate a fi|
|00001180| 6c 65 20 6f 6e 20 61 20 | 6c 61 72 67 65 20 6d 61 |le on a |large ma|
|00001190| 63 68 69 6e 65 20 74 68 | 61 74 20 63 61 6e 20 62 |chine th|at can b|
|000011a0| 65 20 75 6e 63 6f 6d 70 | 72 65 73 73 65 64 20 0a |e uncomp|ressed .|
|000011b0| 58 6f 6e 20 61 20 31 36 | 2d 62 69 74 20 6d 61 63 |Xon a 16|-bit mac|
|000011c0| 68 69 6e 65 2e 0a 58 0a | 58 57 41 52 4e 49 4e 47 |hine..X.|XWARNING|
|000011d0| 3a 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |: compat|ibility |
|000011e0| 77 69 74 68 20 63 6f 6d | 70 72 65 73 73 20 33 2e |with com|press 3.|
|000011f0| 30 20 68 61 73 20 6e 6f | 74 20 62 65 65 6e 20 74 |0 has no|t been t|
|00001200| 65 73 74 65 64 20 69 6e | 0a 58 74 68 65 20 34 2e |ested in|.Xthe 4.|
|00001210| 31 20 72 65 6c 65 61 73 | 65 20 6f 66 20 63 6f 6d |1 releas|e of com|
|00001220| 70 72 65 73 73 2e 0a 58 | 0a 58 54 68 65 20 6f 75 |press..X|.XThe ou|
|00001230| 74 70 75 74 20 6f 66 20 | 63 6f 6d 70 72 65 73 73 |tput of |compress|
|00001240| 20 34 2e 30 20 69 73 20 | 66 75 6c 6c 79 20 63 6f | 4.0 is |fully co|
|00001250| 6d 70 61 74 69 62 6c 65 | 20 77 69 74 68 20 74 68 |mpatible| with th|
|00001260| 61 74 20 6f 66 20 63 6f | 6d 70 72 65 73 73 20 33 |at of co|mpress 3|
|00001270| 2e 30 2e 0a 58 49 6e 20 | 6f 74 68 65 72 20 77 6f |.0..XIn |other wo|
|00001280| 72 64 73 2c 20 74 68 65 | 20 6f 75 74 70 75 74 20 |rds, the| output |
|00001290| 6f 66 20 63 6f 6d 70 72 | 65 73 73 20 34 2e 30 20 |of compr|ess 4.0 |
|000012a0| 6d 61 79 20 62 65 20 66 | 65 64 20 69 6e 74 6f 20 |may be f|ed into |
|000012b0| 75 6e 63 6f 6d 70 72 65 | 73 73 20 33 2e 30 20 6f |uncompre|ss 3.0 o|
|000012c0| 72 0a 58 74 68 65 20 6f | 75 74 70 75 74 20 6f 66 |r.Xthe o|utput of|
|000012d0| 20 63 6f 6d 70 72 65 73 | 73 20 33 2e 30 20 6d 61 | compres|s 3.0 ma|
|000012e0| 79 20 62 65 20 66 65 64 | 20 69 6e 74 6f 20 75 6e |y be fed| into un|
|000012f0| 63 6f 6d 70 72 65 73 73 | 20 34 2e 30 2e 0a 58 0a |compress| 4.0..X.|
|00001300| 58 54 68 65 20 6f 75 74 | 70 75 74 20 6f 66 20 63 |XThe out|put of c|
|00001310| 6f 6d 70 72 65 73 73 20 | 34 2e 30 20 69 73 20 6e |ompress |4.0 is n|
|00001320| 6f 74 20 63 6f 6d 70 61 | 74 69 62 6c 65 20 77 69 |ot compa|tible wi|
|00001330| 74 68 20 74 68 61 74 20 | 6f 66 0a 58 63 6f 6d 70 |th that |of.Xcomp|
|00001340| 72 65 73 73 20 32 2e 30 | 2e 20 20 48 6f 77 65 76 |ress 2.0|. Howev|
|00001350| 65 72 2c 20 63 6f 6d 70 | 72 65 73 73 20 34 2e 30 |er, comp|ress 4.0|
|00001360| 20 73 74 69 6c 6c 20 61 | 63 63 65 70 74 73 20 74 | still a|ccepts t|
|00001370| 68 65 20 6f 75 74 70 75 | 74 20 6f 66 0a 58 63 6f |he outpu|t of.Xco|
|00001380| 6d 70 72 65 73 73 20 32 | 2e 30 2e 20 20 54 6f 20 |mpress 2|.0. To |
|00001390| 67 65 6e 65 72 61 74 65 | 20 6f 75 74 70 75 74 20 |generate| output |
|000013a0| 74 68 61 74 20 69 73 20 | 63 6f 6d 70 61 74 69 62 |that is |compatib|
|000013b0| 6c 65 20 77 69 74 68 20 | 63 6f 6d 70 72 65 73 73 |le with |compress|
|000013c0| 0a 58 32 2e 30 2c 20 75 | 73 65 20 74 68 65 20 75 |.X2.0, u|se the u|
|000013d0| 6e 64 6f 63 75 6d 65 6e | 74 65 64 20 22 2d 43 22 |ndocumen|ted "-C"|
|000013e0| 20 66 6c 61 67 2e 0a 58 | 0a 58 43 68 65 63 6b 20 | flag..X|.XCheck |
|000013f0| 74 68 65 20 4d 61 6b 65 | 66 69 6c 65 2c 20 74 68 |the Make|file, th|
|00001400| 65 6e 20 22 6d 61 6b 65 | 22 2e 0a 58 0a 58 53 65 |en "make|"..X.XSe|
|00001410| 6e 64 20 63 6f 6d 6d 65 | 6e 74 73 2c 20 63 6f 6d |nd comme|nts, com|
|00001420| 70 6c 61 69 6e 74 73 20 | 61 6e 64 20 65 73 70 65 |plaints |and espe|
|00001430| 63 69 61 6c 6c 79 20 70 | 61 74 63 68 65 73 20 72 |cially p|atches r|
|00001440| 65 6c 61 74 69 6e 67 20 | 74 6f 0a 58 63 6f 6d 70 |elating |to.Xcomp|
|00001450| 72 65 73 73 34 2e 31 20 | 74 6f 20 63 73 75 40 61 |ress4.1 |to csu@a|
|00001460| 6c 65 6d 62 69 63 2e 61 | 63 73 2e 63 6f 6d 2e 0a |lembic.a|cs.com..|
|00001470| 58 0a 58 52 61 6e 64 6f | 6d 20 63 6f 6d 6d 65 6e |X.XRando|m commen|
|00001480| 74 73 3a 20 0a 58 0a 58 | 63 6f 6d 70 72 65 73 73 |ts: .X.X|compress|
|00001490| 27 20 68 61 6e 64 6c 69 | 6e 67 20 6f 66 20 68 61 |' handli|ng of ha|
|000014a0| 72 64 20 6c 69 6e 6b 73 | 20 68 61 73 20 62 65 65 |rd links| has bee|
|000014b0| 6e 20 63 72 69 74 69 63 | 69 7a 65 64 20 28 69 74 |n critic|ized (it|
|000014c0| 20 72 65 66 75 73 65 73 | 20 74 6f 0a 58 63 6f 6d | refuses| to.Xcom|
|000014d0| 70 72 65 73 73 20 61 20 | 6d 75 6c 74 69 70 6c 79 |press a |multiply|
|000014e0| 20 6c 69 6e 6b 65 64 20 | 66 69 6c 65 2e 29 20 49 | linked |file.) I|
|000014f0| 6e 20 67 65 6e 65 72 61 | 6c 2c 20 74 68 69 73 20 |n genera|l, this |
|00001500| 69 73 20 74 68 65 20 63 | 6f 72 72 65 63 74 0a 58 |is the c|orrect.X|
|00001510| 74 68 69 6e 67 20 74 6f | 20 64 6f 2e 20 48 61 72 |thing to| do. Har|
|00001520| 64 20 6c 69 6e 6b 73 20 | 63 61 6e 6e 6f 74 20 63 |d links |cannot c|
|00001530| 72 6f 73 73 20 66 69 6c | 65 20 73 79 73 74 65 6d |ross fil|e system|
|00001540| 20 62 6f 75 6e 64 61 72 | 69 65 73 2c 20 61 6e 64 | boundar|ies, and|
|00001550| 20 69 66 0a 58 74 68 65 | 20 6f 62 6a 65 63 74 69 | if.Xthe| objecti|
|00001560| 76 65 20 6f 66 20 63 6f | 6d 70 72 65 73 73 69 6e |ve of co|mpressin|
|00001570| 67 20 66 69 6c 65 73 20 | 69 73 20 74 6f 20 66 72 |g files |is to fr|
|00001580| 65 65 20 64 69 73 6b 20 | 73 70 61 63 65 20 69 6e |ee disk |space in|
|00001590| 20 61 20 66 69 6c 65 0a | 58 73 79 73 74 65 6d 2c | a file.|Xsystem,|
|000015a0| 20 63 6f 6d 70 72 65 73 | 73 69 6e 67 20 6f 6e 65 | compres|sing one|
|000015b0| 20 6c 69 6e 6b 20 74 6f | 20 61 20 66 69 6c 65 20 | link to| a file |
|000015c0| 77 6f 6e 27 74 20 68 65 | 6c 70 2e 20 43 6f 6d 70 |won't he|lp. Comp|
|000015d0| 72 65 73 73 20 68 61 73 | 20 6e 6f 0a 58 77 61 79 |ress has| no.Xway|
|000015e0| 20 6f 66 20 6b 6e 6f 77 | 69 6e 67 20 77 68 65 72 | of know|ing wher|
|000015f0| 65 20 74 68 65 20 6f 74 | 68 65 72 20 6c 69 6e 6b |e the ot|her link|
|00001600| 73 20 61 72 65 2e 20 49 | 66 20 79 6f 75 20 52 45 |s are. I|f you RE|
|00001610| 41 4c 4c 59 20 77 61 6e | 74 20 74 6f 0a 58 63 6f |ALLY wan|t to.Xco|
|00001620| 6d 70 72 65 73 73 20 61 | 20 68 61 72 64 20 6c 69 |mpress a| hard li|
|00001630| 6e 6b 2c 20 75 73 65 20 | 74 68 65 20 2d 66 20 66 |nk, use |the -f f|
|00001640| 6c 61 67 2e 20 42 65 20 | 61 77 61 72 65 20 74 68 |lag. Be |aware th|
|00001650| 61 74 20 77 68 65 6e 20 | 69 74 20 69 73 0a 58 75 |at when |it is.Xu|
|00001660| 6e 63 6f 6d 70 72 65 73 | 73 65 64 2c 20 74 68 65 |ncompres|sed, the|
|00001670| 20 68 61 72 64 6c 69 6e | 6b 20 77 69 6c 6c 20 6e | hardlin|k will n|
|00001680| 6f 74 20 62 65 20 72 65 | 63 72 65 61 74 65 64 2e |ot be re|created.|
|00001690| 0a 58 0a 58 63 6f 6d 70 | 72 65 73 73 34 2e 30 27 |.X.Xcomp|ress4.0'|
|000016a0| 73 20 68 61 6e 64 6c 69 | 6e 67 20 6f 66 20 73 79 |s handli|ng of sy|
|000016b0| 6d 62 6f 6c 69 63 20 6c | 69 6e 6b 73 20 77 61 73 |mbolic l|inks was|
|000016c0| 20 28 49 4d 48 4f 29 20 | 69 6e 63 6f 72 72 65 63 | (IMHO) |incorrec|
|000016d0| 74 2e 0a 58 55 6e 63 6f | 6d 70 72 65 73 73 69 6e |t..XUnco|mpressin|
|000016e0| 67 20 61 20 63 6f 6c 6c | 65 63 74 69 6f 6e 20 6f |g a coll|ection o|
|000016f0| 66 20 66 69 6c 65 73 20 | 73 68 6f 75 6c 64 20 79 |f files |should y|
|00001700| 69 65 6c 64 20 65 78 61 | 63 74 6c 79 20 77 68 61 |ield exa|ctly wha|
|00001710| 74 0a 58 79 6f 75 20 68 | 61 64 20 62 65 66 6f 72 |t.Xyou h|ad befor|
|00001720| 65 20 79 6f 75 20 63 6f | 6d 70 72 65 73 73 65 64 |e you co|mpressed|
|00001730| 20 74 68 65 6d 2e 20 54 | 68 69 73 20 64 69 64 6e | them. T|his didn|
|00001740| 27 74 20 68 61 70 70 65 | 6e 20 77 69 74 68 0a 58 |'t happe|n with.X|
|00001750| 73 79 6d 6c 69 6e 6b 73 | 2e 20 56 65 72 73 69 6f |symlinks|. Versio|
|00001760| 6e 20 34 2e 31 20 73 69 | 6d 70 6c 79 20 69 67 6e |n 4.1 si|mply ign|
|00001770| 6f 72 65 73 20 61 74 74 | 65 6d 70 74 73 20 74 6f |ores att|empts to|
|00001780| 20 63 6f 6d 70 72 65 73 | 73 0a 58 73 79 6d 62 6f | compres|s.Xsymbo|
|00001790| 6c 69 63 20 6c 69 6e 6b | 73 2c 20 61 6c 6f 6e 67 |lic link|s, along|
|000017a0| 20 77 69 74 68 20 61 6e | 79 74 68 69 6e 67 20 65 | with an|ything e|
|000017b0| 6c 73 65 20 74 68 61 74 | 20 69 73 6e 27 74 20 61 |lse that| isn't a|
|000017c0| 20 72 65 67 75 6c 61 72 | 0a 58 66 69 6c 65 2e 20 | regular|.Xfile. |
|000017d0| 49 66 20 79 6f 75 27 72 | 65 20 61 63 63 75 73 74 |If you'r|e accust|
|000017e0| 6f 6d 65 64 20 74 6f 20 | 75 73 69 6e 67 20 63 6f |omed to |using co|
|000017f0| 6d 70 72 65 73 73 20 66 | 6f 6c 6c 6f 77 65 64 20 |mpress f|ollowed |
|00001800| 62 79 20 74 61 72 0a 58 | 74 6f 20 67 65 74 20 65 |by tar.X|to get e|
|00001810| 76 65 72 79 74 68 69 6e | 67 20 74 68 61 74 20 61 |verythin|g that a|
|00001820| 20 64 69 72 65 63 74 6f | 72 79 20 72 65 66 65 72 | directo|ry refer|
|00001830| 65 6e 63 65 73 2c 20 62 | 6f 74 68 20 64 69 72 65 |ences, b|oth dire|
|00001840| 63 74 6c 79 20 61 6e 64 | 0a 58 69 6e 64 69 72 65 |ctly and|.Xindire|
|00001850| 63 74 6c 79 2c 20 74 68 | 69 73 20 6d 61 79 20 63 |ctly, th|is may c|
|00001860| 6f 6d 65 20 61 73 20 73 | 6f 6d 65 74 68 69 6e 67 |ome as s|omething|
|00001870| 20 6f 66 20 61 20 64 69 | 73 61 70 70 6f 69 6e 74 | of a di|sappoint|
|00001880| 6d 65 6e 74 2e 0a 58 0a | 58 54 68 65 20 66 6f 6c |ment..X.|XThe fol|
|00001890| 6c 6f 77 69 6e 67 20 61 | 72 74 69 63 6c 65 20 66 |lowing a|rticle f|
|000018a0| 72 6f 6d 20 4a 61 6d 65 | 73 20 41 2e 20 57 6f 6f |rom Jame|s A. Woo|
|000018b0| 64 73 2c 20 6f 6e 65 20 | 6f 66 20 74 68 65 20 65 |ds, one |of the e|
|000018c0| 61 72 6c 69 65 72 0a 58 | 61 75 74 68 6f 72 73 20 |arlier.X|authors |
|000018d0| 6f 66 20 63 6f 6d 70 72 | 65 73 73 2c 20 65 78 70 |of compr|ess, exp|
|000018e0| 6c 61 69 6e 73 20 69 74 | 73 20 72 65 6c 61 74 69 |lains it|s relati|
|000018f0| 6f 6e 73 68 69 70 20 74 | 6f 20 74 68 65 20 55 6e |onship t|o the Un|
|00001900| 69 73 79 73 0a 58 70 61 | 74 65 6e 74 20 6f 6e 20 |isys.Xpa|tent on |
|00001910| 74 68 65 20 4c 5a 57 20 | 63 6f 6d 70 72 65 73 73 |the LZW |compress|
|00001920| 69 6f 6e 20 6d 65 74 68 | 6f 64 3a 0a 58 0a 58 46 |ion meth|od:.X.XF|
|00001930| 72 6f 6d 20 75 75 6e 65 | 74 21 7a 65 70 68 79 72 |rom uune|t!zephyr|
|00001940| 2e 65 6e 73 2e 74 65 6b | 2e 63 6f 6d 21 75 77 2d |.ens.tek|.com!uw-|
|00001950| 62 65 61 76 65 72 21 6d | 69 74 2d 65 64 64 69 65 |beaver!m|it-eddie|
|00001960| 21 77 75 61 72 63 68 69 | 76 65 21 75 73 63 21 75 |!wuarchi|ve!usc!u|
|00001970| 63 73 64 21 75 63 62 76 | 61 78 21 61 67 61 74 65 |csd!ucbv|ax!agate|
|00001980| 21 72 69 61 63 73 21 6a | 61 77 20 57 65 64 20 41 |!riacs!j|aw Wed A|
|00001990| 75 67 20 20 31 20 31 35 | 3a 30 36 3a 35 39 20 45 |ug 1 15|:06:59 E|
|000019a0| 44 54 20 31 39 39 30 0a | 58 41 72 74 69 63 6c 65 |DT 1990.|XArticle|
|000019b0| 3a 20 31 32 38 32 20 6f | 66 20 67 6e 75 2e 6d 69 |: 1282 o|f gnu.mi|
|000019c0| 73 63 2e 64 69 73 63 75 | 73 73 0a 58 50 61 74 68 |sc.discu|ss.XPath|
|000019d0| 3a 20 61 6c 65 6d 62 69 | 63 21 75 75 6e 65 74 21 |: alembi|c!uunet!|
|000019e0| 7a 65 70 68 79 72 2e 65 | 6e 73 2e 74 65 6b 2e 63 |zephyr.e|ns.tek.c|
|000019f0| 6f 6d 21 75 77 2d 62 65 | 61 76 65 72 21 6d 69 74 |om!uw-be|aver!mit|
|00001a00| 2d 65 64 64 69 65 21 77 | 75 61 72 63 68 69 76 65 |-eddie!w|uarchive|
|00001a10| 21 75 73 63 21 75 63 73 | 64 21 75 63 62 76 61 78 |!usc!ucs|d!ucbvax|
|00001a20| 21 61 67 61 74 65 21 72 | 69 61 63 73 21 6a 61 77 |!agate!r|iacs!jaw|
|00001a30| 0a 58 46 72 6f 6d 3a 20 | 6a 61 77 40 72 69 61 63 |.XFrom: |jaw@riac|
|00001a40| 73 2e 65 64 75 20 28 4a | 61 6d 65 73 20 41 2e 20 |s.edu (J|ames A. |
|00001a50| 57 6f 6f 64 73 29 0a 58 | 4e 65 77 73 67 72 6f 75 |Woods).X|Newsgrou|
|00001a60| 70 73 3a 20 67 6e 75 2e | 6d 69 73 63 2e 64 69 73 |ps: gnu.|misc.dis|
|00001a70| 63 75 73 73 0a 58 53 75 | 62 6a 65 63 74 3a 20 53 |cuss.XSu|bject: S|
|00001a80| 70 65 72 72 79 20 70 61 | 74 65 6e 74 20 23 34 2c |perry pa|tent #4,|
|00001a90| 35 35 38 2c 33 30 32 20 | 64 6f 65 73 20 2a 6e 6f |558,302 |does *no|
|00001aa0| 74 2a 20 61 66 66 65 63 | 74 20 27 63 6f 6d 70 72 |t* affec|t 'compr|
|00001ab0| 65 73 73 27 0a 58 4b 65 | 79 77 6f 72 64 73 3a 20 |ess'.XKe|ywords: |
|00001ac0| 64 61 74 61 20 63 6f 6d | 70 72 65 73 73 69 6f 6e |data com|pression|
|00001ad0| 2c 20 61 6c 67 6f 72 69 | 74 68 6d 2c 20 70 61 74 |, algori|thm, pat|
|00001ae0| 65 6e 74 0a 58 4d 65 73 | 73 61 67 65 2d 49 44 3a |ent.XMes|sage-ID:|
|00001af0| 20 3c 31 39 39 30 4a 75 | 6c 33 31 2e 32 32 30 39 | <1990Ju|l31.2209|
|00001b00| 33 35 2e 31 34 32 34 40 | 72 69 61 63 73 2e 65 64 |35.1424@|riacs.ed|
|00001b10| 75 3e 0a 58 44 61 74 65 | 3a 20 33 31 20 4a 75 6c |u>.XDate|: 31 Jul|
|00001b20| 20 39 30 20 32 32 3a 30 | 39 3a 33 35 20 47 4d 54 | 90 22:0|9:35 GMT|
|00001b30| 0a 58 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |.XOrgani|zation: |
|00001b40| 52 49 41 43 53 2c 20 4e | 41 53 41 20 41 6d 65 73 |RIACS, N|ASA Ames|
|00001b50| 20 52 65 73 65 61 72 63 | 68 20 43 65 6e 74 65 72 | Researc|h Center|
|00001b60| 0a 58 4c 69 6e 65 73 3a | 20 36 39 0a 58 0a 58 23 |.XLines:| 69.X.X#|
|00001b70| 20 20 22 54 68 65 20 63 | 68 69 65 66 20 64 65 66 | "The c|hief def|
|00001b80| 65 63 74 20 6f 66 20 48 | 65 6e 72 79 20 4b 69 6e |ect of H|enry Kin|
|00001b90| 67 0a 58 20 20 20 20 57 | 61 73 20 63 68 65 77 69 |g.X W|as chewi|
|00001ba0| 6e 67 20 6c 69 74 74 6c | 65 20 62 69 74 73 20 6f |ng littl|e bits o|
|00001bb0| 66 20 73 74 72 69 6e 67 | 2e 22 0a 58 0a 58 20 20 |f string|.".X.X |
|00001bc0| 20 20 20 20 20 20 2d 2d | 20 48 69 6c 61 69 72 65 | --| Hilaire|
|00001bd0| 20 42 65 6c 6c 6f 63 2c | 20 43 61 75 74 69 6f 6e | Belloc,| Caution|
|00001be0| 61 72 79 20 54 61 6c 65 | 73 20 5b 31 39 30 37 5d |ary Tale|s [1907]|
|00001bf0| 0a 58 0a 58 20 20 20 20 | 20 41 73 20 61 20 63 6f |.X.X | As a co|
|00001c00| 2d 61 75 74 68 6f 72 20 | 6f 66 20 27 63 6f 6d 70 |-author |of 'comp|
|00001c10| 72 65 73 73 27 20 77 68 | 6f 20 68 61 73 20 68 61 |ress' wh|o has ha|
|00001c20| 64 20 63 6f 6e 74 61 63 | 74 20 77 69 74 68 20 61 |d contac|t with a|
|00001c30| 6e 20 61 74 74 6f 72 6e | 65 79 20 66 6f 72 0a 58 |n attorn|ey for.X|
|00001c40| 55 6e 69 73 79 73 20 28 | 6e 65 65 20 53 70 65 72 |Unisys (|nee Sper|
|00001c50| 72 79 29 2c 20 49 20 77 | 6f 75 6c 64 20 6c 69 6b |ry), I w|ould lik|
|00001c60| 65 20 74 6f 20 72 65 6c | 61 79 20 61 20 76 65 72 |e to rel|ay a ver|
|00001c70| 79 20 62 61 73 69 63 20 | 61 64 6d 69 73 73 69 6f |y basic |admissio|
|00001c80| 6e 20 66 72 6f 6d 20 55 | 6e 69 73 79 73 0a 58 74 |n from U|nisys.Xt|
|00001c90| 68 61 74 20 6e 6f 6e 63 | 6f 6d 6d 65 72 63 69 61 |hat nonc|ommercia|
|00001ca0| 6c 20 75 73 65 20 6f 66 | 20 27 63 6f 6d 70 72 65 |l use of| 'compre|
|00001cb0| 73 73 27 20 69 73 20 70 | 65 72 66 65 63 74 6c 79 |ss' is p|erfectly|
|00001cc0| 20 6c 65 67 61 6c 2e 20 | 20 27 43 6f 6d 70 72 65 | legal. | 'Compre|
|00001cd0| 73 73 27 20 69 73 20 61 | 6c 73 6f 0a 58 63 6f 6d |ss' is a|lso.Xcom|
|00001ce0| 6d 65 72 63 69 61 6c 6c | 79 20 64 69 73 74 72 69 |merciall|y distri|
|00001cf0| 62 75 74 65 64 20 62 79 | 20 41 54 26 54 20 61 73 |buted by| AT&T as|
|00001d00| 20 70 61 72 74 20 6f 66 | 20 55 6e 69 78 20 53 79 | part of| Unix Sy|
|00001d10| 73 74 65 6d 20 35 20 72 | 65 6c 65 61 73 65 20 34 |stem 5 r|elease 4|
|00001d20| 2c 0a 58 77 69 74 68 20 | 6e 6f 20 66 75 72 74 68 |,.Xwith |no furth|
|00001d30| 65 72 20 72 65 73 74 72 | 69 63 74 69 6f 6e 73 20 |er restr|ictions |
|00001d40| 70 6c 61 63 65 64 20 75 | 70 6f 6e 20 74 68 65 20 |placed u|pon the |
|00001d50| 75 73 65 20 6f 66 20 74 | 68 65 20 62 69 6e 61 72 |use of t|he binar|
|00001d60| 79 2c 20 61 73 20 66 61 | 72 0a 58 61 73 20 49 20 |y, as fa|r.Xas I |
|00001d70| 61 6d 20 61 77 61 72 65 | 2e 0a 58 0a 58 20 20 20 |am aware|..X.X |
|00001d80| 20 20 46 72 6f 6d 20 63 | 6f 6e 76 65 72 73 61 74 | From c|onversat|
|00001d90| 69 6f 6e 73 20 77 69 74 | 68 20 50 72 6f 66 65 73 |ions wit|h Profes|
|00001da0| 73 6f 72 20 41 62 72 61 | 68 61 6d 20 4c 65 6d 70 |sor Abra|ham Lemp|
|00001db0| 65 6c 20 61 6e 64 20 6f | 74 68 65 72 73 2c 20 69 |el and o|thers, i|
|00001dc0| 74 20 0a 58 61 70 70 65 | 61 72 73 20 74 68 61 74 |t .Xappe|ars that|
|00001dd0| 20 6e 65 69 74 68 65 72 | 20 41 54 26 54 2c 20 53 | neither| AT&T, S|
|00001de0| 75 6e 20 4d 69 63 72 6f | 73 79 73 74 65 6d 73 2c |un Micro|systems,|
|00001df0| 20 48 65 77 6c 65 74 74 | 20 50 61 63 6b 61 72 64 | Hewlett| Packard|
|00001e00| 2c 20 6e 6f 72 20 49 42 | 4d 0a 58 61 72 65 20 70 |, nor IB|M.Xare p|
|00001e10| 61 79 69 6e 67 20 61 6e | 79 20 73 6f 72 74 20 6f |aying an|y sort o|
|00001e20| 66 20 6c 69 63 65 6e 73 | 65 20 66 65 65 73 20 74 |f licens|e fees t|
|00001e30| 6f 20 55 6e 69 73 79 73 | 20 69 6e 20 63 6f 6e 6a |o Unisys| in conj|
|00001e40| 75 6e 63 74 69 6f 6e 20 | 77 69 74 68 20 70 61 74 |unction |with pat|
|00001e50| 65 6e 74 0a 58 23 34 2c | 35 35 38 2c 33 30 32 2e |ent.X#4,|558,302.|
|00001e60| 20 20 49 74 20 6d 61 79 | 20 62 65 20 74 72 75 65 | It may| be true|
|00001e70| 20 74 68 61 74 20 73 6f | 6d 65 20 6f 72 67 61 6e | that so|me organ|
|00001e80| 69 7a 61 74 69 6f 6e 73 | 20 61 72 65 20 70 61 79 |izations| are pay|
|00001e90| 69 6e 67 20 66 65 65 73 | 20 66 6f 72 0a 58 64 61 |ing fees| for.Xda|
|00001ea0| 74 61 20 63 6f 6d 70 72 | 65 73 73 69 6f 6e 20 74 |ta compr|ession t|
|00001eb0| 65 63 68 6e 6f 6c 6f 67 | 79 20 6c 69 63 65 6e 73 |echnolog|y licens|
|00001ec0| 65 64 20 66 72 6f 6d 20 | 6f 6e 65 20 6f 72 20 6d |ed from |one or m|
|00001ed0| 6f 72 65 20 6f 66 20 74 | 68 65 20 6d 61 6e 79 20 |ore of t|he many |
|00001ee0| 68 6f 6c 64 65 72 73 0a | 58 6f 66 20 63 6f 6d 70 |holders.|Xof comp|
|00001ef0| 72 65 73 73 69 6f 6e 20 | 70 61 74 65 6e 74 73 2c |ression |patents,|
|00001f00| 20 62 75 74 20 74 68 69 | 73 20 69 73 20 61 6c 6c | but thi|s is all|
|00001f10| 20 69 6e 64 65 70 65 6e | 64 65 6e 74 20 66 72 6f | indepen|dent fro|
|00001f20| 6d 20 27 63 6f 6d 70 72 | 65 73 73 27 2e 0a 58 0a |m 'compr|ess'..X.|
|00001f30| 58 20 20 20 20 20 49 6e | 20 70 61 72 74 69 63 75 |X In| particu|
|00001f40| 6c 61 72 2c 20 49 20 72 | 65 63 65 69 76 65 64 20 |lar, I r|eceived |
|00001f50| 61 20 6c 65 74 74 65 72 | 20 61 74 20 4e 41 53 41 |a letter| at NASA|
|00001f60| 20 64 61 74 65 64 20 4f | 63 74 6f 62 65 72 20 31 | dated O|ctober 1|
|00001f70| 2c 20 31 39 38 37 20 66 | 72 6f 6d 0a 58 4a 6f 68 |, 1987 f|rom.XJoh|
|00001f80| 6e 20 42 2e 20 53 6f 77 | 65 6c 6c 20 6f 66 20 74 |n B. Sow|ell of t|
|00001f90| 68 65 20 55 6e 69 73 79 | 73 20 6c 61 77 20 64 65 |he Unisy|s law de|
|00001fa0| 70 61 72 74 6d 65 6e 74 | 2c 20 69 6e 66 6f 72 6d |partment|, inform|
|00001fb0| 69 6e 67 20 6d 65 20 66 | 6f 72 20 74 68 65 20 66 |ing me f|or the f|
|00001fc0| 69 72 73 74 0a 58 74 69 | 6d 65 20 74 68 61 74 20 |irst.Xti|me that |
|00001fd0| 73 6f 6d 65 20 66 6f 72 | 6d 20 6f 66 20 4c 5a 57 |some for|m of LZW|
|00001fe0| 20 77 61 73 20 70 61 74 | 65 6e 74 65 64 2e 20 20 | was pat|ented. |
|00001ff0| 49 20 6e 61 74 75 72 61 | 6c 6c 79 20 65 78 70 72 |I natura|lly expr|
|00002000| 65 73 73 65 64 0a 58 73 | 6b 65 70 74 69 63 69 73 |essed.Xs|kepticis|
|00002010| 6d 20 74 68 61 74 20 61 | 6e 20 61 6c 67 6f 72 69 |m that a|n algori|
|00002020| 74 68 6d 20 63 6f 75 6c | 64 20 62 65 20 70 61 74 |thm coul|d be pat|
|00002030| 65 6e 74 65 64 20 28 61 | 20 6d 75 72 6b 79 20 6c |ented (a| murky l|
|00002040| 65 67 61 6c 20 61 72 65 | 61 0a 58 77 68 69 63 68 |egal are|a.Xwhich|
|00002050| 20 72 65 6d 61 69 6e 73 | 20 73 6f 29 2c 20 73 74 | remains| so), st|
|00002060| 61 74 65 64 20 74 68 61 | 74 20 27 63 6f 6d 70 72 |ated tha|t 'compr|
|00002070| 65 73 73 27 20 69 73 20 | 6e 6f 74 20 69 64 65 6e |ess' is |not iden|
|00002080| 74 69 63 61 6c 20 74 6f | 20 4c 5a 57 2c 0a 58 61 |tical to| LZW,.Xa|
|00002090| 6e 64 20 69 6e 20 66 61 | 63 74 20 77 61 73 20 64 |nd in fa|ct was d|
|000020a0| 65 73 69 67 6e 65 64 2c | 20 64 65 76 65 6c 6f 70 |esigned,| develop|
|000020b0| 65 64 2c 20 61 6e 64 20 | 64 69 73 74 72 69 62 75 |ed, and |distribu|
|000020c0| 74 65 64 20 62 65 66 6f | 72 65 20 74 68 65 20 69 |ted befo|re the i|
|000020d0| 6e 6b 0a 58 6f 6e 20 74 | 68 65 20 70 61 74 65 6e |nk.Xon t|he paten|
|000020e0| 74 20 77 61 73 20 64 72 | 79 2e 20 20 53 65 76 65 |t was dr|y. Seve|
|000020f0| 72 61 6c 20 74 65 6c 65 | 70 68 6f 6e 65 20 63 6f |ral tele|phone co|
|00002100| 6e 76 65 72 73 61 74 69 | 6f 6e 73 20 6c 61 74 65 |nversati|ons late|
|00002110| 72 2c 20 4d 72 2e 20 53 | 6f 77 65 6c 6c 0a 58 69 |r, Mr. S|owell.Xi|
|00002120| 6e 74 69 6d 61 74 65 64 | 20 74 68 61 74 20 74 68 |ntimated| that th|
|00002130| 65 79 20 77 6f 75 6c 64 | 20 2a 6e 6f 74 2a 20 73 |ey would| *not* s|
|00002140| 65 65 6b 20 61 6e 79 20 | 66 65 65 73 20 66 72 6f |eek any |fees fro|
|00002150| 6d 20 75 73 65 72 73 20 | 6f 66 20 27 63 6f 6d 70 |m users |of 'comp|
|00002160| 72 65 73 73 27 0a 58 62 | 75 74 20 69 6e 73 74 65 |ress'.Xb|ut inste|
|00002170| 61 64 20 77 65 72 65 20 | 73 69 67 6e 69 6e 67 20 |ad were |signing |
|00002180| 6c 69 63 65 6e 73 65 65 | 73 20 66 6f 72 20 68 61 |licensee|s for ha|
|00002190| 72 64 77 61 72 65 20 69 | 6d 70 6c 65 6d 65 6e 74 |rdware i|mplement|
|000021a0| 61 74 69 6f 6e 73 20 6f | 66 20 4c 5a 57 2e 0a 58 |ations o|f LZW..X|
|000021b0| 0a 58 20 20 20 20 20 53 | 6f 2c 20 72 65 67 61 72 |.X S|o, regar|
|000021c0| 64 6c 65 73 73 20 6f 66 | 20 77 68 61 74 20 79 6f |dless of| what yo|
|000021d0| 75 20 62 65 6c 69 65 76 | 65 20 61 62 6f 75 74 20 |u believ|e about |
|000021e0| 61 20 73 68 61 64 79 20 | 6c 65 67 61 6c 20 61 72 |a shady |legal ar|
|000021f0| 65 61 2c 20 69 66 20 61 | 6e 79 6f 6e 65 0a 58 66 |ea, if a|nyone.Xf|
|00002200| 72 6f 6d 20 55 6e 69 73 | 79 73 20 63 6f 6e 74 61 |rom Unis|ys conta|
|00002210| 63 74 73 20 79 6f 75 20 | 74 6f 20 65 78 74 72 61 |cts you |to extra|
|00002220| 63 74 20 74 72 69 62 75 | 74 65 20 66 6f 72 20 74 |ct tribu|te for t|
|00002230| 68 65 20 75 73 65 20 6f | 66 20 27 63 6f 6d 70 72 |he use o|f 'compr|
|00002240| 65 73 73 27 2c 20 70 6c | 65 61 73 65 0a 58 74 65 |ess', pl|ease.Xte|
|00002250| 6c 6c 20 74 68 65 6d 20 | 74 68 61 74 2c 20 66 69 |ll them |that, fi|
|00002260| 72 73 74 2c 20 69 74 20 | 69 73 20 6e 6f 74 20 74 |rst, it |is not t|
|00002270| 68 65 69 72 73 20 74 6f | 20 62 65 67 69 6e 20 77 |heirs to| begin w|
|00002280| 69 74 68 2c 20 61 6e 64 | 2c 20 73 65 63 6f 6e 64 |ith, and|, second|
|00002290| 2c 20 74 68 65 72 65 20 | 69 73 0a 58 73 6f 6d 65 |, there |is.Xsome|
|000022a0| 6f 6e 65 20 77 68 6f 20 | 77 69 6c 6c 20 74 65 73 |one who |will tes|
|000022b0| 74 69 66 79 20 69 6e 20 | 63 6f 75 72 74 20 61 62 |tify in |court ab|
|000022c0| 6f 75 74 20 74 68 65 20 | 63 6f 6e 76 65 72 73 61 |out the |conversa|
|000022d0| 74 69 6f 6e 20 61 62 6f | 76 65 2e 0a 58 49 74 20 |tion abo|ve..XIt |
|000022e0| 69 73 20 6e 6f 74 20 65 | 76 65 6e 20 63 6c 65 61 |is not e|ven clea|
|000022f0| 72 20 69 66 20 61 6e 79 | 6f 6e 65 20 63 61 6e 20 |r if any|one can |
|00002300| 22 6f 77 6e 22 20 27 63 | 6f 6d 70 72 65 73 73 27 |"own" 'c|ompress'|
|00002310| 2c 20 73 69 6e 63 65 20 | 6f 72 69 67 69 6e 61 6c |, since |original|
|00002320| 20 64 65 76 65 6c 6f 70 | 65 72 0a 58 53 70 65 6e | develop|er.XSpen|
|00002330| 63 65 72 20 54 68 6f 6d | 61 73 2c 20 6d 79 73 65 |cer Thom|as, myse|
|00002340| 6c 66 2c 20 61 6e 64 20 | 6f 74 68 65 72 73 20 70 |lf, and |others p|
|00002350| 6c 61 63 65 64 20 74 68 | 65 20 63 6f 64 65 20 69 |laced th|e code i|
|00002360| 6e 20 74 68 65 20 70 75 | 62 6c 69 63 20 64 6f 6d |n the pu|blic dom|
|00002370| 61 69 6e 0a 58 6c 6f 6e | 67 20 62 65 66 6f 72 65 |ain.Xlon|g before|
|00002380| 20 74 68 65 20 61 64 6f | 70 74 69 6f 6e 20 6f 66 | the ado|ption of|
|00002390| 20 74 68 65 20 42 65 72 | 6e 65 20 63 6f 70 79 72 | the Ber|ne copyr|
|000023a0| 69 67 68 74 20 63 6f 6e | 76 65 6e 74 69 6f 6e 2e |ight con|vention.|
|000023b0| 0a 58 0a 58 20 20 20 20 | 20 49 6e 20 6c 69 67 68 |.X.X | In ligh|
|000023c0| 74 20 6f 66 20 74 68 65 | 20 65 76 65 6e 74 73 20 |t of the| events |
|000023d0| 61 62 6f 76 65 2c 20 69 | 74 20 73 65 65 6d 73 20 |above, i|t seems |
|000023e0| 74 68 61 74 20 74 68 65 | 20 46 72 65 65 20 53 6f |that the| Free So|
|000023f0| 66 74 77 61 72 65 0a 58 | 46 6f 75 6e 64 61 74 69 |ftware.X|Foundati|
|00002400| 6f 6e 20 69 73 20 62 65 | 69 6e 67 20 75 6e 64 75 |on is be|ing undu|
|00002410| 6c 79 20 70 61 72 61 6e | 6f 69 64 20 61 62 6f 75 |ly paran|oid abou|
|00002420| 74 20 74 68 65 20 75 73 | 65 20 6f 66 20 27 63 6f |t the us|e of 'co|
|00002430| 6d 70 72 65 73 73 27 2e | 0a 58 4e 6f 77 20 49 20 |mpress'.|.XNow I |
|00002440| 63 61 6e 20 77 65 6c 6c | 20 62 65 6c 69 65 76 65 |can well| believe|
|00002450| 20 74 68 61 74 20 46 53 | 46 20 69 73 20 6d 6f 72 | that FS|F is mor|
|00002460| 65 20 6c 69 6b 65 6c 79 | 20 74 6f 20 62 65 20 61 |e likely| to be a|
|00002470| 20 6c 65 67 61 6c 20 74 | 61 72 67 65 74 0a 58 74 | legal t|arget.Xt|
|00002480| 68 61 6e 20 61 20 62 65 | 68 65 6d 6f 74 68 20 6c |han a be|hemoth l|
|00002490| 69 6b 65 20 41 54 26 54 | 2c 20 62 75 74 20 69 66 |ike AT&T|, but if|
|000024a0| 20 74 68 65 79 20 61 72 | 65 20 73 69 6d 70 6c 79 | they ar|e simply|
|000024b0| 20 72 65 64 69 73 74 72 | 69 62 75 74 69 6e 67 0a | redistr|ibuting.|
|000024c0| 58 75 6e 74 6f 75 63 68 | 65 64 20 66 72 65 65 20 |Xuntouch|ed free |
|000024d0| 73 6f 66 74 77 61 72 65 | 20 64 65 76 65 6c 6f 70 |software| develop|
|000024e0| 65 64 20 79 65 61 72 73 | 20 61 67 6f 20 69 6e 20 |ed years| ago in |
|000024f0| 74 68 65 20 70 75 62 6c | 69 63 20 73 65 63 74 6f |the publ|ic secto|
|00002500| 72 2c 0a 58 49 20 73 65 | 65 20 6e 6f 20 70 72 6f |r,.XI se|e no pro|
|00002510| 62 6c 65 6d 2e 0a 58 0a | 58 20 20 20 20 20 41 73 |blem..X.|X As|
|00002520| 69 64 65 3a 20 20 49 20 | 61 6d 20 69 6e 76 65 73 |ide: I |am inves|
|00002530| 74 69 67 61 74 69 6e 67 | 2c 20 70 6f 73 73 69 62 |tigating|, possib|
|00002540| 6c 79 20 66 6f 72 20 61 | 20 63 61 73 65 20 68 69 |ly for a| case hi|
|00002550| 73 74 6f 72 79 20 74 6f | 20 62 65 0a 58 72 65 63 |story to| be.Xrec|
|00002560| 79 63 6c 65 64 20 74 6f | 20 55 53 45 4e 45 54 2c |ycled to| USENET,|
|00002570| 20 74 68 65 20 70 61 72 | 74 69 63 75 6c 61 72 73 | the par|ticulars|
|00002580| 20 6f 66 20 64 61 74 61 | 20 63 6f 6d 70 72 65 73 | of data| compres|
|00002590| 73 69 6f 6e 20 70 61 74 | 65 6e 74 73 2e 0a 58 49 |sion pat|ents..XI|
|000025a0| 20 61 6d 20 61 77 61 72 | 65 20 6f 66 20 74 68 65 | am awar|e of the|
|000025b0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 70 61 74 65 6e | followi|ng paten|
|000025c0| 74 73 3a 20 49 42 4d 27 | 73 20 4d 69 6c 6c 65 72 |ts: IBM'|s Miller|
|000025d0| 2d 57 65 67 6d 61 6e 20 | 4c 5a 20 76 61 72 69 61 |-Wegman |LZ varia|
|000025e0| 6e 74 2c 0a 58 74 68 6f | 73 65 20 6f 66 20 54 65 |nt,.Xtho|se of Te|
|000025f0| 6c 63 6f 72 20 61 6e 64 | 20 41 43 54 20 5b 6c 6f |lcor and| ACT [lo|
|00002600| 73 69 6e 67 20 63 61 6e | 64 69 64 61 74 65 73 20 |sing can|didates |
|00002610| 66 6f 72 20 74 68 65 20 | 42 72 69 74 69 73 68 20 |for the |British |
|00002620| 54 65 6c 65 63 6f 6d 20 | 6d 6f 64 65 6d 0a 58 73 |Telecom |modem.Xs|
|00002630| 74 61 6e 64 61 72 64 5d | 2c 20 4a 61 6d 65 73 20 |tandard]|, James |
|00002640| 41 2e 20 53 74 6f 72 65 | 72 27 73 20 77 6f 72 6b |A. Store|r's work|
|00002650| 20 6f 6e 20 6c 69 6d 69 | 74 65 64 20 6c 6f 6f 6b | on limi|ted look|
|00002660| 61 68 65 61 64 20 61 73 | 20 65 78 70 6c 69 63 61 |ahead as| explica|
|00002670| 74 65 64 20 69 6e 20 68 | 69 73 0a 58 74 65 78 74 |ted in h|is.Xtext|
|00002680| 20 22 44 61 74 61 20 43 | 6f 6d 70 72 65 73 73 69 | "Data C|ompressi|
|00002690| 6f 6e 20 28 6d 65 74 68 | 6f 64 73 20 61 6e 64 20 |on (meth|ods and |
|000026a0| 74 68 65 6f 72 79 29 22 | 2c 20 43 6f 6d 70 75 74 |theory)"|, Comput|
|000026b0| 65 72 20 53 63 69 65 6e | 63 65 20 50 72 65 73 73 |er Scien|ce Press|
|000026c0| 2c 20 31 39 38 38 2c 0a | 58 61 6e 64 20 74 68 65 |, 1988,.|Xand the|
|000026d0| 20 76 61 72 69 6f 75 73 | 20 70 61 74 65 6e 74 73 | various| patents|
|000026e0| 20 70 65 6e 64 69 6e 67 | 20 61 73 73 6f 63 69 61 | pending| associa|
|000026f0| 74 65 64 20 77 69 74 68 | 20 74 68 65 20 46 69 61 |ted with| the Fia|
|00002700| 6c 61 20 61 6e 64 20 47 | 72 65 65 6e 65 0a 58 43 |la and G|reene.XC|
|00002710| 41 43 4d 20 61 72 74 69 | 63 6c 65 20 6f 66 20 41 |ACM arti|cle of A|
|00002720| 70 72 69 6c 2c 20 31 39 | 38 39 20 6f 6e 20 74 65 |pril, 19|89 on te|
|00002730| 78 74 75 61 6c 20 73 75 | 62 73 74 69 74 75 74 69 |xtual su|bstituti|
|00002740| 6f 6e 20 6d 65 74 68 6f | 64 73 2e 0a 58 49 66 20 |on metho|ds..XIf |
|00002750| 79 6f 75 20 68 61 76 65 | 20 61 6e 79 20 6c 6f 72 |you have| any lor|
|00002760| 65 2c 20 73 65 6e 64 20 | 69 74 20 74 68 69 73 20 |e, send |it this |
|00002770| 77 61 79 2e 0a 58 0a 58 | 0a 58 0a 58 09 09 09 09 |way..X.X|.X.X....|
|00002780| 09 53 69 6e 63 65 72 65 | 6c 79 2c 0a 58 0a 58 09 |.Sincere|ly,.X.X.|
|00002790| 09 09 09 09 4a 61 6d 65 | 73 20 41 2e 20 57 6f 6f |....Jame|s A. Woo|
|000027a0| 64 73 0a 58 09 09 09 09 | 09 4e 41 53 41 20 41 6d |ds.X....|.NASA Am|
|000027b0| 65 73 20 52 65 73 65 61 | 72 63 68 20 43 65 6e 74 |es Resea|rch Cent|
|000027c0| 65 72 20 28 52 49 41 43 | 53 29 0a 58 09 09 09 09 |er (RIAC|S).X....|
|000027d0| 09 6a 61 77 40 72 69 61 | 63 73 2e 65 64 75 20 28 |.jaw@ria|cs.edu (|
|000027e0| 6f 72 20 61 6d 65 73 21 | 6a 61 77 29 0a 58 0a 58 |or ames!|jaw).X.X|
|000027f0| 0a 58 50 2e 53 2e 20 20 | 54 68 65 20 61 6c 67 6f |.XP.S. |The algo|
|00002800| 72 69 74 68 6d 20 70 61 | 74 65 6e 74 20 69 73 73 |rithm pa|tent iss|
|00002810| 75 65 20 63 65 72 74 61 | 69 6e 6c 79 20 69 73 20 |ue certa|inly is |
|00002820| 61 20 22 74 6f 70 69 63 | 20 41 22 20 61 74 20 74 |a "topic| A" at t|
|00002830| 68 65 20 6d 6f 6d 65 6e | 74 2e 0a 58 4f 6e 65 20 |he momen|t..XOne |
|00002840| 75 73 65 66 75 6c 20 72 | 65 66 65 72 65 6e 63 65 |useful r|eference|
|00002850| 20 69 73 20 74 68 65 20 | 72 65 76 69 65 77 20 61 | is the |review a|
|00002860| 72 74 69 63 6c 65 20 62 | 79 20 41 6e 74 68 6f 6e |rticle b|y Anthon|
|00002870| 79 20 61 6e 64 20 43 6f | 6c 77 65 6c 6c 20 2d 2d |y and Co|lwell --|
|00002880| 0a 58 22 4c 69 74 69 67 | 61 74 69 6e 67 20 74 68 |.X"Litig|ating th|
|00002890| 65 20 56 61 6c 69 64 69 | 74 79 20 61 6e 64 20 49 |e Validi|ty and I|
|000028a0| 6e 66 72 69 6e 67 65 6d | 65 6e 74 20 6f 66 20 53 |nfringem|ent of S|
|000028b0| 6f 66 74 77 61 72 65 20 | 50 61 74 65 6e 74 73 22 |oftware |Patents"|
|000028c0| 20 69 6e 0a 58 57 61 73 | 68 69 6e 67 74 6f 6e 20 | in.XWas|hington |
|000028d0| 61 6e 64 20 4c 65 65 20 | 4c 61 77 20 52 65 76 69 |and Lee |Law Revi|
|000028e0| 65 77 2c 20 76 6f 6c 75 | 6d 65 20 34 31 2c 20 66 |ew, volu|me 41, f|
|000028f0| 61 6c 6c 20 31 39 38 34 | 2e 20 20 49 20 6b 6e 6f |all 1984|. I kno|
|00002900| 77 20 52 6f 62 65 72 74 | 20 43 6f 6c 77 65 6c 6c |w Robert| Colwell|
|00002910| 0a 58 70 65 72 73 6f 6e | 61 6c 6c 79 2e 20 20 41 |.Xperson|ally. A|
|00002920| 73 20 61 20 70 72 61 63 | 74 69 63 69 6e 67 20 70 |s a prac|ticing p|
|00002930| 61 74 65 6e 74 20 61 74 | 74 6f 72 6e 65 79 2c 20 |atent at|torney, |
|00002940| 68 65 20 74 65 6c 6c 73 | 20 6d 65 20 74 68 61 74 |he tells| me that|
|00002950| 2c 20 61 74 20 61 20 6d | 69 6e 69 6d 75 6d 2c 0a |, at a m|inimum,.|
|00002960| 58 75 73 65 20 6f 66 20 | 61 6e 20 69 6e 76 65 6e |Xuse of |an inven|
|00002970| 74 69 6f 6e 20 22 66 6f | 72 20 72 65 73 65 61 72 |tion "fo|r resear|
|00002980| 63 68 20 70 75 72 70 6f | 73 65 73 22 20 69 73 20 |ch purpo|ses" is |
|00002990| 6c 65 67 69 74 69 6d 61 | 74 65 2e 0a 58 0a 58 0a |legitima|te..X.X.|
|000029a0| 58 0a 58 0a 45 4e 44 5f | 4f 46 5f 46 49 4c 45 0a |X.X.END_|OF_FILE.|
|000029b0| 69 66 20 74 65 73 74 20 | 37 38 35 34 20 2d 6e 65 |if test |7854 -ne|
|000029c0| 20 60 77 63 20 2d 63 20 | 3c 27 52 45 41 44 4d 45 | `wc -c |<'README|
|000029d0| 27 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |'`; then|. ech|
|000029e0| 6f 20 73 68 61 72 3a 20 | 5c 22 27 52 45 41 44 4d |o shar: |\"'READM|
|000029f0| 45 27 5c 22 20 75 6e 70 | 61 63 6b 65 64 20 77 69 |E'\" unp|acked wi|
|00002a00| 74 68 20 77 72 6f 6e 67 | 20 73 69 7a 65 21 0a 66 |th wrong| size!.f|
|00002a10| 69 0a 23 20 65 6e 64 20 | 6f 66 20 27 52 45 41 44 |i.# end |of 'READ|
|00002a20| 4d 45 27 0a 66 69 0a 69 | 66 20 74 65 73 74 20 2d |ME'.fi.i|f test -|
|00002a30| 66 20 27 63 6f 6d 70 72 | 65 73 73 2e 63 27 20 2d |f 'compr|ess.c' -|
|00002a40| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00002a50| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00002a60| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00002a70| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00002a80| 66 69 6c 65 20 5c 22 27 | 63 6f 6d 70 72 65 73 73 |file \"'|compress|
|00002a90| 2e 63 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |.c'\".el|se.echo |
|00002aa0| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00002ab0| 20 5c 22 27 63 6f 6d 70 | 72 65 73 73 2e 63 27 5c | \"'comp|ress.c'\|
|00002ac0| 22 20 5c 28 34 32 36 32 | 30 20 63 68 61 72 61 63 |" \(4262|0 charac|
|00002ad0| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00002ae0| 2f 2f 22 20 3e 27 63 6f | 6d 70 72 65 73 73 2e 63 |//" >'co|mpress.c|
|00002af0| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00002b00| 27 0a 58 2f 2a 20 0a 58 | 20 2a 20 43 6f 6d 70 72 |'.X/* .X| * Compr|
|00002b10| 65 73 73 20 2d 20 64 61 | 74 61 20 63 6f 6d 70 72 |ess - da|ta compr|
|00002b20| 65 73 73 69 6f 6e 20 70 | 72 6f 67 72 61 6d 20 0a |ession p|rogram .|
|00002b30| 58 20 2a 2f 0a 58 23 64 | 65 66 69 6e 65 09 6d 69 |X */.X#d|efine.mi|
|00002b40| 6e 28 61 2c 62 29 09 28 | 28 61 3e 62 29 20 3f 20 |n(a,b).(|(a>b) ? |
|00002b50| 62 20 3a 20 61 29 0a 58 | 0a 58 2f 2a 0a 58 20 2a |b : a).X|.X/*.X *|
|00002b60| 20 6d 61 63 68 69 6e 65 | 20 76 61 72 69 61 6e 74 | machine| variant|
|00002b70| 73 20 77 68 69 63 68 20 | 72 65 71 75 69 72 65 20 |s which |require |
|00002b80| 63 63 20 2d 44 6d 61 63 | 68 69 6e 65 3a 20 20 70 |cc -Dmac|hine: p|
|00002b90| 64 70 31 31 2c 20 7a 38 | 30 30 30 2c 20 70 63 78 |dp11, z8|000, pcx|
|00002ba0| 74 0a 58 20 2a 2f 0a 58 | 0a 58 2f 2a 0a 58 20 2a |t.X */.X|.X/*.X *|
|00002bb0| 20 53 65 74 20 55 53 45 | 52 4d 45 4d 20 74 6f 20 | Set USE|RMEM to |
|00002bc0| 74 68 65 20 6d 61 78 69 | 6d 75 6d 20 61 6d 6f 75 |the maxi|mum amou|
|00002bd0| 6e 74 20 6f 66 20 70 68 | 79 73 69 63 61 6c 20 75 |nt of ph|ysical u|
|00002be0| 73 65 72 20 6d 65 6d 6f | 72 79 20 61 76 61 69 6c |ser memo|ry avail|
|00002bf0| 61 62 6c 65 0a 58 20 2a | 20 69 6e 20 62 79 74 65 |able.X *| in byte|
|00002c00| 73 2e 20 20 55 53 45 52 | 4d 45 4d 20 69 73 20 75 |s. USER|MEM is u|
|00002c10| 73 65 64 20 74 6f 20 64 | 65 74 65 72 6d 69 6e 65 |sed to d|etermine|
|00002c20| 20 74 68 65 20 6d 61 78 | 69 6d 75 6d 20 42 49 54 | the max|imum BIT|
|00002c30| 53 20 74 68 61 74 20 63 | 61 6e 20 62 65 20 75 73 |S that c|an be us|
|00002c40| 65 64 0a 58 20 2a 20 66 | 6f 72 20 63 6f 6d 70 72 |ed.X * f|or compr|
|00002c50| 65 73 73 69 6f 6e 2e 0a | 58 20 2a 0a 58 20 2a 20 |ession..|X *.X * |
|00002c60| 53 41 43 52 45 44 4d 45 | 4d 20 69 73 20 74 68 65 |SACREDME|M is the|
|00002c70| 20 61 6d 6f 75 6e 74 20 | 6f 66 20 70 68 79 73 69 | amount |of physi|
|00002c80| 63 61 6c 20 6d 65 6d 6f | 72 79 20 73 61 76 65 64 |cal memo|ry saved|
|00002c90| 20 66 6f 72 20 6f 74 68 | 65 72 73 3b 20 63 6f 6d | for oth|ers; com|
|00002ca0| 70 72 65 73 73 0a 58 20 | 2a 20 77 69 6c 6c 20 68 |press.X |* will h|
|00002cb0| 6f 67 20 74 68 65 20 72 | 65 73 74 2e 0a 58 20 2a |og the r|est..X *|
|00002cc0| 2f 0a 58 23 69 66 6e 64 | 65 66 20 53 41 43 52 45 |/.X#ifnd|ef SACRE|
|00002cd0| 44 4d 45 4d 0a 58 23 64 | 65 66 69 6e 65 20 53 41 |DMEM.X#d|efine SA|
|00002ce0| 43 52 45 44 4d 45 4d 09 | 30 0a 58 23 65 6e 64 69 |CREDMEM.|0.X#endi|
|00002cf0| 66 0a 58 0a 58 23 69 66 | 6e 64 65 66 20 55 53 45 |f.X.X#if|ndef USE|
|00002d00| 52 4d 45 4d 0a 58 23 20 | 64 65 66 69 6e 65 20 55 |RMEM.X# |define U|
|00002d10| 53 45 52 4d 45 4d 20 09 | 34 35 30 30 30 30 09 2f |SERMEM .|450000./|
|00002d20| 2a 20 64 65 66 61 75 6c | 74 20 75 73 65 72 20 6d |* defaul|t user m|
|00002d30| 65 6d 6f 72 79 20 2a 2f | 0a 58 23 65 6e 64 69 66 |emory */|.X#endif|
|00002d40| 0a 58 0a 58 23 69 66 64 | 65 66 20 69 6e 74 65 72 |.X.X#ifd|ef inter|
|00002d50| 64 61 74 61 09 09 2f 2a | 20 28 50 65 72 6b 69 6e |data../*| (Perkin|
|00002d60| 2d 45 6c 6d 65 72 29 20 | 2a 2f 0a 58 23 64 65 66 |-Elmer) |*/.X#def|
|00002d70| 69 6e 65 20 53 49 47 4e | 45 44 5f 43 4f 4d 50 41 |ine SIGN|ED_COMPA|
|00002d80| 52 45 5f 53 4c 4f 57 09 | 2f 2a 20 73 69 67 6e 65 |RE_SLOW.|/* signe|
|00002d90| 64 20 63 6f 6d 70 61 72 | 65 20 69 73 20 73 6c 6f |d compar|e is slo|
|00002da0| 77 65 72 20 74 68 61 6e | 20 75 6e 73 69 67 6e 65 |wer than| unsigne|
|00002db0| 64 20 2a 2f 0a 58 23 65 | 6e 64 69 66 0a 58 0a 58 |d */.X#e|ndif.X.X|
|00002dc0| 23 69 66 64 65 66 20 70 | 64 70 31 31 0a 58 23 20 |#ifdef p|dp11.X# |
|00002dd0| 64 65 66 69 6e 65 20 42 | 49 54 53 20 09 31 32 09 |define B|ITS .12.|
|00002de0| 2f 2a 20 6d 61 78 20 62 | 69 74 73 2f 63 6f 64 65 |/* max b|its/code|
|00002df0| 20 66 6f 72 20 31 36 2d | 62 69 74 20 6d 61 63 68 | for 16-|bit mach|
|00002e00| 69 6e 65 20 2a 2f 0a 58 | 23 20 64 65 66 69 6e 65 |ine */.X|# define|
|00002e10| 20 4e 4f 5f 55 43 48 41 | 52 09 2f 2a 20 61 6c 73 | NO_UCHA|R./* als|
|00002e20| 6f 20 69 66 20 22 75 6e | 73 69 67 6e 65 64 20 63 |o if "un|signed c|
|00002e30| 68 61 72 22 20 66 75 6e | 63 74 69 6f 6e 73 20 61 |har" fun|ctions a|
|00002e40| 73 20 73 69 67 6e 65 64 | 20 63 68 61 72 20 2a 2f |s signed| char */|
|00002e50| 0a 58 23 20 75 6e 64 65 | 66 20 55 53 45 52 4d 45 |.X# unde|f USERME|
|00002e60| 4d 20 0a 58 23 65 6e 64 | 69 66 20 2f 2a 20 70 64 |M .X#end|if /* pd|
|00002e70| 70 31 31 20 2a 2f 09 2f | 2a 20 64 6f 6e 27 74 20 |p11 */./|* don't |
|00002e80| 66 6f 72 67 65 74 20 74 | 6f 20 63 6f 6d 70 69 6c |forget t|o compil|
|00002e90| 65 20 77 69 74 68 20 2d | 69 20 2a 2f 0a 58 0a 58 |e with -|i */.X.X|
|00002ea0| 23 69 66 64 65 66 20 7a | 38 30 30 30 0a 58 23 20 |#ifdef z|8000.X# |
|00002eb0| 64 65 66 69 6e 65 20 42 | 49 54 53 20 09 31 32 0a |define B|ITS .12.|
|00002ec0| 58 23 20 75 6e 64 65 66 | 20 76 61 78 09 09 2f 2a |X# undef| vax../*|
|00002ed0| 20 77 65 69 72 64 20 70 | 72 65 70 72 6f 63 65 73 | weird p|reproces|
|00002ee0| 73 6f 72 20 2a 2f 0a 58 | 23 20 75 6e 64 65 66 20 |sor */.X|# undef |
|00002ef0| 55 53 45 52 4d 45 4d 20 | 0a 58 23 65 6e 64 69 66 |USERMEM |.X#endif|
|00002f00| 20 2f 2a 20 7a 38 30 30 | 30 20 2a 2f 0a 58 0a 58 | /* z800|0 */.X.X|
|00002f10| 23 69 66 64 65 66 20 70 | 63 78 74 0a 58 23 20 64 |#ifdef p|cxt.X# d|
|00002f20| 65 66 69 6e 65 20 42 49 | 54 53 20 20 20 31 32 0a |efine BI|TS 12.|
|00002f30| 58 23 20 75 6e 64 65 66 | 20 55 53 45 52 4d 45 4d |X# undef| USERMEM|
|00002f40| 0a 58 23 65 6e 64 69 66 | 20 2f 2a 20 70 63 78 74 |.X#endif| /* pcxt|
|00002f50| 20 2a 2f 0a 58 0a 58 23 | 69 66 64 65 66 20 55 53 | */.X.X#|ifdef US|
|00002f60| 45 52 4d 45 4d 0a 58 23 | 20 69 66 20 55 53 45 52 |ERMEM.X#| if USER|
|00002f70| 4d 45 4d 20 3e 3d 20 28 | 34 33 33 34 38 34 2b 53 |MEM >= (|433484+S|
|00002f80| 41 43 52 45 44 4d 45 4d | 29 0a 58 23 20 20 64 65 |ACREDMEM|).X# de|
|00002f90| 66 69 6e 65 20 50 42 49 | 54 53 09 31 36 0a 58 23 |fine PBI|TS.16.X#|
|00002fa0| 20 65 6c 73 65 0a 58 23 | 20 20 69 66 20 55 53 45 | else.X#| if USE|
|00002fb0| 52 4d 45 4d 20 3e 3d 20 | 28 32 32 39 36 30 30 2b |RMEM >= |(229600+|
|00002fc0| 53 41 43 52 45 44 4d 45 | 4d 29 0a 58 23 20 20 20 |SACREDME|M).X# |
|00002fd0| 64 65 66 69 6e 65 20 50 | 42 49 54 53 09 31 35 0a |define P|BITS.15.|
|00002fe0| 58 23 20 20 65 6c 73 65 | 0a 58 23 20 20 20 69 66 |X# else|.X# if|
|00002ff0| 20 55 53 45 52 4d 45 4d | 20 3e 3d 20 28 31 32 37 | USERMEM| >= (127|
|00003000| 35 33 36 2b 53 41 43 52 | 45 44 4d 45 4d 29 0a 58 |536+SACR|EDMEM).X|
|00003010| 23 20 20 20 20 64 65 66 | 69 6e 65 20 50 42 49 54 |# def|ine PBIT|
|00003020| 53 09 31 34 0a 58 23 20 | 20 20 65 6c 73 65 0a 58 |S.14.X# | else.X|
|00003030| 23 20 20 20 20 69 66 20 | 55 53 45 52 4d 45 4d 20 |# if |USERMEM |
|00003040| 3e 3d 20 28 37 33 34 36 | 34 2b 53 41 43 52 45 44 |>= (7346|4+SACRED|
|00003050| 4d 45 4d 29 0a 58 23 20 | 20 20 20 20 64 65 66 69 |MEM).X# | defi|
|00003060| 6e 65 20 50 42 49 54 53 | 09 31 33 0a 58 23 20 20 |ne PBITS|.13.X# |
|00003070| 20 20 65 6c 73 65 0a 58 | 23 20 20 20 20 20 64 65 | else.X|# de|
|00003080| 66 69 6e 65 20 50 42 49 | 54 53 09 31 32 0a 58 23 |fine PBI|TS.12.X#|
|00003090| 20 20 20 20 65 6e 64 69 | 66 0a 58 23 20 20 20 65 | endi|f.X# e|
|000030a0| 6e 64 69 66 0a 58 23 20 | 20 65 6e 64 69 66 0a 58 |ndif.X# | endif.X|
|000030b0| 23 20 65 6e 64 69 66 0a | 58 23 20 75 6e 64 65 66 |# endif.|X# undef|
|000030c0| 20 55 53 45 52 4d 45 4d | 0a 58 23 65 6e 64 69 66 | USERMEM|.X#endif|
|000030d0| 20 2f 2a 20 55 53 45 52 | 4d 45 4d 20 2a 2f 0a 58 | /* USER|MEM */.X|
|000030e0| 0a 58 23 69 66 64 65 66 | 20 50 42 49 54 53 09 09 |.X#ifdef| PBITS..|
|000030f0| 2f 2a 20 50 72 65 66 65 | 72 72 65 64 20 42 49 54 |/* Prefe|rred BIT|
|00003100| 53 20 66 6f 72 20 74 68 | 69 73 20 6d 65 6d 6f 72 |S for th|is memor|
|00003110| 79 20 73 69 7a 65 20 2a | 2f 0a 58 23 20 69 66 6e |y size *|/.X# ifn|
|00003120| 64 65 66 20 42 49 54 53 | 0a 58 23 20 20 64 65 66 |def BITS|.X# def|
|00003130| 69 6e 65 20 42 49 54 53 | 20 50 42 49 54 53 0a 58 |ine BITS| PBITS.X|
|00003140| 23 20 65 6e 64 69 66 20 | 2f 2a 20 42 49 54 53 20 |# endif |/* BITS |
|00003150| 2a 2f 0a 58 23 65 6e 64 | 69 66 20 2f 2a 20 50 42 |*/.X#end|if /* PB|
|00003160| 49 54 53 20 2a 2f 0a 58 | 0a 58 23 69 66 20 42 49 |ITS */.X|.X#if BI|
|00003170| 54 53 20 3d 3d 20 31 36 | 0a 58 23 20 64 65 66 69 |TS == 16|.X# defi|
|00003180| 6e 65 20 48 53 49 5a 45 | 09 36 39 30 30 31 09 09 |ne HSIZE|.69001..|
|00003190| 2f 2a 20 39 35 25 20 6f | 63 63 75 70 61 6e 63 79 |/* 95% o|ccupancy|
|000031a0| 20 2a 2f 0a 58 23 65 6e | 64 69 66 0a 58 23 69 66 | */.X#en|dif.X#if|
|000031b0| 20 42 49 54 53 20 3d 3d | 20 31 35 0a 58 23 20 64 | BITS ==| 15.X# d|
|000031c0| 65 66 69 6e 65 20 48 53 | 49 5a 45 09 33 35 30 32 |efine HS|IZE.3502|
|000031d0| 33 09 09 2f 2a 20 39 34 | 25 20 6f 63 63 75 70 61 |3../* 94|% occupa|
|000031e0| 6e 63 79 20 2a 2f 0a 58 | 23 65 6e 64 69 66 0a 58 |ncy */.X|#endif.X|
|000031f0| 23 69 66 20 42 49 54 53 | 20 3d 3d 20 31 34 0a 58 |#if BITS| == 14.X|
|00003200| 23 20 64 65 66 69 6e 65 | 20 48 53 49 5a 45 09 31 |# define| HSIZE.1|
|00003210| 38 30 31 33 09 09 2f 2a | 20 39 31 25 20 6f 63 63 |8013../*| 91% occ|
|00003220| 75 70 61 6e 63 79 20 2a | 2f 0a 58 23 65 6e 64 69 |upancy *|/.X#endi|
|00003230| 66 0a 58 23 69 66 20 42 | 49 54 53 20 3d 3d 20 31 |f.X#if B|ITS == 1|
|00003240| 33 0a 58 23 20 64 65 66 | 69 6e 65 20 48 53 49 5a |3.X# def|ine HSIZ|
|00003250| 45 09 39 30 30 31 09 09 | 2f 2a 20 39 31 25 20 6f |E.9001..|/* 91% o|
|00003260| 63 63 75 70 61 6e 63 79 | 20 2a 2f 0a 58 23 65 6e |ccupancy| */.X#en|
|00003270| 64 69 66 0a 58 23 69 66 | 20 42 49 54 53 20 3c 3d |dif.X#if| BITS <=|
|00003280| 20 31 32 0a 58 23 20 64 | 65 66 69 6e 65 20 48 53 | 12.X# d|efine HS|
|00003290| 49 5a 45 09 35 30 30 33 | 09 09 2f 2a 20 38 30 25 |IZE.5003|../* 80%|
|000032a0| 20 6f 63 63 75 70 61 6e | 63 79 20 2a 2f 0a 58 23 | occupan|cy */.X#|
|000032b0| 65 6e 64 69 66 0a 58 0a | 58 23 69 66 64 65 66 20 |endif.X.|X#ifdef |
|000032c0| 4d 5f 58 45 4e 49 58 09 | 09 09 2f 2a 20 53 74 75 |M_XENIX.|../* Stu|
|000032d0| 70 69 64 20 63 6f 6d 70 | 69 6c 65 72 20 63 61 6e |pid comp|iler can|
|000032e0| 27 74 20 68 61 6e 64 6c | 65 20 61 72 72 61 79 73 |'t handl|e arrays|
|000032f0| 20 77 69 74 68 20 2a 2f | 0a 58 23 20 69 66 20 42 | with */|.X# if B|
|00003300| 49 54 53 20 3d 3d 20 31 | 36 09 09 09 2f 2a 20 6d |ITS == 1|6.../* m|
|00003310| 6f 72 65 20 74 68 61 6e | 20 36 35 35 33 35 20 62 |ore than| 65535 b|
|00003320| 79 74 65 73 20 2d 20 73 | 6f 20 77 65 20 66 61 6b |ytes - s|o we fak|
|00003330| 65 20 69 74 20 2a 2f 0a | 58 23 20 20 64 65 66 69 |e it */.|X# defi|
|00003340| 6e 65 20 58 45 4e 49 58 | 5f 31 36 0a 58 23 20 65 |ne XENIX|_16.X# e|
|00003350| 6c 73 65 0a 58 23 20 20 | 69 66 20 42 49 54 53 20 |lse.X# |if BITS |
|00003360| 3e 20 31 33 09 09 09 2f | 2a 20 43 6f 64 65 20 6f |> 13.../|* Code o|
|00003370| 6e 6c 79 20 68 61 6e 64 | 6c 65 73 20 42 49 54 53 |nly hand|les BITS|
|00003380| 20 3d 20 31 32 2c 20 31 | 33 2c 20 6f 72 20 31 36 | = 12, 1|3, or 16|
|00003390| 20 2a 2f 0a 58 23 20 20 | 20 64 65 66 69 6e 65 20 | */.X# | define |
|000033a0| 42 49 54 53 09 31 33 0a | 58 23 20 20 65 6e 64 69 |BITS.13.|X# endi|
|000033b0| 66 0a 58 23 20 65 6e 64 | 69 66 0a 58 23 65 6e 64 |f.X# end|if.X#end|
|000033c0| 69 66 0a 58 0a 58 2f 2a | 0a 58 20 2a 20 61 20 63 |if.X.X/*|.X * a c|
|000033d0| 6f 64 65 5f 69 6e 74 20 | 6d 75 73 74 20 62 65 20 |ode_int |must be |
|000033e0| 61 62 6c 65 20 74 6f 20 | 68 6f 6c 64 20 32 2a 2a |able to |hold 2**|
|000033f0| 42 49 54 53 20 76 61 6c | 75 65 73 20 6f 66 20 74 |BITS val|ues of t|
|00003400| 79 70 65 20 69 6e 74 2c | 20 61 6e 64 20 61 6c 73 |ype int,| and als|
|00003410| 6f 20 2d 31 0a 58 20 2a | 2f 0a 58 23 69 66 20 42 |o -1.X *|/.X#if B|
|00003420| 49 54 53 20 3e 20 31 35 | 0a 58 74 79 70 65 64 65 |ITS > 15|.Xtypede|
|00003430| 66 20 6c 6f 6e 67 20 69 | 6e 74 09 63 6f 64 65 5f |f long i|nt.code_|
|00003440| 69 6e 74 3b 0a 58 23 65 | 6c 73 65 0a 58 74 79 70 |int;.X#e|lse.Xtyp|
|00003450| 65 64 65 66 20 69 6e 74 | 09 09 63 6f 64 65 5f 69 |edef int|..code_i|
|00003460| 6e 74 3b 0a 58 23 65 6e | 64 69 66 0a 58 0a 58 23 |nt;.X#en|dif.X.X#|
|00003470| 69 66 64 65 66 20 53 49 | 47 4e 45 44 5f 43 4f 4d |ifdef SI|GNED_COM|
|00003480| 50 41 52 45 5f 53 4c 4f | 57 0a 58 74 79 70 65 64 |PARE_SLO|W.Xtyped|
|00003490| 65 66 20 75 6e 73 69 67 | 6e 65 64 20 6c 6f 6e 67 |ef unsig|ned long|
|000034a0| 20 69 6e 74 20 63 6f 75 | 6e 74 5f 69 6e 74 3b 0a | int cou|nt_int;.|
|000034b0| 58 74 79 70 65 64 65 66 | 20 75 6e 73 69 67 6e 65 |Xtypedef| unsigne|
|000034c0| 64 20 73 68 6f 72 74 20 | 69 6e 74 20 63 6f 75 6e |d short |int coun|
|000034d0| 74 5f 73 68 6f 72 74 3b | 0a 58 23 65 6c 73 65 0a |t_short;|.X#else.|
|000034e0| 58 74 79 70 65 64 65 66 | 20 6c 6f 6e 67 20 69 6e |Xtypedef| long in|
|000034f0| 74 09 20 20 63 6f 75 6e | 74 5f 69 6e 74 3b 0a 58 |t. coun|t_int;.X|
|00003500| 23 65 6e 64 69 66 0a 58 | 0a 58 23 69 66 64 65 66 |#endif.X|.X#ifdef|
|00003510| 20 4e 4f 5f 55 43 48 41 | 52 0a 58 20 74 79 70 65 | NO_UCHA|R.X type|
|00003520| 64 65 66 20 63 68 61 72 | 09 63 68 61 72 5f 74 79 |def char|.char_ty|
|00003530| 70 65 3b 0a 58 23 65 6c | 73 65 0a 58 20 74 79 70 |pe;.X#el|se.X typ|
|00003540| 65 64 65 66 09 75 6e 73 | 69 67 6e 65 64 20 63 68 |edef.uns|igned ch|
|00003550| 61 72 09 63 68 61 72 5f | 74 79 70 65 3b 0a 58 23 |ar.char_|type;.X#|
|00003560| 65 6e 64 69 66 20 2f 2a | 20 55 43 48 41 52 20 2a |endif /*| UCHAR *|
|00003570| 2f 0a 58 63 68 61 72 5f | 74 79 70 65 20 6d 61 67 |/.Xchar_|type mag|
|00003580| 69 63 5f 68 65 61 64 65 | 72 5b 5d 20 3d 20 7b 20 |ic_heade|r[] = { |
|00003590| 22 5c 30 33 37 5c 32 33 | 35 22 20 7d 3b 09 2f 2a |"\037\23|5" };./*|
|000035a0| 20 31 46 20 39 44 20 2a | 2f 0a 58 0a 58 2f 2a 20 | 1F 9D *|/.X.X/* |
|000035b0| 44 65 66 69 6e 65 73 20 | 66 6f 72 20 74 68 69 72 |Defines |for thir|
|000035c0| 64 20 62 79 74 65 20 6f | 66 20 68 65 61 64 65 72 |d byte o|f header|
|000035d0| 20 2a 2f 0a 58 23 64 65 | 66 69 6e 65 20 42 49 54 | */.X#de|fine BIT|
|000035e0| 5f 4d 41 53 4b 09 30 78 | 31 66 0a 58 23 64 65 66 |_MASK.0x|1f.X#def|
|000035f0| 69 6e 65 20 42 4c 4f 43 | 4b 5f 4d 41 53 4b 09 30 |ine BLOC|K_MASK.0|
|00003600| 78 38 30 0a 58 2f 2a 20 | 4d 61 73 6b 73 20 30 78 |x80.X/* |Masks 0x|
|00003610| 34 30 20 61 6e 64 20 30 | 78 32 30 20 61 72 65 20 |40 and 0|x20 are |
|00003620| 66 72 65 65 2e 20 20 49 | 20 74 68 69 6e 6b 20 30 |free. I| think 0|
|00003630| 78 32 30 20 73 68 6f 75 | 6c 64 20 6d 65 61 6e 20 |x20 shou|ld mean |
|00003640| 74 68 61 74 20 74 68 65 | 72 65 20 69 73 0a 58 20 |that the|re is.X |
|00003650| 20 20 61 20 66 6f 75 72 | 74 68 20 68 65 61 64 65 | a four|th heade|
|00003660| 72 20 62 79 74 65 20 28 | 66 6f 72 20 65 78 70 61 |r byte (|for expa|
|00003670| 6e 73 69 6f 6e 29 2e 0a | 58 2a 2f 0a 58 23 64 65 |nsion)..|X*/.X#de|
|00003680| 66 69 6e 65 20 49 4e 49 | 54 5f 42 49 54 53 20 39 |fine INI|T_BITS 9|
|00003690| 09 09 09 2f 2a 20 69 6e | 69 74 69 61 6c 20 6e 75 |.../* in|itial nu|
|000036a0| 6d 62 65 72 20 6f 66 20 | 62 69 74 73 2f 63 6f 64 |mber of |bits/cod|
|000036b0| 65 20 2a 2f 0a 58 0a 58 | 2f 2a 0a 58 20 2a 20 63 |e */.X.X|/*.X * c|
|000036c0| 6f 6d 70 72 65 73 73 2e | 63 20 2d 20 46 69 6c 65 |ompress.|c - File|
|000036d0| 20 63 6f 6d 70 72 65 73 | 73 69 6f 6e 20 61 6c 61 | compres|sion ala|
|000036e0| 20 49 45 45 45 20 43 6f | 6d 70 75 74 65 72 2c 20 | IEEE Co|mputer, |
|000036f0| 4a 75 6e 65 20 31 39 38 | 34 2e 0a 58 20 2a 0a 58 |June 198|4..X *.X|
|00003700| 20 2a 20 41 75 74 68 6f | 72 73 3a 09 53 70 65 6e | * Autho|rs:.Spen|
|00003710| 63 65 72 20 57 2e 20 54 | 68 6f 6d 61 73 09 28 64 |cer W. T|homas.(d|
|00003720| 65 63 76 61 78 21 68 61 | 72 70 6f 21 75 74 61 68 |ecvax!ha|rpo!utah|
|00003730| 2d 63 73 21 75 74 61 68 | 2d 67 72 21 74 68 6f 6d |-cs!utah|-gr!thom|
|00003740| 61 73 29 0a 58 20 2a 09 | 09 4a 69 6d 20 4d 63 4b |as).X *.|.Jim McK|
|00003750| 69 65 09 09 28 64 65 63 | 76 61 78 21 6d 63 76 61 |ie..(dec|vax!mcva|
|00003760| 78 21 6a 69 6d 29 0a 58 | 20 2a 09 09 53 74 65 76 |x!jim).X| *..Stev|
|00003770| 65 20 44 61 76 69 65 73 | 09 09 28 64 65 63 76 61 |e Davies|..(decva|
|00003780| 78 21 76 61 78 31 33 35 | 21 70 65 74 73 64 21 70 |x!vax135|!petsd!p|
|00003790| 65 6f 72 61 21 73 72 64 | 29 0a 58 20 2a 09 09 4b |eora!srd|).X *..K|
|000037a0| 65 6e 20 54 75 72 6b 6f | 77 73 6b 69 09 09 28 64 |en Turko|wski..(d|
|000037b0| 65 63 76 61 78 21 64 65 | 63 77 72 6c 21 74 75 72 |ecvax!de|cwrl!tur|
|000037c0| 74 6c 65 76 61 78 21 6b | 65 6e 29 0a 58 20 2a 09 |tlevax!k|en).X *.|
|000037d0| 09 4a 61 6d 65 73 20 41 | 2e 20 57 6f 6f 64 73 09 |.James A|. Woods.|
|000037e0| 09 28 64 65 63 76 61 78 | 21 69 68 6e 70 34 21 61 |.(decvax|!ihnp4!a|
|000037f0| 6d 65 73 21 6a 61 77 29 | 0a 58 20 2a 09 09 4a 6f |mes!jaw)|.X *..Jo|
|00003800| 65 20 4f 72 6f 73 74 09 | 09 28 64 65 63 76 61 78 |e Orost.|.(decvax|
|00003810| 21 76 61 78 31 33 35 21 | 70 65 74 73 64 21 6a 6f |!vax135!|petsd!jo|
|00003820| 65 29 0a 58 20 2a 09 09 | 44 61 76 65 20 4d 61 63 |e).X *..|Dave Mac|
|00003830| 6b 09 09 28 63 73 75 40 | 61 6c 65 6d 62 69 63 2e |k..(csu@|alembic.|
|00003840| 61 63 73 2e 63 6f 6d 29 | 0a 58 20 2a 0a 58 20 2a |acs.com)|.X *.X *|
|00003850| 20 52 65 76 69 73 69 6f | 6e 20 34 2e 31 20 20 20 | Revisio|n 4.1 |
|00003860| 39 31 2f 30 35 2f 32 36 | 20 20 09 20 20 63 73 75 |91/05/26| . csu|
|00003870| 40 61 6c 65 6d 62 69 63 | 2e 61 63 73 2e 63 6f 6d |@alembic|.acs.com|
|00003880| 0a 58 20 2a 20 4d 6f 64 | 69 66 69 65 64 20 74 6f |.X * Mod|ified to|
|00003890| 20 72 65 63 75 72 73 69 | 76 65 6c 79 20 63 6f 6d | recursi|vely com|
|000038a0| 70 72 65 73 73 20 64 69 | 72 65 63 74 6f 72 69 65 |press di|rectorie|
|000038b0| 73 20 28 27 72 27 20 66 | 6c 61 67 29 2e 20 41 73 |s ('r' f|lag). As|
|000038c0| 20 61 20 73 69 64 65 0a | 58 20 2a 20 65 66 66 65 | a side.|X * effe|
|000038d0| 63 74 2c 20 63 6f 6d 70 | 72 65 73 73 20 77 69 6c |ct, comp|ress wil|
|000038e0| 6c 20 6e 6f 20 6c 6f 6e | 67 65 72 20 61 74 74 65 |l no lon|ger atte|
|000038f0| 6d 70 74 20 74 6f 20 63 | 6f 6d 70 72 65 73 73 20 |mpt to c|ompress |
|00003900| 74 68 69 6e 67 73 20 74 | 68 61 74 0a 58 20 2a 20 |things t|hat.X * |
|00003910| 61 72 65 6e 27 74 20 22 | 72 65 67 75 6c 61 72 22 |aren't "|regular"|
|00003920| 20 66 69 6c 65 73 2e 20 | 53 65 65 20 43 68 61 6e | files. |See Chan|
|00003930| 67 65 73 2e 0a 58 20 2a | 0a 58 20 2a 20 52 65 76 |ges..X *|.X * Rev|
|00003940| 69 73 69 6f 6e 20 34 2e | 30 20 20 38 35 2f 30 37 |ision 4.|0 85/07|
|00003950| 2f 33 30 20 20 31 32 3a | 35 30 3a 30 30 20 20 6a |/30 12:|50:00 j|
|00003960| 6f 65 0a 58 20 2a 20 52 | 65 6d 6f 76 65 64 20 66 |oe.X * R|emoved f|
|00003970| 65 72 72 6f 72 28 29 20 | 63 61 6c 6c 73 20 69 6e |error() |calls in|
|00003980| 20 6f 75 74 70 75 74 20 | 72 6f 75 74 69 6e 65 20 | output |routine |
|00003990| 6f 6e 20 65 76 65 72 79 | 20 6f 75 74 70 75 74 20 |on every| output |
|000039a0| 65 78 63 65 70 74 20 66 | 69 72 73 74 2e 0a 58 20 |except f|irst..X |
|000039b0| 2a 20 50 72 65 70 61 72 | 65 64 20 66 6f 72 20 72 |* Prepar|ed for r|
|000039c0| 65 6c 65 61 73 65 20 74 | 6f 20 74 68 65 20 77 6f |elease t|o the wo|
|000039d0| 72 6c 64 2e 0a 58 20 2a | 20 0a 58 20 2a 20 52 65 |rld..X *| .X * Re|
|000039e0| 76 69 73 69 6f 6e 20 33 | 2e 36 20 20 38 35 2f 30 |vision 3|.6 85/0|
|000039f0| 37 2f 30 34 20 20 30 31 | 3a 32 32 3a 32 31 20 20 |7/04 01|:22:21 |
|00003a00| 6a 6f 65 0a 58 20 2a 20 | 52 65 6d 6f 76 65 20 6d |joe.X * |Remove m|
|00003a10| 75 63 68 20 77 61 73 74 | 65 64 20 73 74 6f 72 61 |uch wast|ed stora|
|00003a20| 67 65 20 62 79 20 6f 76 | 65 72 6c 61 79 69 6e 67 |ge by ov|erlaying|
|00003a30| 20 68 61 73 68 20 74 61 | 62 6c 65 20 77 69 74 68 | hash ta|ble with|
|00003a40| 20 74 68 65 20 74 61 62 | 6c 65 73 0a 58 20 2a 20 | the tab|les.X * |
|00003a50| 75 73 65 64 20 62 79 20 | 64 65 63 6f 6d 70 72 65 |used by |decompre|
|00003a60| 73 73 3a 20 74 61 62 5f | 73 75 66 66 69 78 5b 31 |ss: tab_|suffix[1|
|00003a70| 3c 3c 42 49 54 53 5d 2c | 20 73 74 61 63 6b 5b 38 |<<BITS],| stack[8|
|00003a80| 30 30 30 5d 2e 20 20 55 | 70 64 61 74 65 64 20 55 |000]. U|pdated U|
|00003a90| 53 45 52 4d 45 4d 0a 58 | 20 2a 20 63 6f 6d 70 75 |SERMEM.X| * compu|
|00003aa0| 74 61 74 69 6f 6e 73 2e | 20 20 46 69 78 65 64 20 |tations.| Fixed |
|00003ab0| 64 75 6d 70 5f 74 61 62 | 28 29 20 44 45 42 55 47 |dump_tab|() DEBUG|
|00003ac0| 20 72 6f 75 74 69 6e 65 | 2e 0a 58 20 2a 0a 58 20 | routine|..X *.X |
|00003ad0| 2a 20 52 65 76 69 73 69 | 6f 6e 20 33 2e 35 20 20 |* Revisi|on 3.5 |
|00003ae0| 38 35 2f 30 36 2f 33 30 | 20 20 32 30 3a 34 37 3a |85/06/30| 20:47:|
|00003af0| 32 31 20 20 6a 61 77 0a | 58 20 2a 20 43 68 61 6e |21 jaw.|X * Chan|
|00003b00| 67 65 20 68 61 73 68 20 | 66 75 6e 63 74 69 6f 6e |ge hash |function|
|00003b10| 20 74 6f 20 75 73 65 20 | 65 78 63 6c 75 73 69 76 | to use |exclusiv|
|00003b20| 65 2d 6f 72 2e 20 20 52 | 69 70 20 6f 75 74 20 68 |e-or. R|ip out h|
|00003b30| 61 73 68 20 63 61 63 68 | 65 2e 20 20 54 68 65 73 |ash cach|e. Thes|
|00003b40| 65 0a 58 20 2a 20 73 70 | 65 65 64 75 70 73 20 72 |e.X * sp|eedups r|
|00003b50| 65 6e 64 65 72 20 74 68 | 65 20 6d 65 67 61 6d 65 |ender th|e megame|
|00003b60| 6d 6f 72 79 20 76 65 72 | 73 69 6f 6e 20 64 65 66 |mory ver|sion def|
|00003b70| 75 6e 63 74 2c 20 66 6f | 72 20 6e 6f 77 2e 20 20 |unct, fo|r now. |
|00003b80| 4d 61 6b 65 20 64 65 63 | 6f 64 65 72 0a 58 20 2a |Make dec|oder.X *|
|00003b90| 20 73 74 61 63 6b 20 67 | 6c 6f 62 61 6c 2e 20 20 | stack g|lobal. |
|00003ba0| 50 61 72 74 73 20 6f 66 | 20 74 68 65 20 52 43 53 |Parts of| the RCS|
|00003bb0| 20 74 72 75 6e 6b 73 20 | 32 2e 37 2c 20 32 2e 36 | trunks |2.7, 2.6|
|00003bc0| 2c 20 61 6e 64 20 32 2e | 31 20 6e 6f 20 6c 6f 6e |, and 2.|1 no lon|
|00003bd0| 67 65 72 20 61 70 70 6c | 79 2e 0a 58 20 2a 0a 58 |ger appl|y..X *.X|
|00003be0| 20 2a 20 52 65 76 69 73 | 69 6f 6e 20 33 2e 34 20 | * Revis|ion 3.4 |
|00003bf0| 20 38 35 2f 30 36 2f 32 | 37 20 20 31 32 3a 30 30 | 85/06/2|7 12:00|
|00003c00| 3a 30 30 20 20 6b 65 6e | 0a 58 20 2a 20 47 65 74 |:00 ken|.X * Get|
|00003c10| 20 72 69 64 20 6f 66 20 | 61 6c 6c 20 66 6c 6f 61 | rid of |all floa|
|00003c20| 74 69 6e 67 2d 70 6f 69 | 6e 74 20 63 61 6c 63 75 |ting-poi|nt calcu|
|00003c30| 6c 61 74 69 6f 6e 73 20 | 62 79 20 64 6f 69 6e 67 |lations |by doing|
|00003c40| 20 61 6c 6c 20 63 6f 6d | 70 72 65 73 73 69 6f 6e | all com|pression|
|00003c50| 20 72 61 74 69 6f 0a 58 | 20 2a 20 63 61 6c 63 75 | ratio.X| * calcu|
|00003c60| 6c 61 74 69 6f 6e 73 20 | 69 6e 20 66 69 78 65 64 |lations |in fixed|
|00003c70| 20 70 6f 69 6e 74 2e 0a | 58 20 2a 0a 58 20 2a 20 | point..|X *.X * |
|00003c80| 52 65 76 69 73 69 6f 6e | 20 33 2e 33 20 20 38 35 |Revision| 3.3 85|
|00003c90| 2f 30 36 2f 32 34 20 20 | 32 31 3a 35 33 3a 32 34 |/06/24 |21:53:24|
|00003ca0| 20 20 6a 6f 65 0a 58 20 | 2a 20 49 6e 63 6f 72 70 | joe.X |* Incorp|
|00003cb0| 6f 72 61 74 65 20 70 6f | 72 74 61 62 69 6c 69 74 |orate po|rtabilit|
|00003cc0| 79 20 73 75 67 67 65 73 | 74 69 6f 6e 20 66 6f 72 |y sugges|tion for|
|00003cd0| 20 4d 5f 58 45 4e 49 58 | 2e 20 20 47 6f 74 20 72 | M_XENIX|. Got r|
|00003ce0| 69 64 20 6f 66 20 74 65 | 78 74 20 6f 6e 20 23 65 |id of te|xt on #e|
|00003cf0| 6c 73 65 0a 58 20 2a 20 | 61 6e 64 20 23 65 6e 64 |lse.X * |and #end|
|00003d00| 69 66 20 6c 69 6e 65 73 | 2e 20 20 43 6c 65 61 6e |if lines|. Clean|
|00003d10| 65 64 20 75 70 20 23 69 | 66 64 65 66 73 20 66 6f |ed up #i|fdefs fo|
|00003d20| 72 20 76 61 78 20 61 6e | 64 20 69 6e 74 65 72 64 |r vax an|d interd|
|00003d30| 61 74 61 2e 0a 58 20 2a | 0a 58 20 2a 20 52 65 76 |ata..X *|.X * Rev|
|00003d40| 69 73 69 6f 6e 20 33 2e | 32 20 20 38 35 2f 30 36 |ision 3.|2 85/06|
|00003d50| 2f 30 36 20 20 32 31 3a | 35 33 3a 32 34 20 20 6a |/06 21:|53:24 j|
|00003d60| 61 77 0a 58 20 2a 20 49 | 6e 63 6f 72 70 6f 72 61 |aw.X * I|ncorpora|
|00003d70| 74 65 20 70 6f 72 74 61 | 62 69 6c 69 74 79 20 73 |te porta|bility s|
|00003d80| 75 67 67 65 73 74 69 6f | 6e 73 20 66 6f 72 20 5a |uggestio|ns for Z|
|00003d90| 38 30 30 30 2c 20 49 42 | 4d 20 50 43 2f 58 54 20 |8000, IB|M PC/XT |
|00003da0| 66 72 6f 6d 20 6d 61 69 | 6c 69 6e 67 20 6c 69 73 |from mai|ling lis|
|00003db0| 74 2e 0a 58 20 2a 20 44 | 65 66 61 75 6c 74 20 74 |t..X * D|efault t|
|00003dc0| 6f 20 22 71 75 69 65 74 | 22 20 6f 75 74 70 75 74 |o "quiet|" output|
|00003dd0| 20 28 6e 6f 20 63 6f 6d | 70 72 65 73 73 69 6f 6e | (no com|pression|
|00003de0| 20 73 74 61 74 69 73 74 | 69 63 73 29 2e 0a 58 20 | statist|ics)..X |
|00003df0| 2a 0a 58 20 2a 20 52 65 | 76 69 73 69 6f 6e 20 33 |*.X * Re|vision 3|
|00003e00| 2e 31 20 20 38 35 2f 30 | 35 2f 31 32 20 20 31 38 |.1 85/0|5/12 18|
|00003e10| 3a 35 36 3a 31 33 20 20 | 6a 61 77 0a 58 20 2a 20 |:56:13 |jaw.X * |
|00003e20| 49 6e 74 65 67 72 61 74 | 65 20 64 65 63 6f 6d 70 |Integrat|e decomp|
|00003e30| 72 65 73 73 28 29 20 73 | 74 61 63 6b 20 73 70 65 |ress() s|tack spe|
|00003e40| 65 64 75 70 73 20 28 66 | 72 6f 6d 20 65 61 72 6c |edups (f|rom earl|
|00003e50| 79 20 70 6f 69 6e 74 65 | 72 20 6d 6f 64 73 20 62 |y pointe|r mods b|
|00003e60| 79 20 4d 63 4b 69 65 29 | 2e 0a 58 20 2a 20 52 65 |y McKie)|..X * Re|
|00003e70| 70 61 69 72 20 6d 75 6c | 74 69 2d 66 69 6c 65 20 |pair mul|ti-file |
|00003e80| 55 53 45 52 4d 45 4d 20 | 67 61 66 66 65 2e 20 20 |USERMEM |gaffe. |
|00003e90| 55 6e 69 66 79 20 27 66 | 6f 72 63 65 27 20 66 6c |Unify 'f|orce' fl|
|00003ea0| 61 67 73 20 74 6f 20 6d | 69 6d 69 63 20 73 65 6d |ags to m|imic sem|
|00003eb0| 61 6e 74 69 63 73 0a 58 | 20 2a 20 6f 66 20 53 56 |antics.X| * of SV|
|00003ec0| 52 32 20 27 70 61 63 6b | 27 2e 20 20 53 74 72 65 |R2 'pack|'. Stre|
|00003ed0| 61 6d 6c 69 6e 65 20 62 | 6c 6f 63 6b 2d 63 6f 6d |amline b|lock-com|
|00003ee0| 70 72 65 73 73 20 74 61 | 62 6c 65 20 63 6c 65 61 |press ta|ble clea|
|00003ef0| 72 20 6c 6f 67 69 63 2e | 20 20 49 6e 63 72 65 61 |r logic.| Increa|
|00003f00| 73 65 20 0a 58 20 2a 20 | 6f 75 74 70 75 74 20 62 |se .X * |output b|
|00003f10| 79 74 65 20 63 6f 75 6e | 74 20 62 79 20 6d 61 67 |yte coun|t by mag|
|00003f20| 69 63 20 6e 75 6d 62 65 | 72 20 73 69 7a 65 2e 0a |ic numbe|r size..|
|00003f30| 58 20 2a 20 0a 58 20 2a | 20 52 65 76 69 73 69 6f |X * .X *| Revisio|
|00003f40| 6e 20 33 2e 30 20 20 20 | 38 34 2f 31 31 2f 32 37 |n 3.0 |84/11/27|
|00003f50| 20 20 31 31 3a 35 30 3a | 30 30 20 20 70 65 74 73 | 11:50:|00 pets|
|00003f60| 64 21 6a 6f 65 0a 58 20 | 2a 20 53 65 74 20 48 53 |d!joe.X |* Set HS|
|00003f70| 49 5a 45 20 64 65 70 65 | 6e 64 69 6e 67 20 6f 6e |IZE depe|nding on|
|00003f80| 20 42 49 54 53 2e 20 20 | 53 65 74 20 42 49 54 53 | BITS. |Set BITS|
|00003f90| 20 64 65 70 65 6e 64 69 | 6e 67 20 6f 6e 20 55 53 | dependi|ng on US|
|00003fa0| 45 52 4d 45 4d 2e 20 20 | 55 6e 72 6f 6c 6c 65 64 |ERMEM. |Unrolled|
|00003fb0| 0a 58 20 2a 20 6c 6f 6f | 70 73 20 69 6e 20 63 6c |.X * loo|ps in cl|
|00003fc0| 65 61 72 20 72 6f 75 74 | 69 6e 65 73 2e 20 20 41 |ear rout|ines. A|
|00003fd0| 64 64 65 64 20 22 2d 43 | 22 20 66 6c 61 67 20 66 |dded "-C|" flag f|
|00003fe0| 6f 72 20 32 2e 30 20 63 | 6f 6d 70 61 74 69 62 69 |or 2.0 c|ompatibi|
|00003ff0| 6c 69 74 79 2e 20 20 55 | 73 65 64 0a 58 20 2a 20 |lity. U|sed.X * |
|00004000| 75 6e 73 69 67 6e 65 64 | 20 63 6f 6d 70 61 72 65 |unsigned| compare|
|00004010| 73 20 6f 6e 20 50 65 72 | 6b 69 6e 2d 45 6c 6d 65 |s on Per|kin-Elme|
|00004020| 72 2e 20 20 46 69 78 65 | 64 20 66 6f 72 65 67 72 |r. Fixe|d foregr|
|00004030| 6f 75 6e 64 20 63 68 65 | 63 6b 2e 0a 58 20 2a 0a |ound che|ck..X *.|
|00004040| 58 20 2a 20 52 65 76 69 | 73 69 6f 6e 20 32 2e 37 |X * Revi|sion 2.7|
|00004050| 20 20 20 38 34 2f 31 31 | 2f 31 36 20 20 31 39 3a | 84/11|/16 19:|
|00004060| 33 35 3a 33 39 20 20 61 | 6d 65 73 21 6a 61 77 0a |35:39 a|mes!jaw.|
|00004070| 58 20 2a 20 43 61 63 68 | 65 20 63 6f 6d 6d 6f 6e |X * Cach|e common|
|00004080| 20 68 61 73 68 20 63 6f | 64 65 73 20 62 61 73 65 | hash co|des base|
|00004090| 64 20 6f 6e 20 69 6e 70 | 75 74 20 73 74 61 74 69 |d on inp|ut stati|
|000040a0| 73 74 69 63 73 3b 20 74 | 68 69 73 20 69 6d 70 72 |stics; t|his impr|
|000040b0| 6f 76 65 73 0a 58 20 2a | 20 70 65 72 66 6f 72 6d |oves.X *| perform|
|000040c0| 61 6e 63 65 20 66 6f 72 | 20 6c 6f 77 2d 64 65 6e |ance for| low-den|
|000040d0| 73 69 74 79 20 72 61 73 | 74 65 72 20 69 6d 61 67 |sity ras|ter imag|
|000040e0| 65 73 2e 20 20 50 61 73 | 73 20 6f 6e 20 23 69 66 |es. Pas|s on #if|
|000040f0| 64 65 66 20 62 75 6e 64 | 6c 65 0a 58 20 2a 20 66 |def bund|le.X * f|
|00004100| 72 6f 6d 20 54 75 72 6b | 6f 77 73 6b 69 2e 0a 58 |rom Turk|owski..X|
|00004110| 20 2a 0a 58 20 2a 20 52 | 65 76 69 73 69 6f 6e 20 | *.X * R|evision |
|00004120| 32 2e 36 20 20 20 38 34 | 2f 31 31 2f 30 35 20 20 |2.6 84|/11/05 |
|00004130| 31 39 3a 31 38 3a 32 31 | 20 20 61 6d 65 73 21 6a |19:18:21| ames!j|
|00004140| 61 77 0a 58 20 2a 20 56 | 61 72 79 20 73 69 7a 65 |aw.X * V|ary size|
|00004150| 20 6f 66 20 68 61 73 68 | 20 74 61 62 6c 65 73 20 | of hash| tables |
|00004160| 74 6f 20 72 65 64 75 63 | 65 20 74 69 6d 65 20 66 |to reduc|e time f|
|00004170| 6f 72 20 73 6d 61 6c 6c | 20 66 69 6c 65 73 2e 0a |or small| files..|
|00004180| 58 20 2a 20 54 75 6e 65 | 20 50 44 50 2d 31 31 20 |X * Tune| PDP-11 |
|00004190| 68 61 73 68 20 66 75 6e | 63 74 69 6f 6e 2e 0a 58 |hash fun|ction..X|
|000041a0| 20 2a 0a 58 20 2a 20 52 | 65 76 69 73 69 6f 6e 20 | *.X * R|evision |
|000041b0| 32 2e 35 20 20 20 38 34 | 2f 31 30 2f 33 30 20 20 |2.5 84|/10/30 |
|000041c0| 32 30 3a 31 35 3a 31 34 | 20 20 61 6d 65 73 21 6a |20:15:14| ames!j|
|000041d0| 61 77 0a 58 20 2a 20 4a | 75 6e 6b 20 63 68 61 69 |aw.X * J|unk chai|
|000041e0| 6e 69 6e 67 3b 20 72 65 | 70 6c 61 63 65 20 77 69 |ning; re|place wi|
|000041f0| 74 68 20 74 68 65 20 73 | 69 6d 70 6c 65 72 20 28 |th the s|impler (|
|00004200| 61 6e 64 2c 20 6f 6e 20 | 74 68 65 20 56 41 58 2c |and, on |the VAX,|
|00004210| 20 66 61 73 74 65 72 29 | 0a 58 20 2a 20 64 6f 75 | faster)|.X * dou|
|00004220| 62 6c 65 20 68 61 73 68 | 69 6e 67 2c 20 64 69 73 |ble hash|ing, dis|
|00004230| 63 75 73 73 65 64 20 77 | 69 74 68 69 6e 2e 20 20 |cussed w|ithin. |
|00004240| 4d 61 6b 65 20 62 6c 6f | 63 6b 20 63 6f 6d 70 72 |Make blo|ck compr|
|00004250| 65 73 73 69 6f 6e 20 73 | 74 61 6e 64 61 72 64 2e |ession s|tandard.|
|00004260| 0a 58 20 2a 0a 58 20 2a | 20 52 65 76 69 73 69 6f |.X *.X *| Revisio|
|00004270| 6e 20 32 2e 34 20 20 20 | 38 34 2f 31 30 2f 31 36 |n 2.4 |84/10/16|
|00004280| 20 20 31 31 3a 31 31 3a | 31 31 20 20 61 6d 65 73 | 11:11:|11 ames|
|00004290| 21 6a 61 77 0a 58 20 2a | 20 49 6e 74 72 6f 64 75 |!jaw.X *| Introdu|
|000042a0| 63 65 20 61 64 61 70 74 | 69 76 65 20 72 65 73 65 |ce adapt|ive rese|
|000042b0| 74 20 66 6f 72 20 62 6c | 6f 63 6b 20 63 6f 6d 70 |t for bl|ock comp|
|000042c0| 72 65 73 73 69 6f 6e 2c | 20 74 6f 20 62 6f 6f 73 |ression,| to boos|
|000042d0| 74 20 74 68 65 20 72 61 | 74 65 0a 58 20 2a 20 61 |t the ra|te.X * a|
|000042e0| 6e 6f 74 68 65 72 20 73 | 65 76 65 72 61 6c 20 70 |nother s|everal p|
|000042f0| 65 72 63 65 6e 74 2e 20 | 20 28 53 65 65 20 6d 61 |ercent. | (See ma|
|00004300| 69 6c 69 6e 67 20 6c 69 | 73 74 20 6e 6f 74 65 73 |iling li|st notes|
|00004310| 2e 29 0a 58 20 2a 0a 58 | 20 2a 20 52 65 76 69 73 |.).X *.X| * Revis|
|00004320| 69 6f 6e 20 32 2e 33 20 | 20 20 38 34 2f 30 39 2f |ion 2.3 | 84/09/|
|00004330| 32 32 20 20 32 32 3a 30 | 30 3a 30 30 20 20 70 65 |22 22:0|0:00 pe|
|00004340| 74 73 64 21 6a 6f 65 0a | 58 20 2a 20 49 6d 70 6c |tsd!joe.|X * Impl|
|00004350| 65 6d 65 6e 74 65 64 20 | 22 2d 42 22 20 62 6c 6f |emented |"-B" blo|
|00004360| 63 6b 20 63 6f 6d 70 72 | 65 73 73 2e 20 20 49 6d |ck compr|ess. Im|
|00004370| 70 6c 65 6d 65 6e 74 65 | 64 20 52 45 56 45 52 53 |plemente|d REVERS|
|00004380| 45 20 73 6f 72 74 69 6e | 67 20 6f 66 20 74 61 62 |E sortin|g of tab|
|00004390| 5f 6e 65 78 74 2e 0a 58 | 20 2a 20 42 75 67 20 66 |_next..X| * Bug f|
|000043a0| 69 78 20 66 6f 72 20 6c | 61 73 74 20 62 69 74 73 |ix for l|ast bits|
|000043b0| 2e 20 20 43 68 61 6e 67 | 65 64 20 66 77 72 69 74 |. Chang|ed fwrit|
|000043c0| 65 20 74 6f 20 70 75 74 | 63 68 61 72 20 6c 6f 6f |e to put|char loo|
|000043d0| 70 20 65 76 65 72 79 77 | 68 65 72 65 2e 0a 58 20 |p everyw|here..X |
|000043e0| 2a 0a 58 20 2a 20 52 65 | 76 69 73 69 6f 6e 20 32 |*.X * Re|vision 2|
|000043f0| 2e 32 20 20 20 38 34 2f | 30 39 2f 31 38 20 20 31 |.2 84/|09/18 1|
|00004400| 34 3a 31 32 3a 32 31 20 | 20 61 6d 65 73 21 6a 61 |4:12:21 | ames!ja|
|00004410| 77 0a 58 20 2a 20 46 6f | 6c 64 20 69 6e 20 6e 65 |w.X * Fo|ld in ne|
|00004420| 77 73 20 63 68 61 6e 67 | 65 73 2c 20 73 6d 61 6c |ws chang|es, smal|
|00004430| 6c 20 6d 61 63 68 69 6e | 65 20 74 79 70 65 64 65 |l machin|e typede|
|00004440| 66 20 66 72 6f 6d 20 74 | 68 6f 6d 61 73 2c 0a 58 |f from t|homas,.X|
|00004450| 20 2a 20 23 69 66 64 65 | 66 20 69 6e 74 65 72 64 | * #ifde|f interd|
|00004460| 61 74 61 20 66 72 6f 6d | 20 6a 6f 65 2e 0a 58 20 |ata from| joe..X |
|00004470| 2a 0a 58 20 2a 20 52 65 | 76 69 73 69 6f 6e 20 32 |*.X * Re|vision 2|
|00004480| 2e 31 20 20 20 38 34 2f | 30 39 2f 31 30 20 20 31 |.1 84/|09/10 1|
|00004490| 32 3a 33 34 3a 35 36 20 | 20 61 6d 65 73 21 6a 61 |2:34:56 | ames!ja|
|000044a0| 77 0a 58 20 2a 20 43 6f | 6e 66 69 67 75 72 65 64 |w.X * Co|nfigured|
|000044b0| 20 66 61 73 74 20 74 61 | 62 6c 65 20 6c 6f 6f 6b | fast ta|ble look|
|000044c0| 75 70 20 66 6f 72 20 33 | 32 2d 62 69 74 20 6d 61 |up for 3|2-bit ma|
|000044d0| 63 68 69 6e 65 73 2e 0a | 58 20 2a 20 54 68 69 73 |chines..|X * This|
|000044e0| 20 63 75 74 73 20 75 73 | 65 72 20 74 69 6d 65 20 | cuts us|er time |
|000044f0| 69 6e 20 68 61 6c 66 20 | 66 6f 72 20 62 20 3c 3d |in half |for b <=|
|00004500| 20 46 42 49 54 53 2c 20 | 61 6e 64 20 69 73 20 75 | FBITS, |and is u|
|00004510| 73 65 66 75 6c 20 66 6f | 72 20 6e 65 77 73 20 62 |seful fo|r news b|
|00004520| 61 74 63 68 69 6e 67 0a | 58 20 2a 20 66 72 6f 6d |atching.|X * from|
|00004530| 20 56 41 58 20 74 6f 20 | 50 44 50 20 73 69 74 65 | VAX to |PDP site|
|00004540| 73 2e 20 20 41 6c 73 6f | 20 73 70 65 64 20 75 70 |s. Also| sped up|
|00004550| 20 64 65 63 6f 6d 70 72 | 65 73 73 28 29 20 5b 66 | decompr|ess() [f|
|00004560| 77 72 69 74 65 2d 3e 70 | 75 74 63 5d 20 61 6e 64 |write->p|utc] and|
|00004570| 0a 58 20 2a 20 61 64 64 | 65 64 20 73 69 67 6e 61 |.X * add|ed signa|
|00004580| 6c 20 63 61 74 63 68 65 | 72 20 5b 70 6c 75 73 20 |l catche|r [plus |
|00004590| 62 65 65 66 20 69 6e 20 | 77 72 69 74 65 65 72 72 |beef in |writeerr|
|000045a0| 28 29 5d 20 74 6f 20 64 | 65 6c 65 74 65 20 65 66 |()] to d|elete ef|
|000045b0| 66 6c 75 76 69 61 2e 0a | 58 20 2a 0a 58 20 2a 20 |fluvia..|X *.X * |
|000045c0| 52 65 76 69 73 69 6f 6e | 20 32 2e 30 20 20 20 38 |Revision| 2.0 8|
|000045d0| 34 2f 30 38 2f 32 38 20 | 20 32 32 3a 30 30 3a 30 |4/08/28 | 22:00:0|
|000045e0| 30 20 20 70 65 74 73 64 | 21 6a 6f 65 0a 58 20 2a |0 petsd|!joe.X *|
|000045f0| 20 41 64 64 20 63 68 65 | 63 6b 20 66 6f 72 20 66 | Add che|ck for f|
|00004600| 6f 72 65 67 72 6f 75 6e | 64 20 62 65 66 6f 72 65 |oregroun|d before|
|00004610| 20 70 72 6f 6d 70 74 69 | 6e 67 20 75 73 65 72 2e | prompti|ng user.|
|00004620| 20 20 49 6e 73 65 72 74 | 20 6d 61 78 62 69 74 73 | Insert| maxbits|
|00004630| 20 69 6e 74 6f 0a 58 20 | 2a 20 63 6f 6d 70 72 65 | into.X |* compre|
|00004640| 73 73 65 64 20 66 69 6c | 65 2e 20 20 46 6f 72 63 |ssed fil|e. Forc|
|00004650| 65 20 66 69 6c 65 20 62 | 65 69 6e 67 20 75 6e 63 |e file b|eing unc|
|00004660| 6f 6d 70 72 65 73 73 65 | 64 20 74 6f 20 65 6e 64 |ompresse|d to end|
|00004670| 20 77 69 74 68 20 22 2e | 5a 22 2e 0a 58 20 2a 20 | with ".|Z"..X * |
|00004680| 41 64 64 65 64 20 22 2d | 63 22 20 66 6c 61 67 20 |Added "-|c" flag |
|00004690| 61 6e 64 20 22 7a 63 61 | 74 22 2e 20 20 50 72 65 |and "zca|t". Pre|
|000046a0| 70 61 72 65 64 20 66 6f | 72 20 72 65 6c 65 61 73 |pared fo|r releas|
|000046b0| 65 2e 0a 58 20 2a 0a 58 | 20 2a 20 52 65 76 69 73 |e..X *.X| * Revis|
|000046c0| 69 6f 6e 20 31 2e 31 30 | 20 20 38 34 2f 30 38 2f |ion 1.10| 84/08/|
|000046d0| 32 34 20 20 31 38 3a 32 | 38 3a 30 30 20 20 74 75 |24 18:2|8:00 tu|
|000046e0| 72 74 6c 65 76 61 78 21 | 6b 65 6e 0a 58 20 2a 20 |rtlevax!|ken.X * |
|000046f0| 57 69 6c 6c 20 6f 6e 6c | 79 20 63 6f 6d 70 72 65 |Will onl|y compre|
|00004700| 73 73 20 72 65 67 75 6c | 61 72 20 66 69 6c 65 73 |ss regul|ar files|
|00004710| 20 28 6e 6f 20 64 69 72 | 65 63 74 6f 72 69 65 73 | (no dir|ectories|
|00004720| 29 2c 20 61 64 64 65 64 | 20 61 20 6d 61 67 69 63 |), added| a magic|
|00004730| 20 6e 75 6d 62 65 72 0a | 58 20 2a 20 68 65 61 64 | number.|X * head|
|00004740| 65 72 20 28 70 6c 75 73 | 20 61 6e 20 75 6e 64 6f |er (plus| an undo|
|00004750| 63 75 6d 65 6e 74 65 64 | 20 2d 6e 20 66 6c 61 67 |cumented| -n flag|
|00004760| 20 74 6f 20 68 61 6e 64 | 6c 65 20 6f 6c 64 20 66 | to hand|le old f|
|00004770| 69 6c 65 73 20 77 69 74 | 68 6f 75 74 20 68 65 61 |iles wit|hout hea|
|00004780| 64 65 72 73 29 2c 0a 58 | 20 2a 20 61 64 64 65 64 |ders),.X| * added|
|00004790| 20 2d 66 20 66 6c 61 67 | 20 74 6f 20 66 6f 72 63 | -f flag| to forc|
|000047a0| 65 20 6f 76 65 72 77 72 | 69 74 69 6e 67 20 6f 66 |e overwr|iting of|
|000047b0| 20 70 6f 73 73 69 62 6c | 79 20 65 78 69 73 74 69 | possibl|y existi|
|000047c0| 6e 67 20 64 65 73 74 69 | 6e 61 74 69 6f 6e 20 66 |ng desti|nation f|
|000047d0| 69 6c 65 2c 0a 58 20 2a | 20 6f 74 68 65 72 77 69 |ile,.X *| otherwi|
|000047e0| 73 65 20 74 68 65 20 75 | 73 65 72 20 69 73 20 70 |se the u|ser is p|
|000047f0| 72 6f 6d 70 74 65 64 20 | 66 6f 72 20 61 20 72 65 |rompted |for a re|
|00004800| 73 70 6f 6e 73 65 2e 20 | 20 57 69 6c 6c 20 74 61 |sponse. | Will ta|
|00004810| 63 6b 20 6f 6e 20 61 20 | 2e 5a 20 74 6f 20 61 0a |ck on a |.Z to a.|
|00004820| 58 20 2a 20 66 69 6c 65 | 6e 61 6d 65 20 69 66 20 |X * file|name if |
|00004830| 69 74 20 64 6f 65 73 6e | 27 74 20 68 61 76 65 20 |it doesn|'t have |
|00004840| 6f 6e 65 20 77 68 65 6e | 20 64 65 63 6f 6d 70 72 |one when| decompr|
|00004850| 65 73 73 69 6e 67 2e 20 | 20 57 69 6c 6c 20 6f 6e |essing. | Will on|
|00004860| 6c 79 20 72 65 70 6c 61 | 63 65 0a 58 20 2a 20 66 |ly repla|ce.X * f|
|00004870| 69 6c 65 20 69 66 20 69 | 74 20 77 61 73 20 63 6f |ile if i|t was co|
|00004880| 6d 70 72 65 73 73 65 64 | 2e 0a 58 20 2a 0a 58 20 |mpressed|..X *.X |
|00004890| 2a 20 52 65 76 69 73 69 | 6f 6e 20 31 2e 39 20 20 |* Revisi|on 1.9 |
|000048a0| 38 34 2f 30 38 2f 31 36 | 20 20 31 37 3a 32 38 3a |84/08/16| 17:28:|
|000048b0| 30 30 20 20 74 75 72 74 | 6c 65 76 61 78 21 6b 65 |00 turt|levax!ke|
|000048c0| 6e 0a 58 20 2a 20 52 65 | 6d 6f 76 65 64 20 73 63 |n.X * Re|moved sc|
|000048d0| 61 6e 61 72 67 73 28 29 | 2c 20 67 65 74 6f 70 74 |anargs()|, getopt|
|000048e0| 28 29 2c 20 61 64 64 65 | 64 20 2e 5a 20 65 78 74 |(), adde|d .Z ext|
|000048f0| 65 6e 73 69 6f 6e 20 61 | 6e 64 20 75 6e 6c 69 6d |ension a|nd unlim|
|00004900| 69 74 65 64 20 6e 75 6d | 62 65 72 20 6f 66 0a 58 |ited num|ber of.X|
|00004910| 20 2a 20 66 69 6c 65 6e | 61 6d 65 73 20 74 6f 20 | * filen|ames to |
|00004920| 63 6f 6d 70 72 65 73 73 | 2e 20 20 46 6c 61 67 73 |compress|. Flags|
|00004930| 20 6d 61 79 20 62 65 20 | 63 6c 75 73 74 65 72 65 | may be |clustere|
|00004940| 64 20 28 2d 44 64 76 62 | 31 32 29 20 6f 72 20 73 |d (-Ddvb|12) or s|
|00004950| 65 70 61 72 61 74 65 64 | 0a 58 20 2a 20 28 2d 44 |eparated|.X * (-D|
|00004960| 20 2d 64 20 2d 76 20 2d | 62 20 31 32 29 2c 20 6f | -d -v -|b 12), o|
|00004970| 72 20 63 6f 6d 62 69 6e | 61 74 69 6f 6e 20 74 68 |r combin|ation th|
|00004980| 65 72 65 6f 66 2e 20 20 | 4d 6f 64 65 73 20 61 6e |ereof. |Modes an|
|00004990| 64 20 6f 74 68 65 72 20 | 73 74 61 74 75 73 20 69 |d other |status i|
|000049a0| 73 0a 58 20 2a 20 63 6f | 70 69 65 64 20 77 69 74 |s.X * co|pied wit|
|000049b0| 68 20 63 6f 70 79 73 74 | 61 74 28 29 2e 20 20 2d |h copyst|at(). -|
|000049c0| 4f 20 62 75 67 20 66 6f | 72 20 34 2e 32 20 73 65 |O bug fo|r 4.2 se|
|000049d0| 65 6d 73 20 74 6f 20 68 | 61 76 65 20 64 69 73 61 |ems to h|ave disa|
|000049e0| 70 70 65 61 72 65 64 20 | 77 69 74 68 0a 58 20 2a |ppeared |with.X *|
|000049f0| 20 31 2e 38 2e 0a 58 20 | 2a 0a 58 20 2a 20 52 65 | 1.8..X |*.X * Re|
|00004a00| 76 69 73 69 6f 6e 20 31 | 2e 38 20 20 38 34 2f 30 |vision 1|.8 84/0|
|00004a10| 38 2f 30 39 20 20 32 33 | 3a 31 35 3a 30 30 20 20 |8/09 23|:15:00 |
|00004a20| 6a 6f 65 0a 58 20 2a 20 | 4d 61 64 65 20 69 74 20 |joe.X * |Made it |
|00004a30| 63 6f 6d 70 61 74 69 62 | 6c 65 20 77 69 74 68 20 |compatib|le with |
|00004a40| 76 61 78 20 76 65 72 73 | 69 6f 6e 2c 20 69 6e 73 |vax vers|ion, ins|
|00004a50| 74 61 6c 6c 65 64 20 6a | 69 6d 27 73 20 66 69 78 |talled j|im's fix|
|00004a60| 65 73 2f 65 6e 68 61 6e | 63 65 6d 65 6e 74 73 0a |es/enhan|cements.|
|00004a70| 58 20 2a 0a 58 20 2a 20 | 52 65 76 69 73 69 6f 6e |X *.X * |Revision|
|00004a80| 20 31 2e 36 20 20 38 34 | 2f 30 38 2f 30 31 20 20 | 1.6 84|/08/01 |
|00004a90| 32 32 3a 30 38 3a 30 30 | 20 20 6a 6f 65 0a 58 20 |22:08:00| joe.X |
|00004aa0| 2a 20 53 70 65 64 20 75 | 70 20 61 6c 67 6f 72 69 |* Sped u|p algori|
|00004ab0| 74 68 6d 20 73 69 67 6e | 69 66 69 63 61 6e 74 6c |thm sign|ificantl|
|00004ac0| 79 20 62 79 20 73 6f 72 | 74 69 6e 67 20 74 68 65 |y by sor|ting the|
|00004ad0| 20 63 6f 6d 70 72 65 73 | 73 20 63 68 61 69 6e 2e | compres|s chain.|
|00004ae0| 0a 58 20 2a 0a 58 20 2a | 20 52 65 76 69 73 69 6f |.X *.X *| Revisio|
|00004af0| 6e 20 31 2e 35 20 20 38 | 34 2f 30 37 2f 31 33 20 |n 1.5 8|4/07/13 |
|00004b00| 20 31 33 3a 31 31 3a 30 | 30 20 20 73 72 64 0a 58 | 13:11:0|0 srd.X|
|00004b10| 20 2a 20 41 64 64 65 64 | 20 43 20 76 65 72 73 69 | * Added| C versi|
|00004b20| 6f 6e 20 6f 66 20 76 61 | 78 20 61 73 6d 20 72 6f |on of va|x asm ro|
|00004b30| 75 74 69 6e 65 73 2e 20 | 20 43 68 61 6e 67 65 64 |utines. | Changed|
|00004b40| 20 73 74 72 75 63 74 75 | 72 65 20 74 6f 20 61 72 | structu|re to ar|
|00004b50| 72 61 79 73 20 74 6f 0a | 58 20 2a 20 73 61 76 65 |rays to.|X * save|
|00004b60| 20 6d 75 63 68 20 6d 65 | 6d 6f 72 79 2e 20 20 44 | much me|mory. D|
|00004b70| 6f 20 75 6e 73 69 67 6e | 65 64 20 63 6f 6d 70 61 |o unsign|ed compa|
|00004b80| 72 65 73 20 77 68 65 72 | 65 20 70 6f 73 73 69 62 |res wher|e possib|
|00004b90| 6c 65 20 28 66 61 73 74 | 65 72 20 6f 6e 0a 58 20 |le (fast|er on.X |
|00004ba0| 2a 20 50 65 72 6b 69 6e | 2d 45 6c 6d 65 72 29 0a |* Perkin|-Elmer).|
|00004bb0| 58 20 2a 0a 58 20 2a 20 | 52 65 76 69 73 69 6f 6e |X *.X * |Revision|
|00004bc0| 20 31 2e 34 20 20 38 34 | 2f 30 37 2f 30 35 20 20 | 1.4 84|/07/05 |
|00004bd0| 30 33 3a 31 31 3a 31 31 | 20 20 74 68 6f 6d 61 73 |03:11:11| thomas|
|00004be0| 0a 58 20 2a 20 43 6c 65 | 61 6e 20 75 70 20 74 68 |.X * Cle|an up th|
|00004bf0| 65 20 63 6f 64 65 20 61 | 20 6c 69 74 74 6c 65 20 |e code a| little |
|00004c00| 61 6e 64 20 6c 69 6e 74 | 20 69 74 2e 20 20 28 4c |and lint| it. (L|
|00004c10| 69 6e 74 20 63 6f 6d 70 | 6c 61 69 6e 73 20 61 62 |int comp|lains ab|
|00004c20| 6f 75 74 20 61 6c 6c 0a | 58 20 2a 20 74 68 65 20 |out all.|X * the |
|00004c30| 72 65 67 73 20 75 73 65 | 64 20 69 6e 20 74 68 65 |regs use|d in the|
|00004c40| 20 61 73 6d 2c 20 62 75 | 74 20 49 27 6d 20 6e 6f | asm, bu|t I'm no|
|00004c50| 74 20 67 6f 69 6e 67 20 | 74 6f 20 22 66 69 78 22 |t going |to "fix"|
|00004c60| 20 74 68 69 73 2e 29 0a | 58 20 2a 0a 58 20 2a 20 | this.).|X *.X * |
|00004c70| 52 65 76 69 73 69 6f 6e | 20 31 2e 33 20 20 38 34 |Revision| 1.3 84|
|00004c80| 2f 30 37 2f 30 35 20 20 | 30 32 3a 30 36 3a 35 34 |/07/05 |02:06:54|
|00004c90| 20 20 74 68 6f 6d 61 73 | 0a 58 20 2a 20 4d 69 6e | thomas|.X * Min|
|00004ca0| 6f 72 20 66 69 78 65 73 | 2e 0a 58 20 2a 0a 58 20 |or fixes|..X *.X |
|00004cb0| 2a 20 52 65 76 69 73 69 | 6f 6e 20 31 2e 32 20 20 |* Revisi|on 1.2 |
|00004cc0| 38 34 2f 30 37 2f 30 35 | 20 20 30 30 3a 32 37 3a |84/07/05| 00:27:|
|00004cd0| 32 37 20 20 74 68 6f 6d | 61 73 0a 58 20 2a 20 41 |27 thom|as.X * A|
|00004ce0| 64 64 20 76 61 72 69 61 | 62 6c 65 20 62 69 74 20 |dd varia|ble bit |
|00004cf0| 6c 65 6e 67 74 68 20 6f | 75 74 70 75 74 2e 0a 58 |length o|utput..X|
|00004d00| 20 2a 0a 58 20 2a 2f 0a | 58 73 74 61 74 69 63 20 | *.X */.|Xstatic |
|00004d10| 63 68 61 72 20 76 65 72 | 73 69 6f 6e 5f 69 64 5b |char ver|sion_id[|
|00004d20| 5d 20 3d 20 22 63 6f 6d | 70 72 65 73 73 2e 63 20 |] = "com|press.c |
|00004d30| 34 2e 31 22 3b 0a 58 0a | 58 23 69 6e 63 6c 75 64 |4.1";.X.|X#includ|
|00004d40| 65 20 3c 73 74 64 69 6f | 2e 68 3e 0a 58 23 69 6e |e <stdio|.h>.X#in|
|00004d50| 63 6c 75 64 65 20 3c 63 | 74 79 70 65 2e 68 3e 0a |clude <c|type.h>.|
|00004d60| 58 23 69 6e 63 6c 75 64 | 65 20 3c 73 69 67 6e 61 |X#includ|e <signa|
|00004d70| 6c 2e 68 3e 0a 58 23 69 | 6e 63 6c 75 64 65 20 3c |l.h>.X#i|nclude <|
|00004d80| 73 79 73 2f 74 79 70 65 | 73 2e 68 3e 0a 58 23 69 |sys/type|s.h>.X#i|
|00004d90| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 73 74 61 74 |nclude <|sys/stat|
|00004da0| 2e 68 3e 0a 58 23 69 66 | 6e 64 65 66 20 44 49 52 |.h>.X#if|ndef DIR|
|00004db0| 45 4e 54 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 73 |ENT.X#in|clude <s|
|00004dc0| 79 73 2f 64 69 72 2e 68 | 3e 0a 58 23 65 6c 73 65 |ys/dir.h|>.X#else|
|00004dd0| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 64 69 72 65 |.X#inclu|de <dire|
|00004de0| 6e 74 2e 68 3e 0a 58 23 | 65 6e 64 69 66 0a 58 23 |nt.h>.X#|endif.X#|
|00004df0| 69 6e 63 6c 75 64 65 20 | 3c 65 72 72 6e 6f 2e 68 |include |<errno.h|
|00004e00| 3e 0a 58 65 78 74 65 72 | 6e 20 69 6e 74 20 65 72 |>.Xexter|n int er|
|00004e10| 72 6e 6f 3b 0a 58 0a 58 | 23 69 6e 63 6c 75 64 65 |rno;.X.X|#include|
|00004e20| 20 22 70 61 74 63 68 6c | 65 76 65 6c 2e 68 22 0a | "patchl|evel.h".|
|00004e30| 58 0a 58 23 64 65 66 69 | 6e 65 20 41 52 47 56 41 |X.X#defi|ne ARGVA|
|00004e40| 4c 28 29 20 28 2a 2b 2b | 28 2a 61 72 67 76 29 20 |L() (*++|(*argv) |
|00004e50| 7c 7c 20 28 2d 2d 61 72 | 67 63 20 26 26 20 2a 2b ||| (--ar|gc && *+|
|00004e60| 2b 61 72 67 76 29 29 0a | 58 0a 58 69 6e 74 20 6e |+argv)).|X.Xint n|
|00004e70| 5f 62 69 74 73 3b 09 09 | 09 09 2f 2a 20 6e 75 6d |_bits;..|../* num|
|00004e80| 62 65 72 20 6f 66 20 62 | 69 74 73 2f 63 6f 64 65 |ber of b|its/code|
|00004e90| 20 2a 2f 0a 58 69 6e 74 | 20 6d 61 78 62 69 74 73 | */.Xint| maxbits|
|00004ea0| 20 3d 20 42 49 54 53 3b | 09 09 09 2f 2a 20 75 73 | = BITS;|.../* us|
|00004eb0| 65 72 20 73 65 74 74 61 | 62 6c 65 20 6d 61 78 20 |er setta|ble max |
|00004ec0| 23 20 62 69 74 73 2f 63 | 6f 64 65 20 2a 2f 0a 58 |# bits/c|ode */.X|
|00004ed0| 63 6f 64 65 5f 69 6e 74 | 20 6d 61 78 63 6f 64 65 |code_int| maxcode|
|00004ee0| 3b 09 09 09 2f 2a 20 6d | 61 78 69 6d 75 6d 20 63 |;.../* m|aximum c|
|00004ef0| 6f 64 65 2c 20 67 69 76 | 65 6e 20 6e 5f 62 69 74 |ode, giv|en n_bit|
|00004f00| 73 20 2a 2f 0a 58 63 6f | 64 65 5f 69 6e 74 20 6d |s */.Xco|de_int m|
|00004f10| 61 78 6d 61 78 63 6f 64 | 65 20 3d 20 31 20 3c 3c |axmaxcod|e = 1 <<|
|00004f20| 20 42 49 54 53 3b 09 2f | 2a 20 73 68 6f 75 6c 64 | BITS;./|* should|
|00004f30| 20 4e 45 56 45 52 20 67 | 65 6e 65 72 61 74 65 20 | NEVER g|enerate |
|00004f40| 74 68 69 73 20 63 6f 64 | 65 20 2a 2f 0a 58 23 69 |this cod|e */.X#i|
|00004f50| 66 64 65 66 20 43 4f 4d | 50 41 54 49 42 4c 45 09 |fdef COM|PATIBLE.|
|00004f60| 09 2f 2a 20 42 75 74 20 | 77 72 6f 6e 67 21 20 2a |./* But |wrong! *|
|00004f70| 2f 0a 58 23 20 64 65 66 | 69 6e 65 20 4d 41 58 43 |/.X# def|ine MAXC|
|00004f80| 4f 44 45 28 6e 5f 62 69 | 74 73 29 09 28 31 20 3c |ODE(n_bi|ts).(1 <|
|00004f90| 3c 20 28 6e 5f 62 69 74 | 73 29 20 2d 20 31 29 0a |< (n_bit|s) - 1).|
|00004fa0| 58 23 65 6c 73 65 0a 58 | 23 20 64 65 66 69 6e 65 |X#else.X|# define|
|00004fb0| 20 4d 41 58 43 4f 44 45 | 28 6e 5f 62 69 74 73 29 | MAXCODE|(n_bits)|
|00004fc0| 09 28 28 31 20 3c 3c 20 | 28 6e 5f 62 69 74 73 29 |.((1 << |(n_bits)|
|00004fd0| 29 20 2d 20 31 29 0a 58 | 23 65 6e 64 69 66 20 2f |) - 1).X|#endif /|
|00004fe0| 2a 20 43 4f 4d 50 41 54 | 49 42 4c 45 20 2a 2f 0a |* COMPAT|IBLE */.|
|00004ff0| 58 0a 58 23 69 66 64 65 | 66 20 58 45 4e 49 58 5f |X.X#ifde|f XENIX_|
|00005000| 31 36 0a 58 63 6f 75 6e | 74 5f 69 6e 74 20 68 74 |16.Xcoun|t_int ht|
|00005010| 61 62 30 5b 38 31 39 32 | 5d 3b 0a 58 63 6f 75 6e |ab0[8192|];.Xcoun|
|00005020| 74 5f 69 6e 74 20 68 74 | 61 62 31 5b 38 31 39 32 |t_int ht|ab1[8192|
|00005030| 5d 3b 0a 58 63 6f 75 6e | 74 5f 69 6e 74 20 68 74 |];.Xcoun|t_int ht|
|00005040| 61 62 32 5b 38 31 39 32 | 5d 3b 0a 58 63 6f 75 6e |ab2[8192|];.Xcoun|
|00005050| 74 5f 69 6e 74 20 68 74 | 61 62 33 5b 38 31 39 32 |t_int ht|ab3[8192|
|00005060| 5d 3b 0a 58 63 6f 75 6e | 74 5f 69 6e 74 20 68 74 |];.Xcoun|t_int ht|
|00005070| 61 62 34 5b 38 31 39 32 | 5d 3b 0a 58 63 6f 75 6e |ab4[8192|];.Xcoun|
|00005080| 74 5f 69 6e 74 20 68 74 | 61 62 35 5b 38 31 39 32 |t_int ht|ab5[8192|
|00005090| 5d 3b 0a 58 63 6f 75 6e | 74 5f 69 6e 74 20 68 74 |];.Xcoun|t_int ht|
|000050a0| 61 62 36 5b 38 31 39 32 | 5d 3b 0a 58 63 6f 75 6e |ab6[8192|];.Xcoun|
|000050b0| 74 5f 69 6e 74 20 68 74 | 61 62 37 5b 38 31 39 32 |t_int ht|ab7[8192|
|000050c0| 5d 3b 0a 58 63 6f 75 6e | 74 5f 69 6e 74 20 68 74 |];.Xcoun|t_int ht|
|000050d0| 61 62 38 5b 48 53 49 5a | 45 2d 36 35 35 33 36 5d |ab8[HSIZ|E-65536]|
|000050e0| 3b 0a 58 63 6f 75 6e 74 | 5f 69 6e 74 20 2a 20 68 |;.Xcount|_int * h|
|000050f0| 74 61 62 5b 39 5d 20 3d | 20 7b 0a 58 09 68 74 61 |tab[9] =| {.X.hta|
|00005100| 62 30 2c 20 68 74 61 62 | 31 2c 20 68 74 61 62 32 |b0, htab|1, htab2|
|00005110| 2c 20 68 74 61 62 33 2c | 20 68 74 61 62 34 2c 20 |, htab3,| htab4, |
|00005120| 68 74 61 62 35 2c 20 68 | 74 61 62 36 2c 20 68 74 |htab5, h|tab6, ht|
|00005130| 61 62 37 2c 20 68 74 61 | 62 38 20 7d 3b 0a 58 0a |ab7, hta|b8 };.X.|
|00005140| 58 23 64 65 66 69 6e 65 | 20 68 74 61 62 6f 66 28 |X#define| htabof(|
|00005150| 69 29 09 28 68 74 61 62 | 5b 28 69 29 20 3e 3e 20 |i).(htab|[(i) >> |
|00005160| 31 33 5d 5b 28 69 29 20 | 26 20 30 78 31 66 66 66 |13][(i) |& 0x1fff|
|00005170| 5d 29 0a 58 75 6e 73 69 | 67 6e 65 64 20 73 68 6f |]).Xunsi|gned sho|
|00005180| 72 74 20 63 6f 64 65 30 | 74 61 62 5b 31 36 33 38 |rt code0|tab[1638|
|00005190| 34 5d 3b 0a 58 75 6e 73 | 69 67 6e 65 64 20 73 68 |4];.Xuns|igned sh|
|000051a0| 6f 72 74 20 63 6f 64 65 | 31 74 61 62 5b 31 36 33 |ort code|1tab[163|
|000051b0| 38 34 5d 3b 0a 58 75 6e | 73 69 67 6e 65 64 20 73 |84];.Xun|signed s|
|000051c0| 68 6f 72 74 20 63 6f 64 | 65 32 74 61 62 5b 31 36 |hort cod|e2tab[16|
|000051d0| 33 38 34 5d 3b 0a 58 75 | 6e 73 69 67 6e 65 64 20 |384];.Xu|nsigned |
|000051e0| 73 68 6f 72 74 20 63 6f | 64 65 33 74 61 62 5b 31 |short co|de3tab[1|
|000051f0| 36 33 38 34 5d 3b 0a 58 | 75 6e 73 69 67 6e 65 64 |6384];.X|unsigned|
|00005200| 20 73 68 6f 72 74 20 63 | 6f 64 65 34 74 61 62 5b | short c|ode4tab[|
|00005210| 31 36 33 38 34 5d 3b 0a | 58 75 6e 73 69 67 6e 65 |16384];.|Xunsigne|
|00005220| 64 20 73 68 6f 72 74 20 | 2a 20 63 6f 64 65 74 61 |d short |* codeta|
|00005230| 62 5b 35 5d 20 3d 20 7b | 0a 58 09 63 6f 64 65 30 |b[5] = {|.X.code0|
|00005240| 74 61 62 2c 20 63 6f 64 | 65 31 74 61 62 2c 20 63 |tab, cod|e1tab, c|
|00005250| 6f 64 65 32 74 61 62 2c | 20 63 6f 64 65 33 74 61 |ode2tab,| code3ta|
|00005260| 62 2c 20 63 6f 64 65 34 | 74 61 62 20 7d 3b 0a 58 |b, code4|tab };.X|
|00005270| 0a 58 23 64 65 66 69 6e | 65 20 63 6f 64 65 74 61 |.X#defin|e codeta|
|00005280| 62 6f 66 28 69 29 09 28 | 63 6f 64 65 74 61 62 5b |bof(i).(|codetab[|
|00005290| 28 69 29 20 3e 3e 20 31 | 34 5d 5b 28 69 29 20 26 |(i) >> 1|4][(i) &|
|000052a0| 20 30 78 33 66 66 66 5d | 29 0a 58 0a 58 23 65 6c | 0x3fff]|).X.X#el|
|000052b0| 73 65 09 2f 2a 20 4e 6f | 72 6d 61 6c 20 6d 61 63 |se./* No|rmal mac|
|000052c0| 68 69 6e 65 20 2a 2f 0a | 58 63 6f 75 6e 74 5f 69 |hine */.|Xcount_i|
|000052d0| 6e 74 20 68 74 61 62 20 | 5b 48 53 49 5a 45 5d 3b |nt htab |[HSIZE];|
|000052e0| 0a 58 75 6e 73 69 67 6e | 65 64 20 73 68 6f 72 74 |.Xunsign|ed short|
|000052f0| 20 63 6f 64 65 74 61 62 | 20 5b 48 53 49 5a 45 5d | codetab| [HSIZE]|
|00005300| 3b 0a 58 23 64 65 66 69 | 6e 65 20 68 74 61 62 6f |;.X#defi|ne htabo|
|00005310| 66 28 69 29 09 68 74 61 | 62 5b 69 5d 0a 58 23 64 |f(i).hta|b[i].X#d|
|00005320| 65 66 69 6e 65 20 63 6f | 64 65 74 61 62 6f 66 28 |efine co|detabof(|
|00005330| 69 29 09 63 6f 64 65 74 | 61 62 5b 69 5d 0a 58 23 |i).codet|ab[i].X#|
|00005340| 65 6e 64 69 66 09 2f 2a | 20 58 45 4e 49 58 5f 31 |endif./*| XENIX_1|
|00005350| 36 20 2a 2f 0a 58 63 6f | 64 65 5f 69 6e 74 20 68 |6 */.Xco|de_int h|
|00005360| 73 69 7a 65 20 3d 20 48 | 53 49 5a 45 3b 09 09 09 |size = H|SIZE;...|
|00005370| 2f 2a 20 66 6f 72 20 64 | 79 6e 61 6d 69 63 20 74 |/* for d|ynamic t|
|00005380| 61 62 6c 65 20 73 69 7a | 69 6e 67 20 2a 2f 0a 58 |able siz|ing */.X|
|00005390| 63 6f 75 6e 74 5f 69 6e | 74 20 66 73 69 7a 65 3b |count_in|t fsize;|
|000053a0| 0a 58 0a 58 2f 2a 0a 58 | 20 2a 20 54 6f 20 73 61 |.X.X/*.X| * To sa|
|000053b0| 76 65 20 6d 75 63 68 20 | 6d 65 6d 6f 72 79 2c 20 |ve much |memory, |
|000053c0| 77 65 20 6f 76 65 72 6c | 61 79 20 74 68 65 20 74 |we overl|ay the t|
|000053d0| 61 62 6c 65 20 75 73 65 | 64 20 62 79 20 63 6f 6d |able use|d by com|
|000053e0| 70 72 65 73 73 28 29 20 | 77 69 74 68 20 74 68 6f |press() |with tho|
|000053f0| 73 65 0a 58 20 2a 20 75 | 73 65 64 20 62 79 20 64 |se.X * u|sed by d|
|00005400| 65 63 6f 6d 70 72 65 73 | 73 28 29 2e 20 20 54 68 |ecompres|s(). Th|
|00005410| 65 20 74 61 62 5f 70 72 | 65 66 69 78 20 74 61 62 |e tab_pr|efix tab|
|00005420| 6c 65 20 69 73 20 74 68 | 65 20 73 61 6d 65 20 73 |le is th|e same s|
|00005430| 69 7a 65 20 61 6e 64 20 | 74 79 70 65 0a 58 20 2a |ize and |type.X *|
|00005440| 20 61 73 20 74 68 65 20 | 63 6f 64 65 74 61 62 2e | as the |codetab.|
|00005450| 20 20 54 68 65 20 74 61 | 62 5f 73 75 66 66 69 78 | The ta|b_suffix|
|00005460| 20 74 61 62 6c 65 20 6e | 65 65 64 73 20 32 2a 2a | table n|eeds 2**|
|00005470| 42 49 54 53 20 63 68 61 | 72 61 63 74 65 72 73 2e |BITS cha|racters.|
|00005480| 20 20 57 65 0a 58 20 2a | 20 67 65 74 20 74 68 69 | We.X *| get thi|
|00005490| 73 20 66 72 6f 6d 20 74 | 68 65 20 62 65 67 69 6e |s from t|he begin|
|000054a0| 6e 69 6e 67 20 6f 66 20 | 68 74 61 62 2e 20 20 54 |ning of |htab. T|
|000054b0| 68 65 20 6f 75 74 70 75 | 74 20 73 74 61 63 6b 20 |he outpu|t stack |
|000054c0| 75 73 65 73 20 74 68 65 | 20 72 65 73 74 0a 58 20 |uses the| rest.X |
|000054d0| 2a 20 6f 66 20 68 74 61 | 62 2c 20 61 6e 64 20 63 |* of hta|b, and c|
|000054e0| 6f 6e 74 61 69 6e 73 20 | 63 68 61 72 61 63 74 65 |ontains |characte|
|000054f0| 72 73 2e 20 20 54 68 65 | 72 65 20 69 73 20 70 6c |rs. The|re is pl|
|00005500| 65 6e 74 79 20 6f 66 20 | 72 6f 6f 6d 20 66 6f 72 |enty of |room for|
|00005510| 20 61 6e 79 0a 58 20 2a | 20 70 6f 73 73 69 62 6c | any.X *| possibl|
|00005520| 65 20 73 74 61 63 6b 20 | 28 73 74 61 63 6b 20 75 |e stack |(stack u|
|00005530| 73 65 64 20 74 6f 20 62 | 65 20 38 30 30 30 20 63 |sed to b|e 8000 c|
|00005540| 68 61 72 61 63 74 65 72 | 73 29 2e 0a 58 20 2a 2f |haracter|s)..X */|
|00005550| 0a 58 0a 58 23 64 65 66 | 69 6e 65 20 74 61 62 5f |.X.X#def|ine tab_|
|00005560| 70 72 65 66 69 78 6f 66 | 28 69 29 09 63 6f 64 65 |prefixof|(i).code|
|00005570| 74 61 62 6f 66 28 69 29 | 0a 58 23 69 66 64 65 66 |tabof(i)|.X#ifdef|
|00005580| 20 58 45 4e 49 58 5f 31 | 36 0a 58 23 20 64 65 66 | XENIX_1|6.X# def|
|00005590| 69 6e 65 20 74 61 62 5f | 73 75 66 66 69 78 6f 66 |ine tab_|suffixof|
|000055a0| 28 69 29 09 28 28 63 68 | 61 72 5f 74 79 70 65 20 |(i).((ch|ar_type |
|000055b0| 2a 29 68 74 61 62 5b 28 | 69 29 3e 3e 31 35 5d 29 |*)htab[(|i)>>15])|
|000055c0| 5b 28 69 29 20 26 20 30 | 78 37 66 66 66 5d 0a 58 |[(i) & 0|x7fff].X|
|000055d0| 23 20 64 65 66 69 6e 65 | 20 64 65 5f 73 74 61 63 |# define| de_stac|
|000055e0| 6b 09 09 28 28 63 68 61 | 72 5f 74 79 70 65 20 2a |k..((cha|r_type *|
|000055f0| 29 28 68 74 61 62 32 29 | 29 0a 58 23 65 6c 73 65 |)(htab2)|).X#else|
|00005600| 09 2f 2a 20 4e 6f 72 6d | 61 6c 20 6d 61 63 68 69 |./* Norm|al machi|
|00005610| 6e 65 20 2a 2f 0a 58 23 | 20 64 65 66 69 6e 65 20 |ne */.X#| define |
|00005620| 74 61 62 5f 73 75 66 66 | 69 78 6f 66 28 69 29 09 |tab_suff|ixof(i).|
|00005630| 28 28 63 68 61 72 5f 74 | 79 70 65 20 2a 29 28 68 |((char_t|ype *)(h|
|00005640| 74 61 62 29 29 5b 69 5d | 0a 58 23 20 64 65 66 69 |tab))[i]|.X# defi|
|00005650| 6e 65 20 64 65 5f 73 74 | 61 63 6b 09 09 28 28 63 |ne de_st|ack..((c|
|00005660| 68 61 72 5f 74 79 70 65 | 20 2a 29 26 74 61 62 5f |har_type| *)&tab_|
|00005670| 73 75 66 66 69 78 6f 66 | 28 31 3c 3c 42 49 54 53 |suffixof|(1<<BITS|
|00005680| 29 29 0a 58 23 65 6e 64 | 69 66 09 2f 2a 20 58 45 |)).X#end|if./* XE|
|00005690| 4e 49 58 5f 31 36 20 2a | 2f 0a 58 0a 58 63 6f 64 |NIX_16 *|/.X.Xcod|
|000056a0| 65 5f 69 6e 74 20 66 72 | 65 65 5f 65 6e 74 20 3d |e_int fr|ee_ent =|
|000056b0| 20 30 3b 09 09 09 2f 2a | 20 66 69 72 73 74 20 75 | 0;.../*| first u|
|000056c0| 6e 75 73 65 64 20 65 6e | 74 72 79 20 2a 2f 0a 58 |nused en|try */.X|
|000056d0| 69 6e 74 20 65 78 69 74 | 5f 73 74 61 74 20 3d 20 |int exit|_stat = |
|000056e0| 30 3b 0a 58 0a 58 63 6f | 64 65 5f 69 6e 74 20 67 |0;.X.Xco|de_int g|
|000056f0| 65 74 63 6f 64 65 28 29 | 3b 0a 58 0a 58 55 73 61 |etcode()|;.X.XUsa|
|00005700| 67 65 28 29 20 7b 0a 58 | 23 69 66 64 65 66 20 44 |ge() {.X|#ifdef D|
|00005710| 45 42 55 47 0a 58 66 70 | 72 69 6e 74 66 28 73 74 |EBUG.Xfp|rintf(st|
|00005720| 64 65 72 72 2c 22 55 73 | 61 67 65 3a 20 63 6f 6d |derr,"Us|age: com|
|00005730| 70 72 65 73 73 20 5b 2d | 64 44 56 66 63 72 5d 20 |press [-|dDVfcr] |
|00005740| 5b 2d 62 20 6d 61 78 62 | 69 74 73 5d 20 5b 66 69 |[-b maxb|its] [fi|
|00005750| 6c 65 20 2e 2e 2e 5d 5c | 6e 22 29 3b 0a 58 7d 0a |le ...]\|n");.X}.|
|00005760| 58 69 6e 74 20 64 65 62 | 75 67 20 3d 20 30 3b 0a |Xint deb|ug = 0;.|
|00005770| 58 23 65 6c 73 65 0a 58 | 66 70 72 69 6e 74 66 28 |X#else.X|fprintf(|
|00005780| 73 74 64 65 72 72 2c 22 | 55 73 61 67 65 3a 20 63 |stderr,"|Usage: c|
|00005790| 6f 6d 70 72 65 73 73 20 | 5b 2d 64 66 76 63 56 72 |ompress |[-dfvcVr|
|000057a0| 5d 20 5b 2d 62 20 6d 61 | 78 62 69 74 73 5d 20 5b |] [-b ma|xbits] [|
|000057b0| 66 69 6c 65 20 2e 2e 2e | 5d 5c 6e 22 29 3b 0a 58 |file ...|]\n");.X|
|000057c0| 7d 0a 58 23 65 6e 64 69 | 66 20 2f 2a 20 44 45 42 |}.X#endi|f /* DEB|
|000057d0| 55 47 20 2a 2f 0a 58 69 | 6e 74 20 6e 6f 6d 61 67 |UG */.Xi|nt nomag|
|000057e0| 69 63 20 3d 20 30 3b 09 | 2f 2a 20 55 73 65 20 61 |ic = 0;.|/* Use a|
|000057f0| 20 33 2d 62 79 74 65 20 | 6d 61 67 69 63 20 6e 75 | 3-byte |magic nu|
|00005800| 6d 62 65 72 20 68 65 61 | 64 65 72 2c 20 75 6e 6c |mber hea|der, unl|
|00005810| 65 73 73 20 6f 6c 64 20 | 66 69 6c 65 20 2a 2f 0a |ess old |file */.|
|00005820| 58 69 6e 74 20 7a 63 61 | 74 5f 66 6c 67 20 3d 20 |Xint zca|t_flg = |
|00005830| 30 3b 09 2f 2a 20 57 72 | 69 74 65 20 6f 75 74 70 |0;./* Wr|ite outp|
|00005840| 75 74 20 6f 6e 20 73 74 | 64 6f 75 74 2c 20 73 75 |ut on st|dout, su|
|00005850| 70 70 72 65 73 73 20 6d | 65 73 73 61 67 65 73 20 |ppress m|essages |
|00005860| 2a 2f 0a 58 69 6e 74 20 | 71 75 69 65 74 20 3d 20 |*/.Xint |quiet = |
|00005870| 31 3b 09 09 2f 2a 20 64 | 6f 6e 27 74 20 74 65 6c |1;../* d|on't tel|
|00005880| 6c 20 6d 65 20 61 62 6f | 75 74 20 63 6f 6d 70 72 |l me abo|ut compr|
|00005890| 65 73 73 69 6f 6e 20 2a | 2f 0a 58 0a 58 2f 2a 0a |ession *|/.X.X/*.|
|000058a0| 58 20 2a 20 62 6c 6f 63 | 6b 20 63 6f 6d 70 72 65 |X * bloc|k compre|
|000058b0| 73 73 69 6f 6e 20 70 61 | 72 61 6d 65 74 65 72 73 |ssion pa|rameters|
|000058c0| 20 2d 2d 20 61 66 74 65 | 72 20 61 6c 6c 20 63 6f | -- afte|r all co|
|000058d0| 64 65 73 20 61 72 65 20 | 75 73 65 64 20 75 70 2c |des are |used up,|
|000058e0| 0a 58 20 2a 20 61 6e 64 | 20 63 6f 6d 70 72 65 73 |.X * and| compres|
|000058f0| 73 69 6f 6e 20 72 61 74 | 65 20 63 68 61 6e 67 65 |sion rat|e change|
|00005900| 73 2c 20 73 74 61 72 74 | 20 6f 76 65 72 2e 0a 58 |s, start| over..X|
|00005910| 20 2a 2f 0a 58 69 6e 74 | 20 62 6c 6f 63 6b 5f 63 | */.Xint| block_c|
|00005920| 6f 6d 70 72 65 73 73 20 | 3d 20 42 4c 4f 43 4b 5f |ompress |= BLOCK_|
|00005930| 4d 41 53 4b 3b 0a 58 69 | 6e 74 20 63 6c 65 61 72 |MASK;.Xi|nt clear|
|00005940| 5f 66 6c 67 20 3d 20 30 | 3b 0a 58 6c 6f 6e 67 20 |_flg = 0|;.Xlong |
|00005950| 69 6e 74 20 72 61 74 69 | 6f 20 3d 20 30 3b 0a 58 |int rati|o = 0;.X|
|00005960| 23 69 66 20 42 49 54 53 | 20 3d 3d 20 31 36 0a 58 |#if BITS| == 16.X|
|00005970| 23 64 65 66 69 6e 65 20 | 43 48 45 43 4b 5f 47 41 |#define |CHECK_GA|
|00005980| 50 20 35 30 30 30 30 09 | 2f 2a 20 72 61 74 69 6f |P 50000.|/* ratio|
|00005990| 20 63 68 65 63 6b 20 69 | 6e 74 65 72 76 61 6c 20 | check i|nterval |
|000059a0| 72 65 63 6f 6d 6d 65 6e | 64 65 64 20 62 79 20 6a |recommen|ded by j|
|000059b0| 61 77 20 2a 2f 0a 58 23 | 65 6c 73 65 0a 58 23 64 |aw */.X#|else.X#d|
|000059c0| 65 66 69 6e 65 20 43 48 | 45 43 4b 5f 47 41 50 20 |efine CH|ECK_GAP |
|000059d0| 31 30 30 30 30 09 2f 2a | 20 72 61 74 69 6f 20 63 |10000./*| ratio c|
|000059e0| 68 65 63 6b 20 69 6e 74 | 65 72 76 61 6c 20 2a 2f |heck int|erval */|
|000059f0| 0a 58 23 65 6e 64 69 66 | 0a 58 63 6f 75 6e 74 5f |.X#endif|.Xcount_|
|00005a00| 69 6e 74 20 63 68 65 63 | 6b 70 6f 69 6e 74 20 3d |int chec|kpoint =|
|00005a10| 20 43 48 45 43 4b 5f 47 | 41 50 3b 0a 58 2f 2a 0a | CHECK_G|AP;.X/*.|
|00005a20| 58 20 2a 20 74 68 65 20 | 6e 65 78 74 20 74 77 6f |X * the |next two|
|00005a30| 20 63 6f 64 65 73 20 73 | 68 6f 75 6c 64 20 6e 6f | codes s|hould no|
|00005a40| 74 20 62 65 20 63 68 61 | 6e 67 65 64 20 6c 69 67 |t be cha|nged lig|
|00005a50| 68 74 6c 79 2c 20 61 73 | 20 74 68 65 79 20 6d 75 |htly, as| they mu|
|00005a60| 73 74 20 6e 6f 74 0a 58 | 20 2a 20 6c 69 65 20 77 |st not.X| * lie w|
|00005a70| 69 74 68 69 6e 20 74 68 | 65 20 63 6f 6e 74 69 67 |ithin th|e contig|
|00005a80| 75 6f 75 73 20 67 65 6e | 65 72 61 6c 20 63 6f 64 |uous gen|eral cod|
|00005a90| 65 20 73 70 61 63 65 2e | 0a 58 20 2a 2f 20 0a 58 |e space.|.X */ .X|
|00005aa0| 23 64 65 66 69 6e 65 20 | 46 49 52 53 54 09 32 35 |#define |FIRST.25|
|00005ab0| 37 09 2f 2a 20 66 69 72 | 73 74 20 66 72 65 65 20 |7./* fir|st free |
|00005ac0| 65 6e 74 72 79 20 2a 2f | 0a 58 23 64 65 66 69 6e |entry */|.X#defin|
|00005ad0| 65 09 43 4c 45 41 52 09 | 32 35 36 09 2f 2a 20 74 |e.CLEAR.|256./* t|
|00005ae0| 61 62 6c 65 20 63 6c 65 | 61 72 20 6f 75 74 70 75 |able cle|ar outpu|
|00005af0| 74 20 63 6f 64 65 20 2a | 2f 0a 58 0a 58 69 6e 74 |t code *|/.X.Xint|
|00005b00| 20 66 6f 72 63 65 20 3d | 20 30 3b 0a 58 63 68 61 | force =| 0;.Xcha|
|00005b10| 72 20 6f 66 6e 61 6d 65 | 20 5b 31 30 30 5d 3b 0a |r ofname| [100];.|
|00005b20| 58 23 69 66 64 65 66 20 | 44 45 42 55 47 0a 58 69 |X#ifdef |DEBUG.Xi|
|00005b30| 6e 74 20 76 65 72 62 6f | 73 65 20 3d 20 30 3b 0a |nt verbo|se = 0;.|
|00005b40| 58 23 65 6e 64 69 66 20 | 2f 2a 20 44 45 42 55 47 |X#endif |/* DEBUG|
|00005b50| 20 2a 2f 0a 58 0a 58 23 | 69 66 6e 64 65 66 09 56 | */.X.X#|ifndef.V|
|00005b60| 4f 49 44 53 49 47 0a 58 | 69 6e 74 20 28 2a 62 67 |OIDSIG.X|int (*bg|
|00005b70| 6e 64 5f 66 6c 61 67 29 | 28 29 3b 0a 58 23 65 6c |nd_flag)|();.X#el|
|00005b80| 73 65 0a 58 76 6f 69 64 | 20 28 2a 62 67 6e 64 5f |se.Xvoid| (*bgnd_|
|00005b90| 66 6c 61 67 29 28 29 3b | 0a 58 23 65 6e 64 69 66 |flag)();|.X#endif|
|00005ba0| 09 2f 2a 20 56 4f 49 44 | 53 49 47 20 2a 2f 0a 58 |./* VOID|SIG */.X|
|00005bb0| 0a 58 0a 58 69 6e 74 20 | 64 6f 5f 64 65 63 6f 6d |.X.Xint |do_decom|
|00005bc0| 70 20 3d 20 30 3b 0a 58 | 0a 58 2f 2a 2a 2a 2a 2a |p = 0;.X|.X/*****|
|00005bd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005be0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005bf0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005c00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 58 20 2a |********|****.X *|
|00005c10| 20 54 41 47 28 20 6d 61 | 69 6e 20 29 0a 58 20 2a | TAG( ma|in ).X *|
|00005c20| 0a 58 20 2a 20 41 6c 67 | 6f 72 69 74 68 6d 20 66 |.X * Alg|orithm f|
|00005c30| 72 6f 6d 20 22 41 20 54 | 65 63 68 6e 69 71 75 65 |rom "A T|echnique|
|00005c40| 20 66 6f 72 20 48 69 67 | 68 20 50 65 72 66 6f 72 | for Hig|h Perfor|
|00005c50| 6d 61 6e 63 65 20 44 61 | 74 61 20 43 6f 6d 70 72 |mance Da|ta Compr|
|00005c60| 65 73 73 69 6f 6e 22 2c | 0a 58 20 2a 20 54 65 72 |ession",|.X * Ter|
|00005c70| 72 79 20 41 2e 20 57 65 | 6c 63 68 2c 20 49 45 45 |ry A. We|lch, IEE|
|00005c80| 45 20 43 6f 6d 70 75 74 | 65 72 20 56 6f 6c 20 31 |E Comput|er Vol 1|
|00005c90| 37 2c 20 4e 6f 20 36 20 | 28 4a 75 6e 65 20 31 39 |7, No 6 |(June 19|
|00005ca0| 38 34 29 2c 20 70 70 20 | 38 2d 31 39 2e 0a 58 20 |84), pp |8-19..X |
|00005cb0| 2a 0a 58 20 2a 20 55 73 | 61 67 65 3a 20 63 6f 6d |*.X * Us|age: com|
|00005cc0| 70 72 65 73 73 20 5b 2d | 64 66 76 63 5d 20 5b 2d |press [-|dfvc] [-|
|00005cd0| 62 20 62 69 74 73 5d 20 | 5b 66 69 6c 65 20 2e 2e |b bits] |[file ..|
|00005ce0| 2e 5d 0a 58 20 2a 20 49 | 6e 70 75 74 73 3a 0a 58 |.].X * I|nputs:.X|
|00005cf0| 20 2a 09 2d 64 3a 09 20 | 20 20 20 49 66 20 67 69 | *.-d:. | If gi|
|00005d00| 76 65 6e 2c 20 64 65 63 | 6f 6d 70 72 65 73 73 69 |ven, dec|ompressi|
|00005d10| 6f 6e 20 69 73 20 64 6f | 6e 65 20 69 6e 73 74 65 |on is do|ne inste|
|00005d20| 61 64 2e 0a 58 20 2a 0a | 58 20 2a 20 20 20 20 20 |ad..X *.|X * |
|00005d30| 20 2d 63 3a 20 20 20 20 | 20 20 20 20 20 57 72 69 | -c: | Wri|
|00005d40| 74 65 20 6f 75 74 70 75 | 74 20 6f 6e 20 73 74 64 |te outpu|t on std|
|00005d50| 6f 75 74 2c 20 64 6f 6e | 27 74 20 72 65 6d 6f 76 |out, don|'t remov|
|00005d60| 65 20 6f 72 69 67 69 6e | 61 6c 2e 0a 58 20 2a 0a |e origin|al..X *.|
|00005d70| 58 20 2a 20 20 20 20 20 | 20 2d 62 3a 20 20 20 20 |X * | -b: |
|00005d80| 20 20 20 20 20 50 61 72 | 61 6d 65 74 65 72 20 6c | Par|ameter l|
|00005d90| 69 6d 69 74 73 20 74 68 | 65 20 6d 61 78 20 6e 75 |imits th|e max nu|
|00005da0| 6d 62 65 72 20 6f 66 20 | 62 69 74 73 2f 63 6f 64 |mber of |bits/cod|
|00005db0| 65 2e 0a 58 20 2a 0a 58 | 20 2a 09 2d 66 3a 09 20 |e..X *.X| *.-f:. |
|00005dc0| 20 20 20 46 6f 72 63 65 | 73 20 6f 75 74 70 75 74 | Force|s output|
|00005dd0| 20 66 69 6c 65 20 74 6f | 20 62 65 20 67 65 6e 65 | file to| be gene|
|00005de0| 72 61 74 65 64 2c 20 65 | 76 65 6e 20 69 66 20 6f |rated, e|ven if o|
|00005df0| 6e 65 20 61 6c 72 65 61 | 64 79 0a 58 20 2a 09 09 |ne alrea|dy.X *..|
|00005e00| 20 20 20 20 65 78 69 73 | 74 73 2c 20 61 6e 64 20 | exis|ts, and |
|00005e10| 65 76 65 6e 20 69 66 20 | 6e 6f 20 73 70 61 63 65 |even if |no space|
|00005e20| 20 69 73 20 73 61 76 65 | 64 20 62 79 20 63 6f 6d | is save|d by com|
|00005e30| 70 72 65 73 73 69 6e 67 | 2e 0a 58 20 2a 09 09 20 |pressing|..X *.. |
|00005e40| 20 20 20 49 66 20 2d 66 | 20 69 73 20 6e 6f 74 20 | If -f| is not |
|00005e50| 75 73 65 64 2c 20 74 68 | 65 20 75 73 65 72 20 77 |used, th|e user w|
|00005e60| 69 6c 6c 20 62 65 20 70 | 72 6f 6d 70 74 65 64 20 |ill be p|rompted |
|00005e70| 69 66 20 73 74 64 69 6e | 20 69 73 0a 58 20 2a 09 |if stdin| is.X *.|
|00005e80| 09 20 20 20 20 61 20 74 | 74 79 2c 20 6f 74 68 65 |. a t|ty, othe|
|00005e90| 72 77 69 73 65 2c 20 74 | 68 65 20 6f 75 74 70 75 |rwise, t|he outpu|
|00005ea0| 74 20 66 69 6c 65 20 77 | 69 6c 6c 20 6e 6f 74 20 |t file w|ill not |
|00005eb0| 62 65 20 6f 76 65 72 77 | 72 69 74 74 65 6e 2e 0a |be overw|ritten..|
|00005ec0| 58 20 2a 0a 58 20 2a 20 | 20 20 20 20 20 2d 76 3a |X *.X * | -v:|
|00005ed0| 09 20 20 20 20 57 72 69 | 74 65 20 63 6f 6d 70 72 |. Wri|te compr|
|00005ee0| 65 73 73 69 6f 6e 20 73 | 74 61 74 69 73 74 69 63 |ession s|tatistic|
|00005ef0| 73 0a 58 20 2a 0a 58 20 | 2a 09 2d 72 3a 09 09 52 |s.X *.X |*.-r:..R|
|00005f00| 65 63 75 72 73 69 76 65 | 2e 20 49 66 20 61 20 66 |ecursive|. If a f|
|00005f10| 69 6c 65 6e 61 6d 65 20 | 69 73 20 61 20 64 69 72 |ilename |is a dir|
|00005f20| 65 63 74 6f 72 79 2c 20 | 64 65 73 63 65 6e 64 0a |ectory, |descend.|
|00005f30| 58 20 2a 09 09 09 69 6e | 74 6f 20 69 74 20 61 6e |X *...in|to it an|
|00005f40| 64 20 63 6f 6d 70 72 65 | 73 73 20 65 76 65 72 79 |d compre|ss every|
|00005f50| 74 68 69 6e 67 20 69 6e | 20 69 74 2e 0a 58 20 2a |thing in| it..X *|
|00005f60| 0a 58 20 2a 20 09 66 69 | 6c 65 20 2e 2e 2e 3a 20 |.X * .fi|le ...: |
|00005f70| 20 20 46 69 6c 65 73 20 | 74 6f 20 62 65 20 63 6f | Files |to be co|
|00005f80| 6d 70 72 65 73 73 65 64 | 2e 20 20 49 66 20 6e 6f |mpressed|. If no|
|00005f90| 6e 65 20 73 70 65 63 69 | 66 69 65 64 2c 20 73 74 |ne speci|fied, st|
|00005fa0| 64 69 6e 0a 58 20 2a 09 | 09 20 20 20 20 69 73 20 |din.X *.|. is |
|00005fb0| 75 73 65 64 2e 0a 58 20 | 2a 20 4f 75 74 70 75 74 |used..X |* Output|
|00005fc0| 73 3a 0a 58 20 2a 09 66 | 69 6c 65 2e 5a 3a 09 20 |s:.X *.f|ile.Z:. |
|00005fd0| 20 20 20 43 6f 6d 70 72 | 65 73 73 65 64 20 66 6f | Compr|essed fo|
|00005fe0| 72 6d 20 6f 66 20 66 69 | 6c 65 20 77 69 74 68 20 |rm of fi|le with |
|00005ff0| 73 61 6d 65 20 6d 6f 64 | 65 2c 20 6f 77 6e 65 72 |same mod|e, owner|
|00006000| 2c 20 61 6e 64 20 75 74 | 69 6d 65 73 0a 58 20 2a |, and ut|imes.X *|
|00006010| 20 09 6f 72 20 73 74 64 | 6f 75 74 20 20 20 28 69 | .or std|out (i|
|00006020| 66 20 73 74 64 69 6e 20 | 75 73 65 64 20 61 73 20 |f stdin |used as |
|00006030| 69 6e 70 75 74 29 0a 58 | 20 2a 0a 58 20 2a 20 41 |input).X| *.X * A|
|00006040| 73 73 75 6d 70 74 69 6f | 6e 73 3a 0a 58 20 2a 09 |ssumptio|ns:.X *.|
|00006050| 57 68 65 6e 20 66 69 6c | 65 6e 61 6d 65 73 20 61 |When fil|enames a|
|00006060| 72 65 20 67 69 76 65 6e | 2c 20 72 65 70 6c 61 63 |re given|, replac|
|00006070| 65 73 20 77 69 74 68 20 | 74 68 65 20 63 6f 6d 70 |es with |the comp|
|00006080| 72 65 73 73 65 64 20 76 | 65 72 73 69 6f 6e 0a 58 |ressed v|ersion.X|
|00006090| 20 2a 09 28 2e 5a 20 73 | 75 66 66 69 78 29 20 6f | *.(.Z s|uffix) o|
|000060a0| 6e 6c 79 20 69 66 20 74 | 68 65 20 66 69 6c 65 20 |nly if t|he file |
|000060b0| 64 65 63 72 65 61 73 65 | 73 20 69 6e 20 73 69 7a |decrease|s in siz|
|000060c0| 65 2e 0a 58 20 2a 20 41 | 6c 67 6f 72 69 74 68 6d |e..X * A|lgorithm|
|000060d0| 3a 0a 58 20 2a 20 09 4d | 6f 64 69 66 69 65 64 20 |:.X * .M|odified |
|000060e0| 4c 65 6d 70 65 6c 2d 5a | 69 76 20 6d 65 74 68 6f |Lempel-Z|iv metho|
|000060f0| 64 20 28 4c 5a 57 29 2e | 20 20 42 61 73 69 63 61 |d (LZW).| Basica|
|00006100| 6c 6c 79 20 66 69 6e 64 | 73 20 63 6f 6d 6d 6f 6e |lly find|s common|
|00006110| 0a 58 20 2a 20 73 75 62 | 73 74 72 69 6e 67 73 20 |.X * sub|strings |
|00006120| 61 6e 64 20 72 65 70 6c | 61 63 65 73 20 74 68 65 |and repl|aces the|
|00006130| 6d 20 77 69 74 68 20 61 | 20 76 61 72 69 61 62 6c |m with a| variabl|
|00006140| 65 20 73 69 7a 65 20 63 | 6f 64 65 2e 20 20 54 68 |e size c|ode. Th|
|00006150| 69 73 20 69 73 0a 58 20 | 2a 20 64 65 74 65 72 6d |is is.X |* determ|
|00006160| 69 6e 69 73 74 69 63 2c | 20 61 6e 64 20 63 61 6e |inistic,| and can|
|00006170| 20 62 65 20 64 6f 6e 65 | 20 6f 6e 20 74 68 65 20 | be done| on the |
|00006180| 66 6c 79 2e 20 20 54 68 | 75 73 2c 20 74 68 65 20 |fly. Th|us, the |
|00006190| 64 65 63 6f 6d 70 72 65 | 73 73 69 6f 6e 0a 58 20 |decompre|ssion.X |
|000061a0| 2a 20 70 72 6f 63 65 64 | 75 72 65 20 6e 65 65 64 |* proced|ure need|
|000061b0| 73 20 6e 6f 20 69 6e 70 | 75 74 20 74 61 62 6c 65 |s no inp|ut table|
|000061c0| 2c 20 62 75 74 20 74 72 | 61 63 6b 73 20 74 68 65 |, but tr|acks the|
|000061d0| 20 77 61 79 20 74 68 65 | 20 74 61 62 6c 65 20 77 | way the| table w|
|000061e0| 61 73 20 62 75 69 6c 74 | 2e 0a 58 20 2a 2f 0a 58 |as built|..X */.X|
|000061f0| 0a 58 69 6e 74 20 6f 76 | 65 72 77 72 69 74 65 20 |.Xint ov|erwrite |
|00006200| 3d 20 30 3b 09 2f 2a 20 | 44 6f 20 6e 6f 74 20 6f |= 0;./* |Do not o|
|00006210| 76 65 72 77 72 69 74 65 | 20 75 6e 6c 65 73 73 20 |verwrite| unless |
|00006220| 67 69 76 65 6e 20 2d 66 | 20 66 6c 61 67 20 2a 2f |given -f| flag */|
|00006230| 0a 58 69 6e 74 20 72 65 | 63 75 72 73 69 76 65 20 |.Xint re|cursive |
|00006240| 3d 20 30 3b 20 20 2f 2a | 20 63 6f 6d 70 72 65 73 |= 0; /*| compres|
|00006250| 73 20 64 69 72 65 63 74 | 6f 72 69 65 73 20 2a 2f |s direct|ories */|
|00006260| 0a 58 6d 61 69 6e 28 20 | 61 72 67 63 2c 20 61 72 |.Xmain( |argc, ar|
|00006270| 67 76 20 29 0a 58 72 65 | 67 69 73 74 65 72 20 69 |gv ).Xre|gister i|
|00006280| 6e 74 20 61 72 67 63 3b | 20 63 68 61 72 20 2a 2a |nt argc;| char **|
|00006290| 61 72 67 76 3b 0a 58 7b | 0a 58 20 20 20 20 63 68 |argv;.X{|.X ch|
|000062a0| 61 72 20 2a 2a 66 69 6c | 65 6c 69 73 74 2c 20 2a |ar **fil|elist, *|
|000062b0| 2a 66 69 6c 65 70 74 72 | 3b 0a 58 20 20 20 20 63 |*fileptr|;.X c|
|000062c0| 68 61 72 20 2a 63 70 2c | 20 2a 72 69 6e 64 65 78 |har *cp,| *rindex|
|000062d0| 28 29 2c 20 2a 6d 61 6c | 6c 6f 63 28 29 3b 0a 58 |(), *mal|loc();.X|
|000062e0| 20 20 20 20 65 78 74 65 | 72 6e 20 6f 6e 69 6e 74 | exte|rn onint|
|000062f0| 72 28 29 2c 20 6f 6f 70 | 73 28 29 3b 0a 58 0a 58 |r(), oop|s();.X.X|
|00006300| 0a 58 20 20 20 20 69 66 | 20 28 20 28 62 67 6e 64 |.X if| ( (bgnd|
|00006310| 5f 66 6c 61 67 20 3d 20 | 73 69 67 6e 61 6c 20 28 |_flag = |signal (|
|00006320| 20 53 49 47 49 4e 54 2c | 20 53 49 47 5f 49 47 4e | SIGINT,| SIG_IGN|
|00006330| 20 29 29 20 21 3d 20 53 | 49 47 5f 49 47 4e 20 29 | )) != S|IG_IGN )|
|00006340| 20 7b 0a 58 09 73 69 67 | 6e 61 6c 20 28 20 53 49 | {.X.sig|nal ( SI|
|00006350| 47 49 4e 54 2c 20 6f 6e | 69 6e 74 72 20 29 3b 0a |GINT, on|intr );.|
|00006360| 58 09 73 69 67 6e 61 6c | 20 28 20 53 49 47 53 45 |X.signal| ( SIGSE|
|00006370| 47 56 2c 20 6f 6f 70 73 | 20 29 3b 0a 58 20 20 20 |GV, oops| );.X |
|00006380| 20 7d 0a 58 0a 58 23 69 | 66 64 65 66 20 43 4f 4d | }.X.X#i|fdef COM|
|00006390| 50 41 54 49 42 4c 45 0a | 58 20 20 20 20 6e 6f 6d |PATIBLE.|X nom|
|000063a0| 61 67 69 63 20 3d 20 31 | 3b 09 2f 2a 20 4f 72 69 |agic = 1|;./* Ori|
|000063b0| 67 69 6e 61 6c 20 64 69 | 64 6e 27 74 20 68 61 76 |ginal di|dn't hav|
|000063c0| 65 20 61 20 6d 61 67 69 | 63 20 6e 75 6d 62 65 72 |e a magi|c number|
|000063d0| 20 2a 2f 0a 58 23 65 6e | 64 69 66 20 2f 2a 20 43 | */.X#en|dif /* C|
|000063e0| 4f 4d 50 41 54 49 42 4c | 45 20 2a 2f 0a 58 0a 58 |OMPATIBL|E */.X.X|
|000063f0| 20 20 20 20 66 69 6c 65 | 6c 69 73 74 20 3d 20 66 | file|list = f|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.