home *** CD-ROM | disk | FTP | other *** search
/ stazsoftware.com / www.stazsoftware.com.tar / www.stazsoftware.com / futurebasic / sample-code / FlushVolume.sit / FlushVol
MacBinary  |  2003-08-22  |  1.5 KB  |  [TEXT/FB^e]

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
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Fri Aug 22 17:06:46 2003, modified Fri Aug 22 17:06:46 2003, creator 'FB^e', type ASCII, 1002 bytes "FlushVol" , at 0x46a 371 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[FB^e]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 46 6c 75 73 68 56 | 6f 6c 00 00 00 00 00 00 |..FlushV|ol......|
|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 46 42 5e | 65 00 00 00 00 00 00 00 |.TEXTFB^|e.......|
|00000050| 00 00 00 00 00 03 ea 00 | 00 01 73 bb 6c 36 66 bb |........|..s.l6f.|
|00000060| 6c 36 66 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |l6f.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 57 54 00 00 |........|....WT..|
|00000080| 0d 27 7e 27 41 0d 27 20 | 20 20 20 20 20 20 20 20 |.'~'A.' | |
|00000090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 52 75 | | Ru|
|000000a0| 6e 74 69 6d 65 20 3a 20 | 52 6e 74 6d 20 41 70 70 |ntime : |Rntm App|
|000000b0| 65 61 72 61 6e 63 65 2e | 49 6e 63 6c 0d 27 20 20 |earance.|Incl.' |
|000000c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000d0| 20 20 20 20 20 20 20 20 | 20 43 50 55 20 3a 20 43 | | CPU : C|
|000000e0| 61 72 62 6f 6e 0d 27 20 | 20 20 20 20 20 20 20 20 |arbon.' | |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 43 41 4c 4c 20 | | CALL |
|00000100| 52 65 71 27 64 20 3a 20 | 4f 66 66 0d 27 7e 27 42 |Req'd : |Off.'~'B|
|00000110| 0d 0d 2f 2a 0d 20 20 20 | 20 20 69 66 20 79 6f 75 |../*. | if you|
|00000120| 20 61 72 65 20 77 72 69 | 74 69 6e 67 20 61 6e 20 | are wri|ting an |
|00000130| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 74 68 61 74 |applicat|ion that|
|00000140| 20 73 65 6e 64 73 20 69 | 6e 66 6f 72 6d 61 74 69 | sends i|nformati|
|00000150| 6f 6e 20 74 6f 20 61 20 | 73 65 72 76 65 72 2c 0d |on to a |server,.|
|00000160| 20 20 20 20 20 79 6f 75 | 20 77 69 6c 6c 20 6f 66 | you| will of|
|00000170| 74 65 6e 20 6e 65 65 64 | 20 74 6f 20 66 6c 75 73 |ten need| to flus|
|00000180| 68 20 74 68 65 20 64 69 | 73 6b 20 63 61 63 68 65 |h the di|sk cache|
|00000190| 20 73 6f 20 74 68 61 74 | 20 69 6e 66 6f 20 69 73 | so that| info is|
|000001a0| 20 77 72 69 74 74 65 6e | 0d 20 20 20 20 20 74 6f | written|. to|
|000001b0| 20 74 68 65 20 73 65 72 | 76 65 72 2c 20 72 61 74 | the ser|ver, rat|
|000001c0| 68 65 72 20 74 68 61 6e | 20 73 69 74 74 69 6e 67 |her than| sitting|
|000001d0| 20 61 72 6f 75 6e 64 20 | 69 6e 20 6d 65 6d 6f 72 | around |in memor|
|000001e0| 79 20 6f 6e 20 61 20 72 | 65 6d 6f 74 65 0d 20 20 |y on a r|emote. |
|000001f0| 20 20 20 6d 61 63 68 69 | 6e 65 2e 20 61 6c 6c 20 | machi|ne. all |
|00000200| 79 6f 75 20 6e 65 65 64 | 20 74 6f 20 64 6f 20 69 |you need| to do i|
|00000210| 73 20 63 61 6c 6c 20 66 | 6e 20 46 6c 75 73 68 46 |s call f|n FlushF|
|00000220| 69 6c 65 56 6f 6c 20 77 | 69 74 68 20 61 20 66 69 |ileVol w|ith a fi|
|00000230| 6c 65 20 73 70 65 63 2e | 0d 0d 20 20 20 20 20 74 |le spec.|.. t|
|00000240| 68 65 20 66 69 6c 65 20 | 73 70 65 63 20 63 61 6e |he file |spec can|
|00000250| 20 62 65 20 61 6e 20 66 | 69 6c 65 20 74 68 61 74 | be an f|ile that|
|00000260| 20 69 73 20 6f 6e 20 74 | 68 65 20 76 6f 6c 75 6d | is on t|he volum|
|00000270| 65 2e 20 75 73 75 61 6c | 6c 79 2e 20 69 74 20 69 |e. usual|ly. it i|
|00000280| 73 20 74 68 65 20 66 69 | 6c 65 0d 20 20 20 20 20 |s the fi|le. |
|00000290| 74 68 61 74 20 79 6f 75 | 20 61 72 65 20 77 6f 72 |that you| are wor|
|000002a0| 6b 69 6e 67 20 77 69 74 | 68 20 61 6e 64 20 77 61 |king wit|h and wa|
|000002b0| 6e 74 20 74 6f 20 68 61 | 76 65 20 73 65 6e 74 20 |nt to ha|ve sent |
|000002c0| 6f 66 66 20 74 6f 20 74 | 68 65 20 73 65 72 76 65 |off to t|he serve|
|000002d0| 72 2e 0d 0d 20 20 20 20 | 20 74 68 69 73 20 77 61 |r... | this wa|
|000002e0| 73 20 77 72 69 74 74 65 | 6e 20 62 79 20 72 70 2e |s writte|n by rp.|
|000002f0| 0d 2a 2f 0d 0d 2f 2f 20 | 66 6c 75 73 68 20 74 68 |.*/..// |flush th|
|00000300| 65 20 76 6f 6c 75 6d 65 | 20 74 68 61 74 20 74 68 |e volume| that th|
|00000310| 65 20 66 69 6c 65 20 62 | 65 6c 6f 6e 67 73 20 74 |e file b|elongs t|
|00000320| 6f 0d 6c 6f 63 61 6c 20 | 6d 6f 64 65 0d 6c 6f 63 |o.local |mode.loc|
|00000330| 61 6c 20 66 6e 20 46 6c | 75 73 68 46 69 6c 65 56 |al fn Fl|ushFileV|
|00000340| 6f 6c 28 20 66 20 61 73 | 20 5e 46 53 53 70 65 63 |ol( f as| ^FSSpec|
|00000350| 20 29 0d 27 7e 27 31 0d | 64 69 6d 20 70 61 72 61 | ).'~'1.|dim para|
|00000360| 6d 42 6c 6f 63 6b 2e 36 | 34 20 2f 2f 20 56 6f 6c |mBlock.6|4 // Vol|
|00000370| 75 6d 65 50 61 72 61 6d | 0d 0d 42 6c 6f 63 6b 5a |umeParam|..BlockZ|
|00000380| 65 72 6f 28 20 40 70 61 | 72 61 6d 42 6c 6f 63 6b |ero( @pa|ramBlock|
|00000390| 2c 20 73 69 7a 65 6f 66 | 28 20 70 61 72 61 6d 42 |, sizeof|( paramB|
|000003a0| 6c 6f 63 6b 20 29 20 29 | 0d 70 61 72 61 6d 42 6c |lock ) )|.paramBl|
|000003b0| 6f 63 6b 2e 69 6f 56 52 | 65 66 4e 75 6d 25 20 3d |ock.ioVR|efNum% =|
|000003c0| 20 66 2e 76 52 65 66 4e | 75 6d 0d 65 6e 64 20 66 | f.vRefN|um.end f|
|000003d0| 6e 20 3d 20 66 6e 20 50 | 42 46 6c 75 73 68 56 6f |n = fn P|BFlushVo|
|000003e0| 6c 53 79 6e 63 28 20 70 | 61 72 61 6d 42 6c 6f 63 |lSync( p|aramBloc|
|000003f0| 6b 20 29 0d 0d 0d 2f 2f | 20 64 65 6d 6f 20 6d 61 |k )...//| demo ma|
|00000400| 69 6e 20 70 72 6f 67 72 | 61 6d 0d 27 7e 27 31 0d |in progr|am.'~'1.|
|00000410| 64 69 6d 20 61 73 20 46 | 53 53 70 65 63 20 66 0d |dim as F|SSpec f.|
|00000420| 6c 6f 6e 67 20 69 66 20 | 28 20 66 69 6c 65 73 24 |long if |( files$|
|00000430| 28 20 5f 46 53 53 70 65 | 63 4f 70 65 6e 2c 2c 2c |( _FSSpe|cOpen,,,|
|00000440| 20 66 20 29 20 21 3d 20 | 22 22 20 29 0d 66 6e 20 | f ) != |"" ).fn |
|00000450| 46 6c 75 73 68 46 69 6c | 65 56 6f 6c 28 20 66 20 |FlushFil|eVol( f |
|00000460| 29 0d 65 6e 64 20 69 66 | 0d 0d 00 00 00 00 00 00 |).end if|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 01 00 00 00 01 12 | 00 00 00 12 00 00 00 61 |........|.......a|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 08 01 4a 02 07 | 02 83 03 bd 00 00 00 02 |.....J..|........|
|00000590| 01 18 00 00 01 00 00 00 | 01 12 00 00 00 12 00 00 |........|........|
|000005a0| 00 61 0b 3a c1 08 04 ae | 00 00 00 1c 00 46 00 01 |.a.:....|.....F..|
|000005b0| 77 50 4f 53 00 00 00 12 | 52 45 4d 3e 00 00 00 1e |wPOS....|REM>....|
|000005c0| 03 e8 00 00 00 00 00 00 | 0b 3a be 6c 03 e8 00 10 |........|.:.l....|
|000005d0| 00 00 00 0c 0b 3a bf 18 | 0f 57 69 6e 64 6f 77 20 |.....:..|.Window |
|000005e0| 50 6f 73 69 74 69 6f 6e | 0a 52 45 4d 20 49 6e 64 |Position|.REM Ind|
|000005f0| 65 6e 74 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ent.....|........|
+--------+-------------------------+-------------------------+--------+--------+