From 9377b85a4b99e7c331f2408919bfb6f24d01721c Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Sat, 22 Jun 1996 22:11:05 +0000 Subject: [PATCH] Initial revision --- magic/Magdir/alpha | 16 ++++++++++++++++ magic/Magdir/iff | 28 ++++++++++++++++++++++++++++ magic/Magdir/java | 4 ++++ magic/Magdir/mach | 38 ++++++++++++++++++++++++++++++++++++++ magic/Magdir/pdf | 7 +++++++ magic/Magdir/rpm | 17 +++++++++++++++++ 6 files changed, 110 insertions(+) create mode 100644 magic/Magdir/alpha create mode 100644 magic/Magdir/iff create mode 100644 magic/Magdir/java create mode 100644 magic/Magdir/mach create mode 100644 magic/Magdir/pdf create mode 100644 magic/Magdir/rpm diff --git a/magic/Magdir/alpha b/magic/Magdir/alpha new file mode 100644 index 00000000..c32c7c4a --- /dev/null +++ b/magic/Magdir/alpha @@ -0,0 +1,16 @@ +#------------------------------------------------------------------------------ +# alpha architecture description +# + +0 leshort 0603 COFF format alpha +>22 leshort&030000 !020000 executable +>24 leshort 0410 pure +>24 leshort 0413 paged +>22 leshort&020000 !0 dynamically linked +>16 lelong !0 not stripped +>16 lelong 0 stripped +>22 leshort&030000 020000 shared library +>24 leshort 0407 object +>27 byte x - version %d +>26 byte x .%d +>28 byte x -%d diff --git a/magic/Magdir/iff b/magic/Magdir/iff new file mode 100644 index 00000000..68d1b79b --- /dev/null +++ b/magic/Magdir/iff @@ -0,0 +1,28 @@ + +#------------------------------------------------------------------------------ +# iff: file(1) magic for Interchange File Format (see also "audio" & "images") +# +# Daniel Quinlan (quinlan@yggdrasil.com) -- IFF was designed by Electronic +# Arts for file interchange. It has also been used by Apple, SGI, and +# especially Commodore-Amiga. +# +# IFF files begin with an 8 byte FORM header, followed by a 4 character +# FORM type, which is followed by the first chunk in the FORM. + +0 string FORM IFF data +#>4 belong x \b, FORM is %d bytes long +# audio formats +>8 string AIFF \b, AIFF audio +>8 string AIFC \b, AIFF-C compressed audio +>8 string 8SVX \b, 8SVX 8-bit sampled sound voice +>8 string SAMP \b, SAMP sampled audio +# image formats +>8 string ILBMBMHD \b, ILBM interleaved image +>>20 beshort x \b, %d x +>>22 beshort x %d +>8 string RGBN \b, RGBN 12-bit RGB image +>8 string RGB8 \b, RGB8 24-bit RGB image +>8 string DR2D \b, DR2D 2-D object +>8 string TDDD \b, TDDD 3-D rendering +# other formats +>8 string FTXT \b, FTXT formatted text diff --git a/magic/Magdir/java b/magic/Magdir/java new file mode 100644 index 00000000..7681890e --- /dev/null +++ b/magic/Magdir/java @@ -0,0 +1,4 @@ +#------------------------------------------------------------ +# Java ByteCode +0 belong 0xcafebabe +>4 belong 0x0003002d Java bytecode diff --git a/magic/Magdir/mach b/magic/Magdir/mach new file mode 100644 index 00000000..308325ee --- /dev/null +++ b/magic/Magdir/mach @@ -0,0 +1,38 @@ +#------------------------------------------------------------------------------ +# mach file description +# +0 belong 0xcafebabe mach-o fat file +>4 belong 1 with 1 architecture +>4 belong >1 +>>4 belong x with %ld architectures +# +0 belong 0xfeedface mach-o +>12 belong 1 object +>12 belong 2 executable +>12 belong 3 shared library +>12 belong 4 core +>12 belong 5 preload executable +>12 belong >5 +>>12 belong x filetype=%ld +>4 belong <0 +>>4 belong x architecture=%ld +>4 belong 1 vax +>4 belong 2 romp +>4 belong 3 architecture=3 +>4 belong 4 ns32032 +>4 belong 5 ns32332 +>4 belong 6 for m68k architecture +>4 belong 7 i386 +>4 belong 8 mips +>4 belong 9 ns32532 +>4 belong 10 architecture=10 +>4 belong 11 hp pa-risc +>4 belong 12 acorn +>4 belong 13 m88k +>4 belong 14 sparc +>4 belong 15 i860-big +>4 belong 16 i860 +>4 belong 17 rs6000 +>4 belong 18 powerPC +>4 belong >18 +>>4 belong x architecture=%ld diff --git a/magic/Magdir/pdf b/magic/Magdir/pdf new file mode 100644 index 00000000..a1aef133 --- /dev/null +++ b/magic/Magdir/pdf @@ -0,0 +1,7 @@ +#------------------------------------------------------------------------------ +# pdf: file(1) magic for Portable Document Format +# + +0 string %PDF- PDF document +>5 byte x \b, version %c +>7 byte x \b.%c diff --git a/magic/Magdir/rpm b/magic/Magdir/rpm new file mode 100644 index 00000000..14ad6db9 --- /dev/null +++ b/magic/Magdir/rpm @@ -0,0 +1,17 @@ +#------------------------------------------------------------------------------ +# +# RPM: file(1) magic for Red Hat Packages Erik Troan (ewt@redhat.com) +# +0 beshort 0xedab +>2 beshort 0xeedb RPM +>>4 byte x v%d +>>6 beshort 0 bin +>>6 beshort 1 src +>>8 beshort 1 i386 +>>8 beshort 2 Alpha +>>8 beshort 3 Sparc +>>8 beshort 4 MIPS +>>8 beshort 5 PowerPC +>>8 beshort 6 68000 +>>8 beshort 7 SGI +>>10 string x %s -- 2.40.0