# @(#)Tools/magic
# Magicdatei fr file.ttp
#
# Dokumentation siehe file(1) und magic(5). Ergaenzungen und/oder
# Korrekturen bitte an jr@ms.maus.de schicken.
#
###############
# Executables #
###############
0	short		0x601a		GEMDOS executable
>28 long		0x70004afc	(MagiC shared lib,
>>36	long	x			version %ld)
>>32	long	0x48		(name 
>>>100	string	>			%s)
>28 long		0x42674e41	(MagiC 5.x shared lib, 
>>36	long	x			version %ld)
>24	byte		&0x08		(shared text)
>25	byte		&0x01		(fload)
>25	byte&6		0x02		(load to alt ram)
>25	byte&6		0x04		(malloc from alt ram)
>25	byte&6		0x06		(load/malloc alt ram)
>25 byte		&0x08		(small TPA)
>25	byte&0xf0	0x00		(private)
>25	byte&0xf0	0x10		(global)
>25	byte&0xf0	0x20		(super)
>25	byte&0xf0	0x30		(readable)
>44	string		ZIP			(ZIP selfextract?)
0	short		0x0064		CPX file
>8	short		x			(version %04x)
0	string		#!/bin/sh	Bourne shell script
0	string		#!mupfel	Mupfel script
0	string		#!			script file
#
# Objektdateien
#
0	long		0x4efa001c	Borland object file
0	long		0x00000107	GNU object file
#################
# Archivdateien #
#################
0	short		0x1f8b		gzip compressed data
>2	byte		<8			\b, reserved method,
>2	byte		8			\b, deflated,
>3	byte		&0x01		ASCII,
>3	byte		&0x02		continuation,
>3	byte		&0x04		extra field,
>3	byte		&0x08		original filename,
>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
0	short		0x5dff		MWC archive file
0	short		0xff65		DR archive file
0	short		070707		cpio archive
0	string		070707		ASCII cpio archive
0	string		Gnu			GNU archive file
0	string		!<arch>		BSD archive file
2	long		0x2d6c6831	LHArc (lh1) archive
2	long		0x2d6c6835	LHArc (lh5) archive
0	short		0x1a08		ARC archive
0	string		PK			ZIP archive
20	long		0xdca7c4fd	Zoo archive
>4	byte		>48			\b, v%c.
>>6	byte		>47			\b%c
>>>7	byte	>47			\b%c
>32	byte		>0			\b, modify: v%d
>>33	byte	x			\b.%d+
>>>71	byte	x			\b.%d+
>42	lelong		0xfdc4a7dc	\b,
>>70	byte	>0			extract: v%d
>>>71	byte	x			\b.%d+
257	string		ustar		TAR file
0   string      LZRF        LZRF archive
>4  short       >0x00ff     (version %04x)
0   string      BDIF        Binary Diff archive
>4  short       >0x00ff     (version %04x)
##################
# gepackte Daten #
##################
0	short		0x1f1f		packed file (old style method)
0	short		0x1f1e		packed file
###############
# Textdateien #
###############
0	short		0x1f30		Wordplus document
0	string		=<MakerFile	FrameMaker document 
0	string		sdoc0001	Signum!2 document
2	string		sdoc		Signum!3 document
13	string		CDK			Calamus document
0	string		From		e-mail
1	string		From		e-mail
0	string		PAP1		Papyrus document
1	string		T_WORD		Tempus Word document
1	string		J_WORD		Tempus Word junior document
0	string		=<HTML		HTML document
0	string		=<html		HTML document
0	string		=<!DOCTYPE\x20HTML	HTML document
0	string		=<!DOCTYPE	SGML document
0	string		\xEF\xBB\xBF	UTF-8 Unicode document
0	short		0xFEFF		UCS-2 Unicode document (Motorola)
0	short		0xFFFE		UCS-2 Unicode document (Intel)
0	long		0x0000FEFF	UCS-4 document (Motorola)
0	long		0xFFFE0000	UCS-4 document (Intel)
###############
# Bilddateien #
###############
0	long		0xffff1800	GEM metafile
0	string		BM			Windows Bitmap (BMP)?
0	string		GIF			GIF picture
>3	string		87a			- version %s
>3	string		89a			- version %s
>6	leshort		>0			%d x
>8	leshort		>0			%d,
>10	byte		&0x40		interlaced,
>10	byte&0x07	=0x00		2 colors
>10	byte&0x07	=0x01		4 colors
>10	byte&0x07	=0x02		8 colors
>10	byte&0x07	=0x03		16 colors
>10	byte&0x07	=0x04		32 colors
>10	byte&0x07	=0x05		64 colors
>10	byte&0x07	=0x06		128 colors
>10	byte&0x07	=0x07		256 colors
6	string		JFIF		JPEG picture
16	string		XIMG		XIMG raster image
>14	short		x			(%d *
>12	short		x			%d)
0	long		0x4d4d002a	TIFF picture (Motorola)
0	long		0x49492a00	TIFF picture (Intel)
0	string		PCD_OPA		Photo CD Overview (?)
2048	string	PCD_IPI		Photo CD Picture (?)
0	string		P1			PBM file
0	string		P2			PGM file
0	string		P3			PPM file
0	string		P4			PBM "rawbits" file
0	string		P5			PGM "rawbits" file
0	string		P6			PPM "rawbits" file
0	string		%!			PostScript document
>2	string		PS-Adobe-	conforming
>11	string		1.0			at level %s
>11	string		2.0			at level %s
0	long		0x59a66a95	sun raster file
0	long		0x00010008	IMG-1-8-Format
>4	short		x			%1d plane
>12	short		x			%4d width
>14	short		x			%4d height
################
# Sounddateien #
################
0	string		.snd	.snd file
>12	long		1		8-bit u-law,
>12	long		2		8-bit linear PCM,
>12	long		3		16-bit linear PCM,
>12	long		4		24-bit linear PCM,
>12	long		5		32-bit linear PCM,
>12	long		6		32-bit floating point,
>12	long		7		64-bit floating point,
>12	long		23		compressed (G.721 ADPCM),
>16	long		x		%ld Hz,
>20	long		x		%ld channels,
0	string		2BIT	AVR sound file
>12	short		0x0		mono,
>12	short		0xffff	stereo,
>14	short		x		%d bit,
>16	short		0x0		unsigned,
>16	short		0xffff	signed,
>24	short		x		%d Hz.
0	string		RIFF		Microsoft RIFF
>8	string		WAVE		\b, WAVE audio data
>>34	leshort		>0		\b, %d bit
>>22	leshort		=1		\b, mono
>>22	leshort		=2		\b, stereo
>>22	leshort		>2		\b, %d channels
>>24	lelong		>0		%ld Hz
0	string		MThd	Standard MIDI File
############
# Diverses #
############
0	string		Help	Borland help file
34	short		f		GEM RSC-File
8	long		f		Bitstream Speedo Font
0	string		PBAS	PureC project data base
0	short		0x2771	MultiTOS AES keyboard table
0	string		xbtoa	btoa'd file
0	string		#HEAD		MausTausch Outfile
2	string		GfABASIC	GfA-BASIC
>1	byte		x			%d
>0	byte		>0			list protected
2	string		GFA-BASIC3	GFA-BASIC
>1	byte		3			3.0
>1	byte		4			3.5
>0	byte		>0			list protected
0	string		FIF_		NVDI vector font info file
0	string		pMaC		papyrus macros
0	string		eset0001	Signum!2 editor font
0	string		ls300001	Signum!2 laser font 300 dpi
0	string		ps240001	Signum!2 24-pin printer font
0	string		HDOC		ST-Guide hypertext
0	string		HREF		ST-Guide reference-file
0	string		@database	ST-Guide hypertext source
