]> granicus.if.org Git - file/commitdiff
Initial revision
authorChristos Zoulas <christos@zoulas.com>
Thu, 23 Sep 1993 21:48:43 +0000 (21:48 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 23 Sep 1993 21:48:43 +0000 (21:48 +0000)
magic/Magdir/apple [new file with mode: 0644]
magic/Magdir/chi [new file with mode: 0644]
magic/Magdir/old/gzip [new file with mode: 0644]
magic/Magdir/old/netbsd [new file with mode: 0644]
magic/Magdir/old/rle [new file with mode: 0644]
magic/Magdir/zyxel [new file with mode: 0644]

diff --git a/magic/Magdir/apple b/magic/Magdir/apple
new file mode 100644 (file)
index 0000000..eb48673
--- /dev/null
@@ -0,0 +1,10 @@
+#
+# Apple II file formats
+#
+0      string          FiLeStArTfIlEsTaRt      binscii (apple ][) text
+0      string          \x0aGL                  Binary II (apple ][) data
+0      string          \x76\xff                Squeezed (apple ][) data
+0      string          SIT!                    StuffIt (macintosh) text
+0      string          NuFile                  NuFile archive (apple ][) data
+0      string          N\xf5F\xe9l\xe5         NuFile archive (apple ][) data
+
diff --git a/magic/Magdir/chi b/magic/Magdir/chi
new file mode 100644 (file)
index 0000000..2dfbfcf
--- /dev/null
@@ -0,0 +1,4 @@
+# ChiWriter files
+0       string          \\1cw\          ChiWriter file
+>5      string          >\0             version %s
+0       string          \\1cw           ChiWriter file
diff --git a/magic/Magdir/old/gzip b/magic/Magdir/old/gzip
new file mode 100644 (file)
index 0000000..a19a654
--- /dev/null
@@ -0,0 +1,21 @@
+0       string          \037\213        gzip compressed data
+>2      byte            <8              - reserved method
+>2      byte            8               - deflate method
+>3     byte            &0x01           , ascii
+>3     byte            &0x02           , continuation 
+>3     byte            &0x04           , extra field
+>3     byte            &0x08           , original file name
+>3     byte            &0x10           , comment
+>3     byte            &0x20           , encrypted
+>4     ledate          x               , last modified: %s
+>8     byte            2               , max compression
+>8     byte            4               , max speed
+>9     byte            =0x00           os: MS/DOS
+>9     byte            =0x01           os: Amiga
+>9     byte            =0x02           os: VMS
+>9     byte            =0x03           os: Unix
+>9     byte            =0x05           os: Atari
+>9     byte            =0x06           os: OS/2
+>9     byte            =0x07           os: MacOS
+>9     byte            =0x0A           os: Tops/20
+>9     byte            =0x0B           os: Win/32
diff --git a/magic/Magdir/old/netbsd b/magic/Magdir/old/netbsd
new file mode 100644 (file)
index 0000000..83a0ba5
--- /dev/null
@@ -0,0 +1,10 @@
+#
+# All new-style magic numbers are in network byte order.
+#
+0      belong&077777777        041400413       netbsd/i386 demand paged
+>0     byte                    &0x80
+>>20   belong                  <4096           shared library
+>>20   belong                  =4096           dynamically linked executable
+>>20   belong                  >4096           dynamically linked executable
+>0     byte                    ^0x80           executable
+>16    belong                  >0              not stripped
diff --git a/magic/Magdir/old/rle b/magic/Magdir/old/rle
new file mode 100644 (file)
index 0000000..f45605b
--- /dev/null
@@ -0,0 +1,19 @@
+# From <janl@ifi.uio.no>
+# I made this with the help of the man page for rle(5). Ihey missing
+# from the magic numbers I have:
+
+#
+# rle
+#
+0       short           0xcc52          Utah Raster Toolkit RLE
+>2      short           >0              lower left corner: %d
+>4      short           >0              lower right corner: %d
+>6      short           >0              %d x
+>8      short           >0              %d
+>10     byte&0x1        =0x1            CLEARFIRST
+>10     byte&0x2        =0x2            NO_BACKGROUND
+>10     byte&0x4        =0x4            ALPHA
+>10     byte&0x8        =0x8            COMMENT
+>11     byte            >0              %d colour channels
+>12     byte            >0              %d bits pr. pixel
+>13     byte            >0              %d colour map channels
diff --git a/magic/Magdir/zyxel b/magic/Magdir/zyxel
new file mode 100644 (file)
index 0000000..dfb48bf
--- /dev/null
@@ -0,0 +1,9 @@
+# From <rob@pe1chl.ampr.org>
+# These are the /etc/magic entries to decode datafiles as used for the
+# ZyXEL U-1496E DATA/FAX/VOICE modems.  (This header conforms to a
+# ZyXEL-defined standard)
+
+0       string          ZyXEL\002       ZyXEL voice data
+>10     byte            0               - CELP encoding
+>10     byte            1               - ADPCM2 encoding
+>10     byte            2               - ADPCM3 encoding