xref: /freebsd/contrib/file/magic/Magdir/dyadic (revision b6cee71de37d56e36dbc118e2d9b03e7cece5709)
1*b6cee71dSXin LI
2*b6cee71dSXin LI#------------------------------------------------------------------------------
3*b6cee71dSXin LI# $File: dyadic,v 1.6 2014/06/01 19:14:42 christos Exp $
4*b6cee71dSXin LI# Dyadic: file(1) magic for Dyalog APL.
5*b6cee71dSXin LI#
6*b6cee71dSXin LI# updated by Joerg Jenderek at Oct 2013
7*b6cee71dSXin LI# http://en.wikipedia.org/wiki/Dyalog_APL
8*b6cee71dSXin LI# http://www.dyalog.com/
9*b6cee71dSXin LI# .DXV Dyalog APL External Variable
10*b6cee71dSXin LI# .DIN Dyalog APL Input Table
11*b6cee71dSXin LI# .DOT Dyalog APL Output Table
12*b6cee71dSXin LI# .DFT Dyalog APL Format File
13*b6cee71dSXin LI0	ubeshort&0xFF60	0xaa00
14*b6cee71dSXin LI# skip biblio.dbt
15*b6cee71dSXin LI>1	byte		!4
16*b6cee71dSXin LI# real Dyalog APL have non zero version numbers like 7.3 or 13.4
17*b6cee71dSXin LI>>2	ubeshort	>0x0000		Dyalog APL
18*b6cee71dSXin LI>>>1	byte		0x00		aplcore
19*b6cee71dSXin LI#>>>1	byte		0x00		incomplete workspace
20*b6cee71dSXin LI# *.DCF Dyalog APL Component File
21*b6cee71dSXin LI>>>1	byte		0x01		component file 32-bit non-journaled non-checksummed
22*b6cee71dSXin LI#>>>1	byte		0x01		component file
23*b6cee71dSXin LI>>>1	byte		0x02		external variable exclusive
24*b6cee71dSXin LI#>>>1	byte		0x02		external variable
25*b6cee71dSXin LI# *.DWS Dyalog APL Workspace
26*b6cee71dSXin LI>>>1	byte		0x03		workspace
27*b6cee71dSXin LI>>>>7	byte&0x28	0x00		32-bit
28*b6cee71dSXin LI>>>>7	byte&0x28	0x20		64-bit
29*b6cee71dSXin LI>>>>7	byte&0x0c	0x00		classic
30*b6cee71dSXin LI>>>>7	byte&0x0c	0x04		unicode
31*b6cee71dSXin LI>>>>7	byte&0x88	0x00		big-endian
32*b6cee71dSXin LI>>>>7	byte&0x88	0x80		little-endian
33*b6cee71dSXin LI>>>1	byte		0x06		external variable shared
34*b6cee71dSXin LI# *.DSE Dyalog APL Session , *.DLF Dyalog APL Session Log File
35*b6cee71dSXin LI>>>1	byte		0x07		session
36*b6cee71dSXin LI>>>1	byte		0x08		mapped file 32-bit
37*b6cee71dSXin LI>>>1	byte		0x09		component file 64-bit non-journaled non-checksummed
38*b6cee71dSXin LI>>>1	byte		0x0a		mapped file 64-bit
39*b6cee71dSXin LI>>>1	byte		0x0b		component file 32-bit level 1 journaled non-checksummed
40*b6cee71dSXin LI>>>1	byte		0x0c		component file 64-bit level 1 journaled non-checksummed
41*b6cee71dSXin LI>>>1	byte		0x0d		component file 32-bit level 1 journaled checksummed
42*b6cee71dSXin LI>>>1	byte		0x0e		component file 64-bit level 1 journaled checksummed
43*b6cee71dSXin LI>>>1	byte		0x0f		component file 32-bit level 2 journaled checksummed
44*b6cee71dSXin LI>>>1	byte		0x10		component file 64-bit level 2 journaled checksummed
45*b6cee71dSXin LI>>>1	byte		0x11		component file 32-bit level 3 journaled checksummed
46*b6cee71dSXin LI>>>1	byte		0x12		component file 64-bit level 3 journaled checksummed
47*b6cee71dSXin LI>>>1	byte		0x13		component file 32-bit non-journaled checksummed
48*b6cee71dSXin LI>>>1	byte		0x14		component file 64-bit non-journaled checksummed
49*b6cee71dSXin LI>>>1	byte		0x80		DDB
50*b6cee71dSXin LI>>>2	byte		x		version %d
51*b6cee71dSXin LI>>>3	byte		x		\b.%d
52*b6cee71dSXin LI#>>>2	byte		x		type %d
53*b6cee71dSXin LI#>>>3	byte		x		subtype %d
54*b6cee71dSXin LI
55*b6cee71dSXin LI# *.DXF Dyalog APL Transfer File
56*b6cee71dSXin LI0	short		0x6060		Dyalog APL transfer
57