home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / CMDS / file.lzh / magic < prev    next >
Text File  |  1995-04-27  |  10KB  |  279 lines

  1. #
  2. #    @(#)magic 1.15 90/08/27 SMI; from S5R3.1 1.25
  3. #
  4. #        file cmd's magic file
  5. #
  6. #
  7. #    Basically, the fields of this file are as follows:
  8. #    byte offset, value type, optional operator (= by default), value
  9. #    to match (numeric or string), and string to be printed.  Numeric
  10. #    values may be decimal, octal, or hex.  Also note that the last
  11. #    string may have 1 printf format spec.
  12. #    The '>' in occasional column 1's is magic: it forces file to
  13. #    continue scanning and matching additional lines.  The first line
  14. #    afterwards not so marked terminates the search.
  15. #
  16. # CODE CHANGED:
  17. #     8/27/90      
  18. #        - added specifications for File Manager to replace 
  19. #          install_filemgr.
  20. #
  21. 0    short        070707        cpio archive
  22. 0    short        0143561        byte-swapped cpio archive
  23. 0    string        070707        ASCII cpio archive
  24. 0    long        0177555        very old archive
  25. 0    short        0177545        old archive
  26. 0    long        0100554        APL workspace (Ken's original?)
  27. 0    long        0101555        PDP-11 single precision APL workspace
  28. 0    long        0101554        PDP-11 double precision APL workspace
  29. 0    long        0101557        VAX single precision APL workspace
  30. 0    long        0101556        VAX double precision APL workspace
  31. 0    short        017437        old packed data
  32. 0    string        \037\036    packed data
  33. 0    string        \377\037    compacted data
  34. 0    string        \037\235    compressed data
  35. >2    byte&0x80    >0        block compressed
  36. >2    byte&0x1f    x        %d bits
  37. 0    string        \032\001    Compiled Terminfo Entry
  38. 0    short        0433        Curses screen image
  39. 0    short        0434        Curses screen image
  40. 0    string        <ar>        System V Release 1 archive
  41. 0    string        !<arch>\n__.SYMDEF    archive random library
  42. 0    string        !<arch>        archive
  43. 0    long        0x1010101    MMDF mailbox
  44. 0    string        <!OPS        Interleaf ASCII document
  45. # version number follows, in the form <!OPS, Version n.n>
  46. 24    string        SunGKS        SunGKS
  47. # version number follows, in the form m.n
  48. >0    string        GKSM        Metafile
  49. 0    string        GKSM        GKS Metafile
  50. 0    string        %!        PostScript document
  51. # version ID follows, in the form PS-Adobe-nn
  52. 0    string        Interpress/Xerox    Interpress document
  53. # version ID follows, in the form /n.n
  54. 0    string        StartFontMetrics    ASCII font metrics
  55. 0    string        StartFont    ASCII font bits
  56. 0    long        0x137A2944    NeWS bitmap font
  57. 0    long        0x137A2947    NeWS font family
  58. 8    long        0x137A2B45    X11/NeWS bitmap font
  59. 8    long        0x137A2B48    X11/NeWS font family
  60. 0    long        0x137A2950    scalable OpenFont binary
  61. 0    long        0x137A2951    encrypted scalable OpenFont binary
  62. 0    string        <MakerFile    Frame Maker document
  63. 0    string        <MIFFile    Frame Maker MIF file
  64. 0    string        <MML        Frame Maker MML file
  65. 0    string        ARF_BEGARF    PHIGS clear text archive
  66. 0    string        @(#)SunPHIGS    SunPHIGS
  67. # version number follows, in the form m.n
  68. >40    string        SunBin        binary
  69. >32    string        archive        archive
  70. 0    string        BEGMF        clear text Computer Graphics Metafile
  71. 0    short&0xffe0    0x0020        binary Computer Graphics Metafile
  72. 0    short        0x3020        character Computer Graphics Metafile
  73. 0    string        .snd        audio data:
  74. >12    long        1        8-bit u-law,
  75. >12    long        2        8-bit linear PCM,
  76. >12    long        3        16-bit linear PCM,
  77. >12    long        4        24-bit linear PCM,
  78. >12    long        5        32-bit linear PCM,
  79. >12    long        6        32-bit floating point,
  80. >12    long        7        64-bit floating point,
  81. >20    long        1        mono,
  82. >20    long        2        stereo,
  83. >20    long        4        quad,
  84. >16    long        x        %d Hz
  85. # the following five are for the use of FileManager
  86. 0    string        From        mail folder
  87. 0    short        0436        vfont definition
  88. 0    long        0x59a66a95    raster file
  89. 3    string        pgscriptver    SunWrite document
  90. 10    string        sundraw        SunDraw document
  91. #
  92. #    Microware specific goodies...
  93. #
  94. 0    beshort        0x4afc        OS-9 68K
  95. >18    short&0xff00    0x100    Program
  96. >18    short&0xff00    0x200    Subroutine
  97. >18    short&0xff00    0x400    Data
  98. >18    short&0xff00    0xb00    Trap Library
  99. >18    short&0xff00    0xc00    System
  100. >18    short&0xff00    0xd00    File Manager
  101. >18    short&0xff00    0xe00    Device Driver
  102. >18    short&0xff00    0xf00    Device Descriptor
  103. >0    short        0x4afc        Module
  104. 0    beshort        0x4afd        OS-9000 68K
  105. >18    short&0xff00    0x100    Program
  106. >18    short&0xff00    0x200    Subroutine
  107. >18    short&0xff00    0x400    Data
  108. >18    short&0xff00    0xb00    Trap Library
  109. >18    short&0xff00    0xc00    System
  110. >18    short&0xff00    0xd00    File Manager
  111. >18    short&0xff00    0xe00    Device Driver
  112. >18    short&0xff00    0xf00    Device Descriptor
  113. >0    short        0x4afd        Module
  114. 0    leshort        0x4afc        OS-9000 386
  115. >18    leshort&0xff00    0x100    Program
  116. >18    leshort&0xff00    0x200    Subroutine
  117. >18    leshort&0xff00    0x400    Data
  118. >18    leshort&0xff00    0xb00    Trap Library
  119. >18    leshort&0xff00    0xc00    System
  120. >18    leshort&0xff00    0xd00    File Manager
  121. >18    leshort&0xff00    0xe00    Device Driver
  122. >18    leshort&0xff00    0xf00    Device Descriptor
  123. >0    leshort        0x4afc        Module
  124. 0    beshort        0xf00d        OS-9 PowerPC
  125. >18    short&0xff00    0x100    Program
  126. >18    short&0xff00    0x200    Subroutine
  127. >18    short&0xff00    0x400    Data
  128. >18    short&0xff00    0xb00    Trap Library
  129. >18    short&0xff00    0xc00    System
  130. >18    short&0xff00    0xd00    File Manager
  131. >18    short&0xff00    0xe00    Device Driver
  132. >18    short&0xff00    0xf00    Device Descriptor
  133. >0    short        0xf00d        Module
  134. 0    beshort        0x87cd        OS-9 6809 Module
  135. 0    long        0xbeefcafe    old OS-9 Source Debug file
  136. 0    belong        0xcafebeef    OS-9/OS-9000 Source Debug file (big Endian)
  137. 0    lelong        0xcafebeef    OS-9000 Source Debug file (little Endian)
  138. 0    belong        0xdeadface    OS-9/OS-9000 ROF file (big Endian)
  139. 0    lelong        0xdeadface    OS-9000 ROF file (little Endian)
  140. 0    belong        0x2d00d5bb    Ultra C OS-9/OS-9000 library file (big Endian)
  141. 0    lelong        0x2d00d5bb    Ultra C OS-9000 library file (little Endian)
  142. 0    belong        0xb1ffb00f    Ultra C OS-9/OS-9000 I-code file (big Endian)
  143. 0    lelong        0xb1ffb00f    Ultra C OS-9000 I-code file (little Endian)
  144. 0    string        * UCCbe68k    Ultra C OS-9/OS-9000 68K backend file (.o)
  145. 0    string        * UCCbe386    Ultra C OS-9000 386 backend file (.o)
  146. 0    string        * UCCbeppc    Ultra C OS-9 PowerPC backend file (.o)
  147. 0    string        * UCCao68k    Ultra C OS-9/OS-9000 68K asm file (.a)
  148. 0    string        * UCCao386    Ultra C OS-9000 386 asm file (.a)
  149. 0    string        * UCCaoppc    Ultra C OS-9 PowerPC asm file (.a)
  150. 0    string        \ opt        Ultra C Back End output file
  151. 0    string        \ psect        OS-9 assembly source file
  152. 0    string        # \n# FasTrak Generated Makefile        FasTrak makefile
  153. >42    byte        x            (version %c
  154. >44    byte        x            %c
  155. >46    byte        x            %c)
  156. 0    string        FasTrak Workbench save file        FasTrak workbench file
  157. >40    byte        x            (version %c
  158. >42    byte        x            %c
  159. >44    byte        x            %c)
  160. 0    string        #Profiler File    FasTrak Profiler file
  161. 0    string        # Makefile    makefile
  162. 0    belong        0x4d415549    Maui
  163. >4    belong        0x464f4e54    Font Format
  164. >4    belong        0x444d4150    Drawmap
  165. >4    belong        0x504c5445    Palette
  166. >0    belong        0x4d415549    File
  167. #
  168. #    other OS-9 stuff
  169. #
  170. 8    long        0x4001c800    Flicker File
  171. 0    short        0x1b2b        K-Windows Get/Put Buffer
  172. 0    string        FORM        IFF file
  173. 0    string        OS-9/68K CheckBook+    CheckBook+ data file
  174. #
  175. #    ZIP stuff...
  176. #
  177. 0    string        \037\213\010\000    GNU GZIP compressed file
  178. 0    string        PK\003\004    ZIP compressed archive
  179. #
  180. #    other archivers
  181. #
  182. 0    string        begin        uuencoded file
  183. 0    string        table        uuencoded file
  184. 1    string        begin        uuencoded file
  185. 1    string        table        uuencoded file
  186. 2    short        0x2d6c        lharc archive
  187. 0    long        0x2b415230    OS-9 ar archive
  188. 257    string        ustar        POSIX tar file
  189. #
  190. # unix stuff
  191. #
  192. 0    long        0x8002010b    Sun 3 executable
  193. 0    long        0x0002010b    Sun 3 executable
  194. 0    long        0xbc102000    Sun 4 executable
  195. 0    long        0x7f454c46    Sun 4 Solaris ELF file
  196. >4    long        0x01020000    (core)
  197. >4    long        0x01020100    (executable)
  198. 0    long        0x02100108    HP 97K executable
  199. 0    long        0x020c0108    HP 93K executable
  200. 0    long        0x01600009    SGI IRIX executable
  201. 0    long        0x01df0007    XCOFF file
  202. 0    long        0x00080456    SunOS Core file
  203. >4    long        0x0000033a    (Sun3)
  204. >4    long        0x000001b0    (Sun4)
  205. >4    long        0x000001c8    (Sun4 Solaris)
  206. 8    long        0x68fa8b80    HP 97K Core file
  207. 8    long        0x68fa8bc0    HP 97K Core file
  208. 0    long        0x00000002    HP 93K Core file
  209. 0    long        0xdeadadb0    IRIX Core file
  210. 0    long        0x0b70000b    IBM RS6000 AIX core file
  211. #
  212. # Graphic file types
  213. #
  214. 0    string        xbtoa        btoa'd file
  215. # PBMPLUS
  216. 0    string        P1            PBM file
  217. 0    string        P2            PGM file
  218. 0    string        P3            PPM file
  219. 0    string        P4            PBM "rawbits" file
  220. 0    string        P5            PGM "rawbits" file
  221. 0    string        P6            PPM "rawbits" file
  222. # TIFF and friends
  223. 0    string        \115\115    TIFF file, big-endian
  224. >2    short        >0            version %d
  225. 0    string        \111\111    TIFF file, little-endian
  226. >2    short        >0            version %d
  227. #
  228. # NIFF (Navy Interchange File Format, a modification of TIFF)
  229. 0    string        IIN1        NIFF raster data
  230. #
  231. # GIF
  232. 0        string            GIF                GIF picture
  233. >3        string            87a                ver. %s
  234. >3        string            89a                ver. %s
  235. >6        leshort            >0                %d x
  236. >8        leshort            >0                %d,
  237. >10        byte            &0x40            interlaced,
  238. >10        byte&0x07        =0x00            2 colors
  239. >10        byte&0x07        =0x01            4 colors
  240. >10        byte&0x07        =0x02            8 colors
  241. >10        byte&0x07        =0x03            16 colors
  242. >10        byte&0x07        =0x04            32 colors
  243. >10        byte&0x07        =0x05            64 colors
  244. >10        byte&0x07        =0x06            128 colors
  245. >10        byte&0x07        =0x07            256 colors
  246. #
  247. # Graphics Miscellany
  248. 0    long        1123028772    Artisan image file
  249. >4    long        1            rectangular 24-bit image
  250. >4    long        2            rectangular 8-bit image with colormap
  251. >4    long        3            rectangular 32-bit image (24-bit with matte)
  252. 0    string        \361\0\100\273    CMU window manager bitmap
  253. 0    string        #FIG        FIG graphics savefile text
  254. >6    string        2.1            Version 2.1
  255. >6    string        2.0            Version 2.0
  256. 0    string        GKSM        GKS Metafile
  257. 8    string        ILBM        IFF ILBM file
  258. 0    string        yz            MGR bitmap
  259. 6    string        JFIF        JPEG picture
  260. 0    string        ARF_BEGARF    PHIGS clear text archive
  261. 0    string        BM            BMP bitmap picture
  262. #
  263. # misc stuff
  264. #
  265. 0    short        0x4d5a        MS-Dos .exe file
  266. 0    string        <HTML>        HTML file
  267. 0    string        <html>        HTML file
  268. 3    string        EXIZ        infocom Wishbringer data file
  269. 0x12    string    871008        infocom Border Zone data file
  270. 0x12    string    870602        infocom Bureaucracy data file
  271. 0x12    string    840809        infocom Cutthroats data file
  272. 0x12    string    861215        infocom Hollywood Hijinx data file
  273. 0x12    string    850814        infocom A Mind Forever Voyaging data file
  274. 0x12    string    870722        infocom Nord and Burt data file
  275. 0x12    string    870730        infocom Plundered Hearts data file
  276. 0x12    string    850603        infocom Seastalker data file
  277. 0x12    string    871214        infocom Sherlock data file
  278. 0x12    string    860926        infocom Trinity data file
  279.