]> granicus.if.org Git - file/commitdiff
Initial revision
authorIan Darwin <ian@darwinsys.com>
Sat, 29 Aug 1987 12:49:11 +0000 (12:49 +0000)
committerIan Darwin <ian@darwinsys.com>
Sat, 29 Aug 1987 12:49:11 +0000 (12:49 +0000)
19 files changed:
magic/Header [new file with mode: 0644]
magic/Localstuff [new file with mode: 0644]
magic/Magdir/archive [new file with mode: 0644]
magic/Magdir/c-lang [new file with mode: 0644]
magic/Magdir/commands [new file with mode: 0644]
magic/Magdir/compress [new file with mode: 0644]
magic/Magdir/convex [new file with mode: 0644]
magic/Magdir/magic [new file with mode: 0644]
magic/Magdir/mail.news [new file with mode: 0644]
magic/Magdir/mirage [new file with mode: 0644]
magic/Magdir/old/ditroff [new file with mode: 0644]
magic/Magdir/old/imagen [new file with mode: 0644]
magic/Magdir/old/olda.out [new file with mode: 0644]
magic/Magdir/old/postscript [new file with mode: 0644]
magic/Magdir/old/xenix [new file with mode: 0644]
magic/Magdir/softquad [new file with mode: 0644]
magic/Magdir/sun [new file with mode: 0644]
magic/Magdir/typeset [new file with mode: 0644]
magic/Magdir/varied.out [new file with mode: 0644]

diff --git a/magic/Header b/magic/Header
new file mode 100644 (file)
index 0000000..d146598
--- /dev/null
@@ -0,0 +1,5 @@
+#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.
diff --git a/magic/Localstuff b/magic/Localstuff
new file mode 100644 (file)
index 0000000..d0c2a51
--- /dev/null
@@ -0,0 +1,3 @@
+#      Add any locally-observed files here.  Remember:
+#      text if readable, executable if runnable binary, data if unreadable.
+22     short   023000          core dump data
diff --git a/magic/Magdir/archive b/magic/Magdir/archive
new file mode 100644 (file)
index 0000000..b8a6555
--- /dev/null
@@ -0,0 +1,11 @@
+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
diff --git a/magic/Magdir/c-lang b/magic/Magdir/c-lang
new file mode 100644 (file)
index 0000000..132a689
--- /dev/null
@@ -0,0 +1,6 @@
+#      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)
diff --git a/magic/Magdir/commands b/magic/Magdir/commands
new file mode 100644 (file)
index 0000000..e133cbf
--- /dev/null
@@ -0,0 +1,9 @@
+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
diff --git a/magic/Magdir/compress b/magic/Magdir/compress
new file mode 100644 (file)
index 0000000..8e9d987
--- /dev/null
@@ -0,0 +1,8 @@
+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)
diff --git a/magic/Magdir/convex b/magic/Magdir/convex
new file mode 100644 (file)
index 0000000..560fd48
--- /dev/null
@@ -0,0 +1 @@
+0      long            0513            Convex executable
diff --git a/magic/Magdir/magic b/magic/Magdir/magic
new file mode 100644 (file)
index 0000000..882b240
--- /dev/null
@@ -0,0 +1 @@
+0      string          #magic          magic text file for file(1) cmd
diff --git a/magic/Magdir/mail.news b/magic/Magdir/mail.news
new file mode 100644 (file)
index 0000000..91544c2
--- /dev/null
@@ -0,0 +1,5 @@
+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
diff --git a/magic/Magdir/mirage b/magic/Magdir/mirage
new file mode 100644 (file)
index 0000000..28ee778
--- /dev/null
@@ -0,0 +1 @@
+0      long    31415           Mirage Assembler m.out executable
diff --git a/magic/Magdir/old/ditroff b/magic/Magdir/old/ditroff
new file mode 100644 (file)
index 0000000..d6a3e11
--- /dev/null
@@ -0,0 +1,4 @@
+# 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
diff --git a/magic/Magdir/old/imagen b/magic/Magdir/old/imagen
new file mode 100644 (file)
index 0000000..59acb5f
--- /dev/null
@@ -0,0 +1,9 @@
+# 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.
diff --git a/magic/Magdir/old/olda.out b/magic/Magdir/old/olda.out
new file mode 100644 (file)
index 0000000..6b894d1
--- /dev/null
@@ -0,0 +1,23 @@
+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
diff --git a/magic/Magdir/old/postscript b/magic/Magdir/old/postscript
new file mode 100644 (file)
index 0000000..c31a359
--- /dev/null
@@ -0,0 +1,5 @@
+#
+# Let us not forget PostScript
+0      string  %!                      PostScript text
+>2     string  PS-Adobe-               conforming
+>11    string  1.0                     at level %s
diff --git a/magic/Magdir/old/xenix b/magic/Magdir/old/xenix
new file mode 100644 (file)
index 0000000..6f4a4f5
--- /dev/null
@@ -0,0 +1,4 @@
+# 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
diff --git a/magic/Magdir/softquad b/magic/Magdir/softquad
new file mode 100644 (file)
index 0000000..4a072c7
--- /dev/null
@@ -0,0 +1,4 @@
+# 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
diff --git a/magic/Magdir/sun b/magic/Magdir/sun
new file mode 100644 (file)
index 0000000..2e9e17a
--- /dev/null
@@ -0,0 +1,8 @@
+# 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'
diff --git a/magic/Magdir/typeset b/magic/Magdir/typeset
new file mode 100644 (file)
index 0000000..c2dcce6
--- /dev/null
@@ -0,0 +1,3 @@
+# other typesetting magic
+0      byte            0100            very old (C/A/T) troff output data
+0      string          Interpress/Xerox        Xerox InterPress data
diff --git a/magic/Magdir/varied.out b/magic/Magdir/varied.out
new file mode 100644 (file)
index 0000000..e66ad58
--- /dev/null
@@ -0,0 +1,26 @@
+#      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
+