--- /dev/null
+#magic
+# Magic data for file(1) command.
+# Machine-genererated from src/cmd/file/magdir/*; edit there only!
+# Format is described in magic(files), where:
+# files is 4 on V7 and BSD, 4 on SV, and ?? in the SVID.
--- /dev/null
+# Add any locally-observed files here. Remember:
+# text if readable, executable if runnable binary, data if unreadable.
+22 short 023000 core dump data
--- /dev/null
+0 short 070707 cpio archive
+0 string 070707 ASCII cpio archive
+0 long 0177555 very old archive
+0 short 0177555 very old PDP-11 archive
+0 long 0177545 old archive
+0 short 0177545 old PDP-11 archive
+0 long 0100554 apl workspace
+0 string <ar> archive
+0 string !<arch> archive
+>8 string __.SYMDEF random library
+0 string -h- archive (Software Tools format) text
--- /dev/null
+# this first will upset you if you're a PL/1 shop...
+# in which case nuke it; ascmagic will catch real C programs
+0 string /* c program text
+# check for various C program generators...
+# offsets derived empirically, your offsets may vary!
+53 string yyprevious c program text (from lex)
--- /dev/null
+0 string #! /bin/sh commands text
+0 string #!/bin/sh commands text
+0 string #! /bin/csh C shell commands text
+0 string #!/bin/csh C shell commands text
+0 string #! /bin/awk awk commands text
+0 string #!/bin/awk awk commands text
+0 string #! / some kinda commands text
+0 string #!/ some kinda commands text
+0 string : commands for broken kernel text
--- /dev/null
+0 short 017037 packed data
+0 short 0145405 huf output
+0 short 0116437 compressed data
+>2 byte 140 (12 bits)
+>2 byte 141 (13 bits)
+>2 byte 142 (14 bits)
+>2 byte 143 (15 bits)
+>2 byte 144 (16 bits)
--- /dev/null
+0 long 0513 Convex executable
--- /dev/null
+0 string #magic magic text file for file(1) cmd
--- /dev/null
+0 string From mail text
+0 string Relay-Version: news text
+0 string #! rnews batched news text
+0 string N#! rnews mailed, batched news text
+0 string Article saved news text
--- /dev/null
+0 long 31415 Mirage Assembler m.out executable
--- /dev/null
+# Magic numbers for ditroff intermediate language
+0 string x T cat titroff output for the C/A/T text
+0 string x T ps titroff output for PostScript
+0 string x T titroff output text
--- /dev/null
+# Tell file about the Imagen magic:
+# this only works if "language xxx" is first item in Imagen header.
+0 string @document( Imagen printer
+>10 string language impress (imPRESS data)
+>10 string language daisy (daisywheel text)
+>10 string language diablo (daisywheel text)
+>10 string language tektronix (Tektronix 4014 emulation)
+# You can add any other languages that your Imagen uses - remember
+# to keep the word `text' if the file is human-readable.
--- /dev/null
+0 long 0407 executable
+>16 long >0 not stripped
+#>2 short >0 - version %ld
+0 short 0407 PDP-11 executable
+>8 short >0 not stripped
+0 short 0401 unix-rt ldp
+0 short 0405 old overlay
+0 long 0410 pure executable
+>16 long >0 not stripped
+#>2 short >0 - version %ld
+0 short 0410 PDP-11 pure executable
+>8 short >0 not stripped
+#>2 short >0 - version %ld
+0 short 0411 PDP-11 separate I&D executable
+>8 short >0 not stripped
+#>2 short >0 - version %ld
+0 long 0413 demand paged pure executable
+>16 long >0 not stripped
+#>2 short >0 - version %ld
+0 long 0420 demand paged (first page unmapped) pure executable
+>16 long >0 not stripped
+#>2 short >0 - version %ld
+0 short 0437 pdp11 kernel overlay
--- /dev/null
+#
+# Let us not forget PostScript
+0 string %! PostScript text
+>2 string PS-Adobe- conforming
+>11 string 1.0 at level %s
--- /dev/null
+# Xenix executable formats: derived empirically; treat as folklore until proven
+0 short 01006 Xenix (x.out?) executable
+>8 short 1 Middle model
+>16 short >0 not stripped
--- /dev/null
+# SoftQuad troff magic numbers
+# SoftQuad @(#)magic 1.2 86/09/15
+0 short 0125252 SoftQuad DESC or font file binary
+>2 short >0 - version %d
--- /dev/null
+# Values for SUN MC680x0 binaries
+0 short 2 mc68020
+>2 short 0407 executable
+>2 short 0410 pure executable
+>2 short 0413 demand paged executable
+>16 long >0 not stripped
+0 long 0x080456 core file
+>128 string >0 from '%s'
--- /dev/null
+# other typesetting magic
+0 byte 0100 very old (C/A/T) troff output data
+0 string Interpress/Xerox Xerox InterPress data
--- /dev/null
+# Herewith many of the object file formats used by USG systems.
+# The `versions' should be un-commented if they work for you.
+0 short 0570 SysV executable
+>12 long >0 not stripped
+#>22 short >0 - version %ld
+0 short 0575 SysV pure executable
+>12 long >0 not stripped
+#>22 short >0 - version %ld
+0 short 0502 basic-16 executable
+>12 long >0 not stripped
+0 short 0503 basic-16 executable (TV)
+>12 long >0 not stripped
+0 short 0510 x86 executable
+>12 long >0 not stripped
+0 short 0511 x86 executable (TV)
+>12 long >0 not stripped
+0 short 0550 3b20 executable
+>12 long >0 not stripped
+0 short 0551 3b20 executable (TV)
+>12 long >0 not stripped
+0 short 0560 WE32000 executable
+>12 long >0 not stripped
+0 short 0561 WE32000 executable (TV)
+>12 long >0 not stripped
+0 short 0610 Perkin-Elmer executable
+