home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / appl / fixdsktp.sit / Source / hfs.c.bin < prev    next >
MacBinary  |  1989-09-13  |  3.1 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:59:37 1988, modified Wed Sep 7 17:35:10 1988, creator Think C, type ASCII, 2982 bytes "hfs.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 68 66 73 2e 63 00 | 00 00 00 00 00 00 00 00 |..hfs.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 0b a6 00 | 00 00 00 9f 36 03 79 9f |........|....6.y.|
|00000060| 4b 5c 0e 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 23 69 6e 63 6c |FileMgr.|h>.#incl|
|000000b0| 75 64 65 20 3c 48 46 53 | 2e 68 3e 0d 0d 23 69 6e |ude <HFS|.h>..#in|
|000000c0| 63 6c 75 64 65 20 22 66 | 69 78 2e 68 22 0d 0d 09 |clude "f|ix.h"...|
|000000d0| 2f 2a 20 4c 6f 63 61 6c | 20 70 72 6f 74 6f 74 79 |/* Local| prototy|
|000000e0| 70 65 73 2e 20 2a 2f 0d | 0d 76 6f 69 64 20 73 63 |pes. */.|.void sc|
|000000f0| 61 6e 5f 64 69 72 65 63 | 74 6f 72 79 28 6c 6f 6e |an_direc|tory(lon|
|00000100| 67 20 64 69 72 5f 69 64 | 2c 20 75 6e 73 69 67 6e |g dir_id|, unsign|
|00000110| 65 64 20 63 68 61 72 20 | 2a 6f 75 72 5f 6e 61 6d |ed char |*our_nam|
|00000120| 65 29 3b 0d 76 6f 69 64 | 20 68 66 73 5f 63 6f 6d |e);.void| hfs_com|
|00000130| 6d 65 6e 74 5f 70 72 6f | 63 65 73 73 69 6e 67 28 |ment_pro|cessing(|
|00000140| 43 49 6e 66 6f 50 42 50 | 74 72 20 70 62 2c 20 69 |CInfoPBP|tr pb, i|
|00000150| 6e 74 20 69 73 5f 64 69 | 72 29 3b 0d 76 6f 69 64 |nt is_di|r);.void|
|00000160| 20 68 66 73 5f 62 75 6e | 64 6c 65 5f 70 72 6f 63 | hfs_bun|dle_proc|
|00000170| 65 73 73 69 6e 67 28 43 | 49 6e 66 6f 50 42 50 74 |essing(C|InfoPBPt|
|00000180| 72 20 70 62 2c 20 69 6e | 74 20 69 73 5f 64 69 72 |r pb, in|t is_dir|
|00000190| 29 3b 0d 76 6f 69 64 20 | 68 66 73 5f 61 70 70 6c |);.void |hfs_appl|
|000001a0| 5f 70 72 6f 63 65 73 73 | 69 6e 67 28 43 49 6e 66 |_process|ing(CInf|
|000001b0| 6f 50 42 50 74 72 20 70 | 62 2c 20 69 6e 74 20 69 |oPBPtr p|b, int i|
|000001c0| 73 5f 64 69 72 29 3b 0d | 0d 09 2f 2a 20 44 69 73 |s_dir);.|../* Dis|
|000001d0| 6b 20 73 63 61 6e 6e 69 | 6e 67 20 63 6f 6e 74 72 |k scanni|ng contr|
|000001e0| 6f 6c 20 66 6f 72 20 61 | 6e 20 48 46 53 20 76 6f |ol for a|n HFS vo|
|000001f0| 6c 75 6d 65 2e 20 2a 2f | 0d 0d 76 6f 69 64 20 68 |lume. */|..void h|
|00000200| 66 73 5f 73 63 61 6e 5f | 64 69 73 6b 28 29 0d 7b |fs_scan_|disk().{|
|00000210| 0d 09 43 49 6e 66 6f 50 | 42 52 65 63 20 70 62 3b |..CInfoP|BRec pb;|
|00000220| 0d 0d 09 70 62 2e 64 69 | 72 49 6e 66 6f 2e 69 6f |...pb.di|rInfo.io|
|00000230| 43 6f 6d 70 6c 65 74 69 | 6f 6e 20 3d 20 4e 49 4c |Completi|on = NIL|
|00000240| 3b 0d 09 70 62 2e 64 69 | 72 49 6e 66 6f 2e 69 6f |;..pb.di|rInfo.io|
|00000250| 4e 61 6d 65 50 74 72 20 | 3d 20 4e 49 4c 3b 09 09 |NamePtr |= NIL;..|
|00000260| 09 09 09 09 09 09 2f 2a | 20 48 61 6e 64 6c 65 20 |....../*| Handle |
|00000270| 74 68 65 20 20 20 20 2a | 2f 0d 09 70 62 2e 64 69 |the *|/..pb.di|
|00000280| 72 49 6e 66 6f 2e 69 6f | 56 52 65 66 4e 75 6d 20 |rInfo.io|VRefNum |
|00000290| 3d 20 76 6f 6c 75 6d 65 | 5f 72 65 66 6e 75 6d 3b |= volume|_refnum;|
|000002a0| 09 09 09 09 09 2f 2a 20 | 76 6f 6c 75 6d 65 27 73 |...../* |volume's|
|000002b0| 20 72 6f 6f 74 20 2a 2f | 0d 09 70 62 2e 64 69 72 | root */|..pb.dir|
|000002c0| 49 6e 66 6f 2e 69 6f 44 | 72 44 69 72 49 44 20 3d |Info.ioD|rDirID =|
|000002d0| 20 30 3b 09 09 09 09 09 | 09 09 09 2f 2a 20 64 69 | 0;.....|.../* di|
|000002e0| 72 65 63 74 6f 72 79 2e | 2e 2e 20 20 2a 2f 0d 09 |rectory.|.. */..|
|000002f0| 70 62 2e 64 69 72 49 6e | 66 6f 2e 69 6f 46 44 69 |pb.dirIn|fo.ioFDi|
|00000300| 72 49 6e 64 65 78 20 3d | 20 30 3b 0d 0d 09 50 42 |rIndex =| 0;...PB|
|00000310| 47 65 74 43 61 74 49 6e | 66 6f 28 26 70 62 2c 20 |GetCatIn|fo(&pb, |
|00000320| 30 29 3b 0d 09 69 66 20 | 28 70 72 6f 63 65 73 73 |0);..if |(process|
|00000330| 5f 63 6f 6d 6d 65 6e 74 | 73 29 0d 09 09 68 66 73 |_comment|s)...hfs|
|00000340| 5f 63 6f 6d 6d 65 6e 74 | 5f 70 72 6f 63 65 73 73 |_comment|_process|
|00000350| 69 6e 67 28 26 70 62 2c | 31 29 3b 0d 09 69 66 20 |ing(&pb,|1);..if |
|00000360| 28 70 72 6f 63 65 73 73 | 5f 62 75 6e 64 6c 65 73 |(process|_bundles|
|00000370| 29 0d 09 09 68 66 73 5f | 62 75 6e 64 6c 65 5f 70 |)...hfs_|bundle_p|
|00000380| 72 6f 63 65 73 73 69 6e | 67 28 26 70 62 2c 31 29 |rocessin|g(&pb,1)|
|00000390| 3b 0d 09 69 66 20 28 70 | 72 6f 63 65 73 73 5f 61 |;..if (p|rocess_a|
|000003a0| 70 70 6c 73 29 0d 09 09 | 68 66 73 5f 61 70 70 6c |ppls)...|hfs_appl|
|000003b0| 5f 70 72 6f 63 65 73 73 | 69 6e 67 28 26 70 62 2c |_process|ing(&pb,|
|000003c0| 31 29 3b 0d 0d 09 73 63 | 61 6e 5f 64 69 72 65 63 |1);...sc|an_direc|
|000003d0| 74 6f 72 79 28 30 4c 2c | 20 4e 49 4c 29 3b 09 2f |tory(0L,| NIL);./|
|000003e0| 2a 20 53 74 61 72 74 20 | 73 63 61 6e 20 61 74 20 |* Start |scan at |
|000003f0| 72 6f 6f 74 2e 2e 2e 20 | 2a 2f 0d 7d 0d 0d 09 2f |root... |*/.}.../|
|00000400| 2a 20 53 63 61 6e 6e 65 | 72 20 66 6f 72 20 6f 6e |* Scanne|r for on|
|00000410| 65 20 64 69 72 65 63 74 | 6f 72 79 2e 20 2a 2f 0d |e direct|ory. */.|
|00000420| 0d 73 74 61 74 69 63 20 | 76 6f 69 64 20 73 63 61 |.static |void sca|
|00000430| 6e 5f 64 69 72 65 63 74 | 6f 72 79 28 64 69 72 5f |n_direct|ory(dir_|
|00000440| 69 64 2c 20 6f 75 72 5f | 6e 61 6d 65 29 0d 09 6c |id, our_|name)..l|
|00000450| 6f 6e 67 20 64 69 72 5f | 69 64 3b 0d 09 75 6e 73 |ong dir_|id;..uns|
|00000460| 69 67 6e 65 64 20 63 68 | 61 72 20 2a 6f 75 72 5f |igned ch|ar *our_|
|00000470| 6e 61 6d 65 3b 0d 7b 0d | 09 72 65 67 69 73 74 65 |name;.{.|.registe|
|00000480| 72 20 69 6e 74 20 69 6e | 64 65 78 2c 20 64 6f 6e |r int in|dex, don|
|00000490| 65 2c 20 72 65 73 75 6c | 74 3b 0d 09 69 6e 74 20 |e, resul|t;..int |
|000004a0| 69 73 5f 75 73 3b 0d 09 | 43 49 6e 66 6f 50 42 52 |is_us;..|CInfoPBR|
|000004b0| 65 63 20 70 62 3b 0d 09 | 75 6e 73 69 67 6e 65 64 |ec pb;..|unsigned|
|000004c0| 20 63 68 61 72 20 6e 61 | 6d 65 5b 4e 41 4d 45 5f | char na|me[NAME_|
|000004d0| 53 49 5a 45 5d 3b 0d 0d | 09 73 65 74 5f 70 72 6f |SIZE];..|.set_pro|
|000004e0| 63 65 73 73 69 6e 67 28 | 6f 75 72 5f 6e 61 6d 65 |cessing(|our_name|
|000004f0| 29 3b 0d 09 69 73 5f 75 | 73 20 3d 20 31 3b 0d 09 |);..is_u|s = 1;..|
|00000500| 70 62 2e 64 69 72 49 6e | 66 6f 2e 69 6f 43 6f 6d |pb.dirIn|fo.ioCom|
|00000510| 70 6c 65 74 69 6f 6e 20 | 3d 20 4e 49 4c 3b 0d 09 |pletion |= NIL;..|
|00000520| 70 62 2e 64 69 72 49 6e | 66 6f 2e 69 6f 4e 61 6d |pb.dirIn|fo.ioNam|
|00000530| 65 50 74 72 20 3d 20 6e | 61 6d 65 3b 0d 09 70 62 |ePtr = n|ame;..pb|
|00000540| 2e 64 69 72 49 6e 66 6f | 2e 69 6f 56 52 65 66 4e |.dirInfo|.ioVRefN|
|00000550| 75 6d 20 3d 20 76 6f 6c | 75 6d 65 5f 72 65 66 6e |um = vol|ume_refn|
|00000560| 75 6d 3b 0d 0d 09 69 6e | 64 65 78 20 3d 20 31 3b |um;...in|dex = 1;|
|00000570| 20 64 6f 6e 65 20 3d 20 | 30 3b 0d 09 77 68 69 6c | done = |0;..whil|
|00000580| 65 20 28 21 64 6f 6e 65 | 29 20 7b 0d 09 09 53 79 |e (!done|) {...Sy|
|00000590| 73 74 65 6d 54 61 73 6b | 28 29 3b 0d 09 09 70 62 |stemTask|();...pb|
|000005a0| 2e 64 69 72 49 6e 66 6f | 2e 69 6f 44 72 44 69 72 |.dirInfo|.ioDrDir|
|000005b0| 49 44 20 3d 20 64 69 72 | 5f 69 64 3b 0d 09 09 70 |ID = dir|_id;...p|
|000005c0| 62 2e 64 69 72 49 6e 66 | 6f 2e 69 6f 46 44 69 72 |b.dirInf|o.ioFDir|
|000005d0| 49 6e 64 65 78 20 3d 20 | 69 6e 64 65 78 2b 2b 3b |Index = |index++;|
|000005e0| 0d 09 09 72 65 73 75 6c | 74 20 3d 20 50 42 47 65 |...resul|t = PBGe|
|000005f0| 74 43 61 74 49 6e 66 6f | 28 26 70 62 2c 20 30 29 |tCatInfo|(&pb, 0)|
|00000600| 3b 0d 09 09 69 66 20 28 | 28 72 65 73 75 6c 74 20 |;...if (|(result |
|00000610| 21 3d 20 6e 6f 45 72 72 | 29 20 7c 7c 20 28 70 62 |!= noErr|) || (pb|
|00000620| 2e 64 69 72 49 6e 66 6f | 2e 69 6f 52 65 73 75 6c |.dirInfo|.ioResul|
|00000630| 74 20 21 3d 20 6e 6f 45 | 72 72 29 29 0d 09 09 09 |t != noE|rr))....|
|00000640| 64 6f 6e 65 20 3d 20 31 | 3b 0d 09 09 65 6c 73 65 |done = 1|;...else|
|00000650| 20 7b 0d 09 09 09 69 66 | 20 28 70 62 2e 64 69 72 | {....if| (pb.dir|
|00000660| 49 6e 66 6f 2e 69 6f 46 | 6c 41 74 74 72 69 62 20 |Info.ioF|lAttrib |
|00000670| 26 20 30 78 31 30 29 20 | 7b 09 2f 2a 20 49 74 27 |& 0x10) |{./* It'|
|00000680| 73 20 61 20 64 69 72 65 | 63 74 6f 72 79 2e 2e 2e |s a dire|ctory...|
|00000690| 20 2a 2f 0d 09 09 09 09 | 69 66 20 28 70 72 6f 63 | */.....|if (proc|
|000006a0| 65 73 73 5f 63 6f 6d 6d | 65 6e 74 73 29 0d 09 09 |ess_comm|ents)...|
|000006b0| 09 09 09 68 66 73 5f 63 | 6f 6d 6d 65 6e 74 5f 70 |...hfs_c|omment_p|
|000006c0| 72 6f 63 65 73 73 69 6e | 67 28 26 70 62 2c 20 31 |rocessin|g(&pb, 1|
|000006d0| 29 3b 0d 09 09 09 09 69 | 66 20 28 70 72 6f 63 65 |);.....i|f (proce|
|000006e0| 73 73 5f 62 75 6e 64 6c | 65 73 29 0d 09 09 09 09 |ss_bundl|es).....|
|000006f0| 09 68 66 73 5f 62 75 6e | 64 6c 65 5f 70 72 6f 63 |.hfs_bun|dle_proc|
|00000700| 65 73 73 69 6e 67 28 26 | 70 62 2c 20 31 29 3b 0d |essing(&|pb, 1);.|
|00000710| 09 09 09 09 69 66 20 28 | 70 72 6f 63 65 73 73 5f |....if (|process_|
|00000720| 61 70 70 6c 73 29 0d 09 | 09 09 09 09 68 66 73 5f |appls)..|....hfs_|
|00000730| 61 70 70 6c 5f 70 72 6f | 63 65 73 73 69 6e 67 28 |appl_pro|cessing(|
|00000740| 26 70 62 2c 20 31 29 3b | 0d 09 09 09 09 69 73 5f |&pb, 1);|.....is_|
|00000750| 75 73 20 3d 20 30 3b 0d | 09 09 09 09 73 63 61 6e |us = 0;.|....scan|
|00000760| 5f 64 69 72 65 63 74 6f | 72 79 28 70 62 2e 64 69 |_directo|ry(pb.di|
|00000770| 72 49 6e 66 6f 2e 69 6f | 44 72 44 69 72 49 44 2c |rInfo.io|DrDirID,|
|00000780| 6e 61 6d 65 29 3b 0d 09 | 09 09 7d 0d 09 09 09 65 |name);..|..}....e|
|00000790| 6c 73 65 20 7b 09 09 09 | 09 09 09 09 2f 2a 20 49 |lse {...|..../* I|
|000007a0| 74 27 73 20 61 20 66 69 | 6c 65 2e 2e 2e 20 2a 2f |t's a fi|le... */|
|000007b0| 0d 09 09 09 09 69 66 20 | 28 21 69 73 5f 75 73 29 |.....if |(!is_us)|
|000007c0| 20 7b 0d 09 09 09 09 09 | 73 65 74 5f 70 72 6f 63 | {......|set_proc|
|000007d0| 65 73 73 69 6e 67 28 6f | 75 72 5f 6e 61 6d 65 29 |essing(o|ur_name)|
|000007e0| 3b 0d 09 09 09 09 09 69 | 73 5f 75 73 20 3d 20 31 |;......i|s_us = 1|
|000007f0| 3b 0d 09 09 09 09 7d 0d | 09 09 09 09 69 66 20 28 |;.....}.|....if (|
|00000800| 70 72 6f 63 65 73 73 5f | 63 6f 6d 6d 65 6e 74 73 |process_|comments|
|00000810| 29 0d 09 09 09 09 09 68 | 66 73 5f 63 6f 6d 6d 65 |)......h|fs_comme|
|00000820| 6e 74 5f 70 72 6f 63 65 | 73 73 69 6e 67 28 26 70 |nt_proce|ssing(&p|
|00000830| 62 2c 20 30 29 3b 0d 09 | 09 09 09 69 66 20 28 70 |b, 0);..|...if (p|
|00000840| 72 6f 63 65 73 73 5f 62 | 75 6e 64 6c 65 73 29 0d |rocess_b|undles).|
|00000850| 09 09 09 09 09 68 66 73 | 5f 62 75 6e 64 6c 65 5f |.....hfs|_bundle_|
|00000860| 70 72 6f 63 65 73 73 69 | 6e 67 28 26 70 62 2c 20 |processi|ng(&pb, |
|00000870| 30 29 3b 0d 09 09 09 09 | 69 66 20 28 70 72 6f 63 |0);.....|if (proc|
|00000880| 65 73 73 5f 61 70 70 6c | 73 29 0d 09 09 09 09 09 |ess_appl|s)......|
|00000890| 68 66 73 5f 61 70 70 6c | 5f 70 72 6f 63 65 73 73 |hfs_appl|_process|
|000008a0| 69 6e 67 28 26 70 62 2c | 20 30 29 3b 0d 09 09 09 |ing(&pb,| 0);....|
|000008b0| 7d 0d 09 09 7d 0d 09 7d | 0d 7d 0d 0d 09 2f 2a 20 |}...}..}|.}.../* |
|000008c0| 44 6f 20 63 6f 6d 6d 65 | 6e 74 20 70 72 6f 63 65 |Do comme|nt proce|
|000008d0| 73 73 69 6e 67 20 66 6f | 72 20 61 20 66 69 6c 65 |ssing fo|r a file|
|000008e0| 20 6f 72 20 64 69 72 65 | 63 74 6f 72 79 20 75 6e | or dire|ctory un|
|000008f0| 64 65 72 20 48 46 53 2e | 20 2a 2f 0d 0d 73 74 61 |der HFS.| */..sta|
|00000900| 74 69 63 20 76 6f 69 64 | 20 68 66 73 5f 63 6f 6d |tic void| hfs_com|
|00000910| 6d 65 6e 74 5f 70 72 6f | 63 65 73 73 69 6e 67 28 |ment_pro|cessing(|
|00000920| 70 62 2c 20 69 73 5f 64 | 69 72 29 0d 09 43 49 6e |pb, is_d|ir)..CIn|
|00000930| 66 6f 50 42 50 74 72 20 | 70 62 3b 0d 09 69 6e 74 |foPBPtr |pb;..int|
|00000940| 20 69 73 5f 64 69 72 3b | 0d 7b 0d 09 69 66 20 28 | is_dir;|.{..if (|
|00000950| 69 73 5f 64 69 72 29 0d | 09 09 72 65 6d 6f 76 65 |is_dir).|..remove|
|00000960| 5f 66 63 6d 74 28 70 62 | 2d 3e 64 69 72 49 6e 66 |_fcmt(pb|->dirInf|
|00000970| 6f 2e 69 6f 44 72 46 6e | 64 72 49 6e 66 6f 2e 66 |o.ioDrFn|drInfo.f|
|00000980| 72 43 6f 6d 6d 65 6e 74 | 29 3b 0d 09 65 6c 73 65 |rComment|);..else|
|00000990| 0d 09 09 72 65 6d 6f 76 | 65 5f 66 63 6d 74 28 70 |...remov|e_fcmt(p|
|000009a0| 62 2d 3e 68 46 69 6c 65 | 49 6e 66 6f 2e 69 6f 46 |b->hFile|Info.ioF|
|000009b0| 6c 58 46 6e 64 72 49 6e | 66 6f 2e 66 64 43 6f 6d |lXFndrIn|fo.fdCom|
|000009c0| 6d 65 6e 74 29 3b 0d 7d | 0d 0d 09 2f 2a 20 44 6f |ment);.}|.../* Do|
|000009d0| 20 62 75 6e 64 6c 65 20 | 70 72 6f 63 65 73 73 69 | bundle |processi|
|000009e0| 6e 67 20 66 6f 72 20 61 | 20 66 69 6c 65 20 6f 72 |ng for a| file or|
|000009f0| 20 64 69 72 65 63 74 6f | 72 79 20 75 6e 64 65 72 | directo|ry under|
|00000a00| 20 48 46 53 2e 20 2a 2f | 0d 0d 73 74 61 74 69 63 | HFS. */|..static|
|00000a10| 20 76 6f 69 64 20 68 66 | 73 5f 62 75 6e 64 6c 65 | void hf|s_bundle|
|00000a20| 5f 70 72 6f 63 65 73 73 | 69 6e 67 28 70 62 2c 69 |_process|ing(pb,i|
|00000a30| 73 5f 64 69 72 29 0d 09 | 43 49 6e 66 6f 50 42 50 |s_dir)..|CInfoPBP|
|00000a40| 74 72 20 70 62 3b 0d 09 | 69 6e 74 20 69 73 5f 64 |tr pb;..|int is_d|
|00000a50| 69 72 3b 0d 7b 0d 09 69 | 66 20 28 21 69 73 5f 64 |ir;.{..i|f (!is_d|
|00000a60| 69 72 29 0d 09 09 72 65 | 6d 6f 76 65 5f 62 6e 64 |ir)...re|move_bnd|
|00000a70| 6c 28 70 62 2d 3e 68 46 | 69 6c 65 49 6e 66 6f 2e |l(pb->hF|ileInfo.|
|00000a80| 69 6f 46 6c 46 6e 64 72 | 49 6e 66 6f 2e 66 64 43 |ioFlFndr|Info.fdC|
|00000a90| 72 65 61 74 6f 72 29 3b | 0d 7d 0d 0d 09 2f 2a 20 |reator);|.}.../* |
|00000aa0| 44 6f 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 6c |Do appli|cation l|
|00000ab0| 69 73 74 20 70 72 6f 63 | 65 73 73 69 6e 67 20 66 |ist proc|essing f|
|00000ac0| 6f 72 20 61 20 66 69 6c | 65 20 6f 72 20 64 69 72 |or a fil|e or dir|
|00000ad0| 20 75 6e 64 65 72 20 48 | 46 53 2e 20 2a 2f 0d 0d | under H|FS. */..|
|00000ae0| 73 74 61 74 69 63 20 76 | 6f 69 64 20 68 66 73 5f |static v|oid hfs_|
|00000af0| 61 70 70 6c 5f 70 72 6f | 63 65 73 73 69 6e 67 28 |appl_pro|cessing(|
|00000b00| 70 62 2c 69 73 5f 64 69 | 72 29 0d 09 72 65 67 69 |pb,is_di|r)..regi|
|00000b10| 73 74 65 72 20 43 49 6e | 66 6f 50 42 50 74 72 20 |ster CIn|foPBPtr |
|00000b20| 70 62 3b 0d 09 69 6e 74 | 20 69 73 5f 64 69 72 3b |pb;..int| is_dir;|
|00000b30| 0d 7b 0d 09 69 66 20 28 | 28 21 69 73 5f 64 69 72 |.{..if (|(!is_dir|
|00000b40| 29 20 26 26 0d 09 09 28 | 70 62 2d 3e 68 46 69 6c |) &&...(|pb->hFil|
|00000b50| 65 49 6e 66 6f 2e 69 6f | 46 6c 46 6e 64 72 49 6e |eInfo.io|FlFndrIn|
|00000b60| 66 6f 2e 66 64 54 79 70 | 65 20 3d 3d 20 27 41 50 |fo.fdTyp|e == 'AP|
|00000b70| 50 4c 27 29 20 26 26 0d | 09 09 28 70 62 2d 3e 68 |PL') &&.|..(pb->h|
|00000b80| 46 69 6c 65 49 6e 66 6f | 2e 69 6f 46 6c 46 6e 64 |FileInfo|.ioFlFnd|
|00000b90| 72 49 6e 66 6f 2e 66 64 | 46 6c 61 67 73 20 26 20 |rInfo.fd|Flags & |
|00000ba0| 66 48 61 73 42 75 6e 64 | 6c 65 29 29 0d 09 09 61 |fHasBund|le))...a|
|00000bb0| 64 64 5f 61 70 70 6c 69 | 63 61 74 69 6f 6e 28 70 |dd_appli|cation(p|
|00000bc0| 62 2d 3e 68 46 69 6c 65 | 49 6e 66 6f 2e 69 6f 46 |b->hFile|Info.ioF|
|00000bd0| 6c 46 6e 64 72 49 6e 66 | 6f 2e 66 64 43 72 65 61 |lFndrInf|o.fdCrea|
|00000be0| 74 6f 72 2c 0d 09 09 09 | 09 09 09 70 62 2d 3e 68 |tor,....|...pb->h|
|00000bf0| 46 69 6c 65 49 6e 66 6f | 2e 69 6f 46 6c 50 61 72 |FileInfo|.ioFlPar|
|00000c00| 49 44 2c 0d 09 09 09 09 | 09 09 70 62 2d 3e 68 46 |ID,.....|..pb->hF|
|00000c10| 69 6c 65 49 6e 66 6f 2e | 69 6f 4e 61 6d 65 50 74 |ileInfo.|ioNamePt|
|00000c20| 72 29 3b 0d 7d 0d 00 00 | 00 00 00 00 00 00 00 00 |r);.}...|........|
|00000c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+