Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/file/magdir file 3.36



details:   https://anonhg.NetBSD.org/src/rev/d9868ecf4d09
branches:  trunk
changeset: 513054:d9868ecf4d09
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Jul 22 22:31:55 2001 +0000

description:
file 3.36

diffstat:

 usr.bin/file/magdir/adi       |   12 +++
 usr.bin/file/magdir/macintosh |   93 +++++++++++++++++++++++++++
 usr.bin/file/magdir/riff      |    9 ++
 usr.bin/file/magdir/sharc     |   22 ++++++
 usr.bin/file/magdir/sketch    |    5 +
 usr.bin/file/magdir/smalltalk |   23 ++++++
 usr.bin/file/magdir/sysex     |  142 ++++++++++++++++++++++++++++++++++++++++++
 usr.bin/file/magdir/vorbis    |   65 +++++++++++++++++++
 8 files changed, 371 insertions(+), 0 deletions(-)

diffs (truncated from 412 to 300 lines):

diff -r fb8bbc4e9330 -r d9868ecf4d09 usr.bin/file/magdir/adi
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/file/magdir/adi   Sun Jul 22 22:31:55 2001 +0000
@@ -0,0 +1,12 @@
+
+#------------------------------------------------------------------------------
+# adi: file(1) magic for ADi's objects
+# From Gregory McGarry <g.mcgarry%ieee.org@localhost>
+#
+0      leshort         0x521c          COFF DSP21k
+>18    lelong          &02             executable,
+>18    lelong          ^02
+>>18   lelong          &01             static object,
+>>18   lelong          ^01             relocatable object,
+>18    lelong          &010            stripped
+>18    lelong          ^010            not stripped
diff -r fb8bbc4e9330 -r d9868ecf4d09 usr.bin/file/magdir/macintosh
--- a/usr.bin/file/magdir/macintosh     Sun Jul 22 18:56:34 2001 +0000
+++ b/usr.bin/file/magdir/macintosh     Sun Jul 22 22:31:55 2001 +0000
@@ -240,3 +240,96 @@
 
 0      string          $FL2            SPSS System File
 >24    string          x               %s
+
+# Macintosh filesystem data
+# From "Tom N Harris" <telliamed%mac.com@localhost>
+# The MacOS epoch begins on 1 Jan 1904 instead of 1 Jan 1970, so these
+# entries depend on the data arithmetic added after v.35
+# There's also some Pascal strings in here, ditto...
+
+# The boot block signature, according to IM:Files, is 
+# "for HFS volumes, this field always contains the value 0x4C4B."
+# But if this is true for MFS or HFS+ volumes, I don't know.
+# Alternatively, the boot block is supposed to be zeroed if it's
+# unused, so a simply >0 should suffice.
+
+0x400  beshort                 0xD2D7          Macintosh MFS data
+>0     beshort                 0x4C4B          (bootable)
+>0x40a beshort                 &0x8000         (locked)
+>0x402 beldate-0x7C25B080      x               created: %s,
+>0x406 beldate-0x7C25B080      >0              last backup: %s,
+>0x414 belong                  x               block size: %d,
+>0x412 beshort                 x               number of blocks: %d,
+>0x424 pstring                 x               volume name: %s
+
+0x400  beshort                 0x4244          Macintosh HFS data
+>0     beshort                 0x4C4B          (bootable)
+>0x40a beshort                 &0x8000         (locked)
+>0x40a beshort                 ^0x0100         (mounted)
+>0x40a beshort                 &0x0800         (unclean)
+>0x402 beldate-0x7C25B080      x               created: %s,
+>0x406 beldate-0x7C25B080      x               last modified: %s,
+>0x440 beldate-0x7C25B080      >0              last backup: %s,
+>0x414 belong                  x               block size: %d,
+>0x412 beshort                 x               number of blocks: %d,
+>0x424 pstring                 x               volume name: %s
+#>0x480        beshort                 =0x482B         Embedded HFS+ Volume:
+#>>((0x482*(0x414))+(0x41c*512))       x       \b
+# Well, this is (theoretically) how we could do this. But it occurs to
+# me that we likely don't read in a large enough chunk. I don't have any
+# HFS+ volumes to see what a typical offset would be.
+
+0x400  beshort                 0x482B          Macintosh HFS Extended
+>&2    beshort                 x               version %d data
+>0     beshort                 0x4C4B          (bootable)
+>&4    belong                  ^0x00000100     (mounted)
+>&4    belong                  &0x00000800     (unclean)
+>&4    belong                  &0x00008000     (locked)
+>&8    string                  x               last mounted by: '%.4s',
+# really, that should be treated as a belong and we print a string
+# based on the value. TN1150 only mentions '8.10' for "MacOS 8.1"
+>&16   beldate-0x7C25B080      x               created: %s,
+>&20   beldate-0x7C25B080      x               last modified: %s,
+>&24   beldate-0x7C25B080      >0              last backup: %s,
+>&28   beldate-0x7C25B080      >0              last checked: %s,
+>&40   belong                  x               block size: %d,
+>&44   belong                  x               number of blocks: %d,
+>&48   belong                  x               free blocks: %d
+
+# I don't think this is really necessary since it doesn't do much and 
+# anything with a valid driver descriptor will also have a valid
+# partition map
+#0             beshort         0x4552          Apple Device Driver data
+#>&24          beshort         =1              \b, MacOS
+
+# Is that the partition type a cstring or a pstring? Well, IM says "strings 
+# shorter than 32 bytes must be terminated with NULL" so I'll treat it as a 
+# cstring. Of course, partitions can contain more than four entries, but 
+# what're you gonna do?
+0x200          beshort         0x504D          Apple Partition data
+>&2            beshort         x               block size: %d
+>&48           string          x               first type: %s,
+>&12           belong          x               number of blocks: %d,
+>(&0x2.S)      beshort         0x504D          
+>>&48          string          x               second type: %s
+>>&12          belong          x               number of blocks: %d,
+>>(&0x2.S)     beshort         0x504D          
+>>>&48         string          x               third type: %s
+>>>&12         belong          x               number of blocks: %d,
+>>>(&0x2.S)    beshort         0x504D          
+>>>>&48                string          x               fourth type: %s
+>>>>&12                belong          x               number of blocks: %d,
+# AFAIK, only the signature is different
+0x200          beshort         0x5453          Apple Old Partition data
+>&2            beshort         x               block size: %d
+>&48           string          x               first type: %s,
+>&12           belong          x               number of blocks: %d,
+>(&0x2.S)      beshort         0x504D          
+>>&48          string          x               second type: %s
+>>&12          belong          x               number of blocks: %d,
+>>(&0x2.S)     beshort         0x504D          
+>>>&48         string          x               third type: %s
+>>>&12         belong          x               number of blocks: %d,
+>>>(&0x2.S)    beshort         0x504D          
+>>>>&48                string          x               fourth type: %s
+>>>>&12                belong          x               number of blocks: %d,
diff -r fb8bbc4e9330 -r d9868ecf4d09 usr.bin/file/magdir/riff
--- a/usr.bin/file/magdir/riff  Sun Jul 22 18:56:34 2001 +0000
+++ b/usr.bin/file/magdir/riff  Sun Jul 22 22:31:55 2001 +0000
@@ -39,6 +39,15 @@
 >8     string          WAVE            \b, WAVE audio
 >>20   leshort         1               \b, Microsoft PCM
 >>>34  leshort         >0              \b, %d bit
+>>20   leshort         2               \b, Microsoft ADPCM
+>>20   leshort         6               \b, ITU G.711 a-law
+>>20   leshort         7               \b, ITU G.711 u-law
+>>20   leshort         17              \b, IMA ADPCM
+>>20   leshort         20              \b, ITU G.723 ADPCM (Yamaha)
+>>20   leshort         49              \b, GSM 6.10
+>>20   leshort         64              \b, ITU G.721 ADPCM
+>>20   leshort         80              \b, MPEG
+>>20   leshort         85              \b, MPEG Layer 3
 >>22   leshort         =1              \b, mono
 >>22   leshort         =2              \b, stereo
 >>22   leshort         >2              \b, %d channels
diff -r fb8bbc4e9330 -r d9868ecf4d09 usr.bin/file/magdir/sharc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/file/magdir/sharc Sun Jul 22 22:31:55 2001 +0000
@@ -0,0 +1,22 @@
+
+#------------------------------------------------------------------------
+# file(1) magic for sharc files
+#
+# SHARC DSP, MIDI SysEx and RiscOS filetype definitions added by 
+# FutureGroove Music (dsp%futuregroove.de@localhost)
+
+#------------------------------------------------------------------------
+0      string                  Draw            RiscOS Drawfile
+0      string                  PACK            RiscOS PackdDir archive
+
+#------------------------------------------------------------------------
+# SHARC DSP stuff (based on the FGM SHARC DSP SDK)
+
+0      string                  !               Assembler source
+0      string                  Analog          ADi asm listing file
+0      string                  .SYSTEM         SHARC architecture file
+0      string                  .system         SHARC architecture file
+
+0      leshort                 0x521C          SHARC COFF binary
+>2     leshort                 >1              , %hd sections
+>>12   lelong                  >0              , not stripped
diff -r fb8bbc4e9330 -r d9868ecf4d09 usr.bin/file/magdir/sketch
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/file/magdir/sketch        Sun Jul 22 22:31:55 2001 +0000
@@ -0,0 +1,5 @@
+
+#------------------------------------------------------------------------------
+# Sketch Drawings: http://sketch.sourceforge.net/ 
+# From: Edwin Mons <e%ik.nu@localhost>
+0      string  ##Sketch        Sketch document text
diff -r fb8bbc4e9330 -r d9868ecf4d09 usr.bin/file/magdir/smalltalk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/file/magdir/smalltalk     Sun Jul 22 22:31:55 2001 +0000
@@ -0,0 +1,23 @@
+
+#-----------------------------------------------
+# GNU Smalltalk image, starting at version 1.6.2
+#
+0      string  GSTIm\0\0       GNU Smalltalk
+# little-endian
+>7     byte&1  =0              LE image version
+>>10   byte    x               %d.
+>>9    byte    x               \b%d.
+>>8    byte    x               \b%d
+#>>12  lelong  x               , data: %ld
+#>>16  lelong  x               , table: %ld
+#>>20  lelong  x               , memory: %ld
+# big-endian
+>7     byte&1  =1              BE image version
+>>8    byte    x               %d.
+>>9    byte    x               \b%d.
+>>10   byte    x               \b%d
+#>>12  belong  x               , data: %ld
+#>>16  belong  x               , table: %ld
+#>>20  belong  x               , memory: %ld
+
+
diff -r fb8bbc4e9330 -r d9868ecf4d09 usr.bin/file/magdir/sysex
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/file/magdir/sysex Sun Jul 22 22:31:55 2001 +0000
@@ -0,0 +1,142 @@
+#------------------------------------------------------------------------
+# sysex: file(1) magic for MIDI sysex files
+#
+# 
+0      byte                    0xF0            SysEx File -
+
+>1     byte                    0x2f            ELKA
+>>3    byte                    0x09            EK-44
+
+>1     byte                    0x3e            Waldorf
+>>3    byte                    0x7f            Microwave I
+
+>1     byte                    0x40            Kawai
+>>3    byte                    0x22            K4
+
+>1     byte                    0x41            Roland
+>>3    byte                    0x14            D-50
+>>3    byte                    0x2b            U-220
+>>3    byte                    0x02            TR-707
+
+>1     byte                    0x42            Korg
+>>3    byte                    0x19            M1
+
+>1     byte                    0x43            Yamaha
+>1     byte                    0x44            Casio
+>1     byte                    0x46            Kamiya
+>1     byte                    0x47            Akai
+>1     byte                    0x48            Victor
+>1     byte                    0x4b            Fujitsu
+>1     byte                    0x4c            Sony
+>1     byte                    0x4e            Teac
+>1     byte                    0x50            Matsushita
+>1     byte                    0x51            Fostex
+>1     byte                    0x52            Zoom
+>1     byte                    0x54            Matsushita
+>1     byte                    0x57            Acoustic tech. lab.
+
+>1     belong&0xffffff00       0x00007400      Ta Horng
+>1     belong&0xffffff00       0x00007500      e-Tek
+>1     belong&0xffffff00       0x00007600      E-Voice
+>1     belong&0xffffff00       0x00007700      Midisoft
+>1     belong&0xffffff00       0x00007800      Q-Sound
+>1     belong&0xffffff00       0x00007900      Westrex
+>1     belong&0xffffff00       0x00007a00      Nvidia*
+>1     belong&0xffffff00       0x00007b00      ESS
+>1     belong&0xffffff00       0x00007c00      Mediatrix
+>1     belong&0xffffff00       0x00007d00      Brooktree
+>1     belong&0xffffff00       0x00007e00      Otari
+>1     belong&0xffffff00       0x00007f00      Key Electronics
+>1     belong&0xffffff00       0x00010000      Shure
+>1     belong&0xffffff00       0x00010100      AuraSound
+>1     belong&0xffffff00       0x00010200      Crystal
+>1     belong&0xffffff00       0x00010300      Rockwell
+>1     belong&0xffffff00       0x00010400      Silicon Graphics
+>1     belong&0xffffff00       0x00010500      Midiman
+>1     belong&0xffffff00       0x00010600      PreSonus
+>1     belong&0xffffff00       0x00010800      Topaz
+>1     belong&0xffffff00       0x00010900      Cast Lightning
+>1     belong&0xffffff00       0x00010a00      Microsoft
+>1     belong&0xffffff00       0x00010b00      Sonic Foundry
+>1     belong&0xffffff00       0x00010c00      Line 6
+>1     belong&0xffffff00       0x00010d00      Beatnik Inc.
+>1     belong&0xffffff00       0x00010e00      Van Koerving
+>1     belong&0xffffff00       0x00010f00      Altech Systems
+>1     belong&0xffffff00       0x00011000      S & S Research
+>1     belong&0xffffff00       0x00011100      VLSI Technology
+>1     belong&0xffffff00       0x00011200      Chromatic
+>1     belong&0xffffff00       0x00011300      Sapphire
+>1     belong&0xffffff00       0x00011400      IDRC
+>1     belong&0xffffff00       0x00011500      Justonic Tuning
+>1     belong&0xffffff00       0x00011600      TorComp
+>1     belong&0xffffff00       0x00011700      Newtek Inc.
+>1     belong&0xffffff00       0x00011800      Sound Sculpture
+>1     belong&0xffffff00       0x00011900      Walker Technical
+>1     belong&0xffffff00       0x00011a00      Digital Harmony
+>1     belong&0xffffff00       0x00011b00      InVision
+>1     belong&0xffffff00       0x00011c00      T-Square
+>1     belong&0xffffff00       0x00011d00      Nemesys
+>1     belong&0xffffff00       0x00011e00      DBX
+>1     belong&0xffffff00       0x00011f00      Syndyne
+>1     belong&0xffffff00       0x00012000      Bitheadz        
+>1     belong&0xffffff00       0x00012100      Cakewalk
+>1     belong&0xffffff00       0x00012200      Staccato
+>1     belong&0xffffff00       0x00012300      National Semicon.
+>1     belong&0xffffff00       0x00012400      Boom Theory
+>1     belong&0xffffff00       0x00012500      Virtual DSP Corp
+>1     belong&0xffffff00       0x00012600      Antares
+>1     belong&0xffffff00       0x00012700      Angel Software
+>1     belong&0xffffff00       0x00012800      St Louis Music
+>1     belong&0xffffff00       0x00012900      Lyrrus dba G-VOX
+>1     belong&0xffffff00       0x00012a00      Ashley Audio
+>1     belong&0xffffff00       0x00012b00      Vari-Lite
+>1     belong&0xffffff00       0x00012c00      Summit Audio
+>1     belong&0xffffff00       0x00012d00      Aureal Semicon.
+>1     belong&0xffffff00       0x00012e00      SeaSound
+>1     belong&0xffffff00       0x00012f00      U.S. Robotics
+>1     belong&0xffffff00       0x00013000      Aurisis
+>1     belong&0xffffff00       0x00013100      Nearfield Multimedia
+>1     belong&0xffffff00       0x00013200      FM7 Inc.



Home | Main Index | Thread Index | Old Index