pdp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #------------------------------------------------------------------------------
  2. # $File: pdp,v 1.12 2024/02/29 03:40:37 christos Exp $
  3. # pdp: file(1) magic for PDP-11 executable/object and APL workspace
  4. # URL: https://en.wikipedia.org/wiki/PDP-11
  5. #
  6. 0 lelong 0101555 PDP-11 single precision APL workspace
  7. 0 lelong 0101554 PDP-11 double precision APL workspace
  8. #
  9. # PDP-11 a.out
  10. #
  11. 0 leshort 0407 PDP-11 executable
  12. >8 leshort >0 not stripped
  13. >15 byte >0 - version %d
  14. # updated by Joerg Jenderek at Mar 2013, Feb 2024
  15. # GRR: line below too general as it catches also Windows precompiled setup information *.PNF
  16. 0 leshort 0401
  17. # PDP-11 UNIX/RT ldp (strength=50=50+0) after D64 Image (strength=70=70+0 ./c64) and MMDF mailbox (strength=70=70+0 ./mmdf)
  18. #!:strength +0
  19. # skip *.PNF with WinDirPathOffset 58h
  20. >68 ulelong !0x00000058
  21. # skip *.PNF with high byte of InfVersionDatumCount zero
  22. #>>15 byte !0 PDP-11 UNIX/RT ldp
  23. # skip few Commodore D64 disc image like "The Great Gianna Sisters.d64" initialized with ^A and handled by ./c64
  24. >>8 quad !0x0101010101010101
  25. # skip MMDF mailbox like maillog.expected.2 with MBOX characteristic near the beginning handled by ./mmdf
  26. >>>5 search/610/b From\
  27. >>>5 default x PDP-11 UNIX/RT ldp
  28. #!:mime application/octet-stream
  29. #!:ext foo
  30. 0 leshort 0405 PDP-11 old overlay
  31. 0 leshort 0410 PDP-11 pure executable
  32. >8 leshort >0 not stripped
  33. >15 byte >0 - version %d
  34. 0 leshort 0411 PDP-11 separate I&D executable
  35. >8 leshort >0 not stripped
  36. >15 byte >0 - version %d
  37. 0 leshort 0437 PDP-11 kernel overlay
  38. # These last three are derived from 2.11BSD file(1)
  39. 0 leshort 0413 PDP-11 demand-paged pure executable
  40. >8 leshort >0 not stripped
  41. 0 leshort 0430 PDP-11 overlaid pure executable
  42. >8 leshort >0 not stripped
  43. 0 leshort 0431 PDP-11 overlaid separate executable
  44. >8 leshort >0 not stripped