home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / tarsrc.sit / extract.c.bin < prev    next >
MacBinary  |  1989-09-14  |  8.3 KB  |  [TEXT/????]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: extract.c.bin

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert AMOS Picture Packer (image/amosPicturePacker) ext Supported
1% dexvert Debian floppy split (archive/debianFloppySplit) ext Unsupported
1% dexvert Sound Images sound sample (audio/soundImagesSoundSample) ext Unsupported
1% dexvert DESI-III drawing (image/desiIIIDrawing) ext Unsupported
1% dexvert MS-DOS PMODE extender executable (executable/msdosPMODEExtenderExecutable) ext Unsupported
1% dexvert Alien Trilogytextures (other/alienTrilogyTextures) ext Unsupported
1% dexvert APT cache data (other/aptCacheData) ext Unsupported
1% dexvert CorelTRACE configuration (other/corelTRACEConfiguration) ext Unsupported
1% dexvert Dreamcast Disc (other/dreamcastDisc) ext Unsupported
1% dexvert EST flat binary (other/estFlatBinary) ext Unsupported
1% dexvert Finale Enigma Binary Format (other/finaleEnigmaBinaryFormat) ext Unsupported
1% dexvert Sega Genesis/Megadrive/32x ROM (other/genesisROM) ext Unsupported
1% dexvert Myth: The Fallen Lords game archive (other/mythTheFallenLordsGameArchive) ext Unsupported
1% dexvert Sound Images Sound Driver (other/soundImagesSoundDriver) ext Unsupported
1% dexvert Symantec/Norton Config (other/symantecNortonConfig) ext Unsupported
1% dexvert Vectrex ROM (other/vectrexROM) ext Unsupported
1% dexvert BIS raP encoded format (other/bisraPEncoded) ext Unsupported
1% dexvert Pascal Script binary (other/pascalScriptBinary) ext Unsupported
1% dexvert 7th Level game data archive (other/seventhLevelGameDataArchive) ext Unsupported
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Binary Text (image/binaryText) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary, Wed Jan 18 16:35:57 1989, modified Tue May 30 16:12:05 1989, creator '????', type ASCII, 7907 bytes "extract.c" , at 0x1f63 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 1 default (weak)
100% lsar MacBinary default
100% gt2 MAC Bilddatei default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[????]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 65 78 74 72 61 63 | 74 2e 63 00 00 00 00 00 |..extrac|t.c.....|
|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 54 45 58 54 3f 3f 3f | 3f 00 00 00 00 00 00 00 |.TEXT???|?.......|
|00000050| 00 00 00 00 00 1e e3 00 | 00 01 7e 9f fa b3 bd a0 |........|..~.....|
|00000060| a8 a6 15 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 2f 2a 0d 20 2a 20 4d 61 | 63 69 6e 74 6f 73 68 20 |/*. * Ma|cintosh |
|00000090| 54 61 72 0d 20 2a 0d 20 | 2a 20 4d 6f 64 69 66 69 |Tar. *. |* Modifi|
|000000a0| 65 64 20 62 79 20 43 72 | 61 69 67 20 52 75 66 66 |ed by Cr|aig Ruff|
|000000b0| 20 66 6f 72 20 75 73 65 | 20 6f 6e 20 74 68 65 20 | for use| on the |
|000000c0| 4d 61 63 69 6e 74 6f 73 | 68 2e 0d 20 2a 2f 0d 2f |Macintos|h.. */./|
|000000d0| 2a 0d 20 2a 20 45 78 74 | 72 61 63 74 20 66 69 6c |*. * Ext|ract fil|
|000000e0| 65 73 20 66 72 6f 6d 20 | 61 20 74 61 72 20 61 72 |es from |a tar ar|
|000000f0| 63 68 69 76 65 2e 0d 20 | 2a 0d 20 2a 20 57 72 69 |chive.. |*. * Wri|
|00000100| 74 74 65 6e 20 31 39 20 | 4e 6f 76 20 31 39 38 35 |tten 19 |Nov 1985|
|00000110| 20 62 79 20 4a 6f 68 6e | 20 47 69 6c 6d 6f 72 65 | by John| Gilmore|
|00000120| 2c 20 69 68 6e 70 34 21 | 68 6f 70 74 6f 61 64 21 |, ihnp4!|hoptoad!|
|00000130| 67 6e 75 2e 0d 20 2a 0d | 20 2a 20 40 28 23 29 20 |gnu.. *.| * @(#) |
|00000140| 65 78 74 72 61 63 74 2e | 63 20 31 2e 31 37 20 38 |extract.|c 1.17 8|
|00000150| 36 2f 31 30 2f 32 39 20 | 50 75 62 6c 69 63 20 44 |6/10/29 |Public D|
|00000160| 6f 6d 61 69 6e 20 2d 20 | 67 6e 75 0d 20 2a 2f 0d |omain - |gnu. */.|
|00000170| 23 69 6e 63 6c 75 64 65 | 20 22 74 61 72 2e 68 22 |#include| "tar.h"|
|00000180| 0d 0d 65 78 74 65 72 6e | 20 75 6e 69 6f 6e 20 72 |..extern| union r|
|00000190| 65 63 6f 72 64 09 2a 68 | 65 61 64 3b 09 09 2f 2a |ecord.*h|ead;../*|
|000001a0| 20 50 6f 69 6e 74 73 20 | 74 6f 20 63 75 72 72 65 | Points |to curre|
|000001b0| 6e 74 20 74 61 70 65 20 | 68 65 61 64 65 72 20 2a |nt tape |header *|
|000001c0| 2f 0d 65 78 74 65 72 6e | 20 73 74 72 75 63 74 20 |/.extern| struct |
|000001d0| 73 74 61 74 20 7b 0d 09 | 6c 6f 6e 67 09 73 74 5f |stat {..|long.st_|
|000001e0| 73 69 7a 65 3b 0d 09 6c | 6f 6e 67 09 73 74 5f 6d |size;..l|ong.st_m|
|000001f0| 74 69 6d 65 3b 0d 7d 20 | 68 73 74 61 74 3b 09 09 |time;.} |hstat;..|
|00000200| 09 09 2f 2a 20 46 61 6b | 65 20 73 74 61 74 20 73 |../* Fak|e stat s|
|00000210| 74 72 75 63 74 20 66 6f | 72 20 63 6f 6d 70 61 74 |truct fo|r compat|
|00000220| 2e 20 2a 2f 0d 0d 42 6f | 6f 6c 65 61 6e 20 45 78 |. */..Bo|olean Ex|
|00000230| 74 72 61 63 74 41 72 63 | 68 69 76 65 28 29 3b 0d |tractArc|hive();.|
|00000240| 65 78 74 65 72 6e 20 76 | 6f 69 64 20 50 72 69 6e |extern v|oid Prin|
|00000250| 74 48 65 61 64 65 72 28 | 29 3b 0d 65 78 74 65 72 |tHeader(|);.exter|
|00000260| 6e 20 42 6f 6f 6c 65 61 | 6e 20 53 6b 69 70 46 69 |n Boolea|n SkipFi|
|00000270| 6c 65 28 29 3b 0d 0d 69 | 6e 74 20 4d 61 6b 65 44 |le();..i|nt MakeD|
|00000280| 69 72 73 28 29 3b 09 09 | 09 2f 2a 20 4d 61 6b 65 |irs();..|./* Make|
|00000290| 73 20 72 65 71 75 69 72 | 65 64 20 64 69 72 65 63 |s requir|ed direc|
|000002a0| 74 6f 72 69 65 73 20 2a | 2f 0d 0d 2f 2a 0d 20 2a |tories *|/../*. *|
|000002b0| 20 45 78 74 72 61 63 74 | 20 2d 20 65 78 74 72 61 | Extract| - extra|
|000002c0| 63 74 20 74 68 65 20 65 | 6e 74 69 72 65 20 61 72 |ct the e|ntire ar|
|000002d0| 63 68 69 76 65 0d 20 2a | 2f 0d 45 78 74 72 61 63 |chive. *|/.Extrac|
|000002e0| 74 28 29 20 7b 0d 09 50 | 6f 69 6e 74 09 09 77 68 |t() {..P|oint..wh|
|000002f0| 65 72 65 3b 0d 09 53 46 | 52 65 70 6c 79 09 09 72 |ere;..SF|Reply..r|
|00000300| 65 70 6c 79 3b 0d 0d 09 | 2f 2a 0d 09 20 2a 20 55 |eply;...|/*.. * U|
|00000310| 73 65 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |se the s|tandard |
|00000320| 66 69 6c 65 20 64 69 61 | 6c 6f 67 20 74 6f 20 73 |file dia|log to s|
|00000330| 65 6c 65 63 74 20 74 68 | 65 20 61 72 63 68 69 76 |elect th|e archiv|
|00000340| 65 2e 0d 09 20 2a 2f 0d | 09 77 68 65 72 65 2e 68 |e... */.|.where.h|
|00000350| 20 3d 20 77 68 65 72 65 | 2e 76 20 3d 20 37 35 3b | = where|.v = 75;|
|00000360| 0d 09 53 46 47 65 74 46 | 69 6c 65 28 77 68 65 72 |..SFGetF|ile(wher|
|00000370| 65 2c 20 22 5c 70 54 61 | 72 20 41 72 63 68 69 76 |e, "\pTa|r Archiv|
|00000380| 65 3a 22 2c 20 6e 69 6c | 2c 20 2d 31 2c 20 6e 69 |e:", nil|, -1, ni|
|00000390| 6c 2c 20 6e 69 6c 2c 20 | 26 72 65 70 6c 79 29 3b |l, nil, |&reply);|
|000003a0| 0d 09 69 66 20 28 21 72 | 65 70 6c 79 2e 67 6f 6f |..if (!r|eply.goo|
|000003b0| 64 29 0d 09 09 72 65 74 | 75 72 6e 3b 0d 0d 09 2f |d)...ret|urn;.../|
|000003c0| 2a 0d 09 20 2a 20 52 65 | 6d 65 6d 62 65 72 20 74 |*.. * Re|member t|
|000003d0| 68 65 20 56 52 65 66 4e | 75 6d 20 61 6e 64 20 4e |he VRefN|um and N|
|000003e0| 61 6d 65 20 66 6f 72 20 | 4f 70 65 6e 41 72 63 68 |ame for |OpenArch|
|000003f0| 69 76 65 2e 0d 09 20 2a | 20 46 69 6e 64 20 6f 75 |ive... *| Find ou|
|00000400| 74 20 77 68 65 72 65 20 | 74 6f 20 70 75 74 20 74 |t where |to put t|
|00000410| 68 65 20 65 78 74 72 61 | 63 74 65 64 20 66 69 6c |he extra|cted fil|
|00000420| 65 73 2e 0d 09 20 2a 2f | 0d 09 61 72 56 52 65 66 |es... */|..arVRef|
|00000430| 4e 75 6d 20 3d 20 72 65 | 70 6c 79 2e 76 52 65 66 |Num = re|ply.vRef|
|00000440| 4e 75 6d 3b 0d 09 61 72 | 4e 61 6d 65 20 3d 20 72 |Num;..ar|Name = r|
|00000450| 65 70 6c 79 2e 66 4e 61 | 6d 65 3b 0d 09 69 66 20 |eply.fNa|me;..if |
|00000460| 28 47 65 74 44 69 72 28 | 22 5c 70 45 78 74 72 61 |(GetDir(|"\pExtra|
|00000470| 63 74 69 6f 6e 20 44 69 | 72 65 63 74 6f 72 79 3a |ction Di|rectory:|
|00000480| 22 2c 20 74 72 75 65 29 | 20 3d 3d 20 66 61 6c 73 |", true)| == fals|
|00000490| 65 29 0d 09 09 72 65 74 | 75 72 6e 3b 0d 0d 09 2f |e)...ret|urn;.../|
|000004a0| 2a 0d 09 20 2a 20 45 78 | 74 72 61 63 74 20 61 6e |*.. * Ex|tract an|
|000004b0| 64 20 70 72 69 6e 74 20 | 74 68 65 20 66 69 6c 65 |d print |the file|
|000004c0| 73 20 61 73 20 66 6f 75 | 6e 64 20 69 6e 20 74 68 |s as fou|nd in th|
|000004d0| 65 20 61 72 63 68 69 76 | 65 2e 0d 09 20 2a 2f 0d |e archiv|e... */.|
|000004e0| 09 69 66 20 28 57 69 6e | 64 49 6e 69 74 28 29 29 |.if (Win|dInit())|
|000004f0| 0d 09 09 72 65 74 75 72 | 6e 3b 0d 0d 09 54 65 78 |...retur|n;...Tex|
|00000500| 74 46 61 63 65 28 75 6e | 64 65 72 6c 69 6e 65 29 |tFace(un|derline)|
|00000510| 3b 0d 09 57 50 72 69 6e | 74 66 28 68 65 61 64 65 |;..WPrin|tf(heade|
|00000520| 72 29 3b 0d 09 54 65 78 | 74 46 61 63 65 28 30 29 |r);..Tex|tFace(0)|
|00000530| 3b 0d 09 52 65 61 64 41 | 6e 64 28 45 78 74 72 61 |;..ReadA|nd(Extra|
|00000540| 63 74 41 72 63 68 69 76 | 65 29 3b 0d 09 43 6c 6f |ctArchiv|e);..Clo|
|00000550| 73 65 41 72 63 68 69 76 | 65 28 29 3b 0d 09 57 69 |seArchiv|e();..Wi|
|00000560| 6e 64 45 6e 64 28 61 75 | 74 6f 50 61 67 65 29 3b |ndEnd(au|toPage);|
|00000570| 0d 7d 0d 0d 2f 2a 0d 20 | 2a 20 45 78 74 72 61 63 |.}../*. |* Extrac|
|00000580| 74 20 61 20 66 69 6c 65 | 20 66 72 6f 6d 20 74 68 |t a file| from th|
|00000590| 65 20 61 72 63 68 69 76 | 65 2e 0d 20 2a 2f 0d 42 |e archiv|e.. */.B|
|000005a0| 6f 6f 6c 65 61 6e 0d 45 | 78 74 72 61 63 74 41 72 |oolean.E|xtractAr|
|000005b0| 63 68 69 76 65 28 29 0d | 7b 0d 09 72 65 67 69 73 |chive().|{..regis|
|000005c0| 74 65 72 20 63 68 61 72 | 09 2a 64 61 74 61 3b 0d |ter char|.*data;.|
|000005d0| 09 72 65 67 69 73 74 65 | 72 20 63 68 61 72 09 2a |.registe|r char.*|
|000005e0| 70 3b 0d 09 75 6e 69 6f | 6e 20 72 65 63 6f 72 64 |p;..unio|n record|
|000005f0| 09 2a 72 65 63 3b 0d 09 | 69 6e 74 09 09 69 2c 20 |.*rec;..|int..i, |
|00000600| 6e 61 6d 65 6c 65 6e 3b | 0d 09 42 6f 6f 6c 65 61 |namelen;|..Boolea|
|00000610| 6e 09 09 65 72 72 46 6f | 75 6e 64 20 3d 20 66 61 |n..errFo|und = fa|
|00000620| 6c 73 65 3b 0d 09 6c 6f | 6e 67 09 09 63 68 65 63 |lse;..lo|ng..chec|
|00000630| 6b 2c 20 77 72 69 74 74 | 65 6e 3b 0d 09 6c 6f 6e |k, writt|en;..lon|
|00000640| 67 09 09 73 69 7a 65 3b | 0d 09 4f 53 45 72 72 09 |g..size;|..OSErr.|
|00000650| 09 65 72 72 3b 0d 09 63 | 68 61 72 09 09 6d 61 63 |.err;..c|har..mac|
|00000660| 4e 61 6d 65 5b 32 35 36 | 5d 3b 0d 09 48 50 61 72 |Name[256|];..HPar|
|00000670| 61 6d 42 6c 6f 63 6b 52 | 65 63 09 64 70 62 3b 0d |amBlockR|ec.dpb;.|
|00000680| 09 48 50 61 72 61 6d 42 | 6c 6f 63 6b 52 65 63 09 |.HParamB|lockRec.|
|00000690| 66 70 62 3b 0d 09 63 68 | 61 72 09 09 2a 72 6f 75 |fpb;..ch|ar..*rou|
|000006a0| 74 69 6e 65 20 3d 20 22 | 5c 70 45 78 74 72 61 63 |tine = "|\pExtrac|
|000006b0| 74 41 72 63 68 69 76 65 | 22 3b 0d 0d 09 53 61 76 |tArchive|";...Sav|
|000006c0| 65 52 65 63 28 26 68 65 | 61 64 29 3b 09 09 09 2f |eRec(&he|ad);.../|
|000006d0| 2a 20 4d 61 6b 65 20 73 | 75 72 65 20 69 74 20 73 |* Make s|ure it s|
|000006e0| 74 69 63 6b 73 20 61 72 | 6f 75 6e 64 20 2a 2f 0d |ticks ar|ound */.|
|000006f0| 09 55 73 65 52 65 63 28 | 68 65 61 64 29 3b 09 09 |.UseRec(|head);..|
|00000700| 09 2f 2a 20 41 6e 64 20 | 67 6f 20 70 61 73 74 20 |./* And |go past |
|00000710| 69 74 20 69 6e 20 74 68 | 65 20 61 72 63 68 69 76 |it in th|e archiv|
|00000720| 65 20 2a 2f 0d 09 44 65 | 63 6f 64 65 48 65 61 64 |e */..De|codeHead|
|00000730| 65 72 28 68 65 61 64 2c | 20 26 68 73 74 61 74 2c |er(head,| &hstat,|
|00000740| 20 31 29 3b 09 2f 2a 20 | 53 6e 61 72 66 20 66 69 | 1);./* |Snarf fi|
|00000750| 65 6c 64 73 20 2a 2f 0d | 0d 09 2f 2a 20 50 72 69 |elds */.|../* Pri|
|00000760| 6e 74 20 74 68 65 20 72 | 65 63 6f 72 64 20 66 72 |nt the r|ecord fr|
|00000770| 6f 6d 20 27 68 65 61 64 | 27 20 61 6e 64 20 27 68 |om 'head|' and 'h|
|00000780| 73 74 61 74 27 20 2a 2f | 0d 09 50 72 69 6e 74 48 |stat' */|..PrintH|
|00000790| 65 61 64 65 72 28 29 3b | 0d 0d 09 73 77 69 74 63 |eader();|...switc|
|000007a0| 68 20 28 68 65 61 64 2d | 3e 68 65 61 64 65 72 2e |h (head-|>header.|
|000007b0| 6c 69 6e 6b 66 6c 61 67 | 29 20 7b 0d 09 64 65 66 |linkflag|) {..def|
|000007c0| 61 75 6c 74 3a 0d 09 09 | 57 50 72 69 6e 74 66 28 |ault:...|WPrintf(|
|000007d0| 22 55 6e 6b 6e 6f 77 6e | 20 66 69 6c 65 20 74 79 |"Unknown| file ty|
|000007e0| 70 65 20 25 64 20 66 6f | 72 20 25 73 22 2c 0d 09 |pe %d fo|r %s",..|
|000007f0| 09 09 68 65 61 64 2d 3e | 68 65 61 64 65 72 2e 6c |..head->|header.l|
|00000800| 69 6e 6b 66 6c 61 67 2c | 20 68 65 61 64 2d 3e 68 |inkflag,| head->h|
|00000810| 65 61 64 65 72 2e 6e 61 | 6d 65 29 3b 0d 09 09 62 |eader.na|me);...b|
|00000820| 72 65 61 6b 3b 0d 0d 09 | 63 61 73 65 20 4c 46 5f |reak;...|case LF_|
|00000830| 4f 4c 44 4e 4f 52 4d 41 | 4c 3a 0d 09 63 61 73 65 |OLDNORMA|L:..case|
|00000840| 20 4c 46 5f 4e 4f 52 4d | 41 4c 3a 0d 09 09 2f 2a | LF_NORM|AL:.../*|
|00000850| 0d 09 09 20 2a 20 41 70 | 70 65 61 72 73 20 74 6f |... * Ap|pears to|
|00000860| 20 62 65 20 61 20 66 69 | 6c 65 2e 0d 09 09 20 2a | be a fi|le.... *|
|00000870| 20 53 65 65 20 69 66 20 | 69 74 27 73 20 72 65 61 | See if |it's rea|
|00000880| 6c 6c 79 20 61 20 64 69 | 72 65 63 74 6f 72 79 2e |lly a di|rectory.|
|00000890| 0d 09 09 20 2a 2f 0d 09 | 09 6e 61 6d 65 6c 65 6e |... */..|.namelen|
|000008a0| 20 3d 20 73 74 72 6c 65 | 6e 28 68 65 61 64 2d 3e | = strle|n(head->|
|000008b0| 68 65 61 64 65 72 2e 6e | 61 6d 65 29 20 2d 20 31 |header.n|ame) - 1|
|000008c0| 3b 0d 09 09 69 66 20 28 | 68 65 61 64 2d 3e 68 65 |;...if (|head->he|
|000008d0| 61 64 65 72 2e 6e 61 6d | 65 5b 6e 61 6d 65 6c 65 |ader.nam|e[namele|
|000008e0| 6e 5d 20 3d 3d 20 27 2f | 27 29 0d 09 09 09 67 6f |n] == '/|')....go|
|000008f0| 74 6f 20 72 65 61 6c 6c | 79 5f 64 69 72 3b 0d 0d |to reall|y_dir;..|
|00000900| 09 09 46 69 78 4e 61 6d | 65 28 68 65 61 64 2d 3e |..FixNam|e(head->|
|00000910| 68 65 61 64 65 72 2e 6e | 61 6d 65 2c 20 6d 61 63 |header.n|ame, mac|
|00000920| 4e 61 6d 65 29 3b 0d 09 | 61 67 61 69 6e 5f 66 69 |Name);..|again_fi|
|00000930| 6c 65 3a 0d 09 09 66 70 | 62 2e 66 69 6c 65 50 61 |le:...fp|b.filePa|
|00000940| 72 61 6d 2e 69 6f 43 6f | 6d 70 6c 65 74 69 6f 6e |ram.ioCo|mpletion|
|00000950| 20 3d 20 6e 69 6c 3b 0d | 09 09 66 70 62 2e 66 69 | = nil;.|..fpb.fi|
|00000960| 6c 65 50 61 72 61 6d 2e | 69 6f 4e 61 6d 65 50 74 |leParam.|ioNamePt|
|00000970| 72 20 3d 20 6d 61 63 4e | 61 6d 65 3b 0d 09 09 66 |r = macN|ame;...f|
|00000980| 70 62 2e 66 69 6c 65 50 | 61 72 61 6d 2e 69 6f 56 |pb.fileP|aram.ioV|
|00000990| 52 65 66 4e 75 6d 20 3d | 20 64 69 72 56 52 65 66 |RefNum =| dirVRef|
|000009a0| 4e 75 6d 3b 0d 09 09 66 | 70 62 2e 66 69 6c 65 50 |Num;...f|pb.fileP|
|000009b0| 61 72 61 6d 2e 69 6f 46 | 56 65 72 73 4e 75 6d 20 |aram.ioF|VersNum |
|000009c0| 3d 20 30 3b 0d 09 09 66 | 70 62 2e 66 69 6c 65 50 |= 0;...f|pb.fileP|
|000009d0| 61 72 61 6d 2e 69 6f 44 | 69 72 49 44 20 3d 20 30 |aram.ioD|irID = 0|
|000009e0| 3b 0d 09 09 65 72 72 20 | 3d 20 50 42 48 43 72 65 |;...err |= PBHCre|
|000009f0| 61 74 65 28 26 66 70 62 | 2c 20 66 61 6c 73 65 29 |ate(&fpb|, false)|
|00000a00| 3b 0d 09 09 69 66 20 28 | 65 72 72 20 3d 3d 20 6e |;...if (|err == n|
|00000a10| 6f 45 72 72 29 20 7b 0d | 09 09 09 66 70 62 2e 66 |oErr) {.|...fpb.f|
|00000a20| 69 6c 65 50 61 72 61 6d | 2e 69 6f 43 6f 6d 70 6c |ileParam|.ioCompl|
|00000a30| 65 74 69 6f 6e 20 3d 20 | 6e 69 6c 3b 0d 09 09 09 |etion = |nil;....|
|00000a40| 66 70 62 2e 66 69 6c 65 | 50 61 72 61 6d 2e 69 6f |fpb.file|Param.io|
|00000a50| 4e 61 6d 65 50 74 72 20 | 3d 20 6d 61 63 4e 61 6d |NamePtr |= macNam|
|00000a60| 65 3b 0d 09 09 09 66 70 | 62 2e 66 69 6c 65 50 61 |e;....fp|b.filePa|
|00000a70| 72 61 6d 2e 69 6f 56 52 | 65 66 4e 75 6d 20 3d 20 |ram.ioVR|efNum = |
|00000a80| 64 69 72 56 52 65 66 4e | 75 6d 3b 0d 09 09 09 66 |dirVRefN|um;....f|
|00000a90| 70 62 2e 66 69 6c 65 50 | 61 72 61 6d 2e 69 6f 44 |pb.fileP|aram.ioD|
|00000aa0| 69 72 49 44 20 3d 20 30 | 3b 0d 09 09 09 66 70 62 |irID = 0|;....fpb|
|00000ab0| 2e 66 69 6c 65 50 61 72 | 61 6d 2e 69 6f 46 56 65 |.filePar|am.ioFVe|
|00000ac0| 72 73 4e 75 6d 20 3d 20 | 30 3b 0d 09 09 09 66 70 |rsNum = |0;....fp|
|00000ad0| 62 2e 66 69 6c 65 50 61 | 72 61 6d 2e 69 6f 46 44 |b.filePa|ram.ioFD|
|00000ae0| 69 72 49 6e 64 65 78 20 | 3d 20 30 3b 0d 09 09 09 |irIndex |= 0;....|
|00000af0| 69 66 20 28 50 42 48 47 | 65 74 46 49 6e 66 6f 28 |if (PBHG|etFInfo(|
|00000b00| 26 66 70 62 2c 20 66 61 | 6c 73 65 29 29 20 7b 0d |&fpb, fa|lse)) {.|
|00000b10| 09 09 09 09 4f 53 41 6c | 65 72 74 28 72 6f 75 74 |....OSAl|ert(rout|
|00000b20| 69 6e 65 2c 20 22 5c 70 | 50 42 48 47 65 74 46 49 |ine, "\p|PBHGetFI|
|00000b30| 6e 66 6f 22 2c 20 6d 61 | 63 4e 61 6d 65 2c 0d 09 |nfo", ma|cName,..|
|00000b40| 09 09 09 09 09 66 70 62 | 2e 66 69 6c 65 50 61 72 |.....fpb|.filePar|
|00000b50| 61 6d 2e 69 6f 52 65 73 | 75 6c 74 29 3b 0d 09 09 |am.ioRes|ult);...|
|00000b60| 09 09 67 6f 74 6f 20 64 | 6f 4e 65 78 74 3b 0d 09 |..goto d|oNext;..|
|00000b70| 09 09 7d 0d 0d 09 09 09 | 73 74 72 6e 63 70 79 28 |..}.....|strncpy(|
|00000b80| 26 66 70 62 2e 66 69 6c | 65 50 61 72 61 6d 2e 69 |&fpb.fil|eParam.i|
|00000b90| 6f 46 6c 46 6e 64 72 49 | 6e 66 6f 2e 66 64 43 72 |oFlFndrI|nfo.fdCr|
|00000ba0| 65 61 74 6f 72 2c 0d 09 | 09 09 09 09 66 64 43 72 |eator,..|....fdCr|
|00000bb0| 65 61 74 6f 72 2c 20 34 | 29 3b 0d 09 09 09 73 74 |eator, 4|);....st|
|00000bc0| 72 6e 63 70 79 28 26 66 | 70 62 2e 66 69 6c 65 50 |rncpy(&f|pb.fileP|
|00000bd0| 61 72 61 6d 2e 69 6f 46 | 6c 46 6e 64 72 49 6e 66 |aram.ioF|lFndrInf|
|00000be0| 6f 2e 66 64 54 79 70 65 | 2c 20 66 64 54 79 70 65 |o.fdType|, fdType|
|00000bf0| 2c 20 34 29 3b 0d 09 09 | 09 66 70 62 2e 66 69 6c |, 4);...|.fpb.fil|
|00000c00| 65 50 61 72 61 6d 2e 69 | 6f 43 6f 6d 70 6c 65 74 |eParam.i|oComplet|
|00000c10| 69 6f 6e 20 3d 20 6e 69 | 6c 3b 0d 09 09 09 66 70 |ion = ni|l;....fp|
|00000c20| 62 2e 66 69 6c 65 50 61 | 72 61 6d 2e 69 6f 4e 61 |b.filePa|ram.ioNa|
|00000c30| 6d 65 50 74 72 20 3d 20 | 6d 61 63 4e 61 6d 65 3b |mePtr = |macName;|
|00000c40| 0d 09 09 09 66 70 62 2e | 66 69 6c 65 50 61 72 61 |....fpb.|filePara|
|00000c50| 6d 2e 69 6f 56 52 65 66 | 4e 75 6d 20 3d 20 64 69 |m.ioVRef|Num = di|
|00000c60| 72 56 52 65 66 4e 75 6d | 3b 0d 09 09 09 66 70 62 |rVRefNum|;....fpb|
|00000c70| 2e 66 69 6c 65 50 61 72 | 61 6d 2e 69 6f 44 69 72 |.filePar|am.ioDir|
|00000c80| 49 44 20 3d 20 30 3b 0d | 09 09 09 66 70 62 2e 66 |ID = 0;.|...fpb.f|
|00000c90| 69 6c 65 50 61 72 61 6d | 2e 69 6f 46 56 65 72 73 |ileParam|.ioFVers|
|00000ca0| 4e 75 6d 20 3d 20 30 3b | 0d 09 09 09 69 66 20 28 |Num = 0;|....if (|
|00000cb0| 50 42 48 53 65 74 46 49 | 6e 66 6f 28 26 66 70 62 |PBHSetFI|nfo(&fpb|
|00000cc0| 2c 20 66 61 6c 73 65 29 | 29 20 7b 0d 09 09 09 09 |, false)|) {.....|
|00000cd0| 4f 53 41 6c 65 72 74 28 | 72 6f 75 74 69 6e 65 2c |OSAlert(|routine,|
|00000ce0| 20 22 5c 70 50 42 48 53 | 65 74 46 49 6e 66 6f 22 | "\pPBHS|etFInfo"|
|00000cf0| 2c 20 6d 61 63 4e 61 6d | 65 2c 0d 09 09 09 09 09 |, macNam|e,......|
|00000d00| 09 66 70 62 2e 66 69 6c | 65 50 61 72 61 6d 2e 69 |.fpb.fil|eParam.i|
|00000d10| 6f 52 65 73 75 6c 74 29 | 3b 0d 09 09 09 09 67 6f |oResult)|;.....go|
|00000d20| 74 6f 20 64 6f 4e 65 78 | 74 3b 0d 09 09 09 7d 0d |to doNex|t;....}.|
|00000d30| 0d 09 09 09 66 70 62 2e | 69 6f 50 61 72 61 6d 2e |....fpb.|ioParam.|
|00000d40| 69 6f 50 65 72 6d 73 73 | 6e 20 3d 20 66 73 57 72 |ioPermss|n = fsWr|
|00000d50| 50 65 72 6d 3b 0d 09 09 | 09 66 70 62 2e 69 6f 50 |Perm;...|.fpb.ioP|
|00000d60| 61 72 61 6d 2e 69 6f 4d | 69 73 63 20 3d 20 6e 69 |aram.ioM|isc = ni|
|00000d70| 6c 3b 0d 09 09 09 65 72 | 72 20 3d 20 50 42 48 4f |l;....er|r = PBHO|
|00000d80| 70 65 6e 28 26 66 70 62 | 2c 20 66 61 6c 73 65 29 |pen(&fpb|, false)|
|00000d90| 3b 0d 09 09 7d 0d 0d 09 | 09 69 66 20 28 65 72 72 |;...}...|.if (err|
|00000da0| 20 21 3d 20 6e 6f 45 72 | 72 29 20 7b 0d 09 09 09 | != noEr|r) {....|
|00000db0| 69 66 20 28 4d 61 6b 65 | 44 69 72 73 28 6d 61 63 |if (Make|Dirs(mac|
|00000dc0| 4e 61 6d 65 29 29 0d 09 | 09 09 09 67 6f 74 6f 20 |Name))..|...goto |
|00000dd0| 61 67 61 69 6e 5f 66 69 | 6c 65 3b 0d 0d 09 09 09 |again_fi|le;.....|
|00000de0| 50 67 6d 41 6c 65 72 74 | 28 72 6f 75 74 69 6e 65 |PgmAlert|(routine|
|00000df0| 2c 20 22 5c 70 43 6f 75 | 6c 64 20 6e 6f 74 20 6d |, "\pCou|ld not m|
|00000e00| 61 6b 65 20 66 69 6c 65 | 22 2c 20 6d 61 63 4e 61 |ake file|", macNa|
|00000e10| 6d 65 29 3b 0d 09 09 09 | 65 72 72 46 6f 75 6e 64 |me);....|errFound|
|00000e20| 20 3d 20 53 6b 69 70 46 | 69 6c 65 28 28 6c 6f 6e | = SkipF|ile((lon|
|00000e30| 67 29 68 73 74 61 74 2e | 73 74 5f 73 69 7a 65 29 |g)hstat.|st_size)|
|00000e40| 3b 0d 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 7d 0d |;....bre|ak;...}.|
|00000e50| 0d 09 09 2f 2a 0d 09 09 | 20 2a 20 4e 6f 74 65 20 |.../*...| * Note |
|00000e60| 74 68 61 74 20 74 68 69 | 73 20 6f 6e 6c 79 20 65 |that thi|s only e|
|00000e70| 78 74 72 61 63 74 73 20 | 64 61 74 61 20 66 6f 72 |xtracts |data for|
|00000e80| 6b 73 21 0d 09 09 20 2a | 2f 0d 09 09 66 6f 72 20 |ks!... *|/...for |
|00000e90| 28 73 69 7a 65 20 3d 20 | 68 73 74 61 74 2e 73 74 |(size = |hstat.st|
|00000ea0| 5f 73 69 7a 65 3b 0d 09 | 09 20 20 20 20 20 73 69 |_size;..|. si|
|00000eb0| 7a 65 20 3e 20 30 3b 0d | 09 09 20 20 20 20 20 73 |ze > 0;.|.. s|
|00000ec0| 69 7a 65 20 2d 3d 20 77 | 72 69 74 74 65 6e 29 20 |ize -= w|ritten) |
|00000ed0| 7b 0d 09 09 09 2f 2a 0d | 09 09 09 20 2a 20 4c 6f |{..../*.|... * Lo|
|00000ee0| 63 61 74 65 20 64 61 74 | 61 2c 20 64 65 74 65 72 |cate dat|a, deter|
|00000ef0| 6d 69 6e 65 20 6d 61 78 | 20 6c 65 6e 67 74 68 0d |mine max| length.|
|00000f00| 09 09 09 20 2a 20 77 72 | 69 74 65 61 62 6c 65 2c |... * wr|iteable,|
|00000f10| 20 77 72 69 74 65 20 69 | 74 2c 20 72 65 63 6f 72 | write i|t, recor|
|00000f20| 64 20 74 68 61 74 0d 09 | 09 09 20 2a 20 77 65 20 |d that..|.. * we |
|00000f30| 68 61 76 65 20 75 73 65 | 64 20 74 68 65 20 64 61 |have use|d the da|
|00000f40| 74 61 2c 20 74 68 65 6e | 20 63 68 65 63 6b 0d 09 |ta, then| check..|
|00000f50| 09 09 20 2a 20 69 66 20 | 74 68 65 20 77 72 69 74 |.. * if |the writ|
|00000f60| 65 20 77 6f 72 6b 65 64 | 2e 0d 09 09 09 20 2a 2f |e worked|..... */|
|00000f70| 0d 09 09 09 69 66 20 28 | 28 72 65 63 20 3d 20 46 |....if (|(rec = F|
|00000f80| 69 6e 64 52 65 63 28 29 | 29 20 3d 3d 20 6e 69 6c |indRec()|) == nil|
|00000f90| 29 0d 09 09 09 09 72 65 | 74 75 72 6e 28 74 72 75 |).....re|turn(tru|
|00000fa0| 65 29 3b 0d 09 09 09 09 | 0d 09 09 09 64 61 74 61 |e);.....|....data|
|00000fb0| 20 3d 20 72 65 63 2d 3e | 63 68 61 72 70 74 72 3b | = rec->|charptr;|
|00000fc0| 0d 09 09 09 77 72 69 74 | 74 65 6e 20 3d 20 45 6e |....writ|ten = En|
|00000fd0| 64 4f 66 52 65 63 73 28 | 29 2d 3e 63 68 61 72 70 |dOfRecs(|)->charp|
|00000fe0| 74 72 20 2d 20 64 61 74 | 61 3b 0d 09 09 09 69 66 |tr - dat|a;....if|
|00000ff0| 20 28 77 72 69 74 74 65 | 6e 20 3e 20 73 69 7a 65 | (writte|n > size|
|00001000| 29 0d 09 09 09 09 77 72 | 69 74 74 65 6e 20 3d 20 |).....wr|itten = |
|00001010| 73 69 7a 65 3b 0d 0d 09 | 09 09 2f 2a 0d 09 09 09 |size;...|../*....|
|00001020| 20 2a 20 43 6f 6e 76 65 | 72 74 20 6e 65 77 6c 69 | * Conve|rt newli|
|00001030| 6e 65 73 20 74 6f 20 72 | 65 74 75 72 6e 20 66 6f |nes to r|eturn fo|
|00001040| 72 20 4d 61 63 20 63 6f | 6d 70 61 74 61 62 69 6c |r Mac co|mpatabil|
|00001050| 69 74 79 2e 0d 09 09 09 | 20 2a 2f 0d 09 09 09 69 |ity.....| */....i|
|00001060| 66 20 28 63 76 74 4e 6c | 29 20 7b 0d 09 09 09 09 |f (cvtNl|) {.....|
|00001070| 66 6f 72 20 28 69 20 3d | 20 77 72 69 74 74 65 6e |for (i =| written|
|00001080| 2c 20 70 20 3d 20 64 61 | 74 61 3b 20 2d 2d 69 20 |, p = da|ta; --i |
|00001090| 3e 3d 20 30 3b 20 70 2b | 2b 29 0d 09 09 09 09 09 |>= 0; p+|+)......|
|000010a0| 69 66 20 28 2a 70 20 3d | 3d 20 4c 46 29 0d 09 09 |if (*p =|= LF)...|
|000010b0| 09 09 09 09 2a 70 20 3d | 20 52 45 54 55 52 4e 3b |....*p =| RETURN;|
|000010c0| 0d 09 09 09 7d 0d 0d 09 | 09 09 63 68 65 63 6b 20 |....}...|..check |
|000010d0| 3d 20 77 72 69 74 74 65 | 6e 3b 0d 09 09 09 66 70 |= writte|n;....fp|
|000010e0| 62 2e 69 6f 50 61 72 61 | 6d 2e 69 6f 42 75 66 66 |b.ioPara|m.ioBuff|
|000010f0| 65 72 20 3d 20 64 61 74 | 61 3b 0d 09 09 09 66 70 |er = dat|a;....fp|
|00001100| 62 2e 69 6f 50 61 72 61 | 6d 2e 69 6f 52 65 71 43 |b.ioPara|m.ioReqC|
|00001110| 6f 75 6e 74 20 3d 20 63 | 68 65 63 6b 3b 0d 09 09 |ount = c|heck;...|
|00001120| 09 66 70 62 2e 69 6f 50 | 61 72 61 6d 2e 69 6f 50 |.fpb.ioP|aram.ioP|
|00001130| 6f 73 4d 6f 64 65 20 3d | 20 66 73 41 74 4d 61 72 |osMode =| fsAtMar|
|00001140| 6b 3b 0d 09 09 09 66 70 | 62 2e 69 6f 50 61 72 61 |k;....fp|b.ioPara|
|00001150| 6d 2e 69 6f 50 6f 73 4f | 66 66 73 65 74 20 3d 20 |m.ioPosO|ffset = |
|00001160| 30 3b 0d 09 09 09 65 72 | 72 20 3d 20 50 42 57 72 |0;....er|r = PBWr|
|00001170| 69 74 65 28 28 50 61 72 | 6d 42 6c 6b 50 74 72 29 |ite((Par|mBlkPtr)|
|00001180| 20 26 66 70 62 2c 20 66 | 61 6c 73 65 29 3b 0d 09 | &fpb, f|alse);..|
|00001190| 09 09 69 66 20 28 65 72 | 72 20 21 3d 20 6e 6f 45 |..if (er|r != noE|
|000011a0| 72 72 29 20 7b 0d 09 09 | 09 09 4f 53 41 6c 65 72 |rr) {...|..OSAler|
|000011b0| 74 28 72 6f 75 74 69 6e | 65 2c 20 22 5c 70 50 42 |t(routin|e, "\pPB|
|000011c0| 57 72 69 74 65 22 2c 20 | 6d 61 63 4e 61 6d 65 2c |Write", |macName,|
|000011d0| 20 65 72 72 29 3b 0d 09 | 09 09 09 67 6f 74 6f 20 | err);..|...goto |
|000011e0| 64 6f 4e 65 78 74 3b 0d | 09 09 09 7d 0d 0d 09 09 |doNext;.|...}....|
|000011f0| 09 63 68 65 63 6b 20 3d | 20 66 70 62 2e 69 6f 50 |.check =| fpb.ioP|
|00001200| 61 72 61 6d 2e 69 6f 41 | 63 74 43 6f 75 6e 74 3b |aram.ioA|ctCount;|
|00001210| 0d 09 09 09 2f 2a 0d 09 | 09 09 20 2a 20 54 68 65 |..../*..|.. * The|
|00001220| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 69 73 20 69 6e | followi|ng is in|
|00001230| 20 76 69 6f 6c 61 74 69 | 6f 6e 20 6f 66 20 73 74 | violati|on of st|
|00001240| 72 69 63 74 0d 09 09 09 | 20 2a 20 74 79 70 69 6e |rict....| * typin|
|00001250| 67 2c 20 73 69 6e 63 65 | 20 74 68 65 20 61 72 67 |g, since| the arg|
|00001260| 20 74 6f 20 75 73 65 72 | 65 63 0d 09 09 09 20 2a | to user|ec.... *|
|00001270| 20 73 68 6f 75 6c 64 20 | 62 65 20 61 20 73 74 72 | should |be a str|
|00001280| 75 63 74 20 72 65 63 20 | 2a 2e 20 20 46 49 58 4d |uct rec |*. FIXM|
|00001290| 45 2e 0d 09 09 09 20 2a | 2f 0d 09 09 09 55 73 65 |E..... *|/....Use|
|000012a0| 52 65 63 28 64 61 74 61 | 20 2b 20 77 72 69 74 74 |Rec(data| + writt|
|000012b0| 65 6e 20 2d 20 31 29 3b | 0d 09 09 09 69 66 20 28 |en - 1);|....if (|
|000012c0| 63 68 65 63 6b 20 3d 3d | 20 77 72 69 74 74 65 6e |check ==| written|
|000012d0| 29 0d 09 09 09 09 63 6f | 6e 74 69 6e 75 65 3b 0d |).....co|ntinue;.|
|000012e0| 09 09 09 09 0d 09 09 09 | 2f 2a 0d 09 09 09 20 2a |........|/*.... *|
|000012f0| 20 45 72 72 6f 72 20 69 | 6e 20 77 72 69 74 69 6e | Error i|n writin|
|00001300| 67 20 74 6f 20 66 69 6c | 65 2e 0d 09 09 09 20 2a |g to fil|e..... *|
|00001310| 20 50 72 69 6e 74 20 69 | 74 2c 20 73 6b 69 70 20 | Print i|t, skip |
|00001320| 74 6f 20 6e 65 78 74 20 | 66 69 6c 65 20 69 6e 20 |to next |file in |
|00001330| 61 72 63 68 69 76 65 2e | 0d 09 09 09 20 2a 2f 0d |archive.|.... */.|
|00001340| 09 09 09 50 67 6d 41 6c | 65 72 74 28 72 6f 75 74 |...PgmAl|ert(rout|
|00001350| 69 6e 65 2c 20 22 5c 70 | 57 72 69 74 65 20 73 68 |ine, "\p|Write sh|
|00001360| 6f 72 74 22 2c 20 6d 61 | 63 4e 61 6d 65 29 3b 0d |ort", ma|cName);.|
|00001370| 09 09 64 6f 4e 65 78 74 | 3a 0d 09 09 09 50 42 43 |..doNext|:....PBC|
|00001380| 6c 6f 73 65 28 28 50 61 | 72 6d 42 6c 6b 50 74 72 |lose((Pa|rmBlkPtr|
|00001390| 29 20 26 66 70 62 2c 20 | 66 61 6c 73 65 29 3b 0d |) &fpb, |false);.|
|000013a0| 09 09 09 65 72 72 46 6f | 75 6e 64 20 3d 20 53 6b |...errFo|und = Sk|
|000013b0| 69 70 46 69 6c 65 28 28 | 6c 6f 6e 67 29 28 73 69 |ipFile((|long)(si|
|000013c0| 7a 65 20 2d 20 77 72 69 | 74 74 65 6e 29 29 3b 0d |ze - wri|tten));.|
|000013d0| 09 09 09 67 6f 74 6f 20 | 71 75 69 74 3b 0d 09 09 |...goto |quit;...|
|000013e0| 7d 0d 0d 09 09 50 42 43 | 6c 6f 73 65 28 28 50 61 |}....PBC|lose((Pa|
|000013f0| 72 6d 42 6c 6b 50 74 72 | 29 20 26 66 70 62 2c 20 |rmBlkPtr|) &fpb, |
|00001400| 66 61 6c 73 65 29 3b 0d | 09 71 75 69 74 3a 0d 09 |false);.|.quit:..|
|00001410| 09 62 72 65 61 6b 3b 0d | 0d 09 63 61 73 65 20 4c |.break;.|..case L|
|00001420| 46 5f 44 49 52 3a 0d 09 | 09 2f 2a 20 43 68 65 63 |F_DIR:..|./* Chec|
|00001430| 6b 20 66 6f 72 20 74 72 | 61 69 6c 69 6e 67 20 2f |k for tr|ailing /|
|00001440| 20 2a 2f 0d 09 09 6e 61 | 6d 65 6c 65 6e 20 3d 20 | */...na|melen = |
|00001450| 73 74 72 6c 65 6e 28 68 | 65 61 64 2d 3e 68 65 61 |strlen(h|ead->hea|
|00001460| 64 65 72 2e 6e 61 6d 65 | 29 2d 31 3b 0d 09 72 65 |der.name|)-1;..re|
|00001470| 61 6c 6c 79 5f 64 69 72 | 3a 0d 09 09 77 68 69 6c |ally_dir|:...whil|
|00001480| 65 20 28 6e 61 6d 65 6c | 65 6e 20 26 26 20 68 65 |e (namel|en && he|
|00001490| 61 64 2d 3e 68 65 61 64 | 65 72 2e 6e 61 6d 65 5b |ad->head|er.name[|
|000014a0| 6e 61 6d 65 6c 65 6e 5d | 20 3d 3d 20 27 2f 27 29 |namelen]| == '/')|
|000014b0| 0d 09 09 09 68 65 61 64 | 2d 3e 68 65 61 64 65 72 |....head|->header|
|000014c0| 2e 6e 61 6d 65 5b 6e 61 | 6d 65 6c 65 6e 2d 2d 5d |.name[na|melen--]|
|000014d0| 20 3d 20 27 5c 30 27 3b | 09 2f 2a 20 5a 61 70 20 | = '\0';|./* Zap |
|000014e0| 2f 20 2a 2f 0d 09 09 0d | 09 09 46 69 78 4e 61 6d |/ */....|..FixNam|
|000014f0| 65 28 68 65 61 64 2d 3e | 68 65 61 64 65 72 2e 6e |e(head->|header.n|
|00001500| 61 6d 65 2c 20 6d 61 63 | 4e 61 6d 65 29 3b 0d 09 |ame, mac|Name);..|
|00001510| 09 2f 2a 20 46 41 4c 4c | 20 54 48 52 4f 55 47 48 |./* FALL| THROUGH|
|00001520| 20 2a 2f 0d 09 61 67 61 | 69 6e 5f 64 69 72 3a 0d | */..aga|in_dir:.|
|00001530| 09 09 64 70 62 2e 66 69 | 6c 65 50 61 72 61 6d 2e |..dpb.fi|leParam.|
|00001540| 69 6f 43 6f 6d 70 6c 65 | 74 69 6f 6e 20 3d 20 6e |ioComple|tion = n|
|00001550| 69 6c 3b 0d 09 09 64 70 | 62 2e 66 69 6c 65 50 61 |il;...dp|b.filePa|
|00001560| 72 61 6d 2e 69 6f 4e 61 | 6d 65 50 74 72 20 3d 20 |ram.ioNa|mePtr = |
|00001570| 6d 61 63 4e 61 6d 65 3b | 0d 09 09 64 70 62 2e 66 |macName;|...dpb.f|
|00001580| 69 6c 65 50 61 72 61 6d | 2e 69 6f 56 52 65 66 4e |ileParam|.ioVRefN|
|00001590| 75 6d 20 3d 20 64 69 72 | 56 52 65 66 4e 75 6d 3b |um = dir|VRefNum;|
|000015a0| 0d 09 09 64 70 62 2e 66 | 69 6c 65 50 61 72 61 6d |...dpb.f|ileParam|
|000015b0| 2e 69 6f 46 56 65 72 73 | 4e 75 6d 20 3d 20 30 3b |.ioFVers|Num = 0;|
|000015c0| 0d 09 09 64 70 62 2e 66 | 69 6c 65 50 61 72 61 6d |...dpb.f|ileParam|
|000015d0| 2e 69 6f 44 69 72 49 44 | 20 3d 20 30 3b 0d 09 09 |.ioDirID| = 0;...|
|000015e0| 65 72 72 20 3d 20 50 42 | 44 69 72 43 72 65 61 74 |err = PB|DirCreat|
|000015f0| 65 28 26 64 70 62 2c 20 | 66 61 6c 73 65 29 3b 0d |e(&dpb, |false);.|
|00001600| 09 09 69 66 20 28 28 65 | 72 72 20 21 3d 20 6e 6f |..if ((e|rr != no|
|00001610| 45 72 72 29 20 26 26 20 | 28 65 72 72 20 21 3d 20 |Err) && |(err != |
|00001620| 64 75 70 46 4e 45 72 72 | 29 29 20 7b 0d 09 09 09 |dupFNErr|)) {....|
|00001630| 69 66 20 28 4d 61 6b 65 | 44 69 72 73 28 6d 61 63 |if (Make|Dirs(mac|
|00001640| 4e 61 6d 65 29 29 0d 09 | 09 09 09 67 6f 74 6f 20 |Name))..|...goto |
|00001650| 61 67 61 69 6e 5f 64 69 | 72 3b 0d 0d 09 09 09 50 |again_di|r;.....P|
|00001660| 67 6d 41 6c 65 72 74 28 | 72 6f 75 74 69 6e 65 2c |gmAlert(|routine,|
|00001670| 20 22 5c 70 43 6f 75 6c | 64 20 6e 6f 74 20 6d 61 | "\pCoul|d not ma|
|00001680| 6b 65 20 64 69 72 65 63 | 74 6f 72 79 22 2c 20 6d |ke direc|tory", m|
|00001690| 61 63 4e 61 6d 65 29 3b | 0d 09 09 7d 0d 09 09 0d |acName);|...}....|
|000016a0| 09 09 62 72 65 61 6b 3b | 0d 09 7d 0d 0d 09 2f 2a |..break;|..}.../*|
|000016b0| 20 57 65 20 64 6f 6e 27 | 74 20 6e 65 65 64 20 74 | We don'|t need t|
|000016c0| 6f 20 73 61 76 65 20 69 | 74 20 61 6e 79 20 6c 6f |o save i|t any lo|
|000016d0| 6e 67 65 72 2e 20 2a 2f | 0d 09 53 61 76 65 52 65 |nger. */|..SaveRe|
|000016e0| 63 28 28 75 6e 69 6f 6e | 20 72 65 63 6f 72 64 20 |c((union| record |
|000016f0| 2a 2a 29 20 30 29 3b 0d | 09 72 65 74 75 72 6e 28 |**) 0);.|.return(|
|00001700| 65 72 72 46 6f 75 6e 64 | 29 3b 0d 7d 0d 0d 2f 2a |errFound|);.}../*|
|00001710| 0d 20 2a 20 41 66 74 65 | 72 20 61 20 66 69 6c 65 |. * Afte|r a file|
|00001720| 2f 6c 69 6e 6b 2f 73 79 | 6d 6c 69 6e 6b 2f 64 69 |/link/sy|mlink/di|
|00001730| 72 20 63 72 65 61 74 69 | 6f 6e 20 68 61 73 20 66 |r creati|on has f|
|00001740| 61 69 6c 65 64 2c 20 73 | 65 65 20 69 66 0d 20 2a |ailed, s|ee if. *|
|00001750| 20 69 74 27 73 20 62 65 | 63 61 75 73 65 20 73 6f | it's be|cause so|
|00001760| 6d 65 20 72 65 71 75 69 | 72 65 64 20 64 69 72 65 |me requi|red dire|
|00001770| 63 74 6f 72 79 20 77 61 | 73 20 6e 6f 74 20 70 72 |ctory wa|s not pr|
|00001780| 65 73 65 6e 74 2c 20 61 | 6e 64 20 69 66 0d 20 2a |esent, a|nd if. *|
|00001790| 20 73 6f 2c 20 63 72 65 | 61 74 65 20 61 6c 6c 20 | so, cre|ate all |
|000017a0| 72 65 71 75 69 72 65 64 | 20 64 69 72 73 2e 0d 20 |required| dirs.. |
|000017b0| 2a 2f 0d 69 6e 74 0d 4d | 61 6b 65 44 69 72 73 28 |*/.int.M|akeDirs(|
|000017c0| 70 61 74 68 6e 61 6d 65 | 29 0d 63 68 61 72 20 2a |pathname|).char *|
|000017d0| 70 61 74 68 6e 61 6d 65 | 3b 0d 7b 0d 09 69 6e 74 |pathname|;.{..int|
|000017e0| 09 09 6d 61 64 65 6f 6e | 65 20 3d 20 30 3b 09 2f |..madeon|e = 0;./|
|000017f0| 2a 20 44 69 64 20 77 65 | 20 64 6f 20 61 6e 79 74 |* Did we| do anyt|
|00001800| 68 69 6e 67 20 79 65 74 | 3f 20 2a 2f 0d 09 69 6e |hing yet|? */..in|
|00001810| 74 09 09 69 2c 20 73 61 | 76 65 64 4c 65 6e 3b 0d |t..i, sa|vedLen;.|
|00001820| 09 4f 53 45 72 72 09 09 | 65 72 72 3b 0d 09 48 50 |.OSErr..|err;..HP|
|00001830| 61 72 61 6d 42 6c 6f 63 | 6b 52 65 63 09 70 62 3b |aramBloc|kRec.pb;|
|00001840| 0d 0d 09 73 61 76 65 64 | 4c 65 6e 20 3d 20 70 61 |...saved|Len = pa|
|00001850| 74 68 6e 61 6d 65 5b 30 | 5d 20 26 20 30 78 66 66 |thname[0|] & 0xff|
|00001860| 3b 0d 09 2f 2a 0d 09 20 | 2a 20 73 6b 69 70 20 69 |;../*.. |* skip i|
|00001870| 6e 69 74 69 61 6c 20 27 | 3a 27 0d 09 20 2a 0d 09 |nitial '|:'.. *..|
|00001880| 20 2a 20 4e 6f 74 65 20 | 74 68 61 74 20 74 68 65 | * Note |that the|
|00001890| 20 64 69 72 65 63 74 6f | 72 79 20 6e 61 6d 65 20 | directo|ry name |
|000018a0| 68 61 73 20 61 6c 72 65 | 61 64 79 20 62 65 65 6e |has alre|ady been|
|000018b0| 20 63 6f 6e 76 65 72 74 | 65 64 20 74 6f 20 4d 61 | convert|ed to Ma|
|000018c0| 63 20 73 74 79 6c 65 2e | 0d 09 20 2a 2f 0d 09 66 |c style.|.. */..f|
|000018d0| 6f 72 20 28 69 20 3d 20 | 32 3b 20 69 20 3c 20 73 |or (i = |2; i < s|
|000018e0| 61 76 65 64 4c 65 6e 3b | 20 69 2b 2b 29 20 7b 0d |avedLen;| i++) {.|
|000018f0| 09 09 77 68 69 6c 65 20 | 28 28 69 20 3c 20 73 61 |..while |((i < sa|
|00001900| 76 65 64 4c 65 6e 29 20 | 26 26 20 28 70 61 74 68 |vedLen) |&& (path|
|00001910| 6e 61 6d 65 5b 69 5d 20 | 21 3d 20 27 3a 27 29 29 |name[i] |!= ':'))|
|00001920| 0d 09 09 09 69 2b 2b 3b | 0d 0d 09 09 69 66 20 28 |....i++;|....if (|
|00001930| 69 20 3d 3d 20 73 61 76 | 65 64 4c 65 6e 29 0d 09 |i == sav|edLen)..|
|00001940| 09 09 62 72 65 61 6b 3b | 0d 0d 09 09 70 61 74 68 |..break;|....path|
|00001950| 6e 61 6d 65 5b 30 5d 20 | 3d 20 69 2b 2b 20 2d 20 |name[0] |= i++ - |
|00001960| 31 3b 0d 09 09 70 62 2e | 66 69 6c 65 50 61 72 61 |1;...pb.|filePara|
|00001970| 6d 2e 69 6f 43 6f 6d 70 | 6c 65 74 69 6f 6e 20 3d |m.ioComp|letion =|
|00001980| 20 6e 69 6c 3b 0d 09 09 | 70 62 2e 66 69 6c 65 50 | nil;...|pb.fileP|
|00001990| 61 72 61 6d 2e 69 6f 4e | 61 6d 65 50 74 72 20 3d |aram.ioN|amePtr =|
|000019a0| 20 70 61 74 68 6e 61 6d | 65 3b 0d 09 09 70 62 2e | pathnam|e;...pb.|
|000019b0| 66 69 6c 65 50 61 72 61 | 6d 2e 69 6f 56 52 65 66 |filePara|m.ioVRef|
|000019c0| 4e 75 6d 20 3d 20 64 69 | 72 56 52 65 66 4e 75 6d |Num = di|rVRefNum|
|000019d0| 3b 0d 09 09 70 62 2e 66 | 69 6c 65 50 61 72 61 6d |;...pb.f|ileParam|
|000019e0| 2e 69 6f 46 56 65 72 73 | 4e 75 6d 20 3d 20 30 3b |.ioFVers|Num = 0;|
|000019f0| 0d 09 09 70 62 2e 66 69 | 6c 65 50 61 72 61 6d 2e |...pb.fi|leParam.|
|00001a00| 69 6f 44 69 72 49 44 20 | 3d 20 30 3b 0d 09 09 65 |ioDirID |= 0;...e|
|00001a10| 72 72 20 3d 20 50 42 44 | 69 72 43 72 65 61 74 65 |rr = PBD|irCreate|
|00001a20| 28 26 70 62 2c 20 66 61 | 6c 73 65 29 3b 0d 09 09 |(&pb, fa|lse);...|
|00001a30| 69 66 20 28 65 72 72 20 | 3d 3d 20 64 75 70 46 4e |if (err |== dupFN|
|00001a40| 45 72 72 29 20 7b 0d 09 | 09 09 63 6f 6e 74 69 6e |Err) {..|..contin|
|00001a50| 75 65 3b 0d 0d 09 09 7d | 20 65 6c 73 65 20 69 66 |ue;....}| else if|
|00001a60| 20 28 65 72 72 20 21 3d | 20 6e 6f 45 72 72 29 20 | (err !=| noErr) |
|00001a70| 7b 0d 09 09 09 4f 53 41 | 6c 65 72 74 28 22 5c 70 |{....OSA|lert("\p|
|00001a80| 4d 61 6b 65 44 69 72 73 | 22 2c 20 22 5c 70 50 42 |MakeDirs|", "\pPB|
|00001a90| 44 69 72 43 72 65 61 74 | 65 22 2c 20 70 61 74 68 |DirCreat|e", path|
|00001aa0| 6e 61 6d 65 2c 0d 09 09 | 09 09 09 70 62 2e 66 69 |name,...|...pb.fi|
|00001ab0| 6c 65 50 61 72 61 6d 2e | 69 6f 52 65 73 75 6c 74 |leParam.|ioResult|
|00001ac0| 29 3b 0d 09 09 09 72 65 | 74 75 72 6e 28 30 29 3b |);....re|turn(0);|
|00001ad0| 0d 0d 09 09 7d 20 65 6c | 73 65 20 7b 0d 09 09 09 |....} el|se {....|
|00001ae0| 6d 61 64 65 6f 6e 65 2b | 2b 3b 09 09 2f 2a 20 52 |madeone+|+;../* R|
|00001af0| 65 6d 65 6d 62 65 72 20 | 69 66 20 77 65 20 6d 61 |emember |if we ma|
|00001b00| 64 65 20 6f 6e 65 20 2a | 2f 0d 09 09 09 63 6f 6e |de one *|/....con|
|00001b10| 74 69 6e 75 65 3b 0d 09 | 09 7d 0d 09 7d 0d 0d 09 |tinue;..|.}..}...|
|00001b20| 70 61 74 68 6e 61 6d 65 | 5b 30 5d 20 3d 20 73 61 |pathname|[0] = sa|
|00001b30| 76 65 64 4c 65 6e 3b 0d | 09 72 65 74 75 72 6e 28 |vedLen;.|.return(|
|00001b40| 6d 61 64 65 6f 6e 65 29 | 3b 09 09 2f 2a 20 54 65 |madeone)|;../* Te|
|00001b50| 6c 6c 20 74 68 65 6d 20 | 74 6f 20 72 65 74 72 79 |ll them |to retry|
|00001b60| 20 69 66 20 77 65 20 6d | 61 64 65 20 6f 6e 65 20 | if we m|ade one |
|00001b70| 2a 2f 0d 7d 0d 0d 2f 2a | 0d 20 2a 20 46 69 78 4e |*/.}../*|. * FixN|
|00001b80| 61 6d 65 20 2d 20 63 6f | 6e 76 65 72 74 20 74 6f |ame - co|nvert to|
|00001b90| 20 61 20 4d 61 63 20 73 | 74 79 6c 65 20 70 61 74 | a Mac s|tyle pat|
|00001ba0| 68 6e 61 6d 65 0d 20 2a | 0d 20 2a 09 43 6f 6e 76 |hname. *|. *.Conv|
|00001bb0| 65 72 73 69 6f 6e 73 3a | 0d 20 2a 09 09 2e 09 2d |ersions:|. *....-|
|00001bc0| 3e 09 09 28 53 74 61 79 | 20 61 74 20 74 68 69 73 |>..(Stay| at this|
|00001bd0| 20 64 69 72 65 63 74 6f | 72 79 20 6c 65 76 65 6c | directo|ry level|
|00001be0| 29 0d 20 2a 09 09 2e 2e | 09 2d 3e 20 3a 3a 09 09 |). *....|.-> ::..|
|00001bf0| 28 55 70 20 61 20 64 69 | 72 65 63 74 6f 72 79 20 |(Up a di|rectory |
|00001c00| 6c 65 76 65 6c 29 0d 20 | 2a 09 09 2e 78 78 78 78 |level). |*...xxxx|
|00001c10| 09 2d 3e 20 5f 78 78 78 | 78 09 28 44 6f 6e 27 74 |.-> _xxx|x.(Don't|
|00001c20| 20 67 65 74 20 69 6e 20 | 74 72 6f 75 62 6c 65 20 | get in |trouble |
|00001c30| 77 69 74 68 20 64 65 76 | 69 63 65 20 6e 61 6d 65 |with dev|ice name|
|00001c40| 73 29 0d 20 2a 09 09 78 | 78 3a 78 78 09 2d 3e 20 |s). *..x|x:xx.-> |
|00001c50| 78 78 2f 78 78 09 28 44 | 6f 6e 27 74 20 67 65 74 |xx/xx.(D|on't get|
|00001c60| 20 69 6e 20 74 72 6f 75 | 62 6c 65 20 77 69 74 68 | in trou|ble with|
|00001c70| 20 64 69 72 65 63 74 6f | 72 79 20 64 65 6c 69 6d | directo|ry delim|
|00001c80| 73 29 0d 20 2a 2f 0d 46 | 69 78 4e 61 6d 65 28 74 |s). */.F|ixName(t|
|00001c90| 61 72 2c 20 6d 61 63 29 | 0d 72 65 67 69 73 74 65 |ar, mac)|.registe|
|00001ca0| 72 20 63 68 61 72 09 2a | 74 61 72 3b 0d 63 68 61 |r char.*|tar;.cha|
|00001cb0| 72 09 2a 6d 61 63 3b 0d | 7b 0d 09 63 68 61 72 09 |r.*mac;.|{..char.|
|00001cc0| 09 2a 65 6e 64 20 3d 20 | 74 61 72 20 2b 20 73 74 |.*end = |tar + st|
|00001cd0| 72 6c 65 6e 28 74 61 72 | 29 3b 0d 09 72 65 67 69 |rlen(tar|);..regi|
|00001ce0| 73 74 65 72 20 63 68 61 | 72 09 2a 70 20 3d 20 6d |ster cha|r.*p = m|
|00001cf0| 61 63 20 2b 20 31 3b 0d | 09 72 65 67 69 73 74 65 |ac + 1;.|.registe|
|00001d00| 72 20 63 68 61 72 09 2a | 6e 65 78 74 3b 0d 0d 09 |r char.*|next;...|
|00001d10| 66 6f 72 20 28 6e 65 78 | 74 20 3d 20 74 61 72 3b |for (nex|t = tar;|
|00001d20| 20 74 61 72 20 3c 20 65 | 6e 64 3b 20 6e 65 78 74 | tar < e|nd; next|
|00001d30| 2b 2b 29 20 7b 0d 09 09 | 2f 2a 0d 09 09 20 2a 20 |++) {...|/*... * |
|00001d40| 53 77 61 6c 6c 6f 77 20 | 75 70 20 61 6c 6c 20 63 |Swallow |up all c|
|00001d50| 6f 6e 74 69 67 75 6f 75 | 73 20 27 2f 27 20 63 68 |ontiguou|s '/' ch|
|00001d60| 61 72 61 63 74 65 72 73 | 2e 0d 09 09 20 2a 2f 0d |aracters|.... */.|
|00001d70| 09 09 77 68 69 6c 65 20 | 28 2a 6e 65 78 74 20 26 |..while |(*next &|
|00001d80| 26 20 28 2a 6e 65 78 74 | 20 3d 3d 20 27 2f 27 29 |& (*next| == '/')|
|00001d90| 29 0d 09 09 09 6e 65 78 | 74 2b 2b 3b 0d 0d 09 09 |)....nex|t++;....|
|00001da0| 2f 2a 0d 09 09 20 2a 20 | 46 69 6e 64 20 74 68 65 |/*... * |Find the|
|00001db0| 20 65 6e 74 69 72 65 20 | 6e 61 6d 65 20 75 70 20 | entire |name up |
|00001dc0| 75 6e 74 69 6c 20 74 68 | 65 20 6e 65 78 74 20 27 |until th|e next '|
|00001dd0| 2f 27 2e 0d 09 09 20 2a | 2f 0d 09 09 74 61 72 20 |/'.... *|/...tar |
|00001de0| 3d 20 6e 65 78 74 3b 0d | 09 09 77 68 69 6c 65 20 |= next;.|..while |
|00001df0| 28 2a 6e 65 78 74 20 26 | 26 20 28 2a 6e 65 78 74 |(*next &|& (*next|
|00001e00| 20 21 3d 20 27 2f 27 29 | 29 0d 09 09 09 6e 65 78 | != '/')|)....nex|
|00001e10| 74 2b 2b 3b 0d 0d 09 09 | 2a 6e 65 78 74 20 3d 20 |t++;....|*next = |
|00001e20| 30 3b 0d 09 09 2a 70 2b | 2b 20 3d 20 27 3a 27 3b |0;...*p+|+ = ':';|
|00001e30| 0d 09 09 69 66 20 28 2a | 74 61 72 20 3d 3d 20 27 |...if (*|tar == '|
|00001e40| 2e 27 29 0d 09 09 09 73 | 77 69 74 63 68 20 28 2a |.')....s|witch (*|
|00001e50| 28 74 61 72 20 2b 20 31 | 29 29 20 7b 0d 09 09 09 |(tar + 1|)) {....|
|00001e60| 63 61 73 65 20 27 5c 30 | 27 3a 0d 09 09 09 09 70 |case '\0|':.....p|
|00001e70| 2d 2d 3b 0d 09 09 09 09 | 63 6f 6e 74 69 6e 75 65 |--;.....|continue|
|00001e80| 3b 0d 0d 09 09 09 63 61 | 73 65 20 27 2e 27 3a 0d |;.....ca|se '.':.|
|00001e90| 09 09 09 09 69 66 20 28 | 2a 28 74 61 72 20 2b 20 |....if (|*(tar + |
|00001ea0| 32 29 20 3d 3d 20 30 29 | 0d 09 09 09 09 09 63 6f |2) == 0)|......co|
|00001eb0| 6e 74 69 6e 75 65 3b 0d | 09 09 09 09 2f 2a 20 65 |ntinue;.|..../* e|
|00001ec0| 6c 73 65 20 46 41 4c 4c | 20 54 48 52 4f 55 47 48 |lse FALL| THROUGH|
|00001ed0| 20 2a 2f 0d 0d 09 09 09 | 64 65 66 61 75 6c 74 3a | */.....|default:|
|00001ee0| 0d 09 09 09 09 2a 74 61 | 72 20 3d 20 27 5f 27 3b |.....*ta|r = '_';|
|00001ef0| 0d 09 09 09 7d 0d 0d 09 | 09 77 68 69 6c 65 20 28 |....}...|.while (|
|00001f00| 74 61 72 20 3c 20 6e 65 | 78 74 29 20 7b 0d 09 09 |tar < ne|xt) {...|
|00001f10| 09 69 66 20 28 2a 74 61 | 72 20 3d 3d 20 27 3a 27 |.if (*ta|r == ':'|
|00001f20| 29 0d 09 09 09 09 2a 74 | 61 72 20 3d 20 27 2f 27 |).....*t|ar = '/'|
|00001f30| 3b 0d 09 09 09 2a 70 2b | 2b 20 3d 20 2a 74 61 72 |;....*p+|+ = *tar|
|00001f40| 2b 2b 3b 0d 09 09 7d 0d | 09 7d 0d 0d 09 2a 6d 61 |++;...}.|.}...*ma|
|00001f50| 63 20 3d 20 70 20 2d 20 | 6d 61 63 20 2d 20 31 3b |c = p - |mac - 1;|
|00001f60| 0d 7d 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.}......|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001f90| 54 61 72 0d 20 2a 0d 20 | 2a 20 4d 6f 64 69 66 69 |Tar. *. |* Modifi|
|00001fa0| 65 64 20 62 79 20 43 72 | 61 69 67 20 52 75 66 66 |ed by Cr|aig Ruff|
|00001fb0| 09 65 78 74 72 61 63 74 | 2e 63 02 00 00 00 00 00 |.extract|.c......|
|00001fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ff0| 00 00 a0 cb 8f a4 00 00 | 00 00 00 00 01 7e 72 69 |........|.....~ri|
|00002000| 74 74 65 6e 20 31 39 20 | 4e 6f 76 20 31 39 38 35 |tten 19 |Nov 1985|
|00002010| 20 62 79 20 4a 6f 68 6e | 20 47 69 6c 6d 6f 72 65 | by John| Gilmore|
|00002020| 2c 20 69 68 6e 70 34 21 | 68 6f 70 74 6f 61 64 21 |, ihnp4!|hoptoad!|
|00002030| 67 6e 75 2e 0d 20 2a 0d | 20 2a 20 40 28 23 29 20 |gnu.. *.| * @(#) |
|00002040| 65 78 74 72 61 63 74 2e | 63 20 31 2e 31 37 20 38 |extract.|c 1.17 8|
|00002050| 36 2f 31 30 2f 32 39 20 | 50 75 62 6c 69 63 20 44 |6/10/29 |Public D|
|00002060| 6f 6d 61 69 6e 20 2d 20 | 67 6e 75 0d 20 2a 2f 0d |omain - |gnu. */.|
|00002070| 23 69 6e 63 6c 75 64 65 | 20 22 74 61 72 2e 68 22 |#include| "tar.h"|
|00002080| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 75 73 65 |...H..Mo|naco.use|
|00002090| 20 6f 6e 20 74 68 65 20 | 4d 61 63 69 6e 74 6f 73 | on the |Macintos|
|000020a0| 68 2e 0d 20 2a 2f 00 06 | 00 08 00 2a 00 03 01 53 |h.. */..|...*...S|
|000020b0| 01 fd 00 3c 00 24 01 53 | 01 bd a0 a8 a6 15 00 00 |...<.$.S|........|
|000020c0| 10 3f 00 00 10 3f 00 00 | 0f 12 01 00 00 00 01 00 |.?...?..|........|
|000020d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 1a 66 0e |...L...L|...2..f.|
|000020e0| 05 26 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.&.....2|..MPSR..|
|000020f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 1b a0 4c 00 00 |........|.....L..|
+--------+-------------------------+-------------------------+--------+--------+