home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
You can browse this item here: unpack.tar
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| POSIX tar archive
| default
| |
99%
| file
| POSIX tar archive, directory macutil/, mode 000775 , uid 023436 , gid 000156 , size 00000000000 , seconds 05062151514, user hv, group staff, devmaj 000021 , devmin 000031
| default
| |
98%
| file
| data
| default
| |
62%
| TrID
| TAR - Tape ARchive (POSIX)
| default
| |
37%
| TrID
| TAR - Tape ARchive (directory)
| default
| |
100%
| siegfried
| x-fmt/265 Tape Archive Format
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| POSIX tar archive
| default
| |
100%
| detectItEasy
| Archive: tar
| default
| |
100%
| binwalkID
| POSIX tar archive
| default
| |
100%
| xdgMime
| application/x-tar
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 6d 61 63 75 74 69 6c 2f | 00 00 00 00 00 00 00 00 |macutil/|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 30 30 30 37 | 37 35 20 00 30 32 33 34 |....0007|75 .0234|
|00000070| 33 36 20 00 30 30 30 31 | 35 36 20 00 30 30 30 30 |36 .0001|56 .0000|
|00000080| 30 30 30 30 30 30 30 20 | 30 35 30 36 32 31 35 31 |0000000 |05062151|
|00000090| 35 31 34 20 30 31 32 33 | 31 32 00 20 35 00 00 00 |514 0123|12. 5...|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 75 73 74 61 72 00 30 | 30 68 76 00 00 00 00 00 |.ustar.0|0hv.....|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 32 31 20 |........|.000021 |
|00000150| 00 30 30 30 30 33 31 20 | 00 00 00 00 00 00 00 00 |.000031 |........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 6d 61 63 75 74 69 6c 2f | 52 45 41 44 4d 45 00 00 |macutil/|README..|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 32 33 34 |....0006|64 .0234|
|00000270| 33 36 20 00 30 30 30 31 | 35 36 20 00 30 30 30 30 |36 .0001|56 .0000|
|00000280| 30 30 31 37 30 34 31 20 | 30 35 30 36 32 31 35 31 |0017041 |05062151|
|00000290| 34 36 35 20 30 31 33 32 | 30 32 00 20 30 00 00 00 |465 0132|02. 0...|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 75 73 74 61 72 00 30 | 30 68 76 00 00 00 00 00 |.ustar.0|0hv.....|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 32 31 20 |........|.000021 |
|00000350| 00 30 30 30 30 34 30 20 | 00 00 00 00 00 00 00 00 |.000040 |........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 54 68 69 73 20 69 73 20 | 74 68 65 20 73 65 63 6f |This is |the seco|
|00000410| 6e 64 20 62 65 74 61 20 | 72 65 6c 65 61 73 65 20 |nd beta |release |
|00000420| 6f 66 20 75 6e 70 61 63 | 6b 2e 20 20 55 6e 70 61 |of unpac|k. Unpa|
|00000430| 63 6b 20 77 69 6c 6c 20 | 75 6e 70 61 63 6b 20 50 |ck will |unpack P|
|00000440| 61 63 6b 49 74 2c 20 53 | 74 75 66 66 49 74 2c 0a |ackIt, S|tuffIt,.|
|00000450| 43 6f 6d 70 61 63 74 6f | 72 20 61 6e 64 20 6d 6f |Compacto|r and mo|
|00000460| 73 74 20 53 74 75 66 66 | 49 74 43 6c 61 73 73 69 |st Stuff|ItClassi|
|00000470| 63 2f 53 74 75 66 66 49 | 74 44 65 6c 75 78 65 20 |c/StuffI|tDeluxe |
|00000480| 61 72 63 68 69 76 65 73 | 2e 0a 28 50 61 63 6b 49 |archives|..(PackI|
|00000490| 74 2c 20 53 74 75 66 66 | 49 74 20 61 6e 64 20 43 |t, Stuff|It and C|
|000004a0| 6f 6d 70 61 63 74 6f 72 | 20 61 72 65 20 61 72 63 |ompactor| are arc|
|000004b0| 68 69 76 65 72 73 20 77 | 72 69 74 74 65 6e 20 62 |hivers w|ritten b|
|000004c0| 79 20 72 65 73 70 65 63 | 74 69 76 65 6c 79 3a 0a |y respec|tively:.|
|000004d0| 48 61 72 72 79 20 52 2e | 20 43 68 65 73 6c 65 79 |Harry R.| Chesley|
|000004e0| 2c 20 52 61 79 6d 6f 6e | 64 20 4c 61 75 20 61 6e |, Raymon|d Lau an|
|000004f0| 64 20 42 69 6c 6c 20 47 | 6f 6f 64 6d 61 6e 2e 29 |d Bill G|oodman.)|
|00000500| 0a 0a 49 74 20 64 6f 65 | 73 20 6e 6f 74 20 64 65 |..It doe|s not de|
|00000510| 61 6c 20 77 69 74 68 3a | 0a 61 2e 20 20 50 61 73 |al with:|.a. Pas|
|00000520| 73 77 6f 72 64 20 70 72 | 6f 74 65 63 74 65 64 20 |sword pr|otected |
|00000530| 61 72 63 68 69 76 65 73 | 2e 0a 62 2e 20 20 4d 75 |archives|..b. Mu|
|00000540| 6c 74 69 2d 66 69 6c 65 | 20 61 72 63 68 69 76 65 |lti-file| archive|
|00000550| 73 2e 0a 63 2e 20 20 53 | 74 75 66 66 49 74 43 6c |s..c. S|tuffItCl|
|00000560| 61 73 73 69 63 2f 53 74 | 75 66 66 49 74 44 65 6c |assic/St|uffItDel|
|00000570| 75 78 65 20 61 72 63 68 | 69 76 65 73 20 77 69 74 |uxe arch|ives wit|
|00000580| 68 20 63 6f 6d 70 72 65 | 73 73 69 6f 6e 20 6d 65 |h compre|ssion me|
|00000590| 74 68 6f 64 73 20 36 20 | 61 6e 64 20 38 2e 0a 20 |thods 6 |and 8.. |
|000005a0| 20 20 20 28 54 68 65 73 | 65 20 61 72 65 20 72 65 | (Thes|e are re|
|000005b0| 73 70 65 63 74 69 76 65 | 6c 79 20 61 20 46 69 78 |spective|ly a Fix|
|000005c0| 65 64 20 48 75 66 66 6d | 61 6e 20 65 6e 63 6f 64 |ed Huffm|an encod|
|000005d0| 69 6e 67 20 61 6e 64 20 | 42 69 67 72 61 6d 20 65 |ing and |Bigram e|
|000005e0| 6e 63 6f 64 69 6e 67 2e | 0a 20 20 20 20 49 20 68 |ncoding.|. I h|
|000005f0| 61 76 65 20 6e 65 76 65 | 72 20 73 65 65 6e 20 61 |ave neve|r seen a|
|00000600| 6e 20 61 72 63 68 69 76 | 65 20 74 68 61 74 20 63 |n archiv|e that c|
|00000610| 6f 6e 74 61 69 6e 73 20 | 73 75 63 68 20 66 69 6c |ontains |such fil|
|00000620| 65 73 2c 20 73 6f 20 49 | 20 61 6d 20 6e 6f 74 0a |es, so I| am not.|
|00000630| 20 20 20 20 77 69 6c 6c | 69 6e 67 20 74 6f 20 77 | will|ing to w|
|00000640| 72 69 74 65 20 61 6e 64 | 20 61 6d 20 6e 6f 74 20 |rite and| am not |
|00000650| 61 62 6c 65 20 74 6f 20 | 74 65 73 74 20 63 6f 64 |able to |test cod|
|00000660| 65 21 29 0a 0a 52 65 71 | 75 69 72 65 6d 65 6e 74 |e!)..Req|uirement|
|00000670| 73 3a 0a 61 2e 20 20 4f | 66 20 63 6f 75 72 73 65 |s:.a. O|f course|
|00000680| 20 61 20 43 20 63 6f 6d | 70 69 6c 65 72 2e 0a 62 | a C com|piler..b|
|00000690| 2e 20 20 41 20 33 32 2d | 62 69 74 20 6d 61 63 68 |. A 32-|bit mach|
|000006a0| 69 6e 65 20 77 69 74 68 | 20 6c 61 72 67 65 20 6d |ine with| large m|
|000006b0| 65 6d 6f 72 79 20 28 6f | 72 20 61 74 20 6c 65 61 |emory (o|r at lea|
|000006c0| 73 74 20 74 68 65 20 61 | 62 69 6c 69 74 79 20 74 |st the a|bility t|
|000006d0| 6f 20 27 6d 61 6c 6c 6f | 63 27 0a 20 20 20 20 6c |o 'mallo|c'. l|
|000006e0| 61 72 67 65 20 63 68 75 | 6e 6b 73 20 6f 66 20 6d |arge chu|nks of m|
|000006f0| 65 6d 6f 72 79 29 2e 20 | 20 46 6f 72 20 72 65 61 |emory). | For rea|
|00000700| 73 6f 6e 73 20 6f 66 20 | 65 66 66 69 63 69 65 6e |sons of |efficien|
|00000710| 63 79 20 61 6e 64 20 73 | 69 6d 70 6c 69 63 69 74 |cy and s|implicit|
|00000720| 79 20 74 68 65 0a 20 20 | 20 20 70 72 6f 67 72 61 |y the. | progra|
|00000730| 6d 20 75 6e 70 61 63 6b | 73 20 27 69 6e 2d 63 6f |m unpack|s 'in-co|
|00000740| 72 65 27 2c 20 61 6c 73 | 6f 20 43 6f 6d 70 61 63 |re', als|o Compac|
|00000750| 74 6f 72 20 61 72 63 68 | 69 76 65 73 20 61 72 65 |tor arch|ives are|
|00000760| 20 66 69 72 73 74 20 72 | 65 61 64 20 69 6e 0a 20 | first r|ead in. |
|00000770| 20 20 20 63 6f 72 65 2e | 20 20 49 66 20 73 6f 6d | core.| If som|
|00000780| 65 62 6f 64 79 20 63 61 | 6e 20 74 61 6b 65 20 74 |ebody ca|n take t|
|00000790| 68 65 20 74 72 6f 75 62 | 6c 65 20 74 6f 20 64 6f |he troub|le to do|
|000007a0| 20 69 74 20 64 69 66 66 | 65 72 65 6e 74 6c 79 2c | it diff|erently,|
|000007b0| 20 67 6f 20 61 68 65 61 | 64 21 0a 20 20 20 20 54 | go ahea|d!. T|
|000007c0| 68 65 72 65 20 61 72 65 | 20 61 6c 73 6f 20 70 72 |here are| also pr|
|000007d0| 6f 62 61 62 6c 79 20 69 | 6e 20 61 20 6e 75 6d 62 |obably i|n a numb|
|000007e0| 65 72 20 6f 66 20 70 6c | 61 63 65 73 20 69 6d 70 |er of pl|aces imp|
|000007f0| 6c 69 63 69 74 20 61 73 | 73 75 6d 70 74 69 6f 6e |licit as|sumption|
|00000800| 73 20 74 68 61 74 0a 20 | 20 20 20 61 6e 20 69 6e |s that. | an in|
|00000810| 74 20 69 73 20 33 32 20 | 62 69 74 73 2e 20 20 49 |t is 32 |bits. I|
|00000820| 66 20 79 6f 75 20 65 6e | 63 6f 75 6e 74 65 72 20 |f you en|counter |
|00000830| 73 75 63 68 20 6f 63 63 | 75 72 72 65 6e 63 65 73 |such occ|urrences|
|00000840| 20 66 65 65 6c 20 66 72 | 65 65 20 74 6f 0a 20 20 | feel fr|ee to. |
|00000850| 20 20 6e 6f 74 69 66 79 | 20 6d 65 2e 0a 63 2e 20 | notify| me..c. |
|00000860| 20 41 20 55 6e 69 78 20 | 28 74 6d 29 20 6d 61 63 | A Unix |(tm) mac|
|00000870| 68 69 6e 65 2c 20 6f 72 | 20 73 6f 6d 65 74 68 69 |hine, or| somethi|
|00000880| 6e 67 20 76 65 72 79 20 | 63 6c 6f 73 65 2e 20 20 |ng very |close. |
|00000890| 54 68 65 72 65 20 61 72 | 65 20 70 72 6f 62 61 62 |There ar|e probab|
|000008a0| 6c 79 20 71 75 69 74 65 | 0a 20 20 20 20 61 20 6c |ly quite|. a l|
|000008b0| 6f 74 20 6f 66 20 55 6e | 69 78 20 64 65 70 65 6e |ot of Un|ix depen|
|000008c0| 64 65 6e 63 69 65 73 2e | 20 20 41 6c 73 6f 20 68 |dencies.| Also h|
|000008d0| 65 72 65 2c 20 69 66 20 | 79 6f 75 20 68 61 76 65 |ere, if |you have|
|000008e0| 20 72 65 70 6c 61 63 65 | 6d 65 6e 74 73 2c 20 66 | replace|ments, f|
|000008f0| 65 65 6c 0a 20 20 20 20 | 66 72 65 65 20 74 6f 20 |eel. |free to |
|00000900| 73 65 6e 64 20 63 6f 6d | 6d 65 6e 74 73 2e 0a 64 |send com|ments..d|
|00000910| 2e 20 20 54 68 69 73 20 | 76 65 72 73 69 6f 6e 20 |. This |version |
|00000920| 6e 6f 72 6d 61 6c 6c 79 | 20 75 73 65 73 20 74 68 |normally| uses th|
|00000930| 65 20 27 6d 6b 64 69 72 | 27 20 73 79 73 74 65 6d |e 'mkdir|' system|
|00000940| 20 63 61 6c 6c 20 61 76 | 61 69 6c 61 62 6c 65 20 | call av|ailable |
|00000950| 6f 6e 20 42 53 44 20 55 | 6e 69 78 0a 20 20 20 20 |on BSD U|nix. |
|00000960| 61 6e 64 20 73 6f 6d 65 | 20 76 65 72 73 69 6f 6e |and some| version|
|00000970| 73 20 6f 66 20 53 79 73 | 56 20 55 6e 69 78 2e 20 |s of Sys|V Unix. |
|00000980| 20 59 6f 75 20 63 61 6e | 20 63 68 61 6e 67 65 20 | You can| change |
|00000990| 74 68 61 74 2c 20 73 65 | 65 20 74 68 65 20 6d 61 |that, se|e the ma|
|000009a0| 6b 65 66 69 6c 65 20 66 | 6f 72 0a 20 20 20 20 64 |kefile f|or. d|
|000009b0| 65 74 61 69 6c 73 2e 0a | 0a 41 63 6b 6e 6f 77 6c |etails..|.Acknowl|
|000009c0| 65 64 67 65 6d 65 6e 74 | 73 3a 0a 61 2e 20 20 54 |edgement|s:.a. T|
|000009d0| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 69 73 20 66 |his prog|ram is f|
|000009e0| 6f 72 20 61 20 6c 61 72 | 67 65 20 70 61 72 74 20 |or a lar|ge part |
|000009f0| 62 61 73 65 64 20 6f 6e | 20 74 68 65 20 75 74 69 |based on| the uti|
|00000a00| 6c 69 74 69 65 73 20 27 | 75 6e 70 69 74 27 20 61 |lities '|unpit' a|
|00000a10| 6e 64 20 27 75 6e 73 69 | 74 27 0a 20 20 20 20 77 |nd 'unsi|t'. w|
|00000a20| 72 69 74 74 65 6e 20 62 | 79 3a 0a 09 41 6c 6c 61 |ritten b|y:..Alla|
|00000a30| 6e 20 47 2e 20 57 65 62 | 65 72 0a 09 77 65 62 65 |n G. Web|er..webe|
|00000a40| 72 25 62 72 61 6e 64 2e | 75 73 63 2e 65 64 75 40 |r%brand.|usc.edu@|
|00000a50| 6f 62 65 72 6f 6e 2e 75 | 73 63 2e 65 64 75 0a 20 |oberon.u|sc.edu. |
|00000a60| 20 20 20 28 77 6f 6e 64 | 65 72 69 6e 67 20 77 68 | (wond|ering wh|
|00000a70| 65 74 68 65 72 20 74 68 | 61 74 20 69 73 20 73 74 |ether th|at is st|
|00000a80| 69 6c 6c 20 76 61 6c 69 | 64 21 29 2e 20 20 49 20 |ill vali|d!). I |
|00000a90| 63 6f 6d 62 69 6e 65 64 | 20 74 68 65 20 74 77 6f |combined| the two|
|00000aa0| 20 69 6e 74 6f 20 61 0a | 20 20 20 20 73 69 6e 67 | into a.| sing|
|00000ab0| 6c 65 20 70 72 6f 67 72 | 61 6d 20 61 6e 64 20 64 |le progr|am and d|
|00000ac0| 69 64 20 61 20 6c 6f 74 | 20 6f 66 20 6d 6f 64 69 |id a lot| of modi|
|00000ad0| 66 69 63 61 74 69 6f 6e | 2e 20 20 46 6f 72 20 69 |fication|. For i|
|00000ae0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 6f 6e 20 74 68 |nformati|on on th|
|00000af0| 65 0a 20 20 20 20 6f 72 | 69 67 69 6e 61 6c 73 2c |e. or|iginals,|
|00000b00| 20 73 65 65 20 74 68 65 | 20 52 45 41 44 4d 45 2e | see the| README.|
|00000b10| 2a 20 66 69 6c 65 73 20 | 69 6e 20 74 68 65 20 75 |* files |in the u|
|00000b20| 6e 70 61 63 6b 20 64 69 | 72 65 63 74 6f 72 79 2e |npack di|rectory.|
|00000b30| 0a 62 2e 20 20 54 68 65 | 20 63 72 63 2d 63 61 6c |.b. The| crc-cal|
|00000b40| 63 75 6c 61 74 69 6e 67 | 20 72 6f 75 74 69 6e 65 |culating| routine|
|00000b50| 73 20 61 72 65 20 62 61 | 73 65 64 20 6f 6e 20 61 |s are ba|sed on a|
|00000b60| 20 72 6f 75 74 69 6e 65 | 20 6f 72 69 67 69 6e 61 | routine| origina|
|00000b70| 6c 6c 79 20 77 72 69 74 | 74 65 6e 20 62 79 3a 0a |lly writ|ten by:.|
|00000b80| 09 4d 61 72 6b 20 47 2e | 20 4d 65 6e 64 65 6c 0a |.Mark G.| Mendel.|
|00000b90| 09 55 55 43 50 3a 20 69 | 68 6e 70 34 21 75 6d 6e |.UUCP: i|hnp4!umn|
|00000ba0| 2d 63 73 21 68 79 70 65 | 72 21 6d 61 72 6b 0a 20 |-cs!hype|r!mark. |
|00000bb0| 20 20 20 28 74 68 69 73 | 20 77 69 6c 6c 20 6e 6f | (this| will no|
|00000bc0| 74 20 77 6f 72 6b 20 61 | 6e 79 6d 6f 72 65 20 66 |t work a|nymore f|
|00000bd0| 6f 72 20 73 75 72 65 21 | 29 2e 20 20 41 6c 73 6f |or sure!|). Also|
|00000be0| 20 68 65 72 65 20 49 20 | 6d 6f 64 69 66 69 65 64 | here I |modified|
|00000bf0| 20 74 68 65 20 73 74 75 | 66 66 0a 20 20 20 20 61 | the stu|ff. a|
|00000c00| 6e 64 20 65 78 70 61 6e | 64 65 64 20 69 74 2c 20 |nd expan|ded it, |
|00000c10| 73 65 65 20 74 68 65 20 | 52 45 41 44 4d 45 20 66 |see the |README f|
|00000c20| 69 6c 65 73 20 69 6e 20 | 74 68 65 20 63 72 63 20 |iles in |the crc |
|00000c30| 64 69 72 65 63 74 6f 72 | 79 2e 0a 63 2e 20 20 4c |director|y..c. L|
|00000c40| 5a 57 2d 64 65 63 6f 6d | 70 72 65 73 73 69 6f 6e |ZW-decom|pression|
|00000c50| 20 69 73 20 74 61 6b 65 | 6e 20 66 72 6f 6d 20 74 | is take|n from t|
|00000c60| 68 65 20 73 6f 75 72 63 | 65 73 20 6f 66 20 63 6f |he sourc|es of co|
|00000c70| 6d 70 72 65 73 73 20 74 | 68 61 74 20 61 72 65 20 |mpress t|hat are |
|00000c80| 66 6c 6f 61 74 69 6e 67 | 0a 20 20 20 20 61 72 6f |floating|. aro|
|00000c90| 75 6e 64 2e 20 20 50 72 | 6f 62 61 62 6c 79 20 49 |und. Pr|obably I|
|00000ca0| 20 64 69 64 20 6e 6f 74 | 20 75 73 65 20 74 68 65 | did not| use the|
|00000cb0| 20 6d 6f 73 74 20 65 66 | 66 69 63 69 65 6e 74 20 | most ef|ficient |
|00000cc0| 76 65 72 73 69 6f 6e 2c | 20 62 75 74 20 74 68 69 |version,| but thi|
|00000cd0| 73 0a 20 20 20 20 70 72 | 6f 67 72 61 6d 20 77 61 |s. pr|ogram wa|
|00000ce0| 73 20 77 72 69 74 74 65 | 6e 20 74 6f 20 67 65 74 |s writte|n to get|
|00000cf0| 20 69 74 20 64 6f 6e 65 | 2e 20 20 54 68 65 20 76 | it done|. The v|
|00000d00| 65 72 73 69 6f 6e 20 49 | 20 62 61 73 65 64 20 69 |ersion I| based i|
|00000d10| 74 20 6f 6e 20 28 34 2e | 30 29 20 69 73 0a 20 20 |t on (4.|0) is. |
|00000d20| 20 20 61 75 74 68 6f 72 | 65 64 20 62 79 3a 0a 09 | author|ed by:..|
|00000d30| 53 74 65 76 65 20 44 61 | 76 69 65 73 20 20 20 20 |Steve Da|vies |
|00000d40| 20 20 20 20 20 20 20 20 | 28 64 65 63 76 61 78 21 | |(decvax!|
|00000d50| 76 61 78 31 33 35 21 70 | 65 74 73 64 21 70 65 6f |vax135!p|etsd!peo|
|00000d60| 72 61 21 73 72 64 29 0a | 09 4a 69 6d 20 4d 63 4b |ra!srd).|.Jim McK|
|00000d70| 69 65 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ie | |
|00000d80| 20 28 64 65 63 76 61 78 | 21 6d 63 76 61 78 21 6a | (decvax|!mcvax!j|
|00000d90| 69 6d 29 20 20 28 48 69 | 20 4a 69 6d 21 29 0a 09 |im) (Hi| Jim!)..|
|00000da0| 4a 6f 65 20 4f 72 6f 73 | 74 20 20 20 20 20 20 20 |Joe Oros|t |
|00000db0| 20 20 20 20 20 20 20 20 | 28 64 65 63 76 61 78 21 | |(decvax!|
|00000dc0| 76 61 78 31 33 35 21 70 | 65 74 73 64 21 6a 6f 65 |vax135!p|etsd!joe|
|00000dd0| 29 0a 09 53 70 65 6e 63 | 65 72 20 57 2e 20 54 68 |)..Spenc|er W. Th|
|00000de0| 6f 6d 61 73 20 20 20 20 | 20 20 20 28 64 65 63 76 |omas | (decv|
|00000df0| 61 78 21 68 61 72 70 6f | 21 75 74 61 68 2d 63 73 |ax!harpo|!utah-cs|
|00000e00| 21 75 74 61 68 2d 67 72 | 21 74 68 6f 6d 61 73 29 |!utah-gr|!thomas)|
|00000e10| 0a 09 4b 65 6e 20 54 75 | 72 6b 6f 77 73 6b 69 20 |..Ken Tu|rkowski |
|00000e20| 20 20 20 20 20 20 20 20 | 20 20 28 64 65 63 76 61 | | (decva|
|00000e30| 78 21 64 65 63 77 72 6c | 21 74 75 72 74 6c 65 76 |x!decwrl|!turtlev|
|00000e40| 61 78 21 6b 65 6e 29 0a | 09 4a 61 6d 65 73 20 41 |ax!ken).|.James A|
|00000e50| 2e 20 57 6f 6f 64 73 20 | 20 20 20 20 20 20 20 20 |. Woods | |
|00000e60| 20 28 64 65 63 76 61 78 | 21 69 68 6e 70 34 21 61 | (decvax|!ihnp4!a|
|00000e70| 6d 65 73 21 6a 61 77 29 | 0a 20 20 20 20 49 20 61 |mes!jaw)|. I a|
|00000e80| 6d 20 73 75 72 65 20 74 | 68 6f 73 65 20 65 2d 6d |m sure t|hose e-m|
|00000e90| 61 69 6c 20 61 64 64 72 | 65 73 73 65 73 20 61 6c |ail addr|esses al|
|00000ea0| 73 6f 20 77 69 6c 6c 20 | 6e 6f 74 20 77 6f 72 6b |so will |not work|
|00000eb0| 21 0a 64 2e 20 20 4f 70 | 74 69 6f 6e 61 6c 20 41 |!.d. Op|tional A|
|00000ec0| 55 46 53 20 73 75 70 70 | 6f 72 74 20 63 6f 6d 65 |UFS supp|ort come|
|00000ed0| 73 20 66 72 6f 6d 20 69 | 6e 66 6f 72 6d 61 74 69 |s from i|nformati|
|00000ee0| 6f 6e 20 73 75 70 70 6c | 69 65 64 20 62 79 3a 0a |on suppl|ied by:.|
|00000ef0| 09 43 61 73 70 65 72 20 | 48 2e 53 2e 20 44 69 6b |.Casper |H.S. Dik|
|00000f00| 0a 09 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 20 |..Univer|sity of |
|00000f10| 41 6d 73 74 65 72 64 61 | 6d 0a 09 4b 72 75 69 73 |Amsterda|m..Kruis|
|00000f20| 6c 61 61 6e 20 20 34 30 | 39 0a 09 31 30 39 38 20 |laan 40|9..1098 |
|00000f30| 53 4a 20 20 41 6d 73 74 | 65 72 64 61 6d 0a 09 4e |SJ Amst|erdam..N|
|00000f40| 65 74 68 65 72 6c 61 6e | 64 73 0a 09 0a 09 70 68 |etherlan|ds....ph|
|00000f50| 6f 6e 65 3a 20 2b 33 31 | 32 30 35 39 32 32 30 32 |one: +31|20592202|
|00000f60| 32 0a 09 65 6d 61 69 6c | 3a 20 63 61 73 70 65 72 |2..email|: casper|
|00000f70| 40 75 76 61 2e 75 75 63 | 70 0a 20 20 20 20 54 68 |@uva.uuc|p. Th|
|00000f80| 69 73 20 69 73 20 61 6e | 20 65 2d 6d 61 69 6c 20 |is is an| e-mail |
|00000f90| 61 64 64 72 65 73 73 20 | 74 68 61 74 20 77 69 6c |address |that wil|
|00000fa0| 6c 20 77 6f 72 6b 2e 0a | 20 20 20 20 53 65 65 20 |l work..| See |
|00000fb0| 74 68 65 20 6d 61 6b 65 | 66 69 6c 65 2e 0a 20 20 |the make|file.. |
|00000fc0| 20 20 53 6f 6d 65 20 63 | 61 76 65 61 74 73 20 61 | Some c|aveats a|
|00000fd0| 72 65 20 61 70 70 6c 69 | 63 61 62 6c 65 3a 0a 20 |re appli|cable:. |
|00000fe0| 20 20 20 31 2e 20 20 49 | 20 64 69 64 20 6e 6f 74 | 1. I| did not|
|00000ff0| 20 66 75 6c 6c 79 20 74 | 65 73 74 20 69 74 20 28 | fully t|est it (|
|00001000| 77 65 20 64 6f 20 6e 6f | 74 20 75 73 65 20 69 74 |we do no|t use it|
|00001010| 29 2e 20 20 42 75 74 20 | 74 68 65 20 75 6e 70 61 |). But |the unpa|
|00001020| 63 6b 69 6e 67 0a 09 61 | 70 70 65 61 72 73 20 74 |cking..a|ppears t|
|00001030| 6f 20 62 65 20 63 6f 72 | 72 65 63 74 2e 20 20 41 |o be cor|rect. A|
|00001040| 6e 79 68 6f 77 2c 20 61 | 73 20 74 68 65 20 70 65 |nyhow, a|s the pe|
|00001050| 6f 70 6c 65 20 77 68 6f | 20 69 6e 69 74 69 61 6c |ople who| initial|
|00001060| 6c 79 20 63 6f 6d 70 69 | 6c 65 0a 09 69 74 20 61 |ly compi|le..it a|
|00001070| 6e 64 20 75 73 65 20 69 | 74 20 77 69 6c 6c 20 62 |nd use i|t will b|
|00001080| 65 20 73 79 73 74 65 6d | 20 61 64 6d 69 6e 69 73 |e system| adminis|
|00001090| 74 72 61 74 6f 72 73 20 | 49 20 61 6d 20 63 6f 6e |trators |I am con|
|000010a0| 66 69 64 65 6e 74 20 74 | 68 65 79 20 61 72 65 0a |fident t|hey are.|
|000010b0| 09 61 62 6c 65 20 74 6f | 20 6c 6f 63 61 74 65 20 |.able to| locate |
|000010c0| 62 75 67 73 21 20 20 28 | 57 68 61 74 20 69 66 20 |bugs! (|What if |
|000010d0| 61 6e 20 61 72 63 68 69 | 76 65 20 63 6f 6e 74 61 |an archi|ve conta|
|000010e0| 69 6e 73 20 61 20 4d 61 | 63 66 69 6c 65 20 77 69 |ins a Ma|cfile wi|
|000010f0| 74 68 0a 09 74 68 65 20 | 6e 61 6d 65 20 2e 66 69 |th..the |name .fi|
|00001100| 6e 64 65 72 69 6e 66 6f | 20 6f 72 20 2e 72 65 73 |nderinfo| or .res|
|00001110| 6f 75 72 63 65 3f 20 20 | 49 20 68 61 76 65 20 68 |ource? |I have h|
|00001120| 61 64 20 74 77 6f 20 69 | 6e 70 75 74 73 20 66 6f |ad two i|nputs fo|
|00001130| 72 20 41 55 46 53 0a 09 | 73 75 70 70 6f 72 74 20 |r AUFS..|support |
|00001140| 5b 49 20 74 6f 6f 6b 20 | 43 61 73 70 65 72 73 3b |[I took |Caspers;|
|00001150| 20 68 69 73 20 63 61 6d | 65 20 66 69 72 73 74 5d | his cam|e first]|
|00001160| 2c 20 62 75 74 20 62 6f | 74 68 20 64 6f 20 6e 6f |, but bo|th do no|
|00001170| 74 20 64 65 61 6c 20 77 | 69 74 68 0a 09 74 68 61 |t deal w|ith..tha|
|00001180| 74 2e 20 20 44 6f 65 73 | 20 43 41 50 20 64 65 61 |t. Does| CAP dea|
|00001190| 6c 20 77 69 74 68 20 69 | 74 3f 29 20 20 41 6c 73 |l with i|t?) Als|
|000011a0| 6f 20 49 20 68 61 76 65 | 20 6e 6f 20 69 64 65 61 |o I have| no idea|
|000011b0| 20 77 68 65 74 68 65 72 | 20 74 68 69 73 0a 09 76 | whether| this..v|
|000011c0| 65 72 73 69 6f 6e 20 73 | 75 70 70 6f 72 74 73 20 |ersion s|upports |
|000011d0| 69 74 20 75 6e 64 65 72 | 20 53 79 73 56 2c 20 73 |it under| SysV, s|
|000011e0| 6f 20 62 65 77 61 72 65 | 2e 0a 20 20 20 20 32 2e |o beware|.. 2.|
|000011f0| 09 46 72 6f 6d 20 6f 6e | 65 20 6f 66 20 74 68 65 |.From on|e of the|
|00001200| 20 52 45 41 44 4d 45 27 | 73 20 73 75 70 70 6c 69 | README'|s suppli|
|00001210| 65 64 20 62 79 20 43 61 | 73 70 65 72 3a 0a 09 20 |ed by Ca|sper:.. |
|00001220| 20 20 20 46 69 6c 65 73 | 20 77 69 6c 6c 20 6e 6f | Files| will no|
|00001230| 74 20 61 70 70 65 61 72 | 20 69 6e 20 61 6e 20 61 |t appear| in an a|
|00001240| 63 74 69 76 65 20 66 6f | 6c 64 65 72 2c 20 62 65 |ctive fo|lder, be|
|00001250| 63 61 75 73 65 20 41 75 | 66 73 20 64 6f 65 73 6e |cause Au|fs doesn|
|00001260| 27 74 20 6c 69 6b 65 0a | 09 20 20 20 20 70 65 6f |'t like.|. peo|
|00001270| 70 6c 65 20 77 6f 72 6b | 69 6e 67 20 62 65 68 69 |ple work|ing behi|
|00001280| 6e 64 20 69 74 27 73 20 | 62 61 63 6b 2e 0a 09 20 |nd it's |back... |
|00001290| 20 20 20 53 69 6d 70 6c | 79 20 6f 70 65 6e 69 6e | Simpl|y openin|
|000012a0| 67 20 61 6e 64 20 63 6c | 6f 73 69 6e 67 20 74 68 |g and cl|osing th|
|000012b0| 65 20 66 6f 6c 64 65 72 | 20 77 69 6c 6c 20 73 75 |e folder| will su|
|000012c0| 66 66 69 63 65 2e 0a 09 | 41 70 70 65 61 72 73 20 |ffice...|Appears |
|000012d0| 74 6f 20 62 65 20 74 68 | 65 20 73 61 6d 65 20 70 |to be th|e same p|
|000012e0| 72 6f 62 6c 65 6d 20 61 | 73 20 77 68 65 6e 20 79 |roblem a|s when y|
|000012f0| 6f 75 20 61 72 65 20 75 | 6e 70 61 63 6b 69 6e 67 |ou are u|npacking|
|00001300| 20 6f 72 20 69 6e 20 73 | 6f 6d 65 0a 09 6f 74 68 | or in s|ome..oth|
|00001310| 65 72 20 77 61 79 20 63 | 72 65 61 74 69 6e 67 20 |er way c|reating |
|00001320| 66 69 6c 65 73 20 69 6e | 20 61 20 66 6f 6c 64 65 |files in| a folde|
|00001330| 72 20 6f 70 65 6e 20 74 | 6f 20 6d 75 6c 74 69 66 |r open t|o multif|
|00001340| 69 6e 64 65 72 2e 20 20 | 49 20 68 61 76 65 20 73 |inder. |I have s|
|00001350| 65 65 6e 0a 09 62 75 6e | 64 6c 65 20 62 69 74 73 |een..bun|dle bits|
|00001360| 20 64 69 73 61 70 70 65 | 61 72 20 74 68 69 73 20 | disappe|ar this |
|00001370| 77 61 79 2e 20 20 53 6f | 20 69 66 20 61 66 74 65 |way. So| if afte|
|00001380| 72 20 75 6e 70 61 63 6b | 69 6e 67 20 79 6f 75 20 |r unpack|ing you |
|00001390| 73 65 65 20 74 68 65 0a | 09 67 65 6e 65 72 69 63 |see the.|.generic|
|000013a0| 20 69 63 6f 6e 3b 20 63 | 68 65 63 6b 20 77 68 65 | icon; c|heck whe|
|000013b0| 74 68 65 72 20 61 20 64 | 69 66 66 65 72 65 6e 74 |ther a d|ifferent|
|000013c0| 20 69 63 6f 6e 20 73 68 | 6f 75 6c 64 20 61 70 70 | icon sh|ould app|
|000013d0| 65 61 72 20 61 6e 64 20 | 63 68 65 63 6b 0a 09 74 |ear and |check..t|
|000013e0| 68 65 20 62 75 6e 64 6c | 65 20 62 69 74 2e 0a 09 |he bundl|e bit...|
|000013f0| 20 20 20 20 54 68 65 20 | 64 65 73 6b 74 6f 70 20 | The |desktop |
|00001400| 69 73 6e 27 74 20 75 70 | 64 61 74 65 64 2c 20 62 |isn't up|dated, b|
|00001410| 75 74 20 74 68 61 74 20 | 64 6f 65 73 6e 27 74 20 |ut that |doesn't |
|00001420| 73 65 65 6d 20 74 6f 20 | 6d 61 74 74 65 72 2e 20 |seem to |matter. |
|00001430| 0a 09 49 20 64 75 6e 6e | 6f 2c 20 6e 6f 74 20 75 |..I dunn|o, not u|
|00001440| 73 69 6e 67 20 69 74 2e | 0a 65 2e 20 20 41 20 6d |sing it.|.e. A m|
|00001450| 61 6e 20 70 61 67 65 20 | 69 73 20 6e 6f 77 20 73 |an page |is now s|
|00001460| 75 70 70 6c 69 65 64 2e | 20 20 54 68 65 20 62 61 |upplied.| The ba|
|00001470| 73 65 20 77 61 73 20 70 | 72 6f 76 69 64 65 64 20 |se was p|rovided |
|00001480| 62 79 3a 0a 09 44 6f 75 | 67 6c 61 73 20 53 69 65 |by:..Dou|glas Sie|
|00001490| 62 65 72 74 0a 09 49 53 | 43 41 0a 09 64 73 69 65 |bert..IS|CA..dsie|
|000014a0| 62 65 72 74 40 69 63 61 | 65 6e 2e 75 69 6f 77 61 |bert@ica|en.uiowa|
|000014b0| 2e 65 64 75 0a 66 2e 20 | 20 42 65 63 61 75 73 65 |.edu.f. | Because|
|000014c0| 20 6f 66 20 73 6f 6d 65 | 20 70 72 6f 62 6c 65 6d | of some| problem|
|000014d0| 73 20 74 68 65 20 55 6e | 63 6f 6d 70 61 63 74 6f |s the Un|compacto|
|000014e0| 72 20 68 61 73 20 62 65 | 65 6e 20 72 65 77 72 69 |r has be|en rewri|
|000014f0| 74 74 65 6e 2c 20 69 74 | 20 69 73 20 6e 6f 77 0a |tten, it| is now.|
|00001500| 20 20 20 20 62 61 73 65 | 64 20 6f 6e 20 73 6f 75 | base|d on sou|
|00001510| 72 63 65 73 20 66 72 6f | 6d 20 74 68 65 20 64 65 |rces fro|m the de|
|00001520| 61 72 63 68 69 76 65 72 | 20 75 6e 7a 69 70 20 28 |archiver| unzip (|
|00001530| 6f 66 20 50 43 20 66 61 | 6d 65 29 2e 20 20 41 70 |of PC fa|me). Ap|
|00001540| 70 61 72 65 6e 74 6c 79 | 20 74 68 65 0a 20 20 20 |parently| the. |
|00001550| 20 62 61 73 65 20 63 6f | 64 65 20 69 73 20 62 79 | base co|de is by|
|00001560| 3a 0a 09 53 61 6d 75 65 | 6c 20 48 2e 20 53 6d 69 |:..Samue|l H. Smi|
|00001570| 74 68 0a 20 20 20 20 49 | 20 68 61 76 65 20 6e 6f |th. I| have no|
|00001580| 20 66 75 72 74 68 65 72 | 20 61 64 64 72 65 73 73 | further| address|
|00001590| 20 61 76 61 69 6c 61 62 | 6c 65 2c 20 62 75 74 20 | availab|le, but |
|000015a0| 61 73 20 73 6f 6f 6e 20 | 61 73 20 49 20 66 69 6e |as soon |as I fin|
|000015b0| 64 20 61 20 62 65 74 74 | 65 72 0a 20 20 20 20 61 |d a bett|er. a|
|000015c0| 74 74 72 69 62 75 74 69 | 6f 6e 2c 20 49 20 77 69 |ttributi|on, I wi|
|000015d0| 6c 6c 20 69 6e 63 6c 75 | 64 65 20 69 74 2e 0a 67 |ll inclu|de it..g|
|000015e0| 2e 20 20 55 6e 73 74 75 | 66 66 49 74 27 73 20 4c |. Unstu|ffIt's L|
|000015f0| 5a 41 48 20 63 6f 64 65 | 20 63 6f 6d 65 73 20 66 |ZAH code| comes f|
|00001600| 72 6f 6d 20 6c 68 61 72 | 63 20 28 61 6c 73 6f 20 |rom lhar|c (also |
|00001610| 6f 66 20 50 43 20 66 61 | 6d 65 29 20 62 79 3a 0a |of PC fa|me) by:.|
|00001620| 09 48 61 72 75 68 69 6b | 6f 20 4f 6b 75 6d 75 72 |.Haruhik|o Okumur|
|00001630| 61 2c 0a 09 48 61 72 75 | 79 61 73 75 20 59 6f 73 |a,..Haru|yasu Yos|
|00001640| 68 69 7a 61 6b 69 2c 0a | 09 59 6f 6f 69 63 68 69 |hizaki,.|.Yooichi|
|00001650| 20 54 61 67 61 77 61 2e | 0a 68 2e 20 20 53 6f 6d | Tagawa.|.h. Som|
|00001660| 65 20 53 79 73 56 20 69 | 6e 63 6f 6d 70 61 74 69 |e SysV i|ncompati|
|00001670| 62 69 6c 69 74 69 65 73 | 20 68 61 76 65 20 62 65 |bilities| have be|
|00001680| 65 6e 20 72 65 6d 6f 76 | 65 64 2e 20 20 49 20 61 |en remov|ed. I a|
|00001690| 6d 20 6e 6f 74 20 73 75 | 72 65 20 77 68 65 74 68 |m not su|re wheth|
|000016a0| 65 72 20 49 0a 20 20 20 | 20 68 61 76 65 20 74 68 |er I. | have th|
|000016b0| 65 6d 20 61 6c 6c 20 6e | 6f 77 2e 20 20 28 41 70 |em all n|ow. (Ap|
|000016c0| 70 61 72 65 6e 74 6c 79 | 20 53 79 73 74 65 6d 20 |parently| System |
|000016d0| 56 20 63 6f 6d 65 73 20 | 69 6e 20 61 20 6c 6f 74 |V comes |in a lot|
|000016e0| 20 6f 66 20 76 61 72 69 | 65 74 69 65 73 21 29 0a | of vari|eties!).|
|000016f0| 69 2e 20 20 53 6f 6d 65 | 20 63 68 61 6e 67 65 73 |i. Some| changes|
|00001700| 20 66 72 6f 6d 20 61 20 | 6c 65 74 74 65 72 20 49 | from a |letter I|
|00001710| 20 67 6f 74 20 74 68 61 | 74 20 77 61 73 20 69 6e | got tha|t was in|
|00001720| 61 64 76 65 72 74 65 6e | 74 6c 79 20 74 72 61 73 |adverten|tly tras|
|00001730| 68 65 64 2e 0a 20 20 20 | 20 54 68 61 6e 6b 73 20 |hed.. | Thanks |
|00001740| 61 6e 6f 6e 79 6d 6f 75 | 73 21 0a 6a 2e 20 20 4e |anonymou|s!.j. N|
|00001750| 61 6d 69 6e 67 2e 20 20 | 53 6f 6d 65 20 70 65 6f |aming. |Some peo|
|00001760| 70 6c 65 20 68 61 76 65 | 20 63 6f 6d 70 6c 61 69 |ple have| complai|
|00001770| 6e 65 64 20 61 62 6f 75 | 74 20 74 68 65 20 6e 61 |ned abou|t the na|
|00001780| 6d 65 20 63 6f 6e 66 6c | 69 63 74 20 77 69 74 68 |me confl|ict with|
|00001790| 0a 20 20 20 20 74 68 65 | 20 75 6e 70 61 63 6b 20 |. the| unpack |
|000017a0| 75 74 69 6c 69 74 79 20 | 74 68 61 74 20 69 73 20 |utility |that is |
|000017b0| 61 6c 72 65 61 64 79 20 | 61 76 61 69 6c 61 62 6c |already |availabl|
|000017c0| 65 20 6f 6e 20 53 79 73 | 20 56 20 62 6f 78 65 73 |e on Sys| V boxes|
|000017d0| 2e 20 20 49 20 68 61 64 | 0a 20 20 20 20 66 6f 72 |. I had|. for|
|000017e0| 67 6f 74 74 65 6e 20 69 | 74 2c 20 73 6f 20 74 68 |gotten i|t, so th|
|000017f0| 65 72 65 20 72 65 61 6c | 6c 79 20 69 73 20 61 20 |ere real|ly is a |
|00001800| 70 72 6f 62 6c 65 6d 2e | 20 20 54 68 65 20 62 65 |problem.| The be|
|00001810| 73 74 20 77 61 79 20 74 | 6f 20 73 6f 6c 76 65 20 |st way t|o solve |
|00001820| 69 74 0a 20 20 20 20 69 | 73 20 74 6f 20 74 72 61 |it. i|s to tra|
|00001830| 73 68 20 70 61 63 6b 2f | 75 6e 70 61 63 6b 2f 70 |sh pack/|unpack/p|
|00001840| 63 61 74 20 61 6e 64 20 | 72 65 70 6c 61 63 65 20 |cat and |replace |
|00001850| 69 74 20 62 79 20 63 6f | 6d 70 72 65 73 73 2f 75 |it by co|mpress/u|
|00001860| 6e 63 6f 6d 70 72 65 73 | 73 2f 7a 63 61 74 2e 0a |ncompres|s/zcat..|
|00001870| 20 20 20 20 53 75 72 65 | 2c 20 6d 61 6e 20 75 73 | Sure|, man us|
|00001880| 65 73 20 69 74 3b 20 62 | 75 74 20 6d 61 6e 20 75 |es it; b|ut man u|
|00001890| 73 65 73 20 70 63 61 74 | 2c 20 73 6f 20 79 6f 75 |ses pcat|, so you|
|000018a0| 20 63 61 6e 20 72 65 74 | 61 69 6e 20 70 63 61 74 | can ret|ain pcat|
|000018b0| 2e 20 20 49 66 20 74 68 | 61 74 0a 20 20 20 20 69 |. If th|at. i|
|000018c0| 73 20 6e 6f 74 20 61 6e | 20 6f 70 74 69 6f 6e 20 |s not an| option |
|000018d0| 66 65 65 6c 20 66 72 65 | 65 20 74 6f 20 72 65 6e |feel fre|e to ren|
|000018e0| 61 6d 65 20 74 68 65 20 | 70 72 6f 67 72 61 6d 2e |ame the |program.|
|000018f0| 20 20 54 68 65 20 62 65 | 73 74 20 73 75 67 67 65 | The be|st sugge|
|00001900| 73 74 65 64 0a 20 20 20 | 20 6e 65 77 20 6e 61 6d |sted. | new nam|
|00001910| 65 20 49 20 68 61 76 65 | 20 68 65 61 72 64 20 69 |e I have| heard i|
|00001920| 73 20 6d 61 63 75 6e 70 | 61 63 6b 20 28 61 20 62 |s macunp|ack (a b|
|00001930| 69 74 20 6c 6f 6e 67 20 | 62 75 74 20 69 74 20 63 |it long |but it c|
|00001940| 6c 65 61 72 6c 79 20 64 | 69 73 70 6c 61 79 73 0a |learly d|isplays.|
|00001950| 20 20 20 20 6d 61 63 20 | 69 6e 20 74 68 65 20 6e | mac |in the n|
|00001960| 61 6d 65 29 2e 20 20 49 | 20 61 6d 20 6f 70 65 6e |ame). I| am open|
|00001970| 20 74 6f 20 6f 74 68 65 | 72 20 73 75 67 67 65 73 | to othe|r sugges|
|00001980| 74 69 6f 6e 73 3b 20 69 | 66 20 74 68 65 72 65 20 |tions; i|f there |
|00001990| 63 6f 6d 65 73 0a 20 20 | 20 20 73 6f 6d 65 74 68 |comes. | someth|
|000019a0| 69 6e 67 20 72 65 61 6c | 6c 79 20 63 61 74 63 68 |ing real|ly catch|
|000019b0| 79 20 49 20 77 69 6c 6c | 20 61 64 6f 70 74 20 69 |y I will| adopt i|
|000019c0| 74 2e 0a 0a 54 68 65 20 | 70 72 6f 67 72 61 6d 20 |t...The |program |
|000019d0| 75 73 65 73 20 61 20 74 | 61 62 6c 65 20 64 72 69 |uses a t|able dri|
|000019e0| 76 65 6e 20 70 72 6f 67 | 72 61 6d 20 74 6f 20 64 |ven prog|ram to d|
|000019f0| 6f 20 4d 61 63 20 66 69 | 6c 65 6e 61 6d 65 20 2d |o Mac fi|lename -|
|00001a00| 3e 20 55 6e 69 78 20 66 | 69 6c 65 6e 61 6d 65 0a |> Unix f|ilename.|
|00001a10| 74 72 61 6e 73 6c 61 74 | 69 6f 6e 2e 20 20 57 68 |translat|ion. Wh|
|00001a20| 65 6e 20 63 6f 6d 70 69 | 6c 65 64 20 77 69 74 68 |en compi|led with|
|00001a30| 6f 75 74 20 66 75 72 74 | 68 65 72 20 63 68 61 6e |out furt|her chan|
|00001a40| 67 65 73 20 74 68 65 20 | 74 72 61 6e 73 6c 61 74 |ges the |translat|
|00001a50| 69 6f 6e 20 69 73 20 61 | 73 0a 66 6f 6c 6c 6f 77 |ion is a|s.follow|
|00001a60| 73 3a 0a 20 20 20 20 50 | 72 69 6e 74 61 62 6c 65 |s:. P|rintable|
|00001a70| 20 41 53 43 49 49 20 63 | 68 61 72 61 63 74 65 72 | ASCII c|haracter|
|00001a80| 73 20 65 78 63 65 70 74 | 20 73 70 61 63 65 20 61 |s except| space a|
|00001a90| 6e 64 20 73 6c 61 73 68 | 20 61 72 65 20 6e 6f 74 |nd slash| are not|
|00001aa0| 20 63 68 61 6e 67 65 64 | 2e 0a 20 20 20 20 53 6c | changed|.. Sl|
|00001ab0| 61 73 68 20 61 6e 64 20 | 73 70 61 63 65 20 61 72 |ash and |space ar|
|00001ac0| 65 20 63 68 61 6e 67 65 | 64 20 74 6f 20 75 6e 64 |e change|d to und|
|00001ad0| 65 72 73 63 6f 72 65 2c | 20 61 73 20 61 72 65 20 |erscore,| as are |
|00001ae0| 61 6c 6c 20 63 68 61 72 | 61 63 74 65 72 73 20 74 |all char|acters t|
|00001af0| 68 61 74 0a 20 20 20 20 | 64 6f 20 6e 6f 74 20 66 |hat. |do not f|
|00001b00| 61 6c 6c 20 69 6e 20 74 | 68 65 20 66 6f 6c 6c 6f |all in t|he follo|
|00001b10| 77 69 6e 67 20 67 72 6f | 75 70 2e 0a 20 20 20 20 |wing gro|up.. |
|00001b20| 41 63 63 65 6e 74 65 64 | 20 6c 65 74 74 65 72 73 |Accented| letters|
|00001b30| 20 61 72 65 20 74 72 61 | 6e 73 6c 61 74 65 64 20 | are tra|nslated |
|00001b40| 74 6f 20 74 68 65 69 72 | 20 75 6e 61 63 63 65 6e |to their| unaccen|
|00001b50| 74 65 64 20 63 6f 75 6e | 74 65 72 70 61 72 74 73 |ted coun|terparts|
|00001b60| 2e 0a 49 66 20 79 6f 75 | 72 20 73 79 73 74 65 6d |..If you|r system|
|00001b70| 20 73 75 70 70 6f 72 74 | 73 20 74 68 65 20 4c 61 | support|s the La|
|00001b80| 74 69 6e 2d 31 20 63 68 | 61 72 61 63 74 65 72 20 |tin-1 ch|aracter |
|00001b90| 73 65 74 2c 20 79 6f 75 | 20 63 61 6e 20 63 68 61 |set, you| can cha|
|00001ba0| 6e 67 65 20 74 68 69 73 | 0a 74 72 61 6e 73 6c 61 |nge this|.transla|
|00001bb0| 74 69 6f 6e 20 73 63 68 | 65 6d 65 20 62 79 20 73 |tion sch|eme by s|
|00001bc0| 70 65 63 69 66 79 69 6e | 67 20 27 2d 44 4c 41 54 |pecifyin|g '-DLAT|
|00001bd0| 49 4e 31 27 20 66 6f 72 | 20 74 68 65 20 27 43 46 |IN1' for| the 'CF|
|00001be0| 27 20 6d 61 63 72 6f 20 | 69 6e 20 74 68 65 0a 6d |' macro |in the.m|
|00001bf0| 61 6b 65 66 69 6c 65 2e | 20 20 54 68 69 73 20 77 |akefile.| This w|
|00001c00| 69 6c 6c 20 74 72 61 6e | 73 6c 61 74 65 20 61 6c |ill tran|slate al|
|00001c10| 6c 20 61 63 63 65 6e 74 | 65 64 20 6c 65 74 74 65 |l accent|ed lette|
|00001c20| 72 73 20 28 61 6e 64 20 | 73 6f 6d 65 20 73 79 6d |rs (and |some sym|
|00001c30| 62 6f 6c 73 29 0a 74 6f | 20 74 68 65 69 72 20 4c |bols).to| their L|
|00001c40| 61 74 69 6e 2d 31 20 63 | 6f 75 6e 74 65 72 70 61 |atin-1 c|ounterpa|
|00001c50| 72 74 2e 20 20 54 68 69 | 73 20 66 65 61 74 75 72 |rt. Thi|s featur|
|00001c60| 65 20 69 73 20 75 6e 74 | 65 73 74 65 64 20 28 49 |e is unt|ested (I|
|00001c70| 20 64 6f 20 6e 6f 74 20 | 68 61 76 65 0a 61 63 63 | do not |have.acc|
|00001c80| 65 73 73 20 74 6f 20 73 | 79 73 74 65 6d 73 20 74 |ess to s|ystems t|
|00001c90| 68 61 74 20 63 61 74 65 | 72 20 66 6f 72 20 4c 61 |hat cate|r for La|
|00001ca0| 74 69 6e 2d 31 29 2c 20 | 73 6f 20 75 73 65 20 77 |tin-1), |so use w|
|00001cb0| 69 74 68 20 63 61 72 65 | 2e 0a 46 75 74 75 72 65 |ith care|..Future|
|00001cc0| 20 72 65 76 69 73 69 6f | 6e 73 20 6f 66 20 74 68 | revisio|ns of th|
|00001cd0| 65 20 70 72 6f 67 72 61 | 6d 20 77 69 6c 6c 20 68 |e progra|m will h|
|00001ce0| 61 76 65 20 75 73 65 72 | 20 73 65 74 74 61 62 6c |ave user| settabl|
|00001cf0| 65 20 63 6f 6e 76 65 72 | 73 69 6f 6e 73 2e 0a 0a |e conver|sions...|
|00001d00| 41 6e 6f 74 68 65 72 20 | 66 65 61 74 75 72 65 20 |Another |feature |
|00001d10| 6f 66 20 66 69 6c 65 6e | 61 6d 65 20 74 72 61 6e |of filen|ame tran|
|00001d20| 73 6c 61 74 69 6f 6e 20 | 69 73 20 74 68 61 74 20 |slation |is that |
|00001d30| 77 68 65 6e 20 74 68 65 | 20 2d 44 4e 4f 44 4f 54 |when the| -DNODOT|
|00001d40| 20 66 6c 61 67 20 69 73 | 0a 73 70 65 63 69 66 69 | flag is|.specifi|
|00001d50| 65 64 20 69 6e 20 74 68 | 65 20 43 46 20 6d 61 63 |ed in th|e CF mac|
|00001d60| 72 6f 20 61 6e 20 69 6e | 69 74 69 61 6c 20 70 65 |ro an in|itial pe|
|00001d70| 72 69 6f 64 20 77 69 6c | 6c 20 62 65 20 74 72 61 |riod wil|l be tra|
|00001d80| 6e 73 6c 61 74 65 64 20 | 74 6f 20 75 6e 64 65 72 |nslated |to under|
|00001d90| 73 63 6f 72 65 2e 0a 0a | 57 68 65 6e 20 79 6f 75 |score...|When you|
|00001da0| 20 68 61 76 65 20 70 72 | 6f 62 6c 65 6d 73 20 75 | have pr|oblems u|
|00001db0| 6e 70 61 63 6b 69 6e 67 | 20 61 6e 20 61 72 63 68 |npacking| an arch|
|00001dc0| 69 76 65 20 66 65 65 6c | 20 66 72 65 65 20 74 6f |ive feel| free to|
|00001dd0| 20 61 73 6b 20 66 6f 72 | 20 69 6e 66 6f 72 6d 61 | ask for| informa|
|00001de0| 74 69 6f 6e 2e 0a 49 20 | 61 6d 20 65 73 70 65 63 |tion..I |am espec|
|00001df0| 69 61 6c 6c 79 20 6b 65 | 65 6e 20 77 68 65 6e 20 |ially ke|en when |
|00001e00| 74 68 65 20 53 74 75 66 | 66 49 74 20 70 61 72 74 |the Stuf|fIt part|
|00001e10| 20 64 65 74 65 63 74 73 | 20 46 69 78 65 64 20 48 | detects| Fixed H|
|00001e20| 75 66 66 6d 61 6e 20 6f | 72 20 62 69 67 72 61 6d |uffman o|r bigram|
|00001e30| 0a 63 6f 6d 70 72 65 73 | 73 69 6f 6e 20 6d 65 74 |.compres|sion met|
|00001e40| 68 6f 64 73 2e 20 20 49 | 66 20 79 6f 75 20 65 6e |hods. I|f you en|
|00001e50| 63 6f 75 6e 74 65 72 20 | 73 75 63 68 20 61 6e 20 |counter |such an |
|00001e60| 61 72 63 68 69 76 65 2c | 20 70 6c 65 61 73 65 2c |archive,| please,|
|00001e70| 20 6d 61 69 6c 20 61 0a | 27 62 69 6e 68 65 78 65 | mail a.|'binhexe|
|00001e80| 64 27 20 63 6f 70 79 20 | 6f 66 20 74 68 65 20 61 |d' copy |of the a|
|00001e90| 72 63 68 69 76 65 20 74 | 6f 20 6d 65 20 73 6f 20 |rchive t|o me so |
|00001ea0| 74 68 61 74 20 49 20 63 | 61 6e 20 64 65 61 6c 20 |that I c|an deal |
|00001eb0| 77 69 74 68 20 69 74 2e | 20 20 50 61 73 73 77 6f |with it.| Passwo|
|00001ec0| 72 64 0a 70 72 6f 74 65 | 63 74 65 64 20 61 72 63 |rd.prote|cted arc|
|00001ed0| 68 69 76 65 73 20 61 72 | 65 20 28 61 73 20 61 6c |hives ar|e (as al|
|00001ee0| 72 65 61 64 79 20 73 74 | 61 74 65 64 29 20 6e 6f |ready st|ated) no|
|00001ef0| 74 20 69 6d 70 6c 65 6d | 65 6e 74 65 64 2e 20 20 |t implem|ented. |
|00001f00| 49 20 64 6f 20 6e 6f 74 | 20 68 61 76 65 20 6d 75 |I do not| have mu|
|00001f10| 63 68 0a 69 6e 63 6c 69 | 6e 61 74 69 6f 6e 20 74 |ch.incli|nation t|
|00001f20| 6f 20 64 6f 20 74 68 61 | 74 2e 20 20 41 6c 73 6f |o do tha|t. Also|
|00001f30| 20 49 20 66 65 65 6c 20 | 6e 6f 20 69 6e 63 6c 69 | I feel |no incli|
|00001f40| 6e 61 74 69 6f 6e 20 74 | 6f 20 64 6f 20 6d 75 6c |nation t|o do mul|
|00001f50| 74 69 2d 66 69 6c 65 20 | 61 72 63 68 69 76 65 73 |ti-file |archives|
|00001f60| 2e 0a 54 68 69 73 20 69 | 73 20 74 68 65 20 66 69 |..This i|s the fi|
|00001f70| 72 73 74 20 69 6e 20 61 | 20 73 65 74 20 6f 66 20 |rst in a| set of |
|00001f80| 4d 61 63 20 75 74 69 6c | 69 74 69 65 73 20 6f 6e |Mac util|ities on|
|00001f90| 20 55 6e 69 78 20 49 20 | 61 6d 20 77 72 69 74 69 | Unix I |am writi|
|00001fa0| 6e 67 3b 20 74 68 65 72 | 65 20 69 73 0a 6d 6f 72 |ng; ther|e is.mor|
|00001fb0| 65 20 69 6e 20 74 68 65 | 20 70 69 70 65 6c 69 6e |e in the| pipelin|
|00001fc0| 65 2e 0a 0a 41 6c 6c 20 | 63 6f 6d 6d 65 6e 74 73 |e...All |comments|
|00001fd0| 20 61 72 65 20 73 74 69 | 6c 6c 20 77 65 6c 63 6f | are sti|ll welco|
|00001fe0| 6d 65 2e 20 20 41 6c 74 | 68 6f 75 67 68 20 49 20 |me. Alt|hough I |
|00001ff0| 77 69 6c 6c 20 6e 6f 74 | 20 61 6e 73 77 65 72 20 |will not| answer |
|00002000| 62 65 66 6f 72 65 20 28 | 61 70 70 72 6f 78 2e 29 |before (|approx.)|
|00002010| 20 74 68 65 0a 66 69 66 | 74 68 20 6f 66 20 61 75 | the.fif|th of au|
|00002020| 67 75 73 74 2e 20 20 54 | 68 61 6e 6b 73 20 66 6f |gust. T|hanks fo|
|00002030| 72 20 74 68 65 20 63 6f | 6d 6d 65 6e 74 73 20 49 |r the co|mments I|
|00002040| 20 61 6c 72 65 61 64 79 | 20 72 65 63 65 69 76 65 | already| receive|
|00002050| 64 2e 0a 0a 64 69 6b 20 | 74 2e 20 77 69 6e 74 65 |d...dik |t. winte|
|00002060| 72 2c 20 61 6d 73 74 65 | 72 64 61 6d 2c 20 6e 65 |r, amste|rdam, ne|
|00002070| 64 65 72 6c 61 6e 64 0a | 65 6d 61 69 6c 3a 20 64 |derland.|email: d|
|00002080| 69 6b 40 63 77 69 2e 6e | 6c 0a 0a 2d 2d 0a 4e 6f |ik@cwi.n|l..--.No|
|00002090| 74 65 3a 0a 54 68 65 72 | 65 20 6d 61 79 20 6f 72 |te:.Ther|e may or|
|000020a0| 20 6d 61 79 20 6e 6f 74 | 20 62 65 20 43 6f 70 79 | may not| be Copy|
|000020b0| 72 69 67 68 74 20 70 72 | 6f 62 6c 65 6d 73 20 77 |right pr|oblems w|
|000020c0| 69 74 68 20 74 68 65 20 | 70 72 65 76 69 6f 75 73 |ith the |previous|
|000020d0| 20 76 65 72 73 69 6f 6e | 20 6f 66 0a 74 68 69 73 | version| of.this|
|000020e0| 20 70 72 6f 67 72 61 6d | 2e 20 20 49 6e 20 74 68 | program|. In th|
|000020f0| 65 20 63 75 72 72 65 6e | 74 20 76 65 72 73 69 6f |e curren|t versio|
|00002100| 6e 20 61 6c 6c 20 61 6c | 67 6f 72 69 74 68 6d 73 |n all al|gorithms|
|00002110| 20 61 72 65 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 | are imp|lemented|
|00002120| 20 62 61 73 65 64 0a 6f | 6e 20 70 75 62 6c 69 63 | based.o|n public|
|00002130| 6c 79 20 61 76 61 69 6c | 61 62 6c 65 20 73 6f 66 |ly avail|able sof|
|00002140| 74 77 61 72 65 20 74 6f | 20 70 72 65 76 65 6e 74 |tware to| prevent|
|00002150| 20 61 6e 79 20 63 6c 61 | 69 6d 20 74 6f 20 43 6f | any cla|im to Co|
|00002160| 70 79 72 69 67 68 74 2e | 20 20 49 74 20 69 73 20 |pyright.| It is |
|00002170| 6d 79 0a 6f 70 69 6e 69 | 6f 6e 20 74 68 61 74 20 |my.opini|on that |
|00002180| 74 68 65 20 70 72 65 76 | 69 6f 75 73 20 76 65 72 |the prev|ious ver|
|00002190| 73 69 6f 6e 20 64 69 64 | 20 6e 6f 74 20 69 6e 66 |sion did| not inf|
|000021a0| 72 69 6e 67 65 20 6f 6e | 20 43 6f 70 79 72 69 67 |ringe on| Copyrig|
|000021b0| 68 74 20 62 75 74 2c 20 | 74 6f 20 62 65 0a 73 75 |ht but, |to be.su|
|000021c0| 72 65 2c 20 74 68 69 73 | 20 6f 6e 65 20 63 65 72 |re, this| one cer|
|000021d0| 74 61 69 6e 6c 79 20 64 | 6f 65 73 20 6e 6f 74 2e |tainly d|oes not.|
|000021e0| 20 20 49 66 20 79 6f 75 | 20 68 61 76 65 20 61 6e | If you| have an|
|000021f0| 20 6f 6c 64 65 72 20 76 | 65 72 73 69 6f 6e 20 6c | older v|ersion l|
|00002200| 75 72 6b 69 6e 67 0a 61 | 72 6f 75 6e 64 2c 20 70 |urking.a|round, p|
|00002210| 6c 65 61 73 65 20 72 65 | 6d 6f 76 65 20 69 74 2e |lease re|move it.|
|00002220| 0a 73 2c 20 73 6f 20 49 | 20 61 6d 20 6e 6f 74 0a |.s, so I| am not.|
|00002230| 20 20 20 20 77 69 6c 6c | 69 6e 67 20 74 6f 20 77 | will|ing to w|
|00002240| 72 69 74 65 20 61 6e 64 | 20 61 6d 20 6e 6f 74 20 |rite and| am not |
|00002250| 61 62 6c 65 20 74 6f 20 | 74 65 73 74 20 63 6f 64 |able to |test cod|
|00002260| 65 21 29 0a 0a 52 65 71 | 75 69 72 65 6d 65 6e 74 |e!)..Req|uirement|
|00002270| 73 3a 0a 61 2e 20 20 4f | 66 20 63 6f 75 72 73 65 |s:.a. O|f course|
|00002280| 20 61 20 43 20 63 6f 6d | 70 69 6c 65 72 2e 0a 62 | a C com|piler..b|
|00002290| 2e 20 20 41 20 33 32 2d | 62 69 74 20 6d 61 63 68 |. A 32-|bit mach|
|000022a0| 69 6e 65 20 77 69 74 68 | 20 6c 61 72 67 65 20 6d |ine with| large m|
|000022b0| 65 6d 6f 72 79 20 28 6f | 72 20 61 74 20 6c 65 61 |emory (o|r at lea|
|000022c0| 73 74 20 74 68 65 20 61 | 62 69 6c 69 74 79 20 74 |st the a|bility t|
|000022d0| 6f 20 27 6d 61 6c 6c 6f | 63 27 0a 20 20 20 20 6c |o 'mallo|c'. l|
|000022e0| 61 72 67 65 20 63 68 75 | 6e 6b 73 20 6f 66 20 6d |arge chu|nks of m|
|000022f0| 65 6d 6f 72 79 29 2e 20 | 20 46 6f 72 20 72 65 61 |emory). | For rea|
|00002300| 73 6f 6e 73 20 6f 66 20 | 65 66 66 69 63 69 65 6e |sons of |efficien|
|00002310| 63 79 20 61 6e 64 20 73 | 69 6d 70 6c 69 63 69 74 |cy and s|implicit|
|00002320| 79 20 74 68 65 0a 20 20 | 20 20 70 72 6f 67 72 61 |y the. | progra|
|00002330| 6d 20 75 6e 70 61 63 6b | 73 20 27 69 6e 2d 63 6f |m unpack|s 'in-co|
|00002340| 72 65 27 2c 20 61 6c 73 | 6f 20 43 6f 6d 70 61 63 |re', als|o Compac|
|00002350| 74 6f 72 20 61 72 63 68 | 69 76 65 73 20 61 72 65 |tor arch|ives are|
|00002360| 20 66 69 72 73 74 20 72 | 65 61 64 20 69 6e 0a 20 | first r|ead in. |
|00002370| 20 20 20 63 6f 72 65 2e | 20 20 49 66 20 73 6f 6d | core.| If som|
|00002380| 65 62 6f 64 79 20 63 61 | 6e 20 74 61 6b 65 20 74 |ebody ca|n take t|
|00002390| 68 65 20 74 72 6f 75 62 | 6c 65 20 74 6f 20 64 6f |he troub|le to do|
|000023a0| 20 69 74 20 64 69 66 66 | 65 72 65 6e 74 6c 79 2c | it diff|erently,|
|000023b0| 20 67 6f 20 61 68 65 61 | 64 21 0a 20 20 20 20 54 | go ahea|d!. T|
|000023c0| 68 65 72 65 20 61 72 65 | 20 61 6c 73 6f 20 70 72 |here are| also pr|
|000023d0| 6f 62 61 62 6c 79 20 69 | 6e 20 61 20 6e 75 6d 62 |obably i|n a numb|
|000023e0| 65 72 20 6f 66 20 70 6c | 61 63 65 73 20 69 6d 70 |er of pl|aces imp|
|000023f0| 6c 69 63 69 74 20 61 73 | 73 75 6d 70 74 69 6f 6e |licit as|sumption|
|00002400| 6d 61 63 75 74 69 6c 2f | 63 72 63 2f 00 00 00 00 |macutil/|crc/....|
|00002410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002460| 00 00 00 00 30 30 30 37 | 37 35 20 00 30 32 33 34 |....0007|75 .0234|
|00002470| 33 36 20 00 30 30 30 31 | 35 36 20 00 30 30 30 30 |36 .0001|56 .0000|
|00002480| 30 30 30 30 30 30 30 20 | 30 35 30 36 32 31 35 31 |0000000 |05062151|
|00002490| 34 37 30 20 30 31 33 31 | 30 30 00 20 35 00 00 00 |470 0131|00. 5...|
|000024a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002500| 00 75 73 74 61 72 00 30 | 30 68 76 00 00 00 00 00 |.ustar.0|0hv.....|
|00002510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002520| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00002530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002540| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 35 36 20 |........|.000056 |
|00002550| 00 30 30 30 32 32 36 20 | 00 00 00 00 00 00 00 00 |.000226 |........|
|00002560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002600| 6d 61 63 75 74 69 6c 2f | 63 72 63 2f 52 45 41 44 |macutil/|crc/READ|
|00002610| 4d 45 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ME......|........|
|00002620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002660| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 32 33 34 |....0006|64 .0234|
|00002670| 33 36 20 00 30 30 30 31 | 35 36 20 00 30 30 30 30 |36 .0001|56 .0000|
|00002680| 30 30 30 30 33 35 34 20 | 30 35 30 36 32 31 35 31 |0000354 |05062151|
|00002690| 34 36 36 20 30 31 33 37 | 37 30 00 20 30 00 00 00 |466 0137|70. 0...|
|000026a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002700| 00 75 73 74 61 72 00 30 | 30 68 76 00 00 00 00 00 |.ustar.0|0hv.....|
|00002710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002720| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00002730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002740| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 35 36 20 |........|.000056 |
|00002750| 00 30 30 30 32 32 37 20 | 00 00 00 00 00 00 00 00 |.000227 |........|
|00002760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002800| 54 68 69 73 20 63 6f 64 | 65 20 69 73 20 62 61 73 |This cod|e is bas|
|00002810| 65 64 20 6f 6e 20 74 68 | 65 20 63 6f 64 65 20 64 |ed on th|e code d|
|00002820| 65 73 63 72 69 62 65 64 | 20 69 6e 20 52 45 41 44 |escribed| in READ|
|00002830| 4d 45 2e 4f 52 49 47 2e | 0a 43 68 61 6e 67 65 73 |ME.ORIG.|.Changes|
|00002840| 20 61 72 65 3a 0a 31 2e | 09 41 20 70 72 6f 67 72 | are:.1.|.A progr|
|00002850| 61 6d 20 28 6d 61 6b 65 | 63 72 63 29 20 77 69 6c |am (make|crc) wil|
|00002860| 6c 20 63 72 65 61 74 65 | 20 74 68 65 20 64 69 66 |l create| the dif|
|00002870| 66 65 72 65 6e 74 20 43 | 20 73 6f 75 72 63 65 0a |ferent C| source.|
|00002880| 09 66 69 6c 65 73 20 74 | 6f 20 64 6f 20 63 72 63 |.files t|o do crc|
|00002890| 20 63 61 6c 63 75 6c 61 | 74 69 6f 6e 73 2e 0a 32 | calcula|tions..2|
|000028a0| 2e 09 54 68 65 20 63 72 | 63 20 63 61 6c 63 75 6c |..The cr|c calcul|
|000028b0| 61 74 69 6f 6e 20 6d 65 | 74 68 6f 64 20 6f 66 20 |ation me|thod of |
|000028c0| 62 69 6e 68 65 78 20 69 | 73 20 61 64 64 65 64 2e |binhex i|s added.|
|000028d0| 0a 33 2e 09 33 32 20 62 | 69 74 20 63 72 63 27 73 |.3..32 b|it crc's|
|000028e0| 20 61 72 65 20 61 64 64 | 65 64 2e 0a 65 0a 6f 70 | are add|ed..e.op|
|000028f0| 65 72 61 74 6f 72 3a 3a | 32 37 3a 72 6f 6f 74 2c |erator::|27:root,|
|00002900| 68 76 2c 68 68 0a 6e 65 | 74 77 6f 72 6b 3a 3a 37 |hv,hh.ne|twork::7|
|00002910| 37 3a 68 76 2c 68 68 0a | 66 6b 3a 3a 31 30 30 3a |7:hv,hh.|fk::100:|
|00002920| 6a 70 65 0a 74 74 3a 3a | 31 30 31 3a 74 6b 61 0a |jpe.tt::|101:tka.|
|00002930| 66 74 70 3a 3a 31 30 38 | 3a 68 76 2c 68 68 2c 74 |ftp::108|:hv,hh,t|
|00002940| 73 0a 73 74 61 66 66 3a | 3a 31 31 30 3a 68 68 2c |s.staff:|:110:hh,|
|00002950| 68 76 2c 74 73 0a 74 74 | 79 3a 3a 31 32 31 3a 0a |hv,ts.tt|y::121:.|
|00002960| 2f 75 73 72 2f 6c 69 62 | 2f 75 75 63 70 2f 75 75 |/usr/lib|/uucp/uu|
|00002970| 63 69 63 6f 0a 6e 6f 62 | 6f 64 79 3a 2a 3a 31 34 |cico.nob|ody:*:14|
|00002980| 3a 31 34 3a 66 6f 72 20 | 77 65 61 6b 20 64 61 65 |:14:for |weak dae|
|00002990| 6d 6f 6e 73 3a 2f 74 6d | 70 3a 0a 72 6a 65 3a 2a |mons:/tm|p:.rje:*|
|000029a0| 3a 31 38 3a 31 38 3a 30 | 30 30 30 2d 72 6a 65 28 |:18:18:0|000-rje(|
|000029b0| 30 30 30 30 29 3a 2f 75 | 73 72 2f 72 6a 65 3a 0a |0000):/u|sr/rje:.|
|000029c0| 6c 70 3a 38 76 61 42 53 | 30 59 62 67 4d 5a 36 73 |lp:8vaBS|0YbgMZ6s|
|000029d0| 3a 37 31 3a 32 3a 30 30 | 30 30 2d 6c 70 28 30 30 |:71:2:00|00-lp(00|
|000029e0| 30 30 29 3a 2f 75 73 72 | 2f 73 70 6f 6f 6c 2f 6c |00):/usr|/spool/l|
|000029f0| 70 3a 0a 6d 61 6e 3a 2a | 3a 39 39 3a 31 3a 30 30 |p:.man:*|:99:1:00|
|00002a00| 6d 61 63 75 74 69 6c 2f | 63 72 63 2f 6d 61 6b 65 |macutil/|crc/make|
|00002a10| 63 72 63 2e 63 00 00 00 | 00 00 00 00 00 00 00 00 |crc.c...|........|
|00002a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a60| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 32 33 34 |....0006|64 .0234|
|00002a70| 33 36 20 00 30 30 30 31 | 35 36 20 00 30 30 30 30 |36 .0001|56 .0000|
|00002a80| 30 30 30 37 37 30 34 20 | 30 35 30 36 32 31 35 31 |0007704 |05062151|
|00002a90| 34 36 37 20 30 31 34 36 | 37 30 00 20 30 00 00 00 |467 0146|70. 0...|
|00002aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b00| 00 75 73 74 61 72 00 30 | 30 68 76 00 00 00 00 00 |.ustar.0|0hv.....|
|00002b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b20| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00002b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b40| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 35 36 20 |........|.000056 |
|00002b50| 00 30 30 30 33 34 34 20 | 00 00 00 00 00 00 00 00 |.000344 |........|
|00002b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c00| 2f 2a 20 54 68 69 73 20 | 70 72 6f 67 72 61 6d 20 |/* This |program |
|00002c10| 77 69 6c 6c 20 77 72 69 | 74 65 20 73 69 78 20 43 |will wri|te six C|
|00002c20| 20 72 6f 75 74 69 6e 65 | 73 20 66 6f 72 20 74 68 | routine|s for th|
|00002c30| 65 20 63 61 6c 63 75 6c | 61 74 69 6f 6e 20 6f 66 |e calcul|ation of|
|00002c40| 0a 20 2a 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |. * the |followin|
|00002c50| 67 20 43 52 43 27 73 2e | 20 2a 2f 0a 0a 2f 2a 20 |g CRC's.| */../* |
|00002c60| 54 68 65 20 43 52 43 20 | 70 6f 6c 79 6e 6f 6d 69 |The CRC |polynomi|
|00002c70| 61 6c 2e 0a 20 2a 20 54 | 68 65 73 65 20 34 20 76 |al.. * T|hese 4 v|
|00002c80| 61 6c 75 65 73 20 64 65 | 66 69 6e 65 20 74 68 65 |alues de|fine the|
|00002c90| 20 63 72 63 2d 70 6f 6c | 79 6e 6f 6d 69 61 6c 2e | crc-pol|ynomial.|
|00002ca0| 0a 20 2a 20 49 66 20 79 | 6f 75 20 63 68 61 6e 67 |. * If y|ou chang|
|00002cb0| 65 20 74 68 65 6d 2c 20 | 79 6f 75 20 6d 75 73 74 |e them, |you must|
|00002cc0| 20 63 68 61 6e 67 65 20 | 63 72 63 74 61 62 5b 5d | change |crctab[]|
|00002cd0| 27 73 20 69 6e 69 74 69 | 61 6c 20 76 61 6c 75 65 |'s initi|al value|
|00002ce0| 20 74 6f 20 77 68 61 74 | 20 69 73 0a 20 2a 20 70 | to what| is. * p|
|00002cf0| 72 69 6e 74 65 64 20 62 | 79 20 69 6e 69 74 63 72 |rinted b|y initcr|
|00002d00| 63 74 61 62 28 29 20 5b | 73 65 65 20 27 63 6f 6d |ctab() [|see 'com|
|00002d10| 70 69 6c 65 20 77 69 74 | 68 20 2d 44 4d 41 4b 45 |pile wit|h -DMAKE|
|00002d20| 54 41 42 27 20 61 62 6f | 76 65 5d 2e 0a 20 2a 2f |TAB' abo|ve].. */|
|00002d30| 0a 0a 2f 2a 20 54 68 69 | 73 20 74 61 62 6c 65 73 |../* Thi|s tables|
|00002d40| 20 61 73 73 75 6d 65 73 | 20 43 43 49 54 54 20 69 | assumes| CCITT i|
|00002d50| 73 20 4d 53 42 20 66 69 | 72 73 74 2e 20 20 53 77 |s MSB fi|rst. Sw|
|00002d60| 61 70 70 65 64 20 6d 65 | 61 6e 73 20 4c 53 42 20 |apped me|ans LSB |
|00002d70| 66 69 72 73 74 2e 20 20 | 20 49 6e 20 74 68 61 74 |first. | In that|
|00002d80| 0a 20 2a 20 63 61 73 65 | 20 74 68 65 20 70 6f 6c |. * case| the pol|
|00002d90| 79 6e 6f 6d 69 61 6c 20 | 69 73 20 61 6c 73 6f 20 |ynomial |is also |
|00002da0| 73 77 61 70 70 65 64 0a | 20 2a 2f 0a 0a 2f 2a 20 |swapped.| */../* |
|00002db0| 31 36 20 62 69 74 20 63 | 72 63 27 73 20 2a 2f 0a |16 bit c|rc's */.|
|00002dc0| 2f 2a 20 56 61 6c 75 65 | 20 75 73 65 64 20 62 79 |/* Value| used by|
|00002dd0| 3a 09 09 09 43 43 49 54 | 54 09 4b 45 52 4d 49 54 |:...CCIT|T.KERMIT|
|00002de0| 09 41 52 43 09 42 49 4e | 48 45 58 09 2a 2f 0a 2f |.ARC.BIN|HEX.*/./|
|00002df0| 2a 20 74 68 65 20 70 6f | 6c 79 3a 09 09 09 09 30 |* the po|ly:....0|
|00002e00| 78 31 30 32 31 09 30 78 | 38 34 30 38 09 30 78 41 |x1021.0x|8408.0xA|
|00002e10| 30 30 31 09 30 78 31 30 | 32 31 09 2a 2f 0a 2f 2a |001.0x10|21.*/./*|
|00002e20| 20 6f 72 69 67 69 6e 61 | 6c 3a 09 09 09 09 30 78 | origina|l:....0x|
|00002e30| 31 30 32 31 09 30 78 31 | 30 32 31 09 30 78 38 30 |1021.0x1|021.0x80|
|00002e40| 30 35 09 30 78 31 30 32 | 31 09 2a 2f 0a 2f 2a 20 |05.0x102|1.*/./* |
|00002e50| 69 6e 69 74 20 76 61 6c | 75 65 3a 09 09 09 09 2d |init val|ue:....-|
|00002e60| 31 09 30 09 30 09 30 09 | 2a 2f 0a 2f 2a 20 73 77 |1.0.0.0.|*/./* sw|
|00002e70| 61 70 70 65 64 3a 09 09 | 09 09 6e 6f 09 79 65 73 |apped:..|..no.yes|
|00002e80| 09 79 65 73 09 6e 6f 09 | 2a 2f 0a 2f 2a 20 62 69 |.yes.no.|*/./* bi|
|00002e90| 74 73 20 69 6e 20 43 52 | 43 3a 09 09 09 09 31 36 |ts in CR|C:....16|
|00002ea0| 09 31 36 09 31 36 09 31 | 36 09 2a 2f 0a 2f 2a 20 |.16.16.1|6.*/./* |
|00002eb0| 41 52 43 20 75 73 65 64 | 20 62 79 20 4c 48 41 52 |ARC used| by LHAR|
|00002ec0| 43 2c 20 5a 4f 4f 2c 20 | 53 54 55 46 46 49 54 09 |C, ZOO, |STUFFIT.|
|00002ed0| 09 09 09 09 2a 2f 0a 2f | 2a 20 42 49 4e 48 45 58 |....*/./|* BINHEX|
|00002ee0| 20 75 73 65 64 20 62 79 | 20 58 4d 4f 44 45 4d 2c | used by| XMODEM,|
|00002ef0| 20 50 41 43 4b 49 54 09 | 09 09 09 09 2a 2f 0a 0a | PACKIT.|....*/..|
|00002f00| 2f 2a 20 33 32 20 62 69 | 74 20 63 72 63 27 73 20 |/* 32 bi|t crc's |
|00002f10| 2a 2f 0a 2f 2a 20 56 61 | 6c 75 65 20 75 73 65 64 |*/./* Va|lue used|
|00002f20| 20 62 79 3a 09 09 09 43 | 43 49 54 54 33 32 09 09 | by:...C|CITT32..|
|00002f30| 5a 49 50 09 09 2a 2f 0a | 2f 2a 20 74 68 65 20 70 |ZIP..*/.|/* the p|
|00002f40| 6f 6c 79 3a 09 09 09 09 | 30 78 30 34 63 31 31 64 |oly:....|0x04c11d|
|00002f50| 62 37 09 30 78 65 64 62 | 38 38 33 32 30 09 2a 2f |b7.0xedb|88320.*/|
|00002f60| 0a 2f 2a 20 6f 72 69 67 | 69 6e 61 6c 3a 09 09 09 |./* orig|inal:...|
|00002f70| 09 30 78 30 34 63 31 31 | 64 62 37 09 30 78 30 34 |.0x04c11|db7.0x04|
|00002f80| 63 31 31 64 62 37 09 2a | 2f 0a 2f 2a 20 69 6e 69 |c11db7.*|/./* ini|
|00002f90| 74 20 76 61 6c 75 65 3a | 09 09 09 09 2d 31 09 09 |t value:|....-1..|
|00002fa0| 2d 31 09 09 2a 2f 0a 2f | 2a 20 73 77 61 70 70 65 |-1..*/./|* swappe|
|00002fb0| 64 09 09 09 09 6e 6f 09 | 09 79 65 73 09 09 2a 2f |d....no.|.yes..*/|
|00002fc0| 0a 2f 2a 20 62 69 74 73 | 20 69 6e 20 43 52 43 3a |./* bits| in CRC:|
|00002fd0| 09 09 09 09 33 32 09 09 | 33 32 09 09 2a 2f 0a 2f |....32..|32..*/./|
|00002fe0| 2a 20 5a 49 50 20 75 73 | 65 64 20 62 79 20 43 4f |* ZIP us|ed by CO|
|00002ff0| 4d 50 41 43 54 4f 52 09 | 09 09 09 09 09 2a 2f 0a |MPACTOR.|.....*/.|
|00003000| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 69 6f |.#includ|e <stdio|
|00003010| 2e 68 3e 0a 0a 6d 61 69 | 6e 28 29 0a 7b 0a 20 20 |.h>..mai|n().{. |
|00003020| 20 20 69 6e 69 74 63 72 | 63 74 61 62 28 22 63 63 | initcr|ctab("cc|
|00003030| 69 74 74 22 2c 20 30 78 | 31 30 32 31 2c 20 30 78 |itt", 0x|1021, 0x|
|00003040| 66 66 66 66 2c 20 30 2c | 20 31 36 29 3b 0a 20 20 |ffff, 0,| 16);. |
|00003050| 20 20 69 6e 69 74 63 72 | 63 74 61 62 28 22 6b 65 | initcr|ctab("ke|
|00003060| 72 6d 69 74 22 2c 20 30 | 78 38 34 30 38 2c 20 30 |rmit", 0|x8408, 0|
|00003070| 2c 20 31 2c 20 31 36 29 | 3b 0a 20 20 20 20 69 6e |, 1, 16)|;. in|
|00003080| 69 74 63 72 63 74 61 62 | 28 22 61 72 63 22 2c 20 |itcrctab|("arc", |
|00003090| 30 78 61 30 30 31 2c 20 | 30 2c 20 31 2c 20 31 36 |0xa001, |0, 1, 16|
|000030a0| 29 3b 0a 20 20 20 20 69 | 6e 69 74 63 72 63 74 61 |);. i|nitcrcta|
|000030b0| 62 28 22 62 69 6e 68 65 | 78 22 2c 20 30 78 31 30 |b("binhe|x", 0x10|
|000030c0| 32 31 2c 20 30 2c 20 30 | 2c 20 31 36 29 3b 0a 20 |21, 0, 0|, 16);. |
|000030d0| 20 20 20 69 6e 69 74 63 | 72 63 74 61 62 28 22 63 | initc|rctab("c|
|000030e0| 63 69 74 74 33 32 22 2c | 30 78 30 34 63 31 31 64 |citt32",|0x04c11d|
|000030f0| 62 37 2c 30 78 66 66 66 | 66 66 66 66 66 2c 30 2c |b7,0xfff|fffff,0,|
|00003100| 33 32 29 3b 0a 20 20 20 | 20 69 6e 69 74 63 72 63 |32);. | initcrc|
|00003110| 74 61 62 28 22 7a 69 70 | 22 2c 30 78 65 64 62 38 |tab("zip|",0xedb8|
|00003120| 38 33 32 30 2c 30 78 66 | 66 66 66 66 66 66 66 2c |8320,0xf|fffffff,|
|00003130| 31 2c 33 32 29 3b 0a 20 | 20 20 20 65 78 69 74 28 |1,32);. | exit(|
|00003140| 30 29 3b 0a 7d 0a 0a 69 | 6e 69 74 63 72 63 74 61 |0);.}..i|nitcrcta|
|00003150| 62 28 6e 61 6d 65 2c 20 | 70 6f 6c 79 2c 20 69 6e |b(name, |poly, in|
|00003160| 69 74 2c 20 73 77 61 70 | 70 65 64 2c 20 62 69 74 |it, swap|ped, bit|
|00003170| 73 29 0a 63 68 61 72 20 | 2a 6e 61 6d 65 3b 0a 69 |s).char |*name;.i|
|00003180| 6e 74 20 70 6f 6c 79 2c | 20 69 6e 69 74 2c 20 73 |nt poly,| init, s|
|00003190| 77 61 70 70 65 64 2c 20 | 62 69 74 73 3b 0a 7b 0a |wapped, |bits;.{.|
|000031a0| 20 20 20 20 72 65 67 69 | 73 74 65 72 20 20 69 6e | regi|ster in|
|000031b0| 74 20 62 2c 20 69 3b 0a | 20 20 20 20 75 6e 73 69 |t b, i;.| unsi|
|000031c0| 67 6e 65 64 20 73 68 6f | 72 74 20 76 3b 0a 20 20 |gned sho|rt v;. |
|000031d0| 20 20 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 20 | unsign|ed long |
|000031e0| 76 76 3b 0a 20 20 20 20 | 46 49 4c 45 20 2a 66 64 |vv;. |FILE *fd|
|000031f0| 3b 0a 20 20 20 20 63 68 | 61 72 20 62 75 66 5b 32 |;. ch|ar buf[2|
|00003200| 30 5d 3b 0a 20 20 20 20 | 0a 20 20 20 20 62 75 66 |0];. |. buf|
|00003210| 5b 30 5d 20 3d 20 30 3b | 0a 20 20 20 20 73 74 72 |[0] = 0;|. str|
|00003220| 63 61 74 28 62 75 66 2c | 20 6e 61 6d 65 29 3b 0a |cat(buf,| name);.|
|00003230| 20 20 20 20 73 74 72 63 | 61 74 28 62 75 66 2c 20 | strc|at(buf, |
|00003240| 22 2e 63 22 29 3b 0a 20 | 20 20 20 69 66 28 28 66 |".c");. | if((f|
|00003250| 64 20 3d 20 66 6f 70 65 | 6e 28 62 75 66 2c 20 22 |d = fope|n(buf, "|
|00003260| 77 22 29 29 20 3d 3d 20 | 4e 55 4c 4c 29 20 7b 0a |w")) == |NULL) {.|
|00003270| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|00003280| 20 22 43 61 6e 6e 6f 74 | 20 6f 70 65 6e 20 25 73 | "Cannot| open %s|
|00003290| 20 66 6f 72 20 77 72 69 | 74 69 6e 67 5c 6e 22 2c | for wri|ting\n",|
|000032a0| 20 62 75 66 29 3b 0a 09 | 65 78 69 74 28 31 29 3b | buf);..|exit(1);|
|000032b0| 0a 20 20 20 20 7d 0a 20 | 20 20 20 66 70 72 69 6e |. }. | fprin|
|000032c0| 74 66 28 66 64 2c 20 22 | 75 6e 73 69 67 6e 65 64 |tf(fd, "|unsigned|
|000032d0| 20 6c 6f 6e 67 20 25 73 | 5f 63 72 63 69 6e 69 74 | long %s|_crcinit|
|000032e0| 20 3d 20 25 64 3b 5c 6e | 22 2c 20 6e 61 6d 65 2c | = %d;\n|", name,|
|000032f0| 20 69 6e 69 74 29 3b 0a | 20 20 20 20 66 70 72 69 | init);.| fpri|
|00003300| 6e 74 66 28 66 64 2c 20 | 22 5c 6e 22 29 3b 0a 20 |ntf(fd, |"\n");. |
|00003310| 20 20 20 69 66 28 62 69 | 74 73 20 3d 3d 20 31 36 | if(bi|ts == 16|
|00003320| 29 20 7b 0a 09 66 70 72 | 69 6e 74 66 28 66 64 2c |) {..fpr|intf(fd,|
|00003330| 20 22 73 74 61 74 69 63 | 20 75 6e 73 69 67 6e 65 | "static| unsigne|
|00003340| 64 20 73 68 6f 72 74 20 | 63 72 63 74 61 62 5b 32 |d short |crctab[2|
|00003350| 35 36 5d 20 3d 20 7b 5c | 6e 22 29 3b 0a 20 20 20 |56] = {\|n");. |
|00003360| 20 7d 20 65 6c 73 65 20 | 7b 0a 09 66 70 72 69 6e | } else |{..fprin|
|00003370| 74 66 28 66 64 2c 20 22 | 73 74 61 74 69 63 20 75 |tf(fd, "|static u|
|00003380| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 20 63 72 63 |nsigned |long crc|
|00003390| 74 61 62 5b 32 35 36 5d | 20 3d 20 7b 5c 6e 22 29 |tab[256]| = {\n")|
|000033a0| 3b 0a 20 20 20 20 7d 0a | 20 20 20 20 66 70 72 69 |;. }.| fpri|
|000033b0| 6e 74 66 28 66 64 2c 20 | 22 20 20 20 20 22 29 3b |ntf(fd, |" ");|
|000033c0| 0a 20 20 20 20 69 66 28 | 62 69 74 73 20 3d 3d 20 |. if(|bits == |
|000033d0| 31 36 29 20 7b 0a 09 66 | 6f 72 28 62 20 3d 20 30 |16) {..f|or(b = 0|
|000033e0| 3b 20 62 20 3c 20 32 35 | 36 3b 20 2b 2b 62 29 20 |; b < 25|6; ++b) |
|000033f0| 7b 0a 09 20 20 20 20 69 | 66 28 73 77 61 70 70 65 |{.. i|f(swappe|
|00003400| 64 29 20 7b 0a 09 09 66 | 6f 72 28 76 20 3d 20 62 |d) {...f|or(v = b|
|00003410| 2c 20 69 20 3d 20 38 3b | 20 2d 2d 69 20 3e 3d 20 |, i = 8;| --i >= |
|00003420| 30 3b 29 0a 09 09 20 20 | 20 20 76 20 3d 20 76 20 |0;)... | v = v |
|00003430| 26 20 31 20 3f 20 28 76 | 3e 3e 31 29 5e 70 6f 6c |& 1 ? (v|>>1)^pol|
|00003440| 79 20 3a 20 76 3e 3e 31 | 3b 0a 09 20 20 20 20 7d |y : v>>1|;.. }|
|00003450| 20 65 6c 73 65 20 7b 0a | 09 09 66 6f 72 28 76 20 | else {.|..for(v |
|00003460| 3d 20 62 3c 3c 38 2c 20 | 69 20 3d 20 38 3b 20 2d |= b<<8, |i = 8; -|
|00003470| 2d 69 20 3e 3d 20 30 3b | 29 0a 09 09 20 20 20 20 |-i >= 0;|)... |
|00003480| 76 20 3d 20 76 20 26 20 | 30 78 38 30 30 30 20 3f |v = v & |0x8000 ?|
|00003490| 20 28 76 3c 3c 31 29 5e | 70 6f 6c 79 20 3a 20 76 | (v<<1)^|poly : v|
|000034a0| 3c 3c 31 3b 0a 09 20 20 | 20 20 7d 0a 09 20 20 20 |<<1;.. | }.. |
|000034b0| 20 66 70 72 69 6e 74 66 | 28 66 64 2c 20 22 30 78 | fprintf|(fd, "0x|
|000034c0| 25 2e 34 78 2c 22 2c 20 | 76 20 26 20 30 78 66 66 |%.4x,", |v & 0xff|
|000034d0| 66 66 29 3b 0a 09 20 20 | 20 20 69 66 28 28 62 26 |ff);.. | if((b&|
|000034e0| 37 29 20 3d 3d 20 37 29 | 20 7b 0a 09 09 66 70 72 |7) == 7)| {...fpr|
|000034f0| 69 6e 74 66 28 66 64 2c | 20 22 5c 6e 22 29 3b 0a |intf(fd,| "\n");.|
|00003500| 09 09 69 66 28 62 20 21 | 3d 20 32 35 35 29 20 66 |..if(b !|= 255) f|
|00003510| 70 72 69 6e 74 66 28 66 | 64 2c 20 22 20 20 20 20 |printf(f|d, " |
|00003520| 22 29 3b 0a 09 20 20 20 | 20 7d 20 65 6c 73 65 20 |");.. | } else |
|00003530| 7b 0a 09 09 66 70 72 69 | 6e 74 66 28 66 64 2c 20 |{...fpri|ntf(fd, |
|00003540| 22 20 22 29 3b 0a 09 20 | 20 20 20 7d 0a 09 7d 0a |" ");.. | }..}.|
|00003550| 20 20 20 20 7d 20 65 6c | 73 65 20 7b 0a 09 66 6f | } el|se {..fo|
|00003560| 72 28 62 20 3d 20 30 3b | 20 62 20 3c 20 32 35 36 |r(b = 0;| b < 256|
|00003570| 3b 20 2b 2b 62 29 20 7b | 0a 09 20 20 20 20 69 66 |; ++b) {|.. if|
|00003580| 28 73 77 61 70 70 65 64 | 29 20 7b 0a 09 09 66 6f |(swapped|) {...fo|
|00003590| 72 28 76 76 20 3d 20 62 | 2c 20 69 20 3d 20 38 3b |r(vv = b|, i = 8;|
|000035a0| 20 2d 2d 69 20 3e 3d 20 | 30 3b 29 0a 09 09 20 20 | --i >= |0;)... |
|000035b0| 20 20 76 76 20 3d 20 76 | 76 20 26 20 31 20 3f 20 | vv = v|v & 1 ? |
|000035c0| 28 76 76 3e 3e 31 29 5e | 70 6f 6c 79 20 3a 20 76 |(vv>>1)^|poly : v|
|000035d0| 76 3e 3e 31 3b 0a 09 20 | 20 20 20 7d 20 65 6c 73 |v>>1;.. | } els|
|000035e0| 65 20 7b 0a 09 09 66 6f | 72 28 76 76 20 3d 20 62 |e {...fo|r(vv = b|
|000035f0| 3c 3c 32 34 2c 20 69 20 | 3d 20 38 3b 20 2d 2d 69 |<<24, i |= 8; --i|
|00003600| 20 3e 3d 20 30 3b 29 0a | 09 09 20 20 20 20 76 76 | >= 0;).|.. vv|
|00003610| 20 3d 20 76 76 20 26 20 | 30 78 38 30 30 30 30 30 | = vv & |0x800000|
|00003620| 30 30 20 3f 20 28 76 76 | 3c 3c 31 29 5e 70 6f 6c |00 ? (vv|<<1)^pol|
|00003630| 79 20 3a 20 76 76 3c 3c | 31 3b 0a 09 20 20 20 20 |y : vv<<|1;.. |
|00003640| 7d 0a 09 20 20 20 20 66 | 70 72 69 6e 74 66 28 66 |}.. f|printf(f|
|00003650| 64 2c 20 22 30 78 25 2e | 38 78 2c 22 2c 20 76 76 |d, "0x%.|8x,", vv|
|00003660| 20 26 20 30 78 66 66 66 | 66 66 66 66 66 29 3b 0a | & 0xfff|fffff);.|
|00003670| 09 20 20 20 20 69 66 28 | 28 62 26 33 29 20 3d 3d |. if(|(b&3) ==|
|00003680| 20 33 29 20 7b 0a 09 09 | 66 70 72 69 6e 74 66 28 | 3) {...|fprintf(|
|00003690| 66 64 2c 20 22 5c 6e 22 | 29 3b 0a 09 09 69 66 28 |fd, "\n"|);...if(|
|000036a0| 62 20 21 3d 20 32 35 35 | 29 20 66 70 72 69 6e 74 |b != 255|) fprint|
|000036b0| 66 28 66 64 2c 20 22 20 | 20 20 20 22 29 3b 0a 09 |f(fd, " | ");..|
|000036c0| 20 20 20 20 7d 20 65 6c | 73 65 20 7b 0a 09 09 66 | } el|se {...f|
|000036d0| 70 72 69 6e 74 66 28 66 | 64 2c 20 22 20 22 29 3b |printf(f|d, " ");|
|000036e0| 0a 09 20 20 20 20 7d 0a | 09 7d 0a 20 20 20 20 7d |.. }.|.}. }|
|000036f0| 0a 20 20 20 20 66 70 72 | 69 6e 74 66 28 66 64 2c |. fpr|intf(fd,|
|00003700| 20 22 7d 3b 5c 6e 22 29 | 3b 0a 20 20 20 20 66 70 | "};\n")|;. fp|
|00003710| 72 69 6e 74 66 28 66 64 | 2c 20 22 5c 6e 22 29 3b |rintf(fd|, "\n");|
|00003720| 0a 20 20 20 20 66 70 72 | 69 6e 74 66 28 66 64 2c |. fpr|intf(fd,|
|00003730| 20 22 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 20 | "unsign|ed long |
|00003740| 25 73 5f 75 70 64 63 72 | 63 28 69 63 72 63 2c 20 |%s_updcr|c(icrc, |
|00003750| 69 63 70 2c 20 69 63 6e | 74 29 5c 6e 22 2c 20 6e |icp, icn|t)\n", n|
|00003760| 61 6d 65 29 3b 0a 20 20 | 20 20 66 70 72 69 6e 74 |ame);. | fprint|
|00003770| 66 28 66 64 2c 20 22 20 | 20 20 20 75 6e 73 69 67 |f(fd, " | unsig|
|00003780| 6e 65 64 20 69 6e 74 20 | 69 63 72 63 3b 5c 6e 22 |ned int |icrc;\n"|
|00003790| 29 3b 0a 20 20 20 20 66 | 70 72 69 6e 74 66 28 66 |);. f|printf(f|
|000037a0| 64 2c 20 22 20 20 20 20 | 75 6e 73 69 67 6e 65 64 |d, " |unsigned|
|000037b0| 20 63 68 61 72 20 2a 69 | 63 70 3b 5c 6e 22 29 3b | char *i|cp;\n");|
|000037c0| 0a 20 20 20 20 66 70 72 | 69 6e 74 66 28 66 64 2c |. fpr|intf(fd,|
|000037d0| 20 22 20 20 20 20 69 6e | 74 20 69 63 6e 74 3b 5c | " in|t icnt;\|
|000037e0| 6e 22 29 3b 0a 20 20 20 | 20 66 70 72 69 6e 74 66 |n");. | fprintf|
|000037f0| 28 66 64 2c 20 22 7b 5c | 6e 22 29 3b 0a 20 20 20 |(fd, "{\|n");. |
|00003800| 20 69 66 28 62 69 74 73 | 20 3d 3d 20 31 36 29 20 | if(bits| == 16) |
|00003810| 7b 0a 09 66 70 72 69 6e | 74 66 28 66 64 2c 20 22 |{..fprin|tf(fd, "|
|00003820| 23 64 65 66 69 6e 65 20 | 4d 31 20 30 78 66 66 5c |#define |M1 0xff\|
|00003830| 6e 22 29 3b 0a 09 66 70 | 72 69 6e 74 66 28 66 64 |n");..fp|rintf(fd|
|00003840| 2c 20 22 23 64 65 66 69 | 6e 65 20 4d 32 20 30 78 |, "#defi|ne M2 0x|
|00003850| 66 66 30 30 5c 6e 22 29 | 3b 0a 20 20 20 20 7d 20 |ff00\n")|;. } |
|00003860| 65 6c 73 65 20 7b 0a 09 | 66 70 72 69 6e 74 66 28 |else {..|fprintf(|
|00003870| 66 64 2c 20 22 23 64 65 | 66 69 6e 65 20 4d 31 20 |fd, "#de|fine M1 |
|00003880| 30 78 66 66 66 66 66 66 | 5c 6e 22 29 3b 0a 09 66 |0xffffff|\n");..f|
|00003890| 70 72 69 6e 74 66 28 66 | 64 2c 20 22 23 64 65 66 |printf(f|d, "#def|
|000038a0| 69 6e 65 20 4d 32 20 30 | 78 66 66 66 66 66 66 30 |ine M2 0|xffffff0|
|000038b0| 30 5c 6e 22 29 3b 0a 20 | 20 20 20 7d 0a 20 20 20 |0\n");. | }. |
|000038c0| 20 66 70 72 69 6e 74 66 | 28 66 64 2c 20 22 20 20 | fprintf|(fd, " |
|000038d0| 20 20 72 65 67 69 73 74 | 65 72 20 75 6e 73 69 67 | regist|er unsig|
|000038e0| 6e 65 64 20 69 6e 74 20 | 63 72 63 20 3d 20 69 63 |ned int |crc = ic|
|000038f0| 72 63 3b 5c 6e 22 29 3b | 0a 20 20 20 20 66 70 72 |rc;\n");|. fpr|
|00003900| 69 6e 74 66 28 66 64 2c | 20 22 20 20 20 20 72 65 |intf(fd,| " re|
|00003910| 67 69 73 74 65 72 20 75 | 6e 73 69 67 6e 65 64 20 |gister u|nsigned |
|00003920| 63 68 61 72 20 2a 63 70 | 20 3d 20 69 63 70 3b 5c |char *cp| = icp;\|
|00003930| 6e 22 29 3b 0a 20 20 20 | 20 66 70 72 69 6e 74 66 |n");. | fprintf|
|00003940| 28 66 64 2c 20 22 20 20 | 20 20 72 65 67 69 73 74 |(fd, " | regist|
|00003950| 65 72 20 69 6e 74 20 63 | 6e 74 20 3d 20 69 63 6e |er int c|nt = icn|
|00003960| 74 3b 5c 6e 22 29 3b 0a | 20 20 20 20 66 70 72 69 |t;\n");.| fpri|
|00003970| 6e 74 66 28 66 64 2c 20 | 22 5c 6e 22 29 3b 0a 20 |ntf(fd, |"\n");. |
|00003980| 20 20 20 66 70 72 69 6e | 74 66 28 66 64 2c 20 22 | fprin|tf(fd, "|
|00003990| 20 20 20 20 77 68 69 6c | 65 28 63 6e 74 2d 2d 29 | whil|e(cnt--)|
|000039a0| 20 7b 5c 6e 22 29 3b 0a | 20 20 20 20 69 66 28 62 | {\n");.| if(b|
|000039b0| 69 74 73 20 3d 3d 20 31 | 36 29 20 7b 0a 09 69 66 |its == 1|6) {..if|
|000039c0| 20 28 73 77 61 70 70 65 | 64 29 20 7b 0a 09 20 20 | (swappe|d) {.. |
|000039d0| 20 20 66 70 72 69 6e 74 | 66 28 66 64 2c 20 22 5c | fprint|f(fd, "\|
|000039e0| 74 63 72 63 3d 28 28 63 | 72 63 3e 3e 38 29 26 4d |tcrc=((c|rc>>8)&M|
|000039f0| 31 29 5e 63 72 63 74 61 | 62 5b 28 63 72 63 26 30 |1)^crcta|b[(crc&0|
|00003a00| 78 66 66 29 5e 2a 63 70 | 2b 2b 5d 3b 5c 6e 22 29 |xff)^*cp|++];\n")|
|00003a10| 3b 0a 09 7d 20 65 6c 73 | 65 20 7b 0a 09 20 20 20 |;..} els|e {.. |
|00003a20| 20 66 70 72 69 6e 74 66 | 28 66 64 2c 20 22 5c 74 | fprintf|(fd, "\t|
|00003a30| 63 72 63 3d 28 28 63 72 | 63 3c 3c 38 29 26 4d 32 |crc=((cr|c<<8)&M2|
|00003a40| 29 5e 63 72 63 74 61 62 | 5b 28 28 63 72 63 3e 3e |)^crctab|[((crc>>|
|00003a50| 38 29 26 30 78 66 66 29 | 5e 2a 63 70 2b 2b 5d 3b |8)&0xff)|^*cp++];|
|00003a60| 5c 6e 22 29 3b 0a 09 7d | 0a 20 20 20 20 7d 20 65 |\n");..}|. } e|
|00003a70| 6c 73 65 20 7b 0a 09 69 | 66 28 73 77 61 70 70 65 |lse {..i|f(swappe|
|00003a80| 64 29 20 7b 0a 09 20 20 | 20 20 66 70 72 69 6e 74 |d) {.. | fprint|
|00003a90| 66 28 66 64 2c 20 22 5c | 74 63 72 63 3d 28 28 63 |f(fd, "\|tcrc=((c|
|00003aa0| 72 63 3e 3e 38 29 26 4d | 31 29 5e 63 72 63 74 61 |rc>>8)&M|1)^crcta|
|00003ab0| 62 5b 28 63 72 63 26 30 | 78 66 66 29 5e 2a 63 70 |b[(crc&0|xff)^*cp|
|00003ac0| 2b 2b 5d 3b 5c 6e 22 29 | 3b 0a 09 7d 20 65 6c 73 |++];\n")|;..} els|
|00003ad0| 65 20 7b 0a 09 20 20 20 | 20 66 70 72 69 6e 74 66 |e {.. | fprintf|
|00003ae0| 28 66 64 2c 20 22 5c 74 | 63 72 63 3d 28 28 63 72 |(fd, "\t|crc=((cr|
|00003af0| 63 3c 3c 38 29 26 4d 32 | 29 5e 63 72 63 74 61 62 |c<<8)&M2|)^crctab|
|00003b00| 5b 28 28 63 72 63 3e 3e | 32 34 29 26 30 78 66 66 |[((crc>>|24)&0xff|
|00003b10| 29 5e 2a 63 70 2b 2b 5d | 3b 5c 6e 22 29 3b 0a 09 |)^*cp++]|;\n");..|
|00003b20| 7d 0a 20 20 20 20 7d 0a | 20 20 20 20 66 70 72 69 |}. }.| fpri|
|00003b30| 6e 74 66 28 66 64 2c 20 | 22 20 20 20 20 7d 5c 6e |ntf(fd, |" }\n|
|00003b40| 22 29 3b 0a 20 20 20 20 | 66 70 72 69 6e 74 66 28 |");. |fprintf(|
|00003b50| 66 64 2c 20 22 5c 6e 22 | 29 3b 0a 20 20 20 20 66 |fd, "\n"|);. f|
|00003b60| 70 72 69 6e 74 66 28 66 | 64 2c 20 22 20 20 20 20 |printf(f|d, " |
|00003b70| 72 65 74 75 72 6e 28 63 | 72 63 29 3b 5c 6e 22 29 |return(c|rc);\n")|
|00003b80| 3b 0a 20 20 20 20 66 70 | 72 69 6e 74 66 28 66 64 |;. fp|rintf(fd|
|00003b90| 2c 20 22 7d 5c 6e 22 29 | 3b 0a 20 20 20 20 66 70 |, "}\n")|;. fp|
|00003ba0| 72 69 6e 74 66 28 66 64 | 2c 20 22 5c 6e 22 29 3b |rintf(fd|, "\n");|
|00003bb0| 0a 20 20 20 20 66 63 6c | 6f 73 65 28 66 64 29 3b |. fcl|ose(fd);|
|00003bc0| 0a 7d 0a 0a 6e 20 73 68 | 6f 75 6c 64 20 61 70 70 |.}..n sh|ould app|
|00003bd0| 65 61 72 20 61 6e 64 20 | 63 68 65 63 6b 0a 09 74 |ear and |check..t|
|00003be0| 68 65 20 62 75 6e 64 6c | 65 20 62 69 74 2e 0a 09 |he bundl|e bit...|
|00003bf0| 20 20 20 20 54 68 65 20 | 64 65 73 6b 74 6f 70 20 | The |desktop |
|00003c00| 6d 61 63 75 74 69 6c 2f | 63 72 63 2f 6d 61 6b 65 |macutil/|crc/make|
|00003c10| 66 69 6c 65 00 00 00 00 | 00 00 00 00 00 00 00 00 |file....|........|
|00003c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c60| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 32 33 34 |....0006|64 .0234|
|00003c70| 33 36 20 00 30 30 30 31 | 35 36 20 00 30 30 30 30 |36 .0001|56 .0000|
|00003c80| 30 30 30 30 37 33 33 20 | 30 35 30 36 32 31 35 31 |0000733 |05062151|
|00003c90| 34 36 37 20 30 31 34 36 | 31 33 00 20 30 00 00 00 |467 0146|13. 0...|
|00003ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d00| 00 75 73 74 61 72 00 30 | 30 68 76 00 00 00 00 00 |.ustar.0|0hv.....|
|00003d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d20| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00003d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d40| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 35 36 20 |........|.000056 |
|00003d50| 00 30 30 30 30 36 36 20 | 00 00 00 00 00 00 00 00 |.000066 |........|
|00003d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e00| 43 46 4c 41 47 53 20 3d | 09 2d 4f 20 24 28 43 46 |CFLAGS =|.-O $(CF|
|00003e10| 29 0a 43 52 43 43 20 3d | 09 61 72 63 2e 63 20 63 |).CRCC =|.arc.c c|
|00003e20| 63 69 74 74 2e 63 20 6b | 65 72 6d 69 74 2e 63 20 |citt.c k|ermit.c |
|00003e30| 62 69 6e 68 65 78 2e 63 | 20 63 63 69 74 74 33 32 |binhex.c| ccitt32|
|00003e40| 2e 63 20 7a 69 70 2e 63 | 0a 43 52 43 4f 20 3d 09 |.c zip.c|.CRCO =.|
|00003e50| 61 72 63 2e 6f 20 63 63 | 69 74 74 2e 6f 20 6b 65 |arc.o cc|itt.o ke|
|00003e60| 72 6d 69 74 2e 6f 20 62 | 69 6e 68 65 78 2e 6f 20 |rmit.o b|inhex.o |
|00003e70| 63 63 69 74 74 33 32 2e | 6f 20 7a 69 70 2e 6f 0a |ccitt32.|o zip.o.|
|00003e80| 0a 6c 69 62 63 72 63 2e | 61 3a 09 24 28 43 52 43 |.libcrc.|a:.$(CRC|
|00003e90| 4f 29 0a 09 61 72 20 72 | 20 6c 69 62 63 72 63 2e |O)..ar r| libcrc.|
|00003ea0| 61 20 24 28 43 52 43 4f | 29 0a 09 69 66 20 74 65 |a $(CRCO|)..if te|
|00003eb0| 73 74 20 2d 66 20 2f 75 | 73 72 2f 62 69 6e 2f 72 |st -f /u|sr/bin/r|
|00003ec0| 61 6e 6c 69 62 20 3b 5c | 0a 09 74 68 65 6e 20 5c |anlib ;\|..then \|
|00003ed0| 0a 09 09 72 61 6e 6c 69 | 62 20 6c 69 62 63 72 63 |...ranli|b libcrc|
|00003ee0| 2e 61 20 3b 5c 0a 09 66 | 69 0a 0a 63 6c 65 61 6e |.a ;\..f|i..clean|
|00003ef0| 3a 0a 09 2d 72 6d 20 2d | 66 20 24 28 43 52 43 43 |:..-rm -|f $(CRCC|
|00003f00| 29 20 24 28 43 52 43 4f | 29 20 6c 69 62 63 72 63 |) $(CRCO|) libcrc|
|00003f10| 2e 61 20 6d 61 6b 65 63 | 72 63 20 6d 61 6b 65 63 |.a makec|rc makec|
|00003f20| 72 63 2e 6f 0a 0a 24 28 | 43 52 43 43 29 3a 09 6d |rc.o..$(|CRCC):.m|
|00003f30| 61 6b 65 63 72 63 0a 09 | 2e 2f 6d 61 6b 65 63 72 |akecrc..|./makecr|
|00003f40| 63 0a 0a 6d 61 6b 65 63 | 72 63 3a 09 6d 61 6b 65 |c..makec|rc:.make|
|00003f50| 63 72 63 2e 6f 0a 09 63 | 63 20 2d 4f 20 2d 6f 20 |crc.o..c|c -O -o |
|00003f60| 6d 61 6b 65 63 72 63 20 | 6d 61 6b 65 63 72 63 2e |makecrc |makecrc.|
|00003f70| 6f 0a 0a 61 72 63 2e 6f | 3a 09 61 72 63 2e 63 0a |o..arc.o|:.arc.c.|
|00003f80| 63 63 69 74 74 2e 6f 3a | 09 63 63 69 74 74 2e 63 |ccitt.o:|.ccitt.c|
|00003f90| 0a 6b 65 72 6d 69 74 2e | 6f 3a 09 6b 65 72 6d 69 |.kermit.|o:.kermi|
|00003fa0| 74 2e 63 0a 62 69 6e 68 | 65 78 2e 6f 3a 09 62 69 |t.c.binh|ex.o:.bi|
|00003fb0| 6e 68 65 78 2e 63 0a 63 | 63 69 74 74 33 32 2e 6f |nhex.c.c|citt32.o|
|00003fc0| 3a 09 63 63 69 74 74 33 | 32 2e 63 0a 7a 69 70 2e |:.ccitt3|2.c.zip.|
|00003fd0| 6f 3a 09 09 7a 69 70 2e | 63 0a 0a 6c 70 28 30 30 |o:..zip.|c..lp(00|
|00003fe0| 30 30 29 3a 2f 75 73 72 | 2f 73 70 6f 6f 6c 2f 6c |00):/usr|/spool/l|
|00003ff0| 70 3a 0a 6d 61 6e 3a 2a | 3a 39 39 3a 31 3a 30 30 |p:.man:*|:99:1:00|
|00004000| 6d 61 63 75 74 69 6c 2f | 63 72 63 2f 52 45 41 44 |macutil/|crc/READ|
|00004010| 4d 45 2e 4f 52 49 47 00 | 00 00 00 00 00 00 00 00 |ME.ORIG.|........|
|00004020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004060| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 32 33 34 |....0006|64 .0234|
|00004070| 33 36 20 00 30 30 30 31 | 35 36 20 00 30 30 30 30 |36 .0001|56 .0000|
|00004080| 30 30 31 33 34 34 36 20 | 30 35 30 36 32 31 35 31 |0013446 |05062151|
|00004090| 34 37 30 20 30 31 34 35 | 31 34 00 20 30 00 00 00 |470 0145|14. 0...|
|000040a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004100| 00 75 73 74 61 72 00 30 | 30 68 76 00 00 00 00 00 |.ustar.0|0hv.....|
|00004110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004120| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00004130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004140| 00 00 00 00 00 00 00 00 | 00 30 30 30 30 36 30 20 |........|.000060 |
|00004150| 00 30 30 30 31 33 30 20 | 00 00 00 00 00 00 00 00 |.000130 |........|
|00004160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004200| 2f 2a 20 75 70 64 63 72 | 63 28 33 29 2c 20 63 72 |/* updcr|c(3), cr|
|00004210| 63 28 31 29 20 2d 20 63 | 61 6c 63 75 6c 61 74 65 |c(1) - c|alculate|
|00004220| 20 63 72 63 20 70 6f 6c | 79 6e 6f 6d 69 61 6c 73 | crc pol|ynomials|
|00004230| 0a 20 2a 0a 20 2a 20 43 | 61 6c 63 75 6c 61 74 65 |. *. * C|alculate|
|00004240| 2c 20 69 6e 74 65 6c 6c | 69 67 65 6e 74 6c 79 2c |, intell|igently,|
|00004250| 20 74 68 65 20 43 52 43 | 20 6f 66 20 61 20 64 61 | the CRC| of a da|
|00004260| 74 61 73 65 74 20 69 6e | 63 72 65 6d 65 6e 74 61 |taset in|crementa|
|00004270| 6c 6c 79 20 67 69 76 65 | 6e 20 61 20 0a 20 2a 20 |lly give|n a . * |
|00004280| 62 75 66 66 65 72 20 66 | 75 6c 6c 20 61 74 20 61 |buffer f|ull at a|
|00004290| 20 74 69 6d 65 2e 0a 20 | 2a 20 0a 20 2a 20 55 73 | time.. |* . * Us|
|000042a0| 61 67 65 3a 0a 20 2a 20 | 09 6e 65 77 63 72 63 20 |age:. * |.newcrc |
|000042b0| 3d 20 75 70 64 63 72 63 | 28 20 6f 6c 64 63 72 63 |= updcrc|( oldcrc|
|000042c0| 2c 20 62 75 66 61 64 72 | 2c 20 62 75 66 6c 65 6e |, bufadr|, buflen|
|000042d0| 20 29 0a 20 2a 20 09 09 | 75 6e 73 69 67 6e 65 64 | ). * ..|unsigned|
|000042e0| 20 69 6e 74 20 6f 6c 64 | 63 72 63 2c 20 62 75 66 | int old|crc, buf|
|000042f0| 6c 65 6e 3b 0a 20 2a 20 | 09 09 63 68 61 72 20 2a |len;. * |..char *|
|00004300| 62 75 66 61 64 72 3b 0a | 20 2a 0a 20 2a 20 43 6f |bufadr;.| *. * Co|
|00004310| 6d 70 69 6c 69 6e 67 20 | 77 69 74 68 20 2d 44 54 |mpiling |with -DT|
|00004320| 45 53 54 20 63 72 65 61 | 74 65 73 20 61 20 70 72 |EST crea|tes a pr|
|00004330| 6f 67 72 61 6d 20 74 6f | 20 70 72 69 6e 74 20 74 |ogram to| print t|
|00004340| 68 65 20 43 52 43 20 6f | 66 20 73 74 64 69 6e 20 |he CRC o|f stdin |
|00004350| 74 6f 20 73 74 64 6f 75 | 74 2e 0a 20 2a 20 43 6f |to stdou|t.. * Co|
|00004360| 6d 70 69 6c 65 20 77 69 | 74 68 20 2d 44 4d 41 4b |mpile wi|th -DMAK|
|00004370| 45 54 41 42 20 74 6f 20 | 70 72 69 6e 74 20 76 61 |ETAB to |print va|
|00004380| 6c 75 65 73 20 66 6f 72 | 20 63 72 63 74 61 62 20 |lues for| crctab |
|00004390| 74 6f 20 73 74 64 6f 75 | 74 2e 20 20 49 66 20 79 |to stdou|t. If y|
|000043a0| 6f 75 20 63 68 61 6e 67 | 65 0a 20 2a 09 74 68 65 |ou chang|e. *.the|
|000043b0| 20 43 52 43 20 70 6f 6c | 79 6e 6f 6d 69 61 6c 20 | CRC pol|ynomial |
|000043c0| 70 61 72 61 6d 65 74 65 | 72 73 2c 20 62 65 20 73 |paramete|rs, be s|
|000043d0| 75 72 65 20 74 6f 20 64 | 6f 20 74 68 69 73 20 61 |ure to d|o this a|
|000043e0| 6e 64 20 63 68 61 6e 67 | 65 0a 20 2a 09 63 72 63 |nd chang|e. *.crc|
|000043f0| 74 61 62 27 73 20 69 6e | 69 74 69 61 6c 20 76 61 |tab's in|itial va|
|00004400| 6c 75 65 2e 0a 20 2a 0a | 20 2a 20 4e 6f 74 65 73 |lue.. *.| * Notes|
|00004410| 3a 0a 20 2a 20 20 52 65 | 67 61 72 64 73 20 74 68 |:. * Re|gards th|
|00004420| 65 20 64 61 74 61 20 73 | 74 72 65 61 6d 20 61 73 |e data s|tream as|
|00004430| 20 61 6e 20 69 6e 74 65 | 67 65 72 20 77 68 6f 73 | an inte|ger whos|
|00004440| 65 20 4d 53 42 20 69 73 | 20 74 68 65 20 4d 53 42 |e MSB is| the MSB|
|00004450| 20 6f 66 20 74 68 65 20 | 66 69 72 73 74 0a 20 2a | of the |first. *|
|00004460| 20 20 62 79 74 65 20 72 | 65 63 69 65 76 65 64 2e | byte r|ecieved.|
|00004470| 20 20 54 68 69 73 20 6e | 75 6d 62 65 72 20 69 73 | This n|umber is|
|00004480| 20 27 64 69 76 69 64 65 | 64 27 20 28 75 73 69 6e | 'divide|d' (usin|
|00004490| 67 20 78 6f 72 20 69 6e | 73 74 65 61 64 20 6f 66 |g xor in|stead of|
|000044a0| 20 73 75 62 74 72 61 63 | 74 69 6f 6e 29 0a 20 2a | subtrac|tion). *|
|000044b0| 20 20 62 79 20 74 68 65 | 20 63 72 63 2d 70 6f 6c | by the| crc-pol|
|000044c0| 79 6e 6f 6d 69 61 6c 20 | 50 2e 0a 20 2a 20 20 58 |ynomial |P.. * X|
|000044d0| 4d 4f 44 45 4d 20 64 6f | 65 73 20 74 68 69 6e 67 |MODEM do|es thing|
|000044e0| 73 20 61 20 6c 69 74 74 | 6c 65 20 64 69 66 66 65 |s a litt|le diffe|
|000044f0| 72 65 6e 74 6c 79 2c 20 | 65 73 73 65 6e 74 69 61 |rently, |essentia|
|00004500| 6c 6c 79 20 74 72 65 61 | 74 69 6e 67 20 74 68 65 |lly trea|ting the|
|00004510| 20 4c 53 42 20 6f 66 0a | 20 2a 20 74 68 65 20 66 | LSB of.| * the f|
|00004520| 69 72 73 74 20 64 61 74 | 61 20 62 79 74 65 20 61 |irst dat|a byte a|
|00004530| 73 20 74 68 65 20 4d 53 | 42 20 6f 66 20 74 68 65 |s the MS|B of the|
|00004540| 20 69 6e 74 65 67 65 72 | 2e 20 44 65 66 69 6e 65 | integer|. Define|
|00004550| 20 53 57 41 50 50 45 44 | 20 74 6f 20 6d 61 6b 65 | SWAPPED| to make|
|00004560| 0a 20 2a 20 74 68 69 6e | 67 73 20 62 65 68 61 76 |. * thin|gs behav|
|00004570| 65 20 69 6e 20 74 68 69 | 73 20 6d 61 6e 6e 65 72 |e in thi|s manner|
|00004580| 2e 0a 20 2a 0a 20 2a 20 | 41 75 74 68 6f 72 3a 09 |.. *. * |Author:.|
|00004590| 4d 61 72 6b 20 47 2e 20 | 4d 65 6e 64 65 6c 2c 20 |Mark G. |Mendel, |
|000045a0| 37 2f 38 36 0a 20 2a 09 | 09 55 55 43 50 3a 20 69 |7/86. *.|.UUCP: i|
|000045b0| 68 6e 70 34 21 75 6d 6e | 2d 63 73 21 68 79 70 65 |hnp4!umn|-cs!hype|
|000045c0| 72 21 6d 61 72 6b 2c 20 | 47 45 6e 69 65 3a 20 6d |r!mark, |GEnie: m|
|000045d0| 67 6d 0a 20 2a 2f 0a 0a | 2f 2a 20 54 68 65 20 43 |gm. */..|/* The C|
|000045e0| 52 43 20 70 6f 6c 79 6e | 6f 6d 69 61 6c 2e 0a 20 |RC polyn|omial.. |
|000045f0| 2a 20 54 68 65 73 65 20 | 34 20 76 61 6c 75 65 73 |* These |4 values|
|00004600| 20 64 65 66 69 6e 65 20 | 74 68 65 20 63 72 63 2d | define |the crc-|
|00004610| 70 6f 6c 79 6e 6f 6d 69 | 61 6c 2e 0a 20 2a 20 49 |polynomi|al.. * I|
|00004620| 66 20 79 6f 75 20 63 68 | 61 6e 67 65 20 74 68 65 |f you ch|ange the|
|00004630| 6d 2c 20 79 6f 75 20 6d | 75 73 74 20 63 68 61 6e |m, you m|ust chan|
|00004640| 67 65 20 63 72 63 74 61 | 62 5b 5d 27 73 20 69 6e |ge crcta|b[]'s in|
|00004650| 69 74 69 61 6c 20 76 61 | 6c 75 65 20 74 6f 20 77 |itial va|lue to w|
|00004660| 68 61 74 20 69 73 0a 20 | 2a 20 70 72 69 6e 74 65 |hat is. |* printe|
|00004670| 64 20 62 79 20 69 6e 69 | 74 63 72 63 74 61 62 28 |d by ini|tcrctab(|
|00004680| 29 20 5b 73 65 65 20 27 | 63 6f 6d 70 69 6c 65 20 |) [see '|compile |
|00004690| 77 69 74 68 20 2d 44 4d | 41 4b 45 54 41 42 27 20 |with -DM|AKETAB' |
|000046a0| 61 62 6f 76 65 5d 2e 0a | 20 2a 2f 0a 20 20 20 20 |above]..| */. |
|000046b0| 2f 2a 20 56 61 6c 75 65 | 20 75 73 65 64 20 62 79 |/* Value| used by|
|000046c0| 3a 09 20 20 20 20 09 09 | 43 49 54 54 09 58 4d 4f |:. ..|CITT.XMO|
|000046d0| 44 45 4d 09 41 52 43 20 | 20 09 2a 2f 0a 23 64 65 |DEM.ARC | .*/.#de|
|000046e0| 66 69 6e 65 09 50 09 20 | 30 78 41 30 30 31 09 20 |fine.P. |0xA001. |
|000046f0| 2f 2a 20 74 68 65 20 70 | 6f 6c 79 3a 09 30 78 31 |/* the p|oly:.0x1|
|00004700| 30 32 31 09 30 78 31 30 | 32 31 09 41 30 30 31 09 |021.0x10|21.A001.|
|00004710| 2a 2f 0a 23 64 65 66 69 | 6e 65 20 49 4e 49 54 5f |*/.#defi|ne INIT_|
|00004720| 43 52 43 20 30 4c 09 20 | 2f 2a 20 69 6e 69 74 20 |CRC 0L. |/* init |
|00004730| 76 61 6c 75 65 3a 09 2d | 31 09 30 09 30 09 2a 2f |value:.-|1.0.0.*/|
|00004740| 0a 23 64 65 66 69 6e 65 | 20 53 57 41 50 50 45 44 |.#define| SWAPPED|
|00004750| 09 09 20 2f 2a 20 62 69 | 74 20 6f 72 64 65 72 3a |.. /* bi|t order:|
|00004760| 09 75 6e 64 65 66 09 64 | 65 66 69 6e 65 64 09 64 |.undef.d|efined.d|
|00004770| 65 66 69 6e 65 64 20 2a | 2f 0a 23 64 65 66 69 6e |efined *|/.#defin|
|00004780| 65 20 57 09 31 36 09 20 | 2f 2a 20 62 69 74 73 20 |e W.16. |/* bits |
|00004790| 69 6e 20 43 52 43 3a 31 | 36 09 31 36 09 31 36 09 |in CRC:1|6.16.16.|
|000047a0| 2a 2f 0a 0a 20 20 20 20 | 2f 2a 20 64 61 74 61 20 |*/.. |/* data |
|000047b0| 74 79 70 65 20 74 68 61 | 74 20 68 6f 6c 64 73 20 |type tha|t holds |
|000047c0| 61 20 57 2d 62 69 74 20 | 75 6e 73 69 67 6e 65 64 |a W-bit |unsigned|
|000047d0| 20 69 6e 74 65 67 65 72 | 20 2a 2f 0a 23 69 66 20 | integer| */.#if |
|000047e0| 57 20 3c 3d 20 31 36 0a | 23 20 20 64 65 66 69 6e |W <= 16.|# defin|
|000047f0| 65 20 57 54 59 50 45 09 | 75 6e 73 69 67 6e 65 64 |e WTYPE.|unsigned|
|00004800| 20 73 68 6f 72 74 0a 23 | 65 6c 73 65 0a 23 20 20 | short.#|else.# |
|00004810| 64 65 66 69 6e 65 20 57 | 54 59 50 45 20 20 20 75 |define W|TYPE u|
|00004820| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 0a 23 65 6e |nsigned |long.#en|
|00004830| 64 69 66 0a 0a 20 20 20 | 20 2f 2a 20 74 68 65 20 |dif.. | /* the |
|00004840| 6e 75 6d 62 65 72 20 6f | 66 20 62 69 74 73 20 70 |number o|f bits p|
|00004850| 65 72 20 63 68 61 72 3a | 20 64 6f 6e 27 74 20 63 |er char:| don't c|
|00004860| 68 61 6e 67 65 20 69 74 | 2e 20 2a 2f 0a 23 64 65 |hange it|. */.#de|
|00004870| 66 69 6e 65 20 42 09 38 | 0a 0a 73 74 61 74 69 63 |fine B.8|..static|
|00004880| 20 57 54 59 50 45 20 63 | 72 63 74 61 62 5b 31 3c | WTYPE c|rctab[1<|
|00004890| 3c 42 5d 20 3d 20 2f 2a | 20 61 73 20 63 61 6c 63 |<B] = /*| as calc|
|000048a0| 75 6c 61 74 65 64 20 62 | 79 20 69 6e 69 74 63 72 |ulated b|y initcr|
|000048b0| 63 74 61 62 28 29 20 2a | 2f 20 7b 0a 30 78 30 2c |ctab() *|/ {.0x0,|
|000048c0| 20 20 30 78 63 30 63 31 | 2c 20 20 30 78 63 31 38 | 0xc0c1|, 0xc18|
|000048d0| 31 2c 20 20 30 78 31 34 | 30 2c 20 20 30 78 63 33 |1, 0x14|0, 0xc3|
|000048e0| 30 31 2c 20 20 30 78 33 | 63 30 2c 20 20 30 78 32 |01, 0x3|c0, 0x2|
|000048f0| 38 30 2c 20 20 30 78 63 | 32 34 31 2c 0a 30 78 63 |80, 0xc|241,.0xc|
|00004900| 36 30 31 2c 20 20 30 78 | 36 63 30 2c 20 20 30 78 |601, 0x|6c0, 0x|
|00004910| 37 38 30 2c 20 20 30 78 | 63 37 34 31 2c 20 20 30 |780, 0x|c741, 0|
|00004920| 78 35 30 30 2c 20 20 30 | 78 63 35 63 31 2c 20 20 |x500, 0|xc5c1, |
|00004930| 30 78 63 34 38 31 2c 20 | 20 30 78 34 34 30 2c 0a |0xc481, | 0x440,.|
|00004940| 30 78 63 63 30 31 2c 20 | 20 30 78 63 63 30 2c 20 |0xcc01, | 0xcc0, |
|00004950| 20 30 78 64 38 30 2c 20 | 20 30 78 63 64 34 31 2c | 0xd80, | 0xcd41,|
|00004960| 20 20 30 78 66 30 30 2c | 20 20 30 78 63 66 63 31 | 0xf00,| 0xcfc1|
|00004970| 2c 20 20 30 78 63 65 38 | 31 2c 20 20 30 78 65 34 |, 0xce8|1, 0xe4|
|00004980| 30 2c 0a 30 78 61 30 30 | 2c 20 20 30 78 63 61 63 |0,.0xa00|, 0xcac|
|00004990| 31 2c 20 20 30 78 63 62 | 38 31 2c 20 20 30 78 62 |1, 0xcb|81, 0xb|
|000049a0| 34 30 2c 20 20 30 78 63 | 39 30 31 2c 20 20 30 78 |40, 0xc|901, 0x|
|000049b0| 39 63 30 2c 20 20 30 78 | 38 38 30 2c 20 20 30 78 |9c0, 0x|880, 0x|
|000049c0| 63 38 34 31 2c 0a 30 78 | 64 38 30 31 2c 20 20 30 |c841,.0x|d801, 0|
|000049d0| 78 31 38 63 30 2c 20 20 | 30 78 31 39 38 30 2c 20 |x18c0, |0x1980, |
|000049e0| 20 30 78 64 39 34 31 2c | 20 20 30 78 31 62 30 30 | 0xd941,| 0x1b00|
|000049f0| 2c 20 20 30 78 64 62 63 | 31 2c 20 20 30 78 64 61 |, 0xdbc|1, 0xda|
|00004a00| 38 31 2c 20 20 30 78 31 | 61 34 30 2c 0a 30 78 31 |81, 0x1|a40,.0x1|
|00004a10| 65 30 30 2c 20 20 30 78 | 64 65 63 31 2c 20 20 30 |e00, 0x|dec1, 0|
|00004a20| 78 64 66 38 31 2c 20 20 | 30 78 31 66 34 30 2c 20 |xdf81, |0x1f40, |
|00004a30| 20 30 78 64 64 30 31 2c | 20 20 30 78 31 64 63 30 | 0xdd01,| 0x1dc0|
|00004a40| 2c 20 20 30 78 31 63 38 | 30 2c 20 20 30 78 64 63 |, 0x1c8|0, 0xdc|
|00004a50| 34 31 2c 0a 30 78 31 34 | 30 30 2c 20 20 30 78 64 |41,.0x14|00, 0xd|
|00004a60| 34 63 31 2c 20 20 30 78 | 64 35 38 31 2c 20 20 30 |4c1, 0x|d581, 0|
|00004a70| 78 31 35 34 30 2c 20 20 | 30 78 64 37 30 31 2c 20 |x1540, |0xd701, |
|00004a80| 20 30 78 31 37 63 30 2c | 20 20 30 78 31 36 38 30 | 0x17c0,| 0x1680|
|00004a90| 2c 20 20 30 78 64 36 34 | 31 2c 0a 30 78 64 32 30 |, 0xd64|1,.0xd20|
|00004aa0| 31 2c 20 20 30 78 31 32 | 63 30 2c 20 20 30 78 31 |1, 0x12|c0, 0x1|
|00004ab0| 33 38 30 2c 20 20 30 78 | 64 33 34 31 2c 20 20 30 |380, 0x|d341, 0|
|00004ac0| 78 31 31 30 30 2c 20 20 | 30 78 64 31 63 31 2c 20 |x1100, |0xd1c1, |
|00004ad0| 20 30 78 64 30 38 31 2c | 20 20 30 78 31 30 34 30 | 0xd081,| 0x1040|
|00004ae0| 2c 0a 30 78 66 30 30 31 | 2c 20 20 30 78 33 30 63 |,.0xf001|, 0x30c|
|00004af0| 30 2c 20 20 30 78 33 31 | 38 30 2c 20 20 30 78 66 |0, 0x31|80, 0xf|
|00004b00| 31 34 31 2c 20 20 30 78 | 33 33 30 30 2c 20 20 30 |141, 0x|3300, 0|
|00004b10| 78 66 33 63 31 2c 20 20 | 30 78 66 32 38 31 2c 20 |xf3c1, |0xf281, |
|00004b20| 20 30 78 33 32 34 30 2c | 0a 30 78 33 36 30 30 2c | 0x3240,|.0x3600,|
|00004b30| 20 20 30 78 66 36 63 31 | 2c 20 20 30 78 66 37 38 | 0xf6c1|, 0xf78|
|00004b40| 31 2c 20 20 30 78 33 37 | 34 30 2c 20 20 30 78 66 |1, 0x37|40, 0xf|
|00004b50| 35 30 31 2c 20 20 30 78 | 33 35 63 30 2c 20 20 30 |501, 0x|35c0, 0|
|00004b60| 78 33 34 38 30 2c 20 20 | 30 78 66 34 34 31 2c 0a |x3480, |0xf441,.|
|00004b70| 30 78 33 63 30 30 2c 20 | 20 30 78 66 63 63 31 2c |0x3c00, | 0xfcc1,|
|00004b80| 20 20 30 78 66 64 38 31 | 2c 20 20 30 78 33 64 34 | 0xfd81|, 0x3d4|
|00004b90| 30 2c 20 20 30 78 66 66 | 30 31 2c 20 20 30 78 33 |0, 0xff|01, 0x3|
|00004ba0| 66 63 30 2c 20 20 30 78 | 33 65 38 30 2c 20 20 30 |fc0, 0x|3e80, 0|
|00004bb0| 78 66 65 34 31 2c 0a 30 | 78 66 61 30 31 2c 20 20 |xfe41,.0|xfa01, |
|00004bc0| 30 78 33 61 63 30 2c 20 | 20 30 78 33 62 38 30 2c |0x3ac0, | 0x3b80,|
|00004bd0| 20 20 30 78 66 62 34 31 | 2c 20 20 30 78 33 39 30 | 0xfb41|, 0x390|
|00004be0| 30 2c 20 20 30 78 66 39 | 63 31 2c 20 20 30 78 66 |0, 0xf9|c1, 0xf|
|00004bf0| 38 38 31 2c 20 20 30 78 | 33 38 34 30 2c 0a 30 78 |881, 0x|3840,.0x|
|00004c00| 32 38 30 30 2c 20 20 30 | 78 65 38 63 31 2c 20 20 |2800, 0|xe8c1, |
|00004c10| 30 78 65 39 38 31 2c 20 | 20 30 78 32 39 34 30 2c |0xe981, | 0x2940,|
|00004c20| 20 20 30 78 65 62 30 31 | 2c 20 20 30 78 32 62 63 | 0xeb01|, 0x2bc|
|00004c30| 30 2c 20 20 30 78 32 61 | 38 30 2c 20 20 30 78 65 |0, 0x2a|80, 0xe|
|00004c40| 61 34 31 2c 0a 30 78 65 | 65 30 31 2c 20 20 30 78 |a41,.0xe|e01, 0x|
|00004c50| 32 65 63 30 2c 20 20 30 | 78 32 66 38 30 2c 20 20 |2ec0, 0|x2f80, |
|00004c60| 30 78 65 66 34 31 2c 20 | 20 30 78 32 64 30 30 2c |0xef41, | 0x2d00,|
|00004c70| 20 20 30 78 65 64 63 31 | 2c 20 20 30 78 65 63 38 | 0xedc1|, 0xec8|
|00004c80| 31 2c 20 20 30 78 32 63 | 34 30 2c 0a 30 78 65 34 |1, 0x2c|40,.0xe4|
|00004c90| 30 31 2c 20 20 30 78 32 | 34 63 30 2c 20 20 30 78 |01, 0x2|4c0, 0x|
|00004ca0| 32 35 38 30 2c 20 20 30 | 78 65 35 34 31 2c 20 20 |2580, 0|xe541, |
|00004cb0| 30 78 32 37 30 30 2c 20 | 20 30 78 65 37 63 31 2c |0x2700, | 0xe7c1,|
|00004cc0| 20 20 30 78 65 36 38 31 | 2c 20 20 30 78 32 36 34 | 0xe681|, 0x264|
|00004cd0| 30 2c 0a 30 78 32 32 30 | 30 2c 20 20 30 78 65 32 |0,.0x220|0, 0xe2|
|00004ce0| 63 31 2c 20 20 30 78 65 | 33 38 31 2c 20 20 30 78 |c1, 0xe|381, 0x|
|00004cf0| 32 33 34 30 2c 20 20 30 | 78 65 31 30 31 2c 20 20 |2340, 0|xe101, |
|00004d00| 30 78 32 31 63 30 2c 20 | 20 30 78 32 30 38 30 2c |0x21c0, | 0x2080,|
|00004d10| 20 20 30 78 65 30 34 31 | 2c 0a 30 78 61 30 30 31 | 0xe041|,.0xa001|
|00004d20| 2c 20 20 30 78 36 30 63 | 30 2c 20 20 30 78 36 31 |, 0x60c|0, 0x61|
|00004d30| 38 30 2c 20 20 30 78 61 | 31 34 31 2c 20 20 30 78 |80, 0xa|141, 0x|
|00004d40| 36 33 30 30 2c 20 20 30 | 78 61 33 63 31 2c 20 20 |6300, 0|xa3c1, |
|00004d50| 30 78 61 32 38 31 2c 20 | 20 30 78 36 32 34 30 2c |0xa281, | 0x6240,|
|00004d60| 0a 30 78 36 36 30 30 2c | 20 20 30 78 61 36 63 31 |.0x6600,| 0xa6c1|
|00004d70| 2c 20 20 30 78 61 37 38 | 31 2c 20 20 30 78 36 37 |, 0xa78|1, 0x67|
|00004d80| 34 30 2c 20 20 30 78 61 | 35 30 31 2c 20 20 30 78 |40, 0xa|501, 0x|
|00004d90| 36 35 63 30 2c 20 20 30 | 78 36 34 38 30 2c 20 20 |65c0, 0|x6480, |
|00004da0| 30 78 61 34 34 31 2c 0a | 30 78 36 63 30 30 2c 20 |0xa441,.|0x6c00, |
|00004db0| 20 30 78 61 63 63 31 2c | 20 20 30 78 61 64 38 31 | 0xacc1,| 0xad81|
|00004dc0| 2c 20 20 30 78 36 64 34 | 30 2c 20 20 30 78 61 66 |, 0x6d4|0, 0xaf|
|00004dd0| 30 31 2c 20 20 30 78 36 | 66 63 30 2c 20 20 30 78 |01, 0x6|fc0, 0x|
|00004de0| 36 65 38 30 2c 20 20 30 | 78 61 65 34 31 2c 0a 30 |6e80, 0|xae41,.0|
|00004df0| 78 61 61 30 31 2c 20 20 | 30 78 36 61 63 30 2c 20 |xaa01, |0x6ac0, |
|00004e00| 20 30 78 36 62 38 30 2c | 20 20 30 78 61 62 34 31 | 0x6b80,| 0xab41|
|00004e10| 2c 20 20 30 78 36 39 30 | 30 2c 20 20 30 78 61 39 |, 0x690|0, 0xa9|
|00004e20| 63 31 2c 20 20 30 78 61 | 38 38 31 2c 20 20 30 78 |c1, 0xa|881, 0x|
|00004e30| 36 38 34 30 2c 0a 30 78 | 37 38 30 30 2c 20 20 30 |6840,.0x|7800, 0|
|00004e40| 78 62 38 63 31 2c 20 20 | 30 78 62 39 38 31 2c 20 |xb8c1, |0xb981, |
|00004e50| 20 30 78 37 39 34 30 2c | 20 20 30 78 62 62 30 31 | 0x7940,| 0xbb01|
|00004e60| 2c 20 20 30 78 37 62 63 | 30 2c 20 20 30 78 37 61 |, 0x7bc|0, 0x7a|
|00004e70| 38 30 2c 20 20 30 78 62 | 61 34 31 2c 0a 30 78 62 |80, 0xb|a41,.0xb|
|00004e80| 65 30 31 2c 20 20 30 78 | 37 65 63 30 2c 20 20 30 |e01, 0x|7ec0, 0|
|00004e90| 78 37 66 38 30 2c 20 20 | 30 78 62 66 34 31 2c 20 |x7f80, |0xbf41, |
|00004ea0| 20 30 78 37 64 30 30 2c | 20 20 30 78 62 64 63 31 | 0x7d00,| 0xbdc1|
|00004eb0| 2c 20 20 30 78 62 63 38 | 31 2c 20 20 30 78 37 63 |, 0xbc8|1, 0x7c|
|00004ec0| 34 30 2c 0a 30 78 62 34 | 30 31 2c 20 20 30 78 37 |40,.0xb4|01, 0x7|
|00004ed0| 34 63 30 2c 20 20 30 78 | 37 35 38 30 2c 20 20 30 |4c0, 0x|7580, 0|
|00004ee0| 78 62 35 34 31 2c 20 20 | 30 78 37 37 30 30 2c 20 |xb541, |0x7700, |
|00004ef0| 20 30 78 62 37 63 31 2c | 20 20 30 78 62 36 38 31 | 0xb7c1,| 0xb681|
|00004f00| 2c 20 20 30 78 37 36 34 | 30 2c 0a 30 78 37 32 30 |, 0x764|0,.0x720|
|00004f10| 30 2c 20 20 30 78 62 32 | 63 31 2c 20 20 30 78 62 |0, 0xb2|c1, 0xb|
|00004f20| 33 38 31 2c 20 20 30 78 | 37 33 34 30 2c 20 20 30 |381, 0x|7340, 0|
|00004f30| 78 62 31 30 31 2c 20 20 | 30 78 37 31 63 30 2c 20 |xb101, |0x71c0, |
|00004f40| 20 30 78 37 30 38 30 2c | 20 20 30 78 62 30 34 31 | 0x7080,| 0xb041|
|00004f50| 2c 0a 30 78 35 30 30 30 | 2c 20 20 30 78 39 30 63 |,.0x5000|, 0x90c|
|00004f60| 31 2c 20 20 30 78 39 31 | 38 31 2c 20 20 30 78 35 |1, 0x91|81, 0x5|
|00004f70| 31 34 30 2c 20 20 30 78 | 39 33 30 31 2c 20 20 30 |140, 0x|9301, 0|
|00004f80| 78 35 33 63 30 2c 20 20 | 30 78 35 32 38 30 2c 20 |x53c0, |0x5280, |
|00004f90| 20 30 78 39 32 34 31 2c | 0a 30 78 39 36 30 31 2c | 0x9241,|.0x9601,|
|00004fa0| 20 20 30 78 35 36 63 30 | 2c 20 20 30 78 35 37 38 | 0x56c0|, 0x578|
|00004fb0| 30 2c 20 20 30 78 39 37 | 34 31 2c 20 20 30 78 35 |0, 0x97|41, 0x5|
|00004fc0| 35 30 30 2c 20 20 30 78 | 39 35 63 31 2c 20 20 30 |500, 0x|95c1, 0|
|00004fd0| 78 39 34 38 31 2c 20 20 | 30 78 35 34 34 30 2c 0a |x9481, |0x5440,.|
|00004fe0| 30 78 39 63 30 31 2c 20 | 20 30 78 35 63 63 30 2c |0x9c01, | 0x5cc0,|
|00004ff0| 20 20 30 78 35 64 38 30 | 2c 20 20 30 78 39 64 34 | 0x5d80|, 0x9d4|
|00005000| 31 2c 20 20 30 78 35 66 | 30 30 2c 20 20 30 78 39 |1, 0x5f|00, 0x9|
|00005010| 66 63 31 2c 20 20 30 78 | 39 65 38 31 2c 20 20 30 |fc1, 0x|9e81, 0|
|00005020| 78 35 65 34 30 2c 0a 30 | 78 35 61 30 30 2c 20 20 |x5e40,.0|x5a00, |
|00005030| 30 78 39 61 63 31 2c 20 | 20 30 78 39 62 38 31 2c |0x9ac1, | 0x9b81,|
|00005040| 20 20 30 78 35 62 34 30 | 2c 20 20 30 78 39 39 30 | 0x5b40|, 0x990|
|00005050| 31 2c 20 20 30 78 35 39 | 63 30 2c 20 20 30 78 35 |1, 0x59|c0, 0x5|
|00005060| 38 38 30 2c 20 20 30 78 | 39 38 34 31 2c 0a 30 78 |880, 0x|9841,.0x|
|00005070| 38 38 30 31 2c 20 20 30 | 78 34 38 63 30 2c 20 20 |8801, 0|x48c0, |
|00005080| 30 78 34 39 38 30 2c 20 | 20 30 78 38 39 34 31 2c |0x4980, | 0x8941,|
|00005090| 20 20 30 78 34 62 30 30 | 2c 20 20 30 78 38 62 63 | 0x4b00|, 0x8bc|
|000050a0| 31 2c 20 20 30 78 38 61 | 38 31 2c 20 20 30 78 34 |1, 0x8a|81, 0x4|
|000050b0| 61 34 30 2c 0a 30 78 34 | 65 30 30 2c 20 20 30 78 |a40,.0x4|e00, 0x|
|000050c0| 38 65 63 31 2c 20 20 30 | 78 38 66 38 31 2c 20 20 |8ec1, 0|x8f81, |
|000050d0| 30 78 34 66 34 30 2c 20 | 20 30 78 38 64 30 31 2c |0x4f40, | 0x8d01,|
|000050e0| 20 20 30 78 34 64 63 30 | 2c 20 20 30 78 34 63 38 | 0x4dc0|, 0x4c8|
|000050f0| 30 2c 20 20 30 78 38 63 | 34 31 2c 0a 30 78 34 34 |0, 0x8c|41,.0x44|
|00005100| 30 30 2c 20 20 30 78 38 | 34 63 31 2c 20 20 30 78 |00, 0x8|4c1, 0x|
|00005110| 38 35 38 31 2c 20 20 30 | 78 34 35 34 30 2c 20 20 |8581, 0|x4540, |
|00005120| 30 78 38 37 30 31 2c 20 | 20 30 78 34 37 63 30 2c |0x8701, | 0x47c0,|
|00005130| 20 20 30 78 34 36 38 30 | 2c 20 20 30 78 38 36 34 | 0x4680|, 0x864|
|00005140| 31 2c 0a 30 78 38 32 30 | 31 2c 20 20 30 78 34 32 |1,.0x820|1, 0x42|
|00005150| 63 30 2c 20 20 30 78 34 | 33 38 30 2c 20 20 30 78 |c0, 0x4|380, 0x|
|00005160| 38 33 34 31 2c 20 20 30 | 78 34 31 30 30 2c 20 20 |8341, 0|x4100, |
|00005170| 30 78 38 31 63 31 2c 20 | 20 30 78 38 30 38 31 2c |0x81c1, | 0x8081,|
|00005180| 20 20 30 78 34 30 34 30 | 2c 0a 7d 20 3b 0a 0a 57 | 0x4040|,.} ;..W|
|00005190| 54 59 50 45 0a 75 70 64 | 63 72 63 28 20 69 63 72 |TYPE.upd|crc( icr|
|000051a0| 63 2c 20 69 63 70 2c 20 | 69 63 6e 74 20 29 0a 20 |c, icp, |icnt ). |
|000051b0| 20 20 20 57 54 59 50 45 | 20 69 63 72 63 3b 0a 20 | WTYPE| icrc;. |
|000051c0| 20 20 20 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 | unsig|ned char|
|000051d0| 20 2a 69 63 70 3b 0a 20 | 20 20 20 69 6e 74 20 69 | *icp;. | int i|
|000051e0| 63 6e 74 3b 0a 7b 0a 20 | 20 20 20 72 65 67 69 73 |cnt;.{. | regis|
|000051f0| 74 65 72 20 57 54 59 50 | 45 20 63 72 63 20 3d 20 |ter WTYP|E crc = |
|00005200| 69 63 72 63 3b 0a 20 20 | 20 20 72 65 67 69 73 74 |icrc;. | regist|
|00005210| 65 72 20 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |er unsig|ned char|
|00005220| 20 2a 63 70 20 3d 20 69 | 63 70 3b 0a 20 20 20 20 | *cp = i|cp;. |
|00005230| 72 65 67 69 73 74 65 72 | 20 69 6e 74 20 63 6e 74 |register| int cnt|
|00005240| 20 3d 20 69 63 6e 74 3b | 0a 0a 20 20 20 20 77 68 | = icnt;|.. wh|
|00005250| 69 6c 65 28 20 63 6e 74 | 2d 2d 20 29 20 7b 0a 23 |ile( cnt|-- ) {.#|
|00005260| 69 66 6e 64 65 66 20 53 | 57 41 50 50 45 44 0a 09 |ifndef S|WAPPED..|
|00005270| 63 72 63 20 3d 20 28 63 | 72 63 3c 3c 42 29 20 5e |crc = (c|rc<<B) ^|
|00005280| 20 63 72 63 74 61 62 5b | 28 63 72 63 3e 3e 28 57 | crctab[|(crc>>(W|
|00005290| 2d 42 29 29 20 5e 20 2a | 63 70 2b 2b 5d 3b 0a 23 |-B)) ^ *|cp++];.#|
|000052a0| 65 6c 73 65 0a 09 63 72 | 63 20 3d 20 28 63 72 63 |else..cr|c = (crc|
|000052b0| 3e 3e 42 29 20 5e 20 63 | 72 63 74 61 62 5b 28 63 |>>B) ^ c|rctab[(c|
|000052c0| 72 63 20 26 20 28 28 31 | 3c 3c 42 29 2d 31 29 29 |rc & ((1|<<B)-1))|
|000052d0| 20 5e 20 2a 63 70 2b 2b | 5d 3b 20 0a 23 65 6e 64 | ^ *cp++|]; .#end|
|000052e0| 69 66 20 53 57 41 50 50 | 45 44 0a 20 20 20 20 7d |if SWAPP|ED. }|
|000052f0| 0a 0a 20 20 20 20 72 65 | 74 75 72 6e 28 20 63 72 |.. re|turn( cr|
|00005300| 63 20 29 3b 0a 7d 0a 0a | 23 69 66 64 65 66 20 4d |c );.}..|#ifdef M|
|00005310| 41 4b 45 54 41 42 0a 0a | 23 69 6e 63 6c 75 64 65 |AKETAB..|#include|
|00005320| 20 3c 73 74 64 69 6f 2e | 68 3e 0a 6d 61 69 6e 28 | <stdio.|h>.main(|
|00005330| 29 0a 7b 0a 20 20 20 20 | 69 6e 69 74 63 72 63 74 |).{. |initcrct|
|00005340| 61 62 28 29 3b 0a 7d 0a | 0a 69 6e 69 74 63 72 63 |ab();.}.|.initcrc|
|00005350| 74 61 62 28 29 0a 7b 0a | 20 20 20 20 72 65 67 69 |tab().{.| regi|
|00005360| 73 74 65 72 20 20 69 6e | 74 20 62 2c 20 69 3b 0a |ster in|t b, i;.|
|00005370| 20 20 20 20 57 54 59 50 | 45 20 76 3b 0a 0a 20 20 | WTYP|E v;.. |
|00005380| 20 20 0a 20 20 20 20 66 | 6f 72 28 20 62 20 3d 20 | . f|or( b = |
|00005390| 30 3b 20 62 20 3c 3d 20 | 28 31 3c 3c 42 29 2d 31 |0; b <= |(1<<B)-1|
|000053a0| 3b 20 2b 2b 62 20 29 20 | 7b 0a 23 69 66 6e 64 65 |; ++b ) |{.#ifnde|
|000053b0| 66 20 53 57 41 50 50 45 | 44 0a 09 66 6f 72 28 20 |f SWAPPE|D..for( |
|000053c0| 76 20 3d 20 62 3c 3c 28 | 57 2d 42 29 2c 20 69 20 |v = b<<(|W-B), i |
|000053d0| 3d 20 42 3b 20 2d 2d 69 | 20 3e 3d 20 30 3b 20 29 |= B; --i| >= 0; )|
|000053e0| 0a 09 20 20 20 20 76 20 | 3d 20 76 20 26 20 28 28 |.. v |= v & ((|
|000053f0| 57 54 59 50 45 29 31 3c | 3c 28 57 2d 31 29 29 20 |WTYPE)1<|<(W-1)) |
|00005400| 3f 20 28 76 3c 3c 31 29 | 5e 50 20 3a 20 76 3c 3c |? (v<<1)|^P : v<<|
|00005410| 31 3b 0a 23 65 6c 73 65 | 0a 09 66 6f 72 28 20 76 |1;.#else|..for( v|
|00005420| 20 3d 20 62 2c 20 69 20 | 3d 20 42 3b 20 2d 2d 69 | = b, i |= B; --i|
|00005430| 20 3e 3d 20 30 3b 20 29 | 0a 09 20 20 20 20 76 20 | >= 0; )|.. v |
|00005440| 3d 20 76 20 26 20 31 20 | 3f 20 28 76 3e 3e 31 29 |= v & 1 |? (v>>1)|
|00005450| 5e 50 20 3a 20 76 3e 3e | 31 3b 0a 23 65 6e 64 69 |^P : v>>|1;.#endi|
|00005460| 66 09 20 20 20 20 0a 09 | 63 72 63 74 61 62 5b 62 |f. ..|crctab[b|
|00005470| 5d 20 3d 20 76 3b 0a 0a | 09 70 72 69 6e 74 66 28 |] = v;..|.printf(|
|00005480| 20 22 30 78 25 6c 78 2c | 22 2c 20 76 20 26 20 28 | "0x%lx,|", v & (|
|00005490| 28 31 4c 3c 3c 57 29 2d | 31 4c 29 29 3b 0a 09 69 |(1L<<W)-|1L));..i|
|000054a0| 66 28 20 28 62 26 37 29 | 20 3d 3d 20 37 20 29 0a |f( (b&7)| == 7 ).|
|000054b0| 09 20 20 20 20 70 72 69 | 6e 74 66 28 22 5c 6e 22 |. pri|ntf("\n"|
|000054c0| 20 29 3b 0a 09 65 6c 73 | 65 0a 09 20 20 20 20 70 | );..els|e.. p|
|000054d0| 72 69 6e 74 66 28 22 20 | 20 22 29 3b 0a 20 20 20 |rintf(" | ");. |
|000054e0| 20 7d 0a 7d 0a 23 65 6e | 64 69 66 0a 0a 23 69 66 | }.}.#en|dif..#if|
|000054f0| 64 65 66 20 54 45 53 54 | 0a 0a 23 69 6e 63 6c 75 |def TEST|..#inclu|
|00005500| 64 65 20 3c 73 74 64 69 | 6f 2e 68 3e 0a 23 69 6e |de <stdi|o.h>.#in|
|00005510| 63 6c 75 64 65 20 3c 66 | 63 6e 74 6c 2e 68 3e 0a |clude <f|cntl.h>.|
|00005520| 0a 23 64 65 66 69 6e 65 | 20 4d 41 58 42 55 46 09 |.#define| MAXBUF.|
|00005530| 34 30 39 36 0a 0a 0a 0a | 6d 61 69 6e 28 20 61 63 |4096....|main( ac|
|00005540| 2c 20 61 76 20 29 0a 20 | 20 20 20 69 6e 74 20 61 |, av ). | int a|
|00005550| 63 3b 20 63 68 61 72 20 | 2a 2a 61 76 3b 0a 7b 0a |c; char |**av;.{.|
|00005560| 20 20 20 20 69 6e 74 20 | 66 64 3b 0a 20 20 20 20 | int |fd;. |
|00005570| 69 6e 74 20 6e 72 3b 0a | 20 20 20 20 69 6e 74 20 |int nr;.| int |
|00005580| 69 3b 0a 20 20 20 20 63 | 68 61 72 20 62 75 66 5b |i;. c|har buf[|
|00005590| 4d 41 58 42 55 46 5d 3b | 0a 20 20 20 20 57 54 59 |MAXBUF];|. WTY|
|000055a0| 50 45 20 63 72 63 2c 20 | 63 72 63 32 3b 0a 0a 20 |PE crc, |crc2;.. |
|000055b0| 20 20 20 66 64 20 3d 20 | 30 3b 0a 20 20 20 20 69 | fd = |0;. i|
|000055c0| 66 28 20 61 63 20 3e 20 | 31 20 29 0a 09 69 66 28 |f( ac > |1 )..if(|
|000055d0| 20 28 66 64 20 3d 20 6f | 70 65 6e 28 20 61 76 5b | (fd = o|pen( av[|
|000055e0| 31 5d 2c 20 4f 5f 52 44 | 4f 4e 4c 59 20 29 29 20 |1], O_RD|ONLY )) |
|000055f0| 3c 20 30 20 29 20 7b 0a | 09 20 20 20 20 70 65 72 |< 0 ) {.|. per|
|00005600| 72 6f 72 28 20 61 76 5b | 31 5d 20 29 3b 0a 09 20 |ror( av[|1] );.. |
|00005610| 20 20 20 65 78 69 74 28 | 20 2d 31 20 29 3b 0a 09 | exit(| -1 );..|
|00005620| 7d 0a 20 20 20 20 63 72 | 63 20 3d 20 63 72 63 32 |}. cr|c = crc2|
|00005630| 20 3d 20 49 4e 49 54 5f | 43 52 43 3b 0a 0a 20 20 | = INIT_|CRC;.. |
|00005640| 20 20 77 68 69 6c 65 28 | 20 28 6e 72 20 3d 20 72 | while(| (nr = r|
|00005650| 65 61 64 28 20 66 64 2c | 20 62 75 66 2c 20 4d 41 |ead( fd,| buf, MA|
|00005660| 58 42 55 46 20 29 29 20 | 3e 20 30 20 29 20 7b 0a |XBUF )) |> 0 ) {.|
|00005670| 09 63 72 63 20 3d 20 75 | 70 64 63 72 63 28 20 63 |.crc = u|pdcrc( c|
|00005680| 72 63 2c 20 62 75 66 2c | 20 6e 72 20 29 3b 0a 20 |rc, buf,| nr );. |
|00005690| 20 20 20 7d 0a 0a 20 20 | 20 20 69 66 28 20 6e 72 | }.. | if( nr|
|000056a0| 20 21 3d 20 30 20 29 0a | 09 70 65 72 72 6f 72 28 | != 0 ).|.perror(|
|000056b0| 20 22 72 65 61 64 69 6e | 67 22 20 29 3b 0a 20 20 | "readin|g" );. |
|000056c0| 20 20 65 6c 73 65 20 7b | 0a 09 70 72 69 6e 74 66 | else {|..printf|
|000056d0| 28 20 22 25 6c 78 5c 6e | 22 2c 20 63 72 63 20 29 |( "%lx\n|", crc )|
|000056e0| 3b 0a 20 20 20 20 7d 0a | 0a 23 69 66 64 65 66 20 |;. }.|.#ifdef |
|000056f0| 4d 41 47 49 43 43 48 45 | 43 4b 0a 20 20 20 20 2f |MAGICCHE|CK. /|
|00005700| 2a 20 74 61 63 6b 20 6f | 6e 65 27 73 20 63 6f 6d |* tack o|ne's com|
|00005710| 70 6c 65 6d 65 6e 74 20 | 6f 66 20 63 72 63 20 6f |plement |of crc o|
|00005720| 6e 74 6f 20 64 61 74 61 | 20 73 74 72 65 61 6d 2c |nto data| stream,|
|00005730| 20 61 6e 64 0a 20 20 20 | 20 20 20 20 63 6f 6e 74 | and. | cont|
|00005740| 69 6e 75 65 20 63 72 63 | 20 63 61 6c 63 75 6c 61 |inue crc| calcula|
|00005750| 74 69 6f 6e 2e 20 20 53 | 68 6f 75 6c 64 20 67 65 |tion. S|hould ge|
|00005760| 74 20 61 20 63 6f 6e 73 | 74 61 6e 74 20 28 6d 61 |t a cons|tant (ma|
|00005770| 67 69 63 20 6e 75 6d 62 | 65 72 29 0a 20 20 20 20 |gic numb|er). |
|00005780| 20 20 20 64 65 70 65 6e | 64 65 6e 74 20 6f 6e 6c | depen|dent onl|
|00005790| 79 20 6f 6e 20 50 2c 20 | 6e 6f 74 20 74 68 65 20 |y on P, |not the |
|000057a0| 64 61 74 61 2e 0a 20 20 | 20 20 20 2a 2f 0a 20 20 |data.. | */. |
|000057b0| 20 20 63 72 63 32 20 3d | 20 63 72 63 20 5e 20 2d | crc2 =| crc ^ -|
|000057c0| 31 4c 3b 0a 20 20 20 20 | 66 6f 72 28 20 6e 72 20 |1L;. |for( nr |
|000057d0| 3d 20 57 2d 42 3b 20 6e | 72 20 3e 3d 20 30 3b 20 |= W-B; n|r >= 0; |
|000057e0| 6e 72 20 2d 3d 20 42 20 | 29 20 7b 0a 09 62 75 66 |nr -= B |) {..buf|
|000057f0| 5b 30 5d 20 3d 20 28 63 | 72 63 32 20 3e 3e 20 6e |[0] = (c|rc2 >> n|
|00005800| 72 29 3b 0a 09 63 72 63 | 20 3d 20 75 70 64 63 72 |r);..crc| = updcr|
|00005810| 63 28 63 72 63 2c 20 62 | 75 66 2c 20 31 29 3b 0a |c(crc, b|uf, 1);.|
|00005820| 20 20 20 20 7d 0a 0a 20 | 20 20 20 2f 2a 20 63 72 | }.. | /* cr|
|00005830| 63 20 73 68 6f 75 6c 64 | 20 6e 6f 77 20 65 71 75 |c should| now equ|
|00005840| 61 6c 20 6d 61 67 69 63 | 20 2a 2f 0a 20 20 20 20 |al magic| */. |
|00005850| 62 75 66 5b 30 5d 20 3d | 20 62 75 66 5b 31 5d 20 |buf[0] =| buf[1] |
|00005860| 3d 20 62 75 66 5b 32 5d | 20 3d 20 62 75 66 5b 33 |= buf[2]| = buf[3|
|00005870| 5d 20 3d 20 30 3b 0a 20 | 20 20 20 70 72 69 6e 74 |] = 0;. | print|
|00005880| 66 28 20 22 6d 61 67 69 | 63 20 74 65 73 74 3a 20 |f( "magi|c test: |
|00005890| 25 6c 78 20 3d 3f 3d 20 | 25 6c 78 5c 6e 22 2c 20 |%lx =?= |%lx\n", |
|000058a0| 63 72 63 2c 20 75 70 64 | 63 72 63 28 2d 31 2c 20 |crc, upd|crc(-1, |
|000058b0| 62 75 66 2c 20 57 2f 42 | 29 29 3b 0a 23 65 6e 64 |buf, W/B|));.#end|
|000058c0| 69 66 20 4d 41 47 49 43 | 43 48 45 43 4b 0a 7d 0a |if MAGIC|CHECK.}.|
|000058d0| 0a 23 65 6e 64 69 66 0a | 2a 2a 2a 2a 2a 2a 2a 2a |.#endif.|********|
|000058e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000058f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005900| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005910| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005920| 2a 2a 2a 2a 0a 0a 65 64 | 20 6c 65 74 74 65 72 73 |****..ed| letters|
|00005930| 20 61 72 65 20 74 72 61 | 6e 73 6c 61 74 65 64 20 | are tra|nslated |
|00005940| 74 6f 20 74 68 65 69 72 | 20 75 6e 61 63 63 65 6e |to their| unaccen|
|00005950| 74 65 64 20 63 6f 75 6e | 74 65 72 70 61 72 74 73 |ted coun|terparts|
|00005960| 2e 0a 49 66 20 79 6f 75 | 72 20 73 79 73 74 65 6d |..If you|r system|
|00005970| 20 73 75 70 70 6f 72 74 | 73 20 74 68 65 20 4c 61 | support|s the La|
|00005980| 74 69 6e 2d 31 20 63 68 | 61 72 61 63 74 65 72 20 |tin-1 ch|aracter |
|00005990| 73 65 74 2c 20 79 6f 75 | 20 63 61 6e 20 63 68 61 |set, you| can cha|
|000059a0| 6e 67 65 20 74 68 69 73 | 0a 74 72 61 6e 73 6c 61 |nge this|.transla|
|000059b0| 74 69 6f 6e 20 73 63 68 | 65 6d 65 20 62 79 20 73 |tion sch|eme by s|
|000059c0| 70 65 63 69 66 79 69 6e | 67 20 27 2d 44 4c 41 54 |pecifyin|g '-DLAT|
|000059d0| 49 4e 31 27 20 66 6f 72 | 20 74 68 65 20 27 43 46 |IN1' for| the 'CF|
|000059e0| 27 20 6d 61 63 72 6f 20 | 69 6e 20 74 68 65 0a 6d |' macro |in the.m|
|000059f0| 61 6b 65 66 69 6c 65 2e | 20 20 54 68 69 73 20 77 |akefile.| This w|
|00005a00| 6d 61 63 75 74 69 6c 2f | 66 69 6c 65 69 6f 2f 00 |macutil/|fileio/.|
|00005a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a60| 00 00 00 00 30 30 30 37 | 37 35 20 00 30 32 33 34 |....0007|75 .0234|
|00005a70| 33 36 20 00 30 30 30 31 | 35 36 20 00 30 30 30 30 |36 .0001|56 .0000|
|00005a80| 30 30 30 30 30 30 30 20 | 30 35 30 36 32 31 35 31 |0000000 |05062151|
|00005a90| 34 37 33 20 30 31 33 35 | 37 37 00 20 35 00 00 00 |473 0135|77. 5...|
|00005aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b00| 00 75 73 74 61 72 00 30 | 30 68 76 00 00 00 00 00 |.ustar.0|0hv.....|
|00005b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b20| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00005b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b40| 00 00 00 00 00 00 00 00 | 00 30 30 30 31 31 37 20 |........|.000117 |
|00005b50| 00 30 30 30 33 35 30 20 | 00 00 00 00 00 00 00 00 |.000350 |........|
|00005b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c00| 6d 61 63 75 74 69 6c 2f | 66 69 6c 65 69 6f 2f 66 |macutil/|fileio/f|
|00005c10| 69 6c 65 69 6f 2e 63 00 | 00 00 00 00 00 00 00 00 |ileio.c.|........|
|00005c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c60| 00 00 00 00 30 30 30 36 | 36 34 20 00 30 32 33 34 |....0006|64 .0234|
|00005c70| 33 36 20 00 30 30 30 31 | 35 36 20 00 30 30 30 30 |36 .0001|56 .0000|
|00005c80| 30 30 31 36 36 31 32 20 | 30 35 30 36 32 31 35 31 |0016612 |05062151|
|00005c90| 34 37 31 20 30 31 35 32 | 30 36 00 20 30 00 00 00 |471 0152|06. 0...|
|00005ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d00| 00 75 73 74 61 72 00 30 | 30 68 76 00 00 00 00 00 |.ustar.0|0hv.....|
|00005d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d20| 00 00 00 00 00 00 00 00 | 00 73 74 61 66 66 00 00 |........|.staff..|
|00005d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d40| 00 00 00 00 00 00 00 00 | 00 30 30 30 31 32 30 20 |........|.000120 |
|00005d50| 00 30 30 30 30 36 30 20 | 00 00 00 00 00 00 00 00 |.000060 |........|
|00005d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e00| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 73 74 |#include| <sys/st|
|00005e10| 61 74 2e 68 3e 0a 23 69 | 6e 63 6c 75 64 65 20 3c |at.h>.#i|nclude <|
|00005e20| 73 74 64 69 6f 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |stdio.h>|.#includ|
|00005e30| 65 20 22 2e 2e 2f 6d 61 | 63 68 64 72 2f 6d 61 63 |e "../ma|chdr/mac|
|00005e40| 68 64 72 2e 68 22 0a 23 | 69 6e 63 6c 75 64 65 20 |hdr.h".#|include |
|00005e50| 22 66 69 6c 65 67 6c 6f | 62 2e 68 22 0a 23 69 66 |"fileglo|b.h".#if|
|00005e60| 64 65 66 20 41 55 46 53 | 5f 53 55 50 50 4f 52 54 |def AUFS|_SUPPORT|
|00005e70| 0a 23 69 6e 63 6c 75 64 | 65 20 3c 6e 65 74 61 74 |.#includ|e <netat|
|00005e80| 2f 61 70 70 6c 65 74 61 | 6c 6b 2e 68 3e 0a 23 69 |/appleta|lk.h>.#i|
|00005e90| 6e 63 6c 75 64 65 20 3c | 6e 65 74 61 74 2f 6d 61 |nclude <|netat/ma|
|00005ea0| 63 66 69 6c 65 2e 68 3e | 0a 23 69 6e 63 6c 75 64 |cfile.h>|.#includ|
|00005eb0| 65 20 3c 63 74 79 70 65 | 2e 68 3e 0a 23 65 6e 64 |e <ctype|.h>.#end|
|00005ec0| 69 66 20 2f 2a 20 41 55 | 46 53 5f 53 55 50 50 4f |if /* AU|FS_SUPPO|
|00005ed0| 52 54 20 2a 2f 0a 0a 63 | 68 61 72 20 2a 6d 61 6c |RT */..c|har *mal|
|00005ee0| 6c 6f 63 28 29 3b 0a 63 | 68 61 72 20 2a 72 65 61 |loc();.c|har *rea|
|00005ef0| 6c 6c 6f 63 28 29 3b 0a | 0a 23 69 66 64 65 66 20 |lloc();.|.#ifdef |
|00005f00| 41 55 46 53 5f 53 55 50 | 50 4f 52 54 0a 76 6f 69 |AUFS_SUP|PORT.voi|
|00005f10| 64 20 61 75 66 73 5f 6e | 61 6d 69 6e 67 73 28 29 |d aufs_n|amings()|
|00005f20| 3b 0a 76 6f 69 64 20 77 | 72 5f 61 75 66 73 5f 69 |;.void w|r_aufs_i|
|00005f30| 6e 66 6f 28 29 3b 0a 23 | 65 6e 64 69 66 20 2f 2a |nfo();.#|endif /*|
|00005f40| 20 41 55 46 53 5f 53 55 | 50 50 4f 52 54 20 2a 2f | AUFS_SU|PPORT */|
|00005f50| 0a 0a 23 69 66 6e 64 65 | 66 20 42 53 44 0a 2f 2a |..#ifnde|f BSD./*|
|00005f60| 20 61 6c 6c 20 74 68 6f | 73 65 20 73 74 75 70 69 | all tho|se stupi|
|00005f70| 64 20 64 69 66 66 65 72 | 65 6e 63 65 73 21 20 2a |d differ|ences! *|
|00005f80| 2f 0a 23 64 65 66 69 6e | 65 20 62 63 6f 70 79 28 |/.#defin|e bcopy(|
|00005f90| 73 72 63 2c 64 65 73 74 | 2c 6c 65 6e 67 74 68 29 |src,dest|,length)|
|00005fa0| 09 6d 65 6d 63 70 79 28 | 28 64 65 73 74 29 2c 28 |.memcpy(|(dest),(|
|00005fb0| 73 72 63 29 2c 28 6c 65 | 6e 67 74 68 29 29 0a 23 |src),(le|ngth)).#|
|00005fc0| 64 65 66 69 6e 65 20 62 | 7a 65 72 6f 28 62 6c 6f |define b|zero(blo|
|00005fd0| 63 6b 2c 6c 65 6e 67 74 | 68 29 09 6d 65 6d 73 65 |ck,lengt|h).memse|
|00005fe0| 74 28 28 62 6c 6f 63 6b | 29 2c 30 2c 28 6c 65 6e |t((block|),0,(len|
|00005ff0| 67 74 68 29 29 0a 23 65 | 6e 64 69 66 20 2f 2a 20 |gth)).#e|ndif /* |
|00006000| 42 53 44 20 2a 2f 0a 0a | 23 64 65 66 69 6e 65 20 |BSD */..|#define |
|00006010| 49 4e 46 4f 5f 46 4f 52 | 4b 09 31 0a 23 64 65 66 |INFO_FOR|K.1.#def|
|00006020| 69 6e 65 20 52 53 52 43 | 5f 46 4f 52 4b 09 32 0a |ine RSRC|_FORK.2.|
|00006030| 23 64 65 66 69 6e 65 20 | 44 41 54 41 5f 46 4f 52 |#define |DATA_FOR|
|00006040| 4b 09 33 0a 0a 23 69 66 | 64 65 66 20 42 53 44 0a |K.3..#if|def BSD.|
|00006050| 63 68 61 72 20 2a 73 70 | 72 69 6e 74 66 28 29 3b |char *sp|rintf();|
|00006060| 0a 23 65 6e 64 69 66 20 | 2f 2a 20 42 53 44 20 2a |.#endif |/* BSD *|
|00006070| 2f 0a 0a 63 68 61 72 20 | 66 5f 69 6e 66 6f 5b 49 |/..char |f_info[I|
|00006080| 5f 4e 41 4d 45 4c 45 4e | 5d 3b 0a 63 68 61 72 20 |_NAMELEN|];.char |
|00006090| 66 5f 64 61 74 61 5b 49 | 5f 4e 41 4d 45 4c 45 4e |f_data[I|_NAMELEN|
|000060a0| 5d 3b 0a 63 68 61 72 20 | 66 5f 72 73 72 63 5b 49 |];.char |f_rsrc[I|
|000060b0| 5f 4e 41 4d 45 4c 45 4e | 5d 3b 0a 63 68 61 72 20 |_NAMELEN|];.char |
|000060c0| 66 5f 62 69 6e 5b 49 5f | 4e 41 4d 45 4c 45 4e 5d |f_bin[I_|NAMELEN]|
|000060d0| 3b 0a 23 69 66 64 65 66 | 20 41 55 46 53 5f 53 55 |;.#ifdef| AUFS_SU|
|000060e0| 50 50 4f 52 54 0a 73 74 | 61 74 69 63 20 63 68 61 |PPORT.st|atic cha|
|000060f0| 72 20 68 65 78 5b 5d 20 | 3d 20 22 30 31 32 33 34 |r hex[] |= "01234|
|00006100| 35 36 37 38 39 61 62 63 | 64 65 66 22 3b 0a 73 74 |56789abc|def";.st|
|00006110| 61 74 69 63 20 63 68 61 | 72 20 69 6e 66 6f 64 69 |atic cha|r infodi|
|00006120| 72 5b 5d 20 3d 20 22 2e | 66 69 6e 64 65 72 69 6e |r[] = ".|finderin|
|00006130| 66 6f 22 3b 0a 73 74 61 | 74 69 63 20 63 68 61 72 |fo";.sta|tic char|
|00006140| 20 72 73 72 63 64 69 72 | 5b 5d 20 3d 20 22 2e 72 | rsrcdir|[] = ".r|
|00006150| 65 73 6f 75 72 63 65 22 | 3b 0a 23 64 65 66 69 6e |esource"|;.#defin|
|00006160| 65 20 49 4e 46 4f 53 5a | 09 73 69 7a 65 6f 66 28 |e INFOSZ|.sizeof(|
|00006170| 69 6e 66 6f 64 69 72 29 | 0a 23 64 65 66 69 6e 65 |infodir)|.#define|
|00006180| 20 52 53 43 53 53 5a 09 | 73 69 7a 65 6f 66 28 72 | RSCSSZ.|sizeof(r|
|00006190| 73 72 63 64 69 72 29 0a | 63 68 61 72 20 66 5f 69 |srcdir).|char f_i|
|000061a0| 6e 66 6f 5f 61 75 66 73 | 5b 49 5f 4e 41 4d 45 4c |nfo_aufs|[I_NAMEL|
|000061b0| 45 4e 2b 49 4e 46 4f 53 | 5a 5d 3b 0a 63 68 61 72 |EN+INFOS|Z];.char|
|000061c0| 20 66 5f 72 73 72 63 5f | 61 75 66 73 5b 49 5f 4e | f_rsrc_|aufs[I_N|
|000061d0| 41 4d 45 4c 45 4e 2b 52 | 53 43 53 53 5a 5d 3b 0a |AMELEN+R|SCSSZ];.|
|000061e0| 23 65 6e 64 69 66 20 2f | 2a 20 41 55 46 53 5f 53 |#endif /|* AUFS_S|
|000061f0| 55 50 50 4f 52 54 20 2a | 2f 0a 0a 69 6e 74 20 62 |UPPORT *|/..int b|
|00006200| 79 74 65 73 5f 72 65 61 | 64 2c 20 62 79 74 65 73 |ytes_rea|d, bytes|
|00006210| 5f 77 72 69 74 74 65 6e | 3b 0a 69 6e 74 20 6d 6f |_written|;.int mo|
|00006220| 64 65 3b 0a 63 68 61 72 | 20 2a 6f 75 74 5f 62 75 |de;.char| *out_bu|
|00006230| 66 66 65 72 2c 20 2a 6f | 75 74 5f 70 74 72 3b 0a |ffer, *o|ut_ptr;.|
|00006240| 0a 63 68 61 72 20 2a 62 | 75 66 66 65 72 20 3d 20 |.char *b|uffer = |
|00006250| 4e 55 4c 4c 3b 0a 63 68 | 61 72 20 2a 72 62 75 66 |NULL;.ch|ar *rbuf|
|00006260| 66 65 72 20 3d 20 4e 55 | 4c 4c 2c 20 2a 64 62 75 |fer = NU|LL, *dbu|
|00006270| 66 66 65 72 20 3d 20 4e | 55 4c 4c 3b 0a 63 68 61 |ffer = N|ULL;.cha|
|00006280| 72 20 2a 70 74 72 3b 0a | 75 6e 73 69 67 6e 65 64 |r *ptr;.|unsigned|
|00006290| 20 6c 6f 6e 67 20 72 73 | 7a 2c 20 64 73 7a 2c 20 | long rs|z, dsz, |
|000062a0| 74 6f 74 73 69 7a 65 2c | 20 6d 61 78 73 69 7a 65 |totsize,| maxsize|
|000062b0| 3b 0a 0a 76 6f 69 64 20 | 64 65 66 69 6e 65 5f 6e |;..void |define_n|
|000062c0| 61 6d 65 28 74 65 78 74 | 29 0a 63 68 61 72 20 2a |ame(text|).char *|
|000062d0| 74 65 78 74 3b 0a 7b 0a | 20 20 20 20 28 76 6f 69 |text;.{.| (voi|
|000062e0| 64 29 73 70 72 69 6e 74 | 66 28 66 5f 69 6e 66 6f |d)sprint|f(f_info|
|000062f0| 2c 20 22 25 73 2e 69 6e | 66 6f 22 2c 20 74 65 78 |, "%s.in|fo", tex|
|00006300| 74 29 3b 0a 20 20 20 20 | 28 76 6f 69 64 29 73 70 |t);. |(void)sp|
|00006310| 72 69 6e 74 66 28 66 5f | 72 73 72 63 2c 20 22 25 |rintf(f_|rsrc, "%|
|00006320| 73 2e 72 73 72 63 22 2c | 20 74 65 78 74 29 3b 0a |s.rsrc",| text);.|
|00006330| 20 20 20 20 28 76 6f 69 | 64 29 73 70 72 69 6e 74 | (voi|d)sprint|
|00006340| 66 28 66 5f 64 61 74 61 | 2c 20 22 25 73 2e 64 61 |f(f_data|, "%s.da|
|00006350| 74 61 22 2c 20 74 65 78 | 74 29 3b 0a 20 20 20 20 |ta", tex|t);. |
|00006360| 28 76 6f 69 64 29 73 70 | 72 69 6e 74 66 28 66 5f |(void)sp|rintf(f_|
|00006370| 62 69 6e 2c 20 22 25 73 | 2e 62 69 6e 22 2c 20 74 |bin, "%s|.bin", t|
|00006380| 65 78 74 29 3b 0a 23 69 | 66 64 65 66 20 41 55 46 |ext);.#i|fdef AUF|
|00006390| 53 5f 53 55 50 50 4f 52 | 54 0a 2f 2a 20 44 6f 20 |S_SUPPOR|T./* Do |
|000063a0| 6e 6f 74 20 64 6f 20 6e | 61 6d 65 73 74 75 66 66 |not do n|amestuff|
|000063b0| 69 6e 67 20 68 65 72 65 | 2e 20 20 57 65 20 77 61 |ing here|. We wa|
|000063c0| 6e 74 20 74 6f 20 62 61 | 73 65 20 61 67 61 69 6e |nt to ba|se again|
|000063d0| 20 6f 6e 20 74 68 65 20 | 69 6e 66 6f 72 6d 61 74 | on the |informat|
|000063e0| 69 6f 6e 20 69 6e 0a 20 | 20 20 74 68 65 20 69 6e |ion in. | the in|
|000063f0| 66 6f 20 68 65 61 64 65 | 72 2c 20 73 6f 20 74 68 |fo heade|r, so th|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.