ibm370 2.1 KB

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