home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / appl / fixdsktp.sit / Source / mfs.c.bin < prev    next >
MacBinary  |  1989-09-13  |  1.5 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

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, Mon Aug 22 12:58:54 1988, modified Wed Sep 7 17:51:30 1988, creator Think C, type ASCII, 1338 bytes "mfs.c" 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[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 6d 66 73 2e 63 00 | 00 00 00 00 00 00 00 00 |..mfs.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 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 05 3a 00 | 00 00 00 9f 36 03 4e 9f |......:.|....6.N.|
|00000060| 4b 5f e2 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |K_......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 3c 4d 61 63 54 79 70 |#include| <MacTyp|
|00000090| 65 73 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |es.h>.#i|nclude <|
|000000a0| 46 69 6c 65 4d 67 72 2e | 68 3e 0d 0d 23 69 6e 63 |FileMgr.|h>..#inc|
|000000b0| 6c 75 64 65 20 22 66 69 | 78 2e 68 22 0d 0d 76 6f |lude "fi|x.h"..vo|
|000000c0| 69 64 20 6d 66 73 5f 63 | 6f 6d 6d 65 6e 74 5f 70 |id mfs_c|omment_p|
|000000d0| 72 6f 63 65 73 73 69 6e | 67 28 50 61 72 6d 42 6c |rocessin|g(ParmBl|
|000000e0| 6b 50 74 72 20 70 62 2c | 20 69 6e 74 20 69 73 5f |kPtr pb,| int is_|
|000000f0| 76 6f 6c 29 3b 0d 76 6f | 69 64 20 6d 66 73 5f 62 |vol);.vo|id mfs_b|
|00000100| 75 6e 64 6c 65 5f 70 72 | 6f 63 65 73 73 69 6e 67 |undle_pr|ocessing|
|00000110| 28 50 61 72 6d 42 6c 6b | 50 74 72 20 70 62 2c 20 |(ParmBlk|Ptr pb, |
|00000120| 69 6e 74 20 69 73 5f 76 | 6f 6c 29 3b 0d 0d 09 2f |int is_v|ol);.../|
|00000130| 2a 20 44 69 73 6b 20 73 | 63 61 6e 6e 69 6e 67 20 |* Disk s|canning |
|00000140| 63 6f 6e 74 72 6f 6c 20 | 66 6f 72 20 61 6e 20 4d |control |for an M|
|00000150| 46 53 20 76 6f 6c 75 6d | 65 2e 20 2a 2f 0d 0d 76 |FS volum|e. */..v|
|00000160| 6f 69 64 20 6d 66 73 5f | 73 63 61 6e 5f 64 69 73 |oid mfs_|scan_dis|
|00000170| 6b 28 29 0d 7b 0d 09 72 | 65 67 69 73 74 65 72 20 |k().{..r|egister |
|00000180| 69 6e 74 20 69 6e 64 65 | 78 2c 20 64 6f 6e 65 2c |int inde|x, done,|
|00000190| 20 72 65 73 75 6c 74 3b | 0d 09 50 61 72 61 6d 42 | result;|..ParamB|
|000001a0| 6c 6f 63 6b 52 65 63 20 | 70 62 3b 0d 09 75 6e 73 |lockRec |pb;..uns|
|000001b0| 69 67 6e 65 64 20 63 68 | 61 72 20 6e 61 6d 65 5b |igned ch|ar name[|
|000001c0| 4c 4f 4e 47 5f 4e 41 4d | 45 5f 53 49 5a 45 5d 3b |LONG_NAM|E_SIZE];|
|000001d0| 0d 0d 09 70 62 2e 76 6f | 6c 75 6d 65 50 61 72 61 |...pb.vo|lumePara|
|000001e0| 6d 2e 69 6f 43 6f 6d 70 | 6c 65 74 69 6f 6e 20 3d |m.ioComp|letion =|
|000001f0| 20 4e 49 4c 3b 0d 09 70 | 62 2e 76 6f 6c 75 6d 65 | NIL;..p|b.volume|
|00000200| 50 61 72 61 6d 2e 69 6f | 4e 61 6d 65 50 74 72 20 |Param.io|NamePtr |
|00000210| 3d 20 6e 61 6d 65 3b 0d | 09 70 62 2e 76 6f 6c 75 |= name;.|.pb.volu|
|00000220| 6d 65 50 61 72 61 6d 2e | 69 6f 56 52 65 66 4e 75 |meParam.|ioVRefNu|
|00000230| 6d 20 3d 20 76 6f 6c 75 | 6d 65 5f 72 65 66 6e 75 |m = volu|me_refnu|
|00000240| 6d 3b 0d 0d 09 70 62 2e | 76 6f 6c 75 6d 65 50 61 |m;...pb.|volumePa|
|00000250| 72 61 6d 2e 69 6f 56 6f | 6c 49 6e 64 65 78 20 3d |ram.ioVo|lIndex =|
|00000260| 20 30 3b 0d 09 50 42 47 | 65 74 56 49 6e 66 6f 28 | 0;..PBG|etVInfo(|
|00000270| 26 70 62 2c 20 30 29 3b | 0d 09 69 66 20 28 70 72 |&pb, 0);|..if (pr|
|00000280| 6f 63 65 73 73 5f 63 6f | 6d 6d 65 6e 74 73 29 0d |ocess_co|mments).|
|00000290| 09 09 6d 66 73 5f 63 6f | 6d 6d 65 6e 74 5f 70 72 |..mfs_co|mment_pr|
|000002a0| 6f 63 65 73 73 69 6e 67 | 28 26 70 62 2c 20 31 29 |ocessing|(&pb, 1)|
|000002b0| 3b 0d 09 69 66 20 28 70 | 72 6f 63 65 73 73 5f 62 |;..if (p|rocess_b|
|000002c0| 75 6e 64 6c 65 73 29 0d | 09 09 6d 66 73 5f 62 75 |undles).|..mfs_bu|
|000002d0| 6e 64 6c 65 5f 70 72 6f | 63 65 73 73 69 6e 67 28 |ndle_pro|cessing(|
|000002e0| 26 70 62 2c 20 31 29 3b | 0d 0d 09 69 6e 64 65 78 |&pb, 1);|...index|
|000002f0| 20 3d 20 31 3b 20 64 6f | 6e 65 20 3d 20 30 3b 0d | = 1; do|ne = 0;.|
|00000300| 09 77 68 69 6c 65 20 28 | 21 64 6f 6e 65 29 20 7b |.while (|!done) {|
|00000310| 0d 09 09 53 79 73 74 65 | 6d 54 61 73 6b 28 29 3b |...Syste|mTask();|
|00000320| 0d 09 09 70 62 2e 66 69 | 6c 65 50 61 72 61 6d 2e |...pb.fi|leParam.|
|00000330| 69 6f 46 44 69 72 49 6e | 64 65 78 20 3d 20 69 6e |ioFDirIn|dex = in|
|00000340| 64 65 78 2b 2b 3b 0d 09 | 09 72 65 73 75 6c 74 20 |dex++;..|.result |
|00000350| 3d 20 50 42 47 65 74 46 | 49 6e 66 6f 28 26 70 62 |= PBGetF|Info(&pb|
|00000360| 2c 20 30 29 3b 0d 09 09 | 69 66 20 28 28 72 65 73 |, 0);...|if ((res|
|00000370| 75 6c 74 20 21 3d 20 6e | 6f 45 72 72 29 20 7c 7c |ult != n|oErr) |||
|00000380| 20 28 70 62 2e 66 69 6c | 65 50 61 72 61 6d 2e 69 | (pb.fil|eParam.i|
|00000390| 6f 52 65 73 75 6c 74 20 | 21 3d 20 6e 6f 45 72 72 |oResult |!= noErr|
|000003a0| 29 29 0d 09 09 09 64 6f | 6e 65 20 3d 20 31 3b 0d |))....do|ne = 1;.|
|000003b0| 09 09 65 6c 73 65 20 7b | 0d 09 09 09 69 66 20 28 |..else {|....if (|
|000003c0| 70 72 6f 63 65 73 73 5f | 63 6f 6d 6d 65 6e 74 73 |process_|comments|
|000003d0| 29 0d 09 09 09 09 6d 66 | 73 5f 63 6f 6d 6d 65 6e |).....mf|s_commen|
|000003e0| 74 5f 70 72 6f 63 65 73 | 73 69 6e 67 28 26 70 62 |t_proces|sing(&pb|
|000003f0| 2c 20 30 29 3b 0d 09 09 | 09 69 66 20 28 70 72 6f |, 0);...|.if (pro|
|00000400| 63 65 73 73 5f 62 75 6e | 64 6c 65 73 29 0d 09 09 |cess_bun|dles)...|
|00000410| 09 09 6d 66 73 5f 62 75 | 6e 64 6c 65 5f 70 72 6f |..mfs_bu|ndle_pro|
|00000420| 63 65 73 73 69 6e 67 28 | 26 70 62 2c 20 30 29 3b |cessing(|&pb, 0);|
|00000430| 0d 09 09 7d 0d 09 7d 0d | 7d 0d 0d 09 2f 2a 20 44 |...}..}.|}.../* D|
|00000440| 6f 20 63 6f 6d 6d 65 6e | 74 20 70 72 6f 63 65 73 |o commen|t proces|
|00000450| 73 69 6e 67 20 66 6f 72 | 20 61 20 66 69 6c 65 20 |sing for| a file |
|00000460| 75 6e 64 65 72 20 4d 46 | 53 2e 20 2a 2f 0d 0d 73 |under MF|S. */..s|
|00000470| 74 61 74 69 63 20 76 6f | 69 64 20 6d 66 73 5f 63 |tatic vo|id mfs_c|
|00000480| 6f 6d 6d 65 6e 74 5f 70 | 72 6f 63 65 73 73 69 6e |omment_p|rocessin|
|00000490| 67 28 70 62 2c 20 69 73 | 5f 76 6f 6c 29 0d 09 50 |g(pb, is|_vol)..P|
|000004a0| 61 72 6d 42 6c 6b 50 74 | 72 20 70 62 3b 0d 09 69 |armBlkPt|r pb;..i|
|000004b0| 6e 74 20 69 73 5f 76 6f | 6c 3b 0d 7b 0d 09 72 65 |nt is_vo|l;.{..re|
|000004c0| 6d 6f 76 65 5f 66 63 6d | 74 28 63 6f 6d 6d 65 6e |move_fcm|t(commen|
|000004d0| 74 5f 68 61 73 68 28 70 | 62 2d 3e 66 69 6c 65 50 |t_hash(p|b->fileP|
|000004e0| 61 72 61 6d 2e 69 6f 4e | 61 6d 65 50 74 72 29 29 |aram.ioN|amePtr))|
|000004f0| 3b 0d 7d 0d 0d 09 2f 2a | 20 44 6f 20 62 75 6e 64 |;.}.../*| Do bund|
|00000500| 6c 65 20 70 72 6f 63 65 | 73 73 69 6e 67 20 66 6f |le proce|ssing fo|
|00000510| 72 20 61 20 66 69 6c 65 | 20 75 6e 64 65 72 20 4d |r a file| under M|
|00000520| 46 53 2e 20 2a 2f 0d 0d | 73 74 61 74 69 63 20 76 |FS. */..|static v|
|00000530| 6f 69 64 20 6d 66 73 5f | 62 75 6e 64 6c 65 5f 70 |oid mfs_|bundle_p|
|00000540| 72 6f 63 65 73 73 69 6e | 67 28 70 62 2c 20 69 73 |rocessin|g(pb, is|
|00000550| 5f 76 6f 6c 29 0d 09 50 | 61 72 6d 42 6c 6b 50 74 |_vol)..P|armBlkPt|
|00000560| 72 20 70 62 3b 0d 09 69 | 6e 74 20 69 73 5f 76 6f |r pb;..i|nt is_vo|
|00000570| 6c 3b 0d 7b 0d 09 69 66 | 20 28 21 69 73 5f 76 6f |l;.{..if| (!is_vo|
|00000580| 6c 29 0d 09 09 72 65 6d | 6f 76 65 5f 62 6e 64 6c |l)...rem|ove_bndl|
|00000590| 28 70 62 2d 3e 66 69 6c | 65 50 61 72 61 6d 2e 69 |(pb->fil|eParam.i|
|000005a0| 6f 46 6c 46 6e 64 72 49 | 6e 66 6f 2e 66 64 43 72 |oFlFndrI|nfo.fdCr|
|000005b0| 65 61 74 6f 72 29 3b 0d | 7d 0d 00 00 00 00 00 00 |eator);.|}.......|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+