file 3.36
This commit is contained in:
parent
30b6c70f2c
commit
8637bb8c24
|
@ -0,0 +1,12 @@
|
|||
|
||||
#------------------------------------------------------------------------------
|
||||
# adi: file(1) magic for ADi's objects
|
||||
# From Gregory McGarry <g.mcgarry@ieee.org>
|
||||
#
|
||||
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
|
|
@ -240,3 +240,96 @@
|
|||
|
||||
0 string $FL2 SPSS System File
|
||||
>24 string x %s
|
||||
|
||||
# Macintosh filesystem data
|
||||
# From "Tom N Harris" <telliamed@mac.com>
|
||||
# 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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
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
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
#------------------------------------------------------------------------------
|
||||
# Sketch Drawings: http://sketch.sourceforge.net/
|
||||
# From: Edwin Mons <e@ik.nu>
|
||||
0 string ##Sketch Sketch document text
|
|
@ -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
|
||||
|
||||
|
|
@ -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.
|
||||
>1 belong&0xffffff00 0x00013300 Swivel Systems
|
||||
>1 belong&0xffffff00 0x00013400 Hyperactive
|
||||
>1 belong&0xffffff00 0x00013500 MidiLite
|
||||
>1 belong&0xffffff00 0x00013600 Radical
|
||||
>1 belong&0xffffff00 0x00013700 Roger Linn
|
||||
>1 belong&0xffffff00 0x00013800 Helicon
|
||||
>1 belong&0xffffff00 0x00013900 Event
|
||||
>1 belong&0xffffff00 0x00013a00 Sonic Network
|
||||
>1 belong&0xffffff00 0x00013b00 Realtime Music
|
||||
>1 belong&0xffffff00 0x00013c00 Apogee Digital
|
||||
|
||||
>1 belong&0xffffff00 0x00202b00 Medeli Electronics
|
||||
>1 belong&0xffffff00 0x00202c00 Charlie Lab
|
||||
>1 belong&0xffffff00 0x00202d00 Blue Chip Music
|
||||
>1 belong&0xffffff00 0x00202e00 BEE OH Corp
|
||||
>1 belong&0xffffff00 0x00202f00 LG Semicon America
|
||||
>1 belong&0xffffff00 0x00203000 TESI
|
||||
>1 belong&0xffffff00 0x00203100 EMAGIC
|
||||
>1 belong&0xffffff00 0x00203200 Behringer
|
||||
>1 belong&0xffffff00 0x00203300 Access Music
|
||||
>1 belong&0xffffff00 0x00203400 Synoptic
|
||||
>1 belong&0xffffff00 0x00203500 Hanmesoft Corp
|
||||
>1 belong&0xffffff00 0x00203600 Terratec
|
||||
>1 belong&0xffffff00 0x00203700 Proel SpA
|
||||
>1 belong&0xffffff00 0x00203800 IBK MIDI
|
||||
>1 belong&0xffffff00 0x00203900 IRCAM
|
||||
>1 belong&0xffffff00 0x00203a00 Propellerhead Software
|
||||
>1 belong&0xffffff00 0x00203b00 Red Sound Systems
|
||||
>1 belong&0xffffff00 0x00203c00 Electron ESI AB
|
||||
>1 belong&0xffffff00 0x00203d00 Sintefex Audio
|
||||
>1 belong&0xffffff00 0x00203e00 Music and More
|
||||
>1 belong&0xffffff00 0x00203f00 Amsaro
|
||||
>1 belong&0xffffff00 0x00204000 CDS Advanced Technology
|
||||
>1 belong&0xffffff00 0x00204100 Touched by Sound
|
||||
>1 belong&0xffffff00 0x00204200 DSP Arts
|
||||
>1 belong&0xffffff00 0x00204300 Phil Rees Music
|
||||
>1 belong&0xffffff00 0x00204400 Stamer Musikanlagen GmbH
|
||||
>1 belong&0xffffff00 0x00204500 Soundart
|
||||
>1 belong&0xffffff00 0x00204600 C-Mexx Software
|
||||
>1 belong&0xffffff00 0x00204700 Klavis Tech.
|
||||
>1 belong&0xffffff00 0x00204800 Noteheads AB
|
||||
|
||||
0 string T707 Roland TR-707 Data
|
|
@ -0,0 +1,65 @@
|
|||
|
||||
#------------------------------------------------------------------------------
|
||||
# vorbis: file(1) magic for Ogg/Vorbis files
|
||||
#
|
||||
# From Felix von Leitner <leitner@fefe.de>
|
||||
# Extended by Beni Cherniavsky <cben@crosswinds.net>
|
||||
#
|
||||
# Most (everything but the number of channels and bitrate) is commented
|
||||
# out with `##' as it's not interesting to the average user. The most
|
||||
# probable things advanced users would want to uncomment are probably
|
||||
# the number of comments and the encoder version.
|
||||
#
|
||||
# --- Ogg Framing ---
|
||||
0 string OggS Ogg data
|
||||
>4 byte !0 UNKNOWN REVISION %u
|
||||
##>4 byte 0 revision 0
|
||||
>4 byte 0
|
||||
##>>14 lelong x (Serial %lX)
|
||||
# --- First vorbis packet - general header ---
|
||||
>>28 string \x01vorbis \b, Vorbis audio,
|
||||
>>>35 lelong !0 UNKNOWN VERSION %lu,
|
||||
##>>>35 lelong 0 version 0,
|
||||
>>>35 lelong 0
|
||||
>>>>39 ubyte 1 mono,
|
||||
>>>>39 ubyte 2 stereo,
|
||||
>>>>39 ubyte >2 %u channels,
|
||||
>>>>40 lelong x %lu Hz
|
||||
# Minimal, nominal and maximal bitrates specified when encoding
|
||||
>>>>48 string <\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff \b,
|
||||
# The above tests if at least one of these is specified:
|
||||
>>>>>44 lelong !-1
|
||||
>>>>>>44 lelong x >%lu
|
||||
>>>>>48 lelong !-1
|
||||
>>>>>>48 lelong x ~%lu
|
||||
>>>>>52 lelong !-1
|
||||
>>>>>>52 lelong x <%lu
|
||||
>>>>>48 string <\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff kbps
|
||||
# -- Second vorbis header packet - the comments
|
||||
>>>102 string \x03vorbis
|
||||
# A kludge to read the vendor string. It's a counted string, not a
|
||||
# zero-terminated one, so file(1) can't read it in a generic way.
|
||||
# libVorbis is the only one existing currently, so I detect specifically
|
||||
# it. The interesting value is the cvs date (8 digits decimal).
|
||||
##>>>>113 string/c Xiphophorus\ libVorbis\ I \b, created by: Xiphophorus libVorbis I
|
||||
##>>>>>137 string >00000000 %.8s
|
||||
# Map to beta version numbers:
|
||||
##>>>>>>137 string <20000508 (<beta1 - prepublic)
|
||||
# The string has not changed from beta1 to 2 - they are indistinguishable.
|
||||
##>>>>>>137 string 20000508 (beta1/2)
|
||||
##>>>>>>137 string >20000508
|
||||
##>>>>>>>137 string <20001031 (beta2-3)
|
||||
##>>>>>>137 string 20001031 (beta3)
|
||||
##>>>>>>137 string >20001031
|
||||
##>>>>>>>137 string <20010225 (beta3-4)
|
||||
##>>>>>>137 string 20010225 (beta4)
|
||||
##>>>>>>137 string >20010225
|
||||
##>>>>>>>137 string <20010615 (beta4-RC1)
|
||||
##>>>>>>137 string 20010615 (RC1)
|
||||
##>>>>>>137 string >20010615 (>RC1)
|
||||
# Then come the comments, again length-counted (and number-counted).
|
||||
# Some looping constructs and registers would allow reading them but now
|
||||
# it's impossible. However we can print the number of comments present
|
||||
# (skipping by the vendor string length):
|
||||
##>>>>(109.l.113) lelong 0 \b, no comments
|
||||
##>>>>(109.l+113) lelong >0 \b, %lu comments
|
Loading…
Reference in New Issue