1#	$OpenBSD: sgi,v 1.3 2004/06/03 03:14:20 tedu Exp $
2
3#------------------------------------------------------------------------------
4# sgi:  file(1) magic for Silicon Graphics (MIPS, IRIS, IRIX, etc.)
5#                         Dec Ultrix (MIPS)
6# all of SGI's *current* machines and OSes run in big-endian mode on the
7# MIPS machines, as far as I know.
8#
9# XXX - what is the blank "-" line?
10#
11# kbd file definitions
120	string	kbd!map		kbd map file
13>8	byte	>0		Ver %d:
14>10	short	>0		with %d table(s)
150	belong	0407		old SGI 68020 executable
160	belong	0410		old SGI 68020 pure executable
170	beshort	0x8765		disk quotas file
180	beshort	0x0506		IRIS Showcase file
19>2	byte	0x49		-
20>3	byte	x		- version %ld
210	beshort	0x0226		IRIS Showcase template
22>2	byte	0x63		-
23>3	byte	x		- version %ld
240	belong	0x5343464d	IRIS Showcase file
25>4	byte	x		- version %ld
260	belong	0x5443464d	IRIS Showcase template
27>4	byte	x		- version %ld
280	belong	0xdeadbabe	IRIX Parallel Arena
29>8	belong	>0		- version %ld
30#
310	beshort	0x0160		MIPSEB COFF executable
32>20	beshort	0407		(impure)
33>20	beshort	0410		(swapped)
34>20	beshort	0413		(paged)
35>8	belong	>0		not stripped
36>8	belong	0		stripped
37>22	byte	x		- version %ld
38>23	byte	x		.%ld
39#
400	beshort	0x0162		MIPSEL COFF executable
41>20	beshort	0407		(impure)
42>20	beshort	0410		(swapped)
43>20	beshort	0413		(paged)
44>8	belong	>0		not stripped
45>8	belong	0		stripped
46>23	byte	x		- version %d
47>22	byte	x		.%ld
48#
490	beshort	0x6001		MIPSEB-LE COFF executable
50>20	beshort	03401		(impure)
51>20	beshort	04001		(swapped)
52>20	beshort	05401		(paged)
53>8	belong	>0		not stripped
54>8	belong	0		stripped
55>23	byte	x		- version %d
56>22	byte	x		.%ld
57#
580	beshort	0x6201		MIPSEL-LE COFF executable
59>20	beshort	03401		(impure)
60>20	beshort	04001		(swapped)
61>20	beshort	05401		(paged)
62>8	belong	>0		not stripped
63>8	belong	0		stripped
64>23	byte	x		- version %ld
65>22	byte	x		.%ld
66#
67# MIPS 2 additions
68#
690	beshort	0x0163		MIPSEB MIPS-II COFF executable
70>20	beshort	0407		(impure)
71>20	beshort	0410		(swapped)
72>20	beshort	0413		(paged)
73>8	belong	>0		not stripped
74>8	belong	0		stripped
75>22	byte	x		- version %ld
76>23	byte	x		.%ld
77#
780	beshort	0x0166		MIPSEL MIPS-II COFF executable
79>20	beshort	0407		(impure)
80>20	beshort	0410		(swapped)
81>20	beshort	0413		(paged)
82>8	belong	>0		not stripped
83>8	belong	0		stripped
84>22	byte	x		- version %ld
85>23	byte	x		.%ld
86#
870	beshort	0x6301		MIPSEB-LE MIPS-II COFF executable
88>20	beshort	03401		(impure)
89>20	beshort	04001		(swapped)
90>20	beshort	05401		(paged)
91>8	belong	>0		not stripped
92>8	belong	0		stripped
93>23	byte	x		- version %ld
94>22	byte	x		.%ld
95#
960	beshort	0x6601		MIPSEL-LE MIPS-II COFF executable
97>20	beshort	03401		(impure)
98>20	beshort	04001		(swapped)
99>20	beshort	05401		(paged)
100>8	belong	>0		not stripped
101>8	belong	0		stripped
102>23	byte	x		- version %ld
103>22	byte	x		.%ld
104#
105# MIPS 3 additions
106#
1070	beshort	0x0140		MIPSEB MIPS-III COFF executable
108>20	beshort	0407		(impure)
109>20	beshort	0410		(swapped)
110>20	beshort	0413		(paged)
111>8	belong	>0		not stripped
112>8	belong	0		stripped
113>22	byte	x		- version %ld
114>23	byte	x		.%ld
115#
1160	beshort	0x0142		MIPSEL MIPS-III COFF executable
117>20	beshort	0407		(impure)
118>20	beshort	0410		(swapped)
119>20	beshort	0413		(paged)
120>8	belong	>0		not stripped
121>8	belong	0		stripped
122>22	byte	x		- version %ld
123>23	byte	x		.%ld
124#
1250	beshort	0x4001		MIPSEB-LE MIPS-III COFF executable
126>20	beshort	03401		(impure)
127>20	beshort	04001		(swapped)
128>20	beshort	05401		(paged)
129>8	belong	>0		not stripped
130>8	belong	0		stripped
131>23	byte	x		- version %ld
132>22	byte	x		.%ld
133#
1340	beshort	0x4201		MIPSEL-LE MIPS-III COFF executable
135>20	beshort	03401		(impure)
136>20	beshort	04001		(swapped)
137>20	beshort	05401		(paged)
138>8	belong	>0		not stripped
139>8	belong	0		stripped
140>23	byte	x		- version %ld
141>22	byte	x		.%ld
142#
1430	beshort	0x180		MIPSEB Ucode
1440	beshort	0x182		MIPSEL Ucode
145# 32bit core file
1460	belong	0xdeadadb0	IRIX core dump
147>4	belong	1		of
148>16	string	>\0		'%s'
149# 64bit core file
1500	belong	0xdeadad40	IRIX 64-bit core dump
151>4	belong	1		of
152>16	string	>\0		'%s'
153# New style crash dump file
1540	string	\x43\x72\x73\x68\x44\x75\x6d\x70	IRIX vmcore dump of
155>36	string	>\0					'%s'
156# Trusted IRIX info
1570	string	SGIAUDIT	SGI Audit file
158>8	byte	x		- version %d
159>9	byte	x		.%ld
160# Are these three SGI-based file types or general ones?
1610	string	WNGZWZSC	Wingz compiled script
1620	string	WNGZWZSS	Wingz spreadsheet
1630	string	WNGZWZHP	Wingz help file
164#
1650	string	\#Inventor V	IRIS Inventor 1.0 file
1660	string	\#Inventor V2	Open Inventor 2.0 file
167# XXX - I don't know what next thing is!  It is likely to be an image
168# (or movie) format
1690	string	glfHeadMagic();		GLF_TEXT
1704	belong	0x41010000		GLF_BINARY_LSB_FIRST
1714	belong	0x00000141		GLF_BINARY_MSB_FIRST
172