home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / tarsrc.sit / dir.c.bin < prev    next >
MacBinary  |  1989-09-14  |  2.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: dir.c.bin

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert AMOS Picture Packer (image/amosPicturePacker) ext Supported
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic 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 Text File (text/txt) fallback Supported
100% file MacBinary, Wed Mar 30 14:49:32 1988, modified Mon May 29 06:48:06 1989, creator '????', type ASCII, 1684 bytes "dir.c" , at 0x714 382 bytes resource default (weak)
99% file data default
49% TrID Macintosh plain text (MacBinary) default
33% TrID TTComp archive compressed (bin-2K) default (weak)
17% TrID MacBinary 1 default (weak)
0% TrID Sybase iAnywhere database files default (weak)
100% lsar MacBinary default
100% gt2 MAC Bilddatei default (weak)


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



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 64 69 72 2e 63 00 | 00 00 00 00 00 00 00 00 |..dir.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 06 94 00 | 00 01 7e 9e 77 01 cc a0 |........|..~.w...|
|00000060| a6 d0 66 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..f.....|........|
|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 64 69 72 2e 63 20 |Tar. *. |* dir.c |
|000000a0| 2d 20 72 6f 75 74 69 6e | 65 73 20 64 65 61 6c 69 |- routin|es deali|
|000000b0| 6e 67 20 77 69 74 68 20 | 64 69 72 65 63 74 6f 72 |ng with |director|
|000000c0| 79 20 73 65 6c 65 63 74 | 69 6f 6e 0d 20 2a 0d 20 |y select|ion. *. |
|000000d0| 2a 20 57 72 69 74 74 65 | 6e 20 62 79 20 43 72 61 |* Writte|n by Cra|
|000000e0| 69 67 20 52 75 66 66 0d | 20 2a 2f 0d 0d 23 69 6e |ig Ruff.| */..#in|
|000000f0| 63 6c 75 64 65 20 22 74 | 61 72 2e 68 22 0d 0d 23 |clude "t|ar.h"..#|
|00000100| 64 65 66 69 6e 65 20 52 | 4f 4f 54 44 49 52 09 09 |define R|OOTDIR..|
|00000110| 32 09 09 2f 2a 20 57 41 | 54 43 48 20 4f 55 54 21 |2../* WA|TCH OUT!|
|00000120| 20 20 53 75 62 6a 65 63 | 74 20 74 6f 20 63 68 61 | Subjec|t to cha|
|00000130| 6e 67 65 3f 20 2a 2f 0d | 0d 23 64 65 66 69 6e 65 |nge? */.|.#define|
|00000140| 20 64 69 72 49 44 09 09 | 31 33 30 09 09 2f 2a 20 | dirID..|130../* |
|00000150| 44 69 72 65 63 74 6f 72 | 79 20 73 65 6c 65 63 74 |Director|y select|
|00000160| 69 6f 6e 20 64 69 61 6c | 6f 67 20 2a 2f 0d 0d 73 |ion dial|og */..s|
|00000170| 68 6f 72 74 09 09 64 69 | 72 56 52 65 66 4e 75 6d |hort..di|rVRefNum|
|00000180| 3b 09 09 2f 2a 20 53 65 | 6c 65 63 74 65 64 20 64 |;../* Se|lected d|
|00000190| 69 72 65 63 74 6f 72 79 | 20 56 52 65 66 4e 75 6d |irectory| VRefNum|
|000001a0| 20 2a 2f 0d 6c 6f 6e 67 | 09 09 64 69 72 44 69 72 | */.long|..dirDir|
|000001b0| 49 44 3b 09 09 2f 2a 20 | 53 65 6c 65 63 74 65 64 |ID;../* |Selected|
|000001c0| 20 64 69 72 65 63 74 6f | 72 79 20 44 69 72 49 44 | directo|ry DirID|
|000001d0| 20 2a 2f 0d 0d 2f 2a 0d | 20 2a 20 47 65 74 44 69 | */../*.| * GetDi|
|000001e0| 72 20 2d 20 6d 61 6e 61 | 67 65 20 74 68 65 20 64 |r - mana|ge the d|
|000001f0| 69 72 65 63 74 6f 72 79 | 20 73 65 6c 65 63 74 69 |irectory| selecti|
|00000200| 6f 6e 20 64 69 61 6c 6f | 67 0d 20 2a 2f 0d 42 6f |on dialo|g. */.Bo|
|00000210| 6f 6c 65 61 6e 0d 47 65 | 74 44 69 72 28 74 65 78 |olean.Ge|tDir(tex|
|00000220| 74 2c 20 65 78 74 72 61 | 63 74 29 0d 63 68 61 72 |t, extra|ct).char|
|00000230| 09 2a 74 65 78 74 3b 0d | 42 6f 6f 6c 65 61 6e 09 |.*text;.|Boolean.|
|00000240| 65 78 74 72 61 63 74 3b | 0d 7b 0d 09 50 6f 69 6e |extract;|.{..Poin|
|00000250| 74 09 09 77 68 65 72 65 | 3b 0d 09 53 46 52 65 70 |t..where|;..SFRep|
|00000260| 6c 79 09 09 72 65 70 6c | 79 3b 0d 09 57 44 50 42 |ly..repl|y;..WDPB|
|00000270| 52 65 63 09 09 77 64 70 | 62 3b 0d 09 48 50 61 72 |Rec..wdp|b;..HPar|
|00000280| 61 6d 42 6c 6f 63 6b 52 | 65 63 09 76 6f 6c 70 62 |amBlockR|ec.volpb|
|00000290| 3b 0d 09 53 74 72 32 35 | 35 09 09 6e 61 6d 65 3b |;..Str25|5..name;|
|000002a0| 0d 09 63 68 61 72 09 09 | 2a 72 6f 75 74 69 6e 65 |..char..|*routine|
|000002b0| 20 3d 20 22 5c 70 47 65 | 74 44 69 72 22 3b 0d 0d | = "\pGe|tDir";..|
|000002c0| 09 6e 61 6d 65 5b 30 5d | 20 3d 20 31 3b 0d 09 6e |.name[0]| = 1;..n|
|000002d0| 61 6d 65 5b 31 5d 20 3d | 20 27 78 27 3b 0d 09 77 |ame[1] =| 'x';..w|
|000002e0| 68 65 72 65 2e 68 20 3d | 20 77 68 65 72 65 2e 76 |here.h =| where.v|
|000002f0| 20 3d 20 37 35 3b 0d 09 | 53 46 50 50 75 74 46 69 | = 75;..|SFPPutFi|
|00000300| 6c 65 28 77 68 65 72 65 | 2c 20 74 65 78 74 2c 20 |le(where|, text, |
|00000310| 6e 61 6d 65 2c 20 6e 69 | 6c 2c 20 26 72 65 70 6c |name, ni|l, &repl|
|00000320| 79 2c 20 64 69 72 49 44 | 2c 20 6e 69 6c 29 3b 0d |y, dirID|, nil);.|
|00000330| 09 69 66 20 28 21 72 65 | 70 6c 79 2e 67 6f 6f 64 |.if (!re|ply.good|
|00000340| 29 0d 09 09 72 65 74 75 | 72 6e 28 66 61 6c 73 65 |)...retu|rn(false|
|00000350| 29 3b 0d 0d 09 6e 61 6d | 65 5b 30 5d 20 3d 20 30 |);...nam|e[0] = 0|
|00000360| 3b 0d 09 76 6f 6c 70 62 | 2e 76 6f 6c 75 6d 65 50 |;..volpb|.volumeP|
|00000370| 61 72 61 6d 2e 69 6f 43 | 6f 6d 70 6c 65 74 69 6f |aram.ioC|ompletio|
|00000380| 6e 20 3d 20 6e 69 6c 3b | 0d 09 76 6f 6c 70 62 2e |n = nil;|..volpb.|
|00000390| 76 6f 6c 75 6d 65 50 61 | 72 61 6d 2e 69 6f 4e 61 |volumePa|ram.ioNa|
|000003a0| 6d 65 50 74 72 20 3d 20 | 6e 61 6d 65 3b 0d 09 76 |mePtr = |name;..v|
|000003b0| 6f 6c 70 62 2e 76 6f 6c | 75 6d 65 50 61 72 61 6d |olpb.vol|umeParam|
|000003c0| 2e 69 6f 56 52 65 66 4e | 75 6d 20 3d 20 72 65 70 |.ioVRefN|um = rep|
|000003d0| 6c 79 2e 76 52 65 66 4e | 75 6d 3b 0d 09 76 6f 6c |ly.vRefN|um;..vol|
|000003e0| 70 62 2e 76 6f 6c 75 6d | 65 50 61 72 61 6d 2e 69 |pb.volum|eParam.i|
|000003f0| 6f 56 6f 6c 49 6e 64 65 | 78 20 3d 20 30 3b 0d 09 |oVolInde|x = 0;..|
|00000400| 50 42 48 47 65 74 56 49 | 6e 66 6f 28 26 76 6f 6c |PBHGetVI|nfo(&vol|
|00000410| 70 62 2c 20 66 61 6c 73 | 65 29 3b 0d 09 69 66 20 |pb, fals|e);..if |
|00000420| 28 76 6f 6c 70 62 2e 76 | 6f 6c 75 6d 65 50 61 72 |(volpb.v|olumePar|
|00000430| 61 6d 2e 69 6f 52 65 73 | 75 6c 74 20 21 3d 20 6e |am.ioRes|ult != n|
|00000440| 6f 45 72 72 29 20 7b 0d | 09 09 4f 53 41 6c 65 72 |oErr) {.|..OSAler|
|00000450| 74 28 72 6f 75 74 69 6e | 65 2c 20 22 5c 70 50 42 |t(routin|e, "\pPB|
|00000460| 48 47 65 74 56 49 6e 66 | 6f 22 2c 20 6e 61 6d 65 |HGetVInf|o", name|
|00000470| 2c 0d 09 09 09 09 76 6f | 6c 70 62 2e 76 6f 6c 75 |,.....vo|lpb.volu|
|00000480| 6d 65 50 61 72 61 6d 2e | 69 6f 52 65 73 75 6c 74 |meParam.|ioResult|
|00000490| 29 3b 0d 09 09 72 65 74 | 75 72 6e 28 66 61 6c 73 |);...ret|urn(fals|
|000004a0| 65 29 3b 0d 09 7d 0d 0d | 09 69 66 20 28 76 6f 6c |e);..}..|.if (vol|
|000004b0| 70 62 2e 76 6f 6c 75 6d | 65 50 61 72 61 6d 2e 69 |pb.volum|eParam.i|
|000004c0| 6f 56 53 69 67 57 6f 72 | 64 20 21 3d 20 30 78 34 |oVSigWor|d != 0x4|
|000004d0| 32 34 34 29 20 7b 0d 09 | 09 48 46 53 41 6c 65 72 |244) {..|.HFSAler|
|000004e0| 74 28 29 3b 0d 09 09 72 | 65 74 75 72 6e 28 66 61 |t();...r|eturn(fa|
|000004f0| 6c 73 65 29 3b 0d 09 7d | 0d 09 0d 09 69 66 20 28 |lse);..}|....if (|
|00000500| 65 78 74 72 61 63 74 29 | 20 7b 0d 09 09 2f 2a 0d |extract)| {.../*.|
|00000510| 09 09 20 2a 20 49 66 20 | 77 65 20 61 72 65 20 65 |.. * If |we are e|
|00000520| 78 74 72 61 63 74 69 6e | 67 2c 20 77 65 20 6f 6e |xtractin|g, we on|
|00000530| 6c 79 20 6e 65 65 64 20 | 61 20 77 6f 72 6b 69 6e |ly need |a workin|
|00000540| 67 0d 09 09 20 2a 20 64 | 69 72 65 63 74 6f 72 79 |g... * d|irectory|
|00000550| 20 76 52 65 66 4e 75 6d | 2e 20 20 54 68 65 20 53 | vRefNum|. The S|
|00000560| 46 50 50 75 74 46 69 6c | 65 20 64 69 61 6c 6f 67 |FPPutFil|e dialog|
|00000570| 0d 09 09 20 2a 20 70 72 | 6f 76 69 64 65 73 20 74 |... * pr|ovides t|
|00000580| 68 69 73 20 66 6f 72 20 | 75 73 2e 0d 09 09 20 2a |his for |us.... *|
|00000590| 2f 0d 09 09 64 69 72 56 | 52 65 66 4e 75 6d 20 3d |/...dirV|RefNum =|
|000005a0| 20 72 65 70 6c 79 2e 76 | 52 65 66 4e 75 6d 3b 0d | reply.v|RefNum;.|
|000005b0| 09 0d 09 7d 20 65 6c 73 | 65 20 7b 0d 09 09 77 64 |...} els|e {...wd|
|000005c0| 70 62 2e 69 6f 43 6f 6d | 70 6c 65 74 69 6f 6e 20 |pb.ioCom|pletion |
|000005d0| 3d 20 6e 69 6c 3b 0d 09 | 09 77 64 70 62 2e 69 6f |= nil;..|.wdpb.io|
|000005e0| 56 52 65 66 4e 75 6d 20 | 3d 20 72 65 70 6c 79 2e |VRefNum |= reply.|
|000005f0| 76 52 65 66 4e 75 6d 3b | 0d 09 09 77 64 70 62 2e |vRefNum;|...wdpb.|
|00000600| 69 6f 57 44 49 6e 64 65 | 78 20 3d 20 30 3b 0d 09 |ioWDInde|x = 0;..|
|00000610| 09 77 64 70 62 2e 69 6f | 57 44 50 72 6f 63 49 44 |.wdpb.io|WDProcID|
|00000620| 20 3d 20 30 3b 0d 09 09 | 77 64 70 62 2e 69 6f 57 | = 0;...|wdpb.ioW|
|00000630| 44 56 52 65 66 4e 75 6d | 20 3d 20 30 3b 0d 09 09 |DVRefNum| = 0;...|
|00000640| 69 66 20 28 50 42 47 65 | 74 57 44 49 6e 66 6f 28 |if (PBGe|tWDInfo(|
|00000650| 26 77 64 70 62 2c 20 66 | 61 6c 73 65 29 20 21 3d |&wdpb, f|alse) !=|
|00000660| 20 6e 6f 45 72 72 29 20 | 7b 0d 09 09 09 4f 53 41 | noErr) |{....OSA|
|00000670| 6c 65 72 74 28 22 5c 70 | 47 65 74 44 69 72 22 2c |lert("\p|GetDir",|
|00000680| 20 22 5c 70 50 42 47 65 | 74 57 44 49 6e 66 6f 22 | "\pPBGe|tWDInfo"|
|00000690| 2c 20 6e 69 6c 2c 20 77 | 64 70 62 2e 69 6f 52 65 |, nil, w|dpb.ioRe|
|000006a0| 73 75 6c 74 29 3b 0d 09 | 09 09 72 65 74 75 72 6e |sult);..|..return|
|000006b0| 28 66 61 6c 73 65 29 3b | 0d 09 09 7d 0d 09 09 0d |(false);|...}....|
|000006c0| 09 09 64 69 72 44 69 72 | 49 44 20 3d 20 77 64 70 |..dirDir|ID = wdp|
|000006d0| 62 2e 69 6f 57 44 44 69 | 72 49 44 3b 0d 09 09 64 |b.ioWDDi|rID;...d|
|000006e0| 69 72 56 52 65 66 4e 75 | 6d 20 3d 20 77 64 70 62 |irVRefNu|m = wdpb|
|000006f0| 2e 69 6f 57 44 56 52 65 | 66 4e 75 6d 3b 0d 09 7d |.ioWDVRe|fNum;..}|
|00000700| 0d 09 0d 09 72 65 74 75 | 72 6e 28 74 72 75 65 29 |....retu|rn(true)|
|00000710| 3b 0d 7d 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.}.....|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000790| 46 6e 64 72 49 6e 66 6f | 3b 20 20 20 20 20 20 20 |FndrInfo|; |
|000007a0| 20 20 20 20 20 20 2f 2a | 75 73 65 72 20 69 6e 66 | /*|user inf|
|000007b0| 05 64 69 72 2e 63 02 00 | 00 00 00 00 00 00 00 00 |.dir.c..|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 10 36 00 00 |........|.....6..|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 a0 cb 8f a2 00 00 | 00 00 00 00 01 7e 0d 20 |........|.....~. |
|00000800| 20 20 20 75 6e 73 69 67 | 6e 65 64 20 73 68 6f 72 | unsig|ned shor|
|00000810| 74 20 69 6f 46 6c 53 74 | 42 6c 6b 3b 20 20 20 20 |t ioFlSt|Blk; |
|00000820| 20 20 20 2f 2a 73 74 61 | 72 74 20 66 69 6c 65 20 | /*sta|rt file |
|00000830| 62 6c 6f 63 6b 20 28 30 | 20 69 66 20 6e 6f 6e 65 |block (0| if none|
|00000840| 29 2a 2f 0d 20 20 20 20 | 6c 6f 6e 67 20 69 6f 46 |)*/. |long ioF|
|00000850| 6c 4c 67 4c 65 6e 3b 20 | 20 20 20 20 20 20 20 20 |lLgLen; | |
|00000860| 20 20 20 20 20 20 20 20 | 2f 2a 6c 6f 67 69 63 61 | |/*logica|
|00000870| 6c 20 6c 65 6e 67 74 68 | 20 28 45 4f 46 29 2a 2f |l length| (EOF)*/|
|00000880| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 16 00 0a |...H..Mo|naco....|
|00000890| 00 df 00 00 00 ea 01 8e | 00 00 00 12 00 01 3a 9e |........|......:.|
|000008a0| 00 0a 00 03 00 00 00 06 | 00 08 00 2a 00 03 01 53 |........|...*...S|
|000008b0| 01 fd 00 50 00 20 01 53 | 01 bd a0 a6 d0 66 00 00 |...P. .S|.....f..|
|000008c0| 03 f0 00 00 03 f0 00 00 | 04 90 01 00 00 00 01 00 |........|........|
|000008d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 1a 66 0e |...L...L|...2..f.|
|000008e0| 06 9e 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000008f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 1b a0 30 00 00 |........|.....0..|
+--------+-------------------------+-------------------------+--------+--------+