magic.svn-base
来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· SVN-BASE 代码 · 共 1,648 行 · 第 1/5 页
SVN-BASE
1,648 行
# Magic# Magic data for file(1) command.# Machine-generated from src/cmd/file/magdir/*; edit there only!# Format is described in magic(files), where:# files is 5 on V7 and BSD, 4 on SV, and ?? in the SVID.#------------------------------------------------------------------------------# Localstuff: file(1) magic for locally observed files## $File: Localstuff,v 1.4 2003/03/23 04:17:27 christos Exp $# Add any locally observed files here. Remember:# text if readable, executable if runnable binary, data if unreadable.#------------------------------------------------------------------------------# acorn: file(1) magic for files found on Acorn systems## RISC OS Chunk File Format# From RISC OS Programmer's Reference Manual, Appendix D# We guess the file type from the type of the first chunk.0 lelong 0xc3cbc6c5 RISC OS Chunk data>12 string OBJ_ \b, AOF object>12 string LIB_ \b, ALF library# RISC OS AIF, contains "SWI OS_Exit" at offset 16.16 lelong 0xef000011 RISC OS AIF executable# RISC OS Draw files# From RISC OS Programmer's Reference Manual, Appendix E0 string Draw RISC OS Draw file data# RISC OS new format font files# From RISC OS Programmer's Reference Manual, Appendix E0 string FONT\0 RISC OS outline font data,>5 byte x version %d0 string FONT\1 RISC OS 1bpp font data,>5 byte x version %d0 string FONT\4 RISC OS 4bpp font data>5 byte x version %d# RISC OS Music files# From RISC OS Programmer's Reference Manual, Appendix E0 string Maestro\r RISC OS music file>8 byte x version %d#------------------------------------------------------------------------------# 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#------------------------------------------------------------------------------# adventure: file(1) magic for Adventure game files## from Allen Garvin <earendil@faeryland.tamu-commerce.edu># Edited by Dave Chapeskie <dchapes@ddm.on.ca> Jun 28, 1998# Edited by Chris Chittleborough <cchittleborough@yahoo.com.au>, March 2002## ALAN# I assume there are other, lower versions, but these are the only ones I# saw in the archive.0 beshort 0x0206 ALAN game data>2 byte <10 version 2.6%d# Infocom (see z-machine)#------------------------------------------------------------------------------# Z-machine: file(1) magic for Z-machine binaries.## This will match ${TEX_BASE}/texmf/omega/ocp/char2uni/inbig5.ocp which# appears to be a version-0 Z-machine binary.## The (false match) message is to correct that behavior. Perhaps it is# not needed.#16 belong&0xfe00f0f0 0x3030 Infocom game data>0 ubyte 0 (false match)>0 ubyte >0 (Z-machine %d,>>2 ubeshort x Release %d />>18 string >\0 Serial %.6s)#------------------------------------------------------------------------------# Glulx: file(1) magic for Glulx binaries.## I haven't checked for false matches yet.#0 string Glul Glulx game data>4 beshort x (Version %d>>6 byte x \b.%d>>8 byte x \b.%d)>36 string Info Compiled by Inform# For Quetzal and blorb magic see iff# TADS (Text Adventure Development System)# All files are machine-independent (games compile to byte-code) and are tagged# with a version string of the form "V2.<digit>.<digit>\0" (but TADS 3 is# on the way).# Game files start with "TADS2 bin\n\r\032\0" then the compiler version.0 string TADS2\ bin TADS>9 belong !0x0A0D1A00 game data, CORRUPTED>9 belong 0x0A0D1A00>>13 string >\0 %s game data# Resource files start with "TADS2 rsc\n\r\032\0" then the compiler version.0 string TADS2\ rsc TADS>9 belong !0x0A0D1A00 resource data, CORRUPTED>9 belong 0x0A0D1A00>>13 string >\0 %s resource data# Some saved game files start with "TADS2 save/g\n\r\032\0", a little-endian# 2-byte length N, the N-char name of the game file *without* a NUL (darn!),# "TADS2 save\n\r\032\0" and the interpreter version. 0 string TADS2\ save/g TADS>12 belong !0x0A0D1A00 saved game data, CORRUPTED>12 belong 0x0A0D1A00>>(16.s+32) string >\0 %s saved game data# Other saved game files start with "TADS2 save\n\r\032\0" and the interpreter# version.0 string TADS2\ save TADS>10 belong !0x0A0D1A00 saved game data, CORRUPTED>10 belong 0x0A0D1A00>>14 string >\0 %s saved game data#------------------------------------------------------------------------------# allegro: file(1) magic for Allegro datafiles# Toby Deshane <hac@shoelace.digivill.net>#0 belong 0x736C6821 Allegro datafile (packed)0 belong 0x736C682E Allegro datafile (not packed/autodetect)0 belong 0x736C682B Allegro datafile (appended exe data)#------------------------------------------------------------------------------# alliant: file(1) magic for Alliant FX series a.out files## If the FX series is the one that had a processor with a 68K-derived# instruction set, the "short" should probably become "beshort" and the# "long" should probably become "belong".# If it's the i860-based one, they should probably become either the# big-endian or little-endian versions, depending on the mode they ran# the 860 in....#0 short 0420 0420 Alliant virtual executable>2 short &0x0020 common library>16 long >0 not stripped0 short 0421 0421 Alliant compact executable>2 short &0x0020 common library>16 long >0 not stripped#------------------------------------------------------------------------------# 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# Basic recognition of Digital UNIX core dumps - Mike Bremford <mike@opac.bl.uk>## The actual magic number is just "Core", followed by a 2-byte version# number; however, treating any file that begins with "Core" as a Digital# UNIX core dump file may produce too many false hits, so we include one# byte of the version number as well; DU 5.0 appears only to be up to# version 2.#0 string Core\001 Alpha COFF format core dump (Digital UNIX)>24 string >\0 \b, from '%s'0 string Core\002 Alpha COFF format core dump (Digital UNIX)>24 string >\0 \b, from '%s'#------------------------------------------------------------------------------# amanda: file(1) magic for amanda file format#0 string AMANDA:\ AMANDA >8 string TAPESTART\ DATE tape header file,>>23 string X>>>25 string >\ Unused %s>>23 string >\ DATE %s>8 string FILE\ dump file,>>13 string >\ DATE %s#------------------------------------------------------------------------------# amigaos: file(1) magic for AmigaOS binary formats:## From ignatios@cs.uni-bonn.de (Ignatios Souvatzis)#0 belong 0x000003fa AmigaOS shared library0 belong 0x000003f3 AmigaOS loadseg()ble executable/binary0 belong 0x000003e7 AmigaOS object/library data#0 beshort 0xe310 Amiga Workbench>2 beshort 1 >>48 byte 1 disk icon>>48 byte 2 drawer icon>>48 byte 3 tool icon>>48 byte 4 project icon>>48 byte 5 garbage icon>>48 byte 6 device icon>>48 byte 7 kickstart icon>>48 byte 8 workbench application icon>2 beshort >1 icon, vers. %d## various sound formats from the Amiga# G=F6tz Waschk <waschk@informatik.uni-rostock.de>#0 string FC14 Future Composer 1.4 Module sound file0 string SMOD Future Composer 1.3 Module sound file0 string AON4artofnoise Art Of Noise Module sound file1 string MUGICIAN/SOFTEYES Mugician Module sound file58 string SIDMON\ II\ -\ THE Sidmon 2.0 Module sound file0 string Synth4.0 Synthesis Module sound file0 string ARP. The Holy Noise Module sound file0 string BeEp\0 JamCracker Module sound file0 string COSO\0 Hippel-COSO Module sound file# Too simple (short, pure ASCII, deep), MPi#26 string V.3 Brian Postma's Soundmon Module sound file v3#26 string BPSM Brian Postma's Soundmon Module sound file v3#26 string V.2 Brian Postma's Soundmon Module sound file v2# The following are from: "Stefan A. Haubenthal" <polluks@web.de>0 beshort 0x0f00 AmigaOS bitmap font0 beshort 0x0f03 AmigaOS outline font0 belong 0x80001001 AmigaOS outline tag0 string ##\ version catalog translation0 string EMOD\0 Amiga E module8 string ECXM\0 ECX module0 string/c @database AmigaGuide file# Amiga disk types# 0 string RDSK Rigid Disk Block>160 string x on %.24s0 string DOS\0 Amiga DOS disk0 string DOS\1 Amiga FFS disk0 string DOS\2 Amiga Inter DOS disk0 string DOS\3 Amiga Inter FFS disk0 string DOS\4 Amiga Fastdir DOS disk0 string DOS\5 Amiga Fastdir FFS disk0 string KICK Kickstart disk# From: Alex Beregszaszi <alex@fsn.hu>0 string LZX LZX compressed archive (Amiga)#------------------------------------------------------------------------------# animation: file(1) magic for animation/movie formats## animation formats# MPEG, FLI, DL originally from vax@ccwf.cc.utexas.edu (VaX#n8)# FLC, SGI, Apple originally from Daniel Quinlan (quinlan@yggdrasil.com)# SGI and Apple formats0 string MOVI Silicon Graphics movie file4 string moov Apple QuickTime>12 string mvhd \b movie (fast start)>12 string mdra \b URL>12 string cmov \b movie (fast start, compressed header)>12 string rmra \b multiple URLs4 string mdat Apple QuickTime movie (unoptimized)4 string wide Apple QuickTime movie (unoptimized)4 string skip Apple QuickTime movie (modified)4 string free Apple QuickTime movie (modified)4 string idsc Apple QuickTime image (fast start)4 string idat Apple QuickTime image (unoptimized)4 string pckg Apple QuickTime compressed archive4 string/B jP JPEG 2000 image4 string ftyp ISO Media>8 string isom \b, MPEG v4 system, version 1>8 string iso2 \b, MPEG v4 system, part 12 revision>8 string mp41 \b, MPEG v4 system, version 1>8 string mp42 \b, MPEG v4 system, version 2>8 string mp7t \b, MPEG v4 system, MPEG v7 XML>8 string mp7b \b, MPEG v4 system, MPEG v7 binary XML>8 string/B jp2 \b, JPEG 2000>8 string 3gp \b, MPEG v4 system, 3GPP>>11 byte 4 \b v4 (H.263/AMR GSM 6.10)>>11 byte 5 \b v5 (H.263/AMR GSM 6.10)>>11 byte 6 \b v6 (ITU H.264/AMR GSM 6.10)>8 string mmp4 \b, MPEG v4 system, 3GPP Mobile>8 string avc1 \b, MPEG v4 system, 3GPP JVT AVC>8 string/B M4A \b, MPEG v4 system, iTunes AAC-LC>8 string/B M4P \b, MPEG v4 system, iTunes AES encrypted>8 string/B M4B \b, MPEG v4 system, iTunes bookmarked>8 string/B qt \b, Apple QuickTime movie# MPEG sequences# Scans for all common MPEG header start codes0 belong 0x00000001 JVT NAL sequence>4 byte&0x1F 0x07 \b, H.264 video>>5 byte 66 \b, baseline>>5 byte 77 \b, main>>5 byte 88 \b, extended>>7 byte x \b @ L %u0 belong&0xFFFFFF00 0x00000100 MPEG sequence>3 byte 0xBA>>4 byte &0x40 \b, v2, program multiplex>>4 byte ^0x40 \b, v1, system multiplex>3 byte 0xBB \b, v1/2, multiplex (missing pack header)>3 byte&0x1F 0x07 \b, H.264 video>>4 byte 66 \b, baseline>>4 byte 77 \b, main>>4 byte 88 \b, extended>>6 byte x \b @ L %u>3 byte 0xB0 \b, v4>>5 belong 0x000001B5>>>9 byte &0x80>>>>10 byte&0xF0 16 \b, video>>>>10 byte&0xF0 32 \b, still texture>>>>10 byte&0xF0 48 \b, mesh>>>>10 byte&0xF0 64 \b, face>>>9 byte&0xF8 8 \b, video>>>9 byte&0xF8 16 \b, still texture>>>9 byte&0xF8 24 \b, mesh>>>9 byte&0xF8 32 \b, face>>4 byte 1 \b, simple @ L1
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?