xref: /freebsd/contrib/file/magic/Magdir/ibm370 (revision ae316d1d1cffd71ab7751f94e10118777a88e027)
1b6cee71dSXin LI
2b6cee71dSXin LI#------------------------------------------------------------------------------
3*ae316d1dSXin LI# $File: ibm370,v 1.13 2024/06/19 16:52:57 christos Exp $
4b6cee71dSXin LI# ibm370:  file(1) magic for IBM 370 and compatibles.
5b6cee71dSXin LI#
6b6cee71dSXin LI# "ibm370" said that 0x15d == 0535 was "ibm 370 pure executable".
7*ae316d1dSXin LI# "USS/370" is an old name for the z/OS Unix subsystem
8b6cee71dSXin LI# AIX 4.1's "/etc/magic" has
9b6cee71dSXin LI#
10b6cee71dSXin LI#	0	short		0535		370 sysV executable
11b6cee71dSXin LI#	>12	long		>0		not stripped
12b6cee71dSXin LI#	>22	short		>0		- version %d
13b6cee71dSXin LI#	>30	long		>0		- 5.2 format
14b6cee71dSXin LI#	0	short		0530		370 sysV pure executable
15b6cee71dSXin LI#	>12	long		>0		not stripped
16b6cee71dSXin LI#	>22	short		>0		- version %d
17b6cee71dSXin LI#	>30	long		>0		- 5.2 format
18b6cee71dSXin LI#
19b6cee71dSXin LI# instead of the "USS/370" versions of the same magic numbers.
20b6cee71dSXin LI#
21b6cee71dSXin LI0	beshort		0537		370 XA sysV executable
22b6cee71dSXin LI>12	belong		>0		not stripped
23b6cee71dSXin LI>22	beshort		>0		- version %d
24b6cee71dSXin LI>30	belong		>0		- 5.2 format
25b6cee71dSXin LI0	beshort		0532		370 XA sysV pure executable
26b6cee71dSXin LI>12	belong		>0		not stripped
27b6cee71dSXin LI>22	beshort		>0		- version %d
28b6cee71dSXin LI>30	belong		>0		- 5.2 format
29b6cee71dSXin LI0	beshort		054001		370 sysV pure executable
30b6cee71dSXin LI>12	belong		>0		not stripped
31b6cee71dSXin LI0	beshort		055001		370 XA sysV pure executable
32b6cee71dSXin LI>12	belong		>0		not stripped
33b6cee71dSXin LI0	beshort		056401		370 sysV executable
34b6cee71dSXin LI>12	belong		>0		not stripped
35b6cee71dSXin LI0	beshort		057401		370 XA sysV executable
36b6cee71dSXin LI>12	belong		>0		not stripped
37b6cee71dSXin LI0       beshort		0531		SVR2 executable (Amdahl-UTS)
38b6cee71dSXin LI>12	belong		>0		not stripped
39b6cee71dSXin LI>24     belong		>0		- version %d
40b6cee71dSXin LI0	beshort		0534		SVR2 pure executable (Amdahl-UTS)
41b6cee71dSXin LI>12	belong		>0		not stripped
42b6cee71dSXin LI>24	belong		>0		- version %d
43b6cee71dSXin LI0	beshort		0530		SVR2 pure executable (USS/370)
44b6cee71dSXin LI>12	belong		>0		not stripped
45b6cee71dSXin LI>24	belong		>0		- version %d
46b6cee71dSXin LI0	beshort		0535		SVR2 executable (USS/370)
47b6cee71dSXin LI>12	belong		>0		not stripped
48b6cee71dSXin LI>24	belong		>0		- version %d
4943a5ec4eSXin LI
5043a5ec4eSXin LI# NETDATA (https://en.wikipedia.org/wiki/NETDATA)
51*ae316d1dSXin LI# INMR01 In EBCDIC starting at offset 2
52*ae316d1dSXin LI2	string		\xc9\xd5\xd4\xd9\xf0\xf1	IBM NETDATA file
53*ae316d1dSXin LI
54*ae316d1dSXin LI# z/OS Program Object executable
55*ae316d1dSXin LI# Starts with "IEWPLMH" in EBCDIC, followed by a single EBCDIC space to pad
56*ae316d1dSXin LI# to 8 bytes. According to https://www.ibm.com/support/pages/apar/PK91585
57*ae316d1dSXin LI# IEWPLMH is eyecatcher for "Binder Program Load Module Header" control block
58*ae316d1dSXin LI0	string   	\xc9\xc5\xe6\xd7\xd3\xd4\xc8\x40	z/OS Program Object executable
59