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