xref: /minix3/external/bsd/file/dist/magic/magdir/vms (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1ef01931fSBen Gras
2ef01931fSBen Gras#------------------------------------------------------------------------------
3*0a6a1f1dSLionel Sambuc# $File: vms,v 1.9 2014/08/17 13:47:59 christos Exp $
4ef01931fSBen Gras# vms:  file(1) magic for VMS executables (experimental)
5ef01931fSBen Gras#
6ef01931fSBen Gras# VMS .exe formats, both VAX and AXP (Greg Roelofs, newt@uchicago.edu)
7ef01931fSBen Gras
8ef01931fSBen Gras# GRR 950122:  I'm just guessing on these, based on inspection of the headers
9ef01931fSBen Gras# of three executables each for Alpha and VAX architectures.  The VAX files
10ef01931fSBen Gras# all had headers similar to this:
11ef01931fSBen Gras#
12ef01931fSBen Gras#   00000  b0 00 30 00 44 00 60 00  00 00 00 00 30 32 30 35  ..0.D.`.....0205
13ef01931fSBen Gras#   00010  01 01 00 00 ff ff ff ff  ff ff ff ff 00 00 00 00  ................
14ef01931fSBen Gras#
15ef01931fSBen Gras0	string	\xb0\0\x30\0	VMS VAX executable
16ef01931fSBen Gras>44032	string	PK\003\004	\b, Info-ZIP SFX archive v5.12 w/decryption
17ef01931fSBen Gras#
18ef01931fSBen Gras# The AXP files all looked like this, except that the byte at offset 0x22
19ef01931fSBen Gras# was 06 in some of them and 07 in others:
20ef01931fSBen Gras#
21ef01931fSBen Gras#   00000  03 00 00 00 00 00 00 00  ec 02 00 00 10 01 00 00  ................
22ef01931fSBen Gras#   00010  68 00 00 00 98 00 00 00  b8 00 00 00 00 00 00 00  h...............
23ef01931fSBen Gras#   00020  00 00 07 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
24ef01931fSBen Gras#   00030  00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00  ................
25ef01931fSBen Gras#   00040  00 00 00 00 ff ff ff ff  ff ff ff ff 02 00 00 00  ................
26ef01931fSBen Gras#
2784d9c625SLionel Sambuc# GRR this test is still too general as it catches example adressen.dbt
2884d9c625SLionel Sambuc0	belong	0x03000000
2984d9c625SLionel Sambuc>8	ubelong	0xec020000	VMS Alpha executable
3084d9c625SLionel Sambuc>>75264	string	PK\003\004	\b, Info-ZIP SFX archive v5.12 w/decryption
31