home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: DOS BACKUP file
(archive/dosBackupFile).
You can browse this item here: GETBASE.C
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| DOS BACKUP file (archive/dosBackupFile)
| magic
| Supported |
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
100%
| file
| DOS 2.0-3.2 backed up file \CBTREE\LIBRARY\GETBASE.C
| default
| |
99%
| file
| data
| default
| |
51%
| TrID
| DOS 2.0-3.2 backup
| default
| |
48%
| TrID
| MP3 audio
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| ff 01 00 00 00 5c 43 42 | 54 52 45 45 5c 4c 49 42 |.....\CB|TREE\LIB|
|00000010| 52 41 52 59 5c 47 45 54 | 42 41 53 45 2e 43 00 00 |RARY\GET|BASE.C..|
|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 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 1a 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 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 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0d 0a 20 2a 0d |********|***.. *.|
|000000d0| 0a 20 2a 20 20 20 67 65 | 74 62 61 73 65 2e 63 20 |. * ge|tbase.c |
|000000e0| 20 2d 2d 20 20 72 65 61 | 64 20 69 6e 64 65 78 20 | -- rea|d index |
|000000f0| 66 69 6c 65 20 62 61 73 | 65 20 62 6c 6f 63 6b 0d |file bas|e block.|
|00000100| 0a 20 2a 2f 0d 0a 0d 0a | 23 69 6e 63 6c 75 64 65 |. */....|#include|
|00000110| 20 22 63 62 74 72 65 65 | 2e 68 22 0d 0a 0d 0a 76 | "cbtree|.h"....v|
|00000120| 6f 69 64 20 67 65 74 62 | 61 73 65 28 62 74 62 61 |oid getb|ase(btba|
|00000130| 73 65 70 2c 20 66 64 29 | 20 20 2f 2a 20 72 65 61 |sep, fd)| /* rea|
|00000140| 64 20 62 61 73 65 20 62 | 6c 6f 63 6b 20 2a 2f 0d |d base b|lock */.|
|00000150| 0a 42 54 5f 42 41 53 45 | 20 2a 62 74 62 61 73 65 |.BT_BASE| *btbase|
|00000160| 70 3b 0d 0a 69 6e 74 20 | 20 20 20 20 20 66 64 3b |p;..int | fd;|
|00000170| 20 20 20 20 20 20 20 20 | 2f 2a 20 66 69 6c 65 20 | |/* file |
|00000180| 74 6f 20 6c 6f 6f 6b 20 | 69 6e 20 2a 2f 0d 0a 7b |to look |in */..{|
|00000190| 0d 0a 20 20 20 65 78 74 | 65 72 6e 20 6c 6f 6e 67 |.. ext|ern long|
|000001a0| 20 6c 73 65 65 6b 28 29 | 3b 0d 0a 0d 0a 20 20 20 | lseek()|;.... |
|000001b0| 69 66 20 28 6c 73 65 65 | 6b 28 66 64 2c 20 28 6c |if (lsee|k(fd, (l|
|000001c0| 6f 6e 67 29 53 5a 42 4c | 4b 48 44 52 2c 20 30 29 |ong)SZBL|KHDR, 0)|
|000001d0| 20 3d 3d 20 2d 31 4c 29 | 20 20 20 20 2f 2a 20 42 | == -1L)| /* B|
|000001e0| 61 73 65 20 62 6c 6b 20 | 6c 6f 63 61 74 69 6f 6e |ase blk |location|
|000001f0| 20 2a 2f 0d 0a 20 20 20 | 20 20 20 63 6b 65 72 72 | */.. | ckerr|
|00000200| 6f 72 28 2d 20 43 4b 5f | 53 45 45 4b 2c 20 22 35 |or(- CK_|SEEK, "5|
|00000210| 34 22 29 3b 0d 0a 20 20 | 20 69 66 20 28 72 65 61 |4");.. | if (rea|
|00000220| 64 28 66 64 2c 20 28 63 | 68 61 72 20 2a 29 62 74 |d(fd, (c|har *)bt|
|00000230| 62 61 73 65 70 2c 20 53 | 5a 5f 42 54 5f 42 41 53 |basep, S|Z_BT_BAS|
|00000240| 45 29 20 3d 3d 20 45 52 | 52 29 0d 0a 20 20 20 20 |E) == ER|R).. |
|00000250| 20 20 63 6b 65 72 72 6f | 72 28 2d 20 43 4b 5f 52 | ckerro|r(- CK_R|
|00000260| 45 41 44 2c 20 22 31 30 | 39 22 29 3b 0d 0a 7d 0d |EAD, "10|9");..}.|
|00000270| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+