head	1.1;
branch	1.1.1;
access;
symbols
	netbsd-11-0-RC4:1.1.1.8
	netbsd-11-0-RC3:1.1.1.8
	netbsd-11-0-RC2:1.1.1.8
	netbsd-11-0-RC1:1.1.1.8
	perseant-exfatfs-base-20250801:1.1.1.8
	netbsd-11:1.1.1.8.0.6
	netbsd-11-base:1.1.1.8
	netbsd-10-1-RELEASE:1.1.1.8
	perseant-exfatfs-base-20240630:1.1.1.8
	perseant-exfatfs:1.1.1.8.0.4
	perseant-exfatfs-base:1.1.1.8
	netbsd-8-3-RELEASE:1.1.1.6
	netbsd-9-4-RELEASE:1.1.1.6
	netbsd-10-0-RELEASE:1.1.1.8
	netbsd-10-0-RC6:1.1.1.8
	netbsd-10-0-RC5:1.1.1.8
	netbsd-10-0-RC4:1.1.1.8
	netbsd-10-0-RC3:1.1.1.8
	netbsd-10-0-RC2:1.1.1.8
	netbsd-10-0-RC1:1.1.1.8
	FILE5_45:1.1.1.8
	netbsd-10:1.1.1.8.0.2
	netbsd-10-base:1.1.1.8
	FILE5_43:1.1.1.8
	netbsd-9-3-RELEASE:1.1.1.6
	cjep_sun2x-base1:1.1.1.7
	cjep_sun2x:1.1.1.7.0.4
	cjep_sun2x-base:1.1.1.7
	cjep_staticlib_x-base1:1.1.1.7
	netbsd-9-2-RELEASE:1.1.1.6
	cjep_staticlib_x:1.1.1.7.0.2
	cjep_staticlib_x-base:1.1.1.7
	FILE5_40:1.1.1.7
	netbsd-9-1-RELEASE:1.1.1.6
	FILE5_39:1.1.1.6
	phil-wifi-20200421:1.1.1.6
	phil-wifi-20200411:1.1.1.6
	is-mlppp:1.1.1.6.0.16
	is-mlppp-base:1.1.1.6
	phil-wifi-20200406:1.1.1.6
	netbsd-8-2-RELEASE:1.1.1.6
	netbsd-9-0-RELEASE:1.1.1.6
	netbsd-9-0-RC2:1.1.1.6
	FILE5_38:1.1.1.6
	netbsd-9-0-RC1:1.1.1.6
	phil-wifi-20191119:1.1.1.6
	netbsd-9:1.1.1.6.0.14
	netbsd-9-base:1.1.1.6
	phil-wifi-20190609:1.1.1.6
	netbsd-8-1-RELEASE:1.1.1.6
	FILE5_37:1.1.1.6
	netbsd-8-1-RC1:1.1.1.6
	pgoyette-compat-merge-20190127:1.1.1.6
	pgoyette-compat-20190127:1.1.1.6
	pgoyette-compat-20190118:1.1.1.6
	pgoyette-compat-1226:1.1.1.6
	pgoyette-compat-1126:1.1.1.6
	pgoyette-compat-1020:1.1.1.6
	FILE5_35:1.1.1.6
	pgoyette-compat-0930:1.1.1.6
	pgoyette-compat-0906:1.1.1.6
	netbsd-7-2-RELEASE:1.1.1.5
	pgoyette-compat-0728:1.1.1.6
	netbsd-8-0-RELEASE:1.1.1.6
	phil-wifi:1.1.1.6.0.12
	phil-wifi-base:1.1.1.6
	pgoyette-compat-0625:1.1.1.6
	netbsd-8-0-RC2:1.1.1.6
	pgoyette-compat-0521:1.1.1.6
	pgoyette-compat-0502:1.1.1.6
	pgoyette-compat-0422:1.1.1.6
	netbsd-8-0-RC1:1.1.1.6
	FILE5_33:1.1.1.6
	pgoyette-compat-0415:1.1.1.6
	pgoyette-compat-0407:1.1.1.6
	pgoyette-compat-0330:1.1.1.6
	pgoyette-compat-0322:1.1.1.6
	pgoyette-compat-0315:1.1.1.6
	netbsd-7-1-2-RELEASE:1.1.1.5
	pgoyette-compat:1.1.1.6.0.10
	pgoyette-compat-base:1.1.1.6
	netbsd-7-1-1-RELEASE:1.1.1.5
	matt-nb8-mediatek:1.1.1.6.0.8
	matt-nb8-mediatek-base:1.1.1.6
	FILE5_32:1.1.1.6
	perseant-stdc-iso10646:1.1.1.6.0.6
	perseant-stdc-iso10646-base:1.1.1.6
	netbsd-8:1.1.1.6.0.4
	netbsd-8-base:1.1.1.6
	FILE5_31:1.1.1.6
	prg-localcount2-base3:1.1.1.6
	prg-localcount2-base2:1.1.1.6
	prg-localcount2-base1:1.1.1.6
	prg-localcount2:1.1.1.6.0.2
	prg-localcount2-base:1.1.1.6
	pgoyette-localcount-20170426:1.1.1.6
	bouyer-socketcan-base1:1.1.1.6
	pgoyette-localcount-20170320:1.1.1.6
	netbsd-7-1:1.1.1.5.0.12
	netbsd-7-1-RELEASE:1.1.1.5
	netbsd-7-1-RC2:1.1.1.5
	FILE5_30:1.1.1.6
	netbsd-7-nhusb-base-20170116:1.1.1.5
	bouyer-socketcan:1.1.1.5.0.10
	bouyer-socketcan-base:1.1.1.5
	pgoyette-localcount-20170107:1.1.1.5
	netbsd-7-1-RC1:1.1.1.5
	pgoyette-localcount-20161104:1.1.1.5
	netbsd-7-0-2-RELEASE:1.1.1.5
	localcount-20160914:1.1.1.5
	netbsd-7-nhusb:1.1.1.5.0.8
	netbsd-7-nhusb-base:1.1.1.5
	pgoyette-localcount-20160806:1.1.1.5
	pgoyette-localcount-20160726:1.1.1.5
	pgoyette-localcount:1.1.1.5.0.6
	pgoyette-localcount-base:1.1.1.5
	netbsd-7-0-1-RELEASE:1.1.1.5
	netbsd-7-0:1.1.1.5.0.4
	netbsd-7-0-RELEASE:1.1.1.5
	netbsd-7-0-RC3:1.1.1.5
	netbsd-7-0-RC2:1.1.1.5
	netbsd-7-0-RC1:1.1.1.5
	FILE5_22:1.1.1.5
	FILE5_20:1.1.1.5
	netbsd-6-0-6-RELEASE:1.1.1.2
	netbsd-6-1-5-RELEASE:1.1.1.2
	netbsd-7:1.1.1.5.0.2
	netbsd-7-base:1.1.1.5
	FILE5_19:1.1.1.5
	yamt-pagecache-base9:1.1.1.4
	yamt-pagecache-tag8:1.1.1.2.4.1
	netbsd-6-1-4-RELEASE:1.1.1.2
	netbsd-6-0-5-RELEASE:1.1.1.2
	tls-earlyentropy:1.1.1.4.0.8
	tls-earlyentropy-base:1.1.1.5
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.4
	riastradh-drm2-base3:1.1.1.4
	netbsd-6-1-3-RELEASE:1.1.1.2
	netbsd-6-0-4-RELEASE:1.1.1.2
	FILE5_16:1.1.1.4
	netbsd-6-1-2-RELEASE:1.1.1.2
	netbsd-6-0-3-RELEASE:1.1.1.2
	netbsd-6-1-1-RELEASE:1.1.1.2
	riastradh-drm2-base2:1.1.1.4
	riastradh-drm2-base1:1.1.1.4
	riastradh-drm2:1.1.1.4.0.6
	riastradh-drm2-base:1.1.1.4
	netbsd-6-1:1.1.1.2.0.14
	netbsd-6-0-2-RELEASE:1.1.1.2
	netbsd-6-1-RELEASE:1.1.1.2
	khorben-n900:1.1.1.4.0.4
	netbsd-6-1-RC4:1.1.1.2
	netbsd-6-1-RC3:1.1.1.2
	agc-symver:1.1.1.4.0.2
	agc-symver-base:1.1.1.4
	FILE5_14:1.1.1.4
	netbsd-6-1-RC2:1.1.1.2
	netbsd-6-1-RC1:1.1.1.2
	yamt-pagecache-base8:1.1.1.3
	FILE_5_12:1.1.1.3
	netbsd-6-0-1-RELEASE:1.1.1.2
	yamt-pagecache-base7:1.1.1.2
	matt-nb6-plus-nbase:1.1.1.2
	yamt-pagecache-base6:1.1.1.2
	netbsd-6-0:1.1.1.2.0.12
	netbsd-6-0-RELEASE:1.1.1.2
	netbsd-6-0-RC2:1.1.1.2
	tls-maxphys:1.1.1.2.0.10
	tls-maxphys-base:1.1.1.5
	matt-nb6-plus:1.1.1.2.0.8
	matt-nb6-plus-base:1.1.1.2
	netbsd-6-0-RC1:1.1.1.2
	yamt-pagecache-base5:1.1.1.2
	yamt-pagecache-base4:1.1.1.2
	FILE5_11:1.1.1.2
	netbsd-6:1.1.1.2.0.6
	netbsd-6-base:1.1.1.2
	yamt-pagecache-base3:1.1.1.2
	yamt-pagecache-base2:1.1.1.2
	yamt-pagecache:1.1.1.2.0.4
	yamt-pagecache-base:1.1.1.2
	FILE5_09:1.1.1.2
	cherry-xenmp:1.1.1.2.0.2
	cherry-xenmp-base:1.1.1.2
	FILE5_07:1.1.1.2
	bouyer-quota2-nbase:1.1.1.1
	bouyer-quota2:1.1.1.1.0.4
	bouyer-quota2-base:1.1.1.1
	matt-mips64-premerge-20101231:1.1.1.1
	matt-premerge-20091211:1.1.1.1
	jym-xensuspend-base:1.1.1.1
	jym-xensuspend:1.1.1.1.0.2
	jym-xensuspend-nbase:1.1.1.1
	FILE5_03:1.1.1.1
	CHRISTOS:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2009.05.08.16.35.09;	author christos;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2009.05.08.16.35.09;	author christos;	state Exp;
branches
	1.1.1.1.2.1;
next	1.1.1.2;

1.1.1.2
date	2011.05.12.20.47.02;	author christos;	state Exp;
branches
	1.1.1.2.4.1
	1.1.1.2.10.1;
next	1.1.1.3;

1.1.1.3
date	2013.01.03.16.27.54;	author christos;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2013.03.23.15.49.18;	author christos;	state Exp;
branches
	1.1.1.4.8.1;
next	1.1.1.5;

1.1.1.5
date	2014.06.13.01.48.25;	author christos;	state Exp;
branches
	1.1.1.5.6.1
	1.1.1.5.10.1;
next	1.1.1.6;
commitid	jtTYsE5FmJU6MiEx;

1.1.1.6
date	2017.02.10.17.42.58;	author christos;	state Exp;
branches;
next	1.1.1.7;
commitid	HAP3kn9Hn6ovMqFz;

1.1.1.7
date	2021.04.09.18.58.02;	author christos;	state Exp;
branches;
next	1.1.1.8;
commitid	W9ddLLbSkHHinEOC;

1.1.1.8
date	2022.09.24.20.07.54;	author christos;	state Exp;
branches;
next	;
commitid	Nf6F9kcpc0EPC9VD;

1.1.1.1.2.1
date	2009.05.08.16.35.09;	author jym;	state dead;
branches;
next	1.1.1.1.2.2;

1.1.1.1.2.2
date	2009.05.13.18.51.57;	author jym;	state Exp;
branches;
next	;

1.1.1.2.4.1
date	2013.01.23.00.04.35;	author yamt;	state Exp;
branches;
next	1.1.1.2.4.2;

1.1.1.2.4.2
date	2014.05.22.15.44.59;	author yamt;	state Exp;
branches;
next	;
commitid	tYJXbWAuFvTh7yBx;

1.1.1.2.10.1
date	2013.02.25.00.26.06;	author tls;	state Exp;
branches;
next	1.1.1.2.10.2;

1.1.1.2.10.2
date	2013.06.23.06.26.32;	author tls;	state Exp;
branches;
next	1.1.1.2.10.3;
commitid	OnlO1cBgtQRcIHUw;

1.1.1.2.10.3
date	2014.08.19.23.46.47;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.1.1.4.8.1
date	2014.08.10.07.07.10;	author tls;	state Exp;
branches;
next	;
commitid	b1wUlsZGswrdGMLx;

1.1.1.5.6.1
date	2017.03.20.06.52.19;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.1.1.5.10.1
date	2017.04.21.16.51.24;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;


desc
@@


1.1
log
@Initial revision
@
text
@#------------------------------------------------------------
# Mach has two magic numbers, 0xcafebabe and 0xfeedface.
# Unfortunately the first, cafebabe, is shared with
# Java ByteCode, so they are both handled in the file "cafebabe".
# The "feedface" ones are handled herein.
#------------------------------------------------------------
0	lelong&0xfffffffe	0xfeedface	Mach-O
>0	byte		0xcf		64-bit
>12	lelong		1		object
>12	lelong		2		executable
>12	lelong		3		fixed virtual memory shared library
>12	lelong		4		core
>12	lelong		5		preload executable
>12	lelong		6		dynamically linked shared library
>12	lelong		7		dynamic linker
>12	lelong		8		bundle
>12	lelong		9		dynamically linked shared library stub
>12	lelong		>9
>>12	lelong		x		filetype=%ld
>4	lelong		<0
>>4	lelong		x		architecture=%ld
>4	lelong		1		vax
>4	lelong		2		romp
>4	lelong		3		architecture=3
>4	lelong		4		ns32032
>4	lelong		5		ns32332
>4	lelong		6		m68k
>4	lelong		7		i386
>4	lelong		8		mips
>4	lelong		9		ns32532
>4	lelong		10		architecture=10
>4	lelong		11		hppa
>4	lelong		12		acorn
>4	lelong		13		m88k
>4	lelong		14		sparc
>4	lelong		15		i860-big
>4	lelong		16		i860
>4	lelong		17		rs6000
>4	lelong		18		ppc
>4	lelong		16777234	ppc64
>4	lelong		>16777234
>>4	lelong		x		architecture=%ld
#
0	belong&0xfffffffe	0xfeedface	Mach-O
>3	byte		0xcf		64-bit
>12	belong		1		object
>12	belong		2		executable
>12	belong		3		fixed virtual memory shared library
>12	belong		4		core
>12	belong		5		preload executable
>12	belong		6               dynamically linked shared library
>12	belong		7               dynamic linker
>12	belong		8		bundle
>12	belong		9		dynamically linked shared library stub
>12	belong		>9
>>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
# from NeXTstep 3.0 <mach/machine.h>
# i.e. mc680x0_all, ignore
# >>8	belong		1		(mc68030)
>>8	belong		2		(mc68040)
>>8	belong		3		(mc68030 only)
>4	belong		7		i386
>4	belong		8		mips
>4	belong		9		ns32532
>4	belong		10		architecture=10
>4	belong		11		hppa
>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		ppc
>4	belong		16777234	ppc64
>4	belong		>16777234
>>4	belong		x		architecture=%ld
@


1.1.1.1
log
@from ftp.astron.com
@
text
@@


1.1.1.2
log
@from ftp.astron.com.
- many security related fixes
- no MAXPATHLEN limits
- fixed missing text specification on ascii magic
- new ``pascal'' style string formats
- whitespace comparison fix
- more magic
@
text
@a0 1

a1 1
# $File: mach,v 1.9 2009/09/19 16:28:10 christos Exp $
@


1.1.1.2.10.1
log
@resync with head
@
text
@d3 1
a3 1
# $File: mach,v 1.12 2012/11/01 04:26:40 christos Exp $
d9 1
a9 2

0	name		mach-o-bed
d11 48
d61 1
a61 14
>4	belong		1
>>8	belong		0		vax
>>8	belong		1		vax11/780
>>8	belong		2		vax11/785
>>8	belong		3		vax11/750
>>8	belong		4		vax11/730
>>8	belong		5		uvaxI
>>8	belong		6		uvaxII
>>8	belong		7		vax8200
>>8	belong		8		vax8500
>>8	belong		9		vax8600
>>8	belong		10		vax8650
>>8	belong		11		vax8800
>>8	belong		12		uvaxIII
d66 7
a72 21
>4	belong		6		m68k
>4	belong		7
>>8	belong		3		i386
>>8	belong		4		i486
>>8	belong		132		i486sx
>>8	belong		5		i586
>>8	belong		8		pentium_3
>>8	belong		9		pentiumM
>>8	belong		10		pentiumIV
>>8	belong		11		itanium
>>8	belong		12		xeon
>>8	belong		14		pentiumIV_M
>>8	belong		15		itanium2
>>8	belong		21		pentiumpro
>>8	belong		23		pentiumIII
>>8	belong		24		pentium_3_M
>>8	belong		25		pentiumV
>>8	belong		26		xeon_mp
>>8	belong		40		pentium_3_xeon
>>8	belong		113		celeron
>>8	belong		119		celeron_mobile
a73 7
>>8	belong		1		R2300
>>8	belong		2		R2600
>>8	belong		3		R2800
>>8	belong		4		R2000a
>>8	belong		5		R2000
>>8	belong		6		R3000a
>>8	belong		7		R3000
d75 1
a75 1
>4	belong		10		mc98000
d77 2
a78 15
>>8	belong		0		7100
>>8	belong		1		7100LC
>4	belong		12
>>8	belong		0		arm
>>8	belong		1		arm_v4t
>>8	belong		2		arm_v6
>>8	belong		3		arm_v5tej
>>8	belong		4		arm_xscale
>>8	belong		5		arm_v7
>>8	belong		6		arm_v7f
>>8	belong		7		arm_v7k
>4	belong		13
>>8	belong		0		mc88000
>>8	belong		1		mc88100
>>8	belong		2		mc88110
d80 2
a81 2
>4	belong		15		i860g
>4	belong		16		alpha
d83 2
a84 31
>4	belong		18
>>8	belong		0		ppc
>>8	belong		1		ppc_601
>>8	belong		2		ppc_602
>>8	belong		3		ppc_603
>>8	belong		4		ppc_603e
>>8	belong		5		ppc_603ev
>>8	belong		6		ppc_604
>>8	belong		7		ppc_604e
>>8	belong		8		ppc_620
>>8	belong		9		ppc_650
>>8	belong		10		ppc_7400
>>8	belong		11		ppc_7450
>>8	belong		100		ppc_970
>4	belong		16777223
>>8	belong		3		x86_64
>>8	belong		4		x86_64_arch1
>4	belong		16777234
>>8	belong		0		ppc64
>>8	belong		1		ppc64_601
>>8	belong		2		ppc64_602
>>8	belong		3		ppc64_603
>>8	belong		4		ppc64_603e
>>8	belong		5		ppc64_603ev
>>8	belong		6		ppc64_604
>>8	belong		7		ppc64_604e
>>8	belong		8		ppc64_620
>>8	belong		9		ppc64_650
>>8	belong		10		ppc64_7400
>>8	belong		11		ppc64_7450
>>8	belong		100		ppc64_970
a86 18
>12	belong		1		object
>12	belong		2		executable
>12	belong		3		fixed virtual memory shared library
>12	belong		4		core
>12	belong		5		preload executable
>12	belong		6		dynamically linked shared library
>12	belong		7		dynamic linker
>12	belong		8		bundle
>12	belong		9		dynamically linked shared library stub
>12	belong		>9
>>12	belong		x		filetype=%ld

#
0	lelong&0xfffffffe	0xfeedface	Mach-O 
>0	use	\^mach-o-be

0	belong&0xfffffffe	0xfeedface	Mach-O 
>0	use	mach-o-be
@


1.1.1.2.10.2
log
@resync from head
@
text
@d3 1
a3 1
# $File: mach,v 1.17 2013/03/07 02:22:52 christos Exp $
a8 4
# if set, it's for the 64-bit version of the architecture
# yes, this is separate from the low-order magic number bit
# it's also separate from the "64-bit libraries" bit in the
# upper 8 bits of the CPU subtype
d10 1
a10 177
0	name	mach-o-cpu
>0	belong&0x01000000	0
#
# 32-bit ABIs.
#
#				1	vax
>>0	belong&0x00ffffff	1
>>>4		belong&0x00ffffff	0	vax
>>>4		belong&0x00ffffff	1	vax11/780
>>>4		belong&0x00ffffff	2	vax11/785
>>>4		belong&0x00ffffff	3	vax11/750
>>>4		belong&0x00ffffff	4	vax11/730
>>>4		belong&0x00ffffff	5	uvaxI
>>>4		belong&0x00ffffff	6	uvaxII
>>>4		belong&0x00ffffff	7	vax8200
>>>4		belong&0x00ffffff	8	vax8500
>>>4		belong&0x00ffffff	9	vax8600
>>>4		belong&0x00ffffff	10	vax8650
>>>4		belong&0x00ffffff	11	vax8800
>>>4		belong&0x00ffffff	12	uvaxIII
>>>4		belong&0x00ffffff	>12	vax subarchitecture=%ld
>>0	belong&0x00ffffff	2	romp
>>0	belong&0x00ffffff	3	architecture=3
>>0	belong&0x00ffffff	4	ns32032
>>0	belong&0x00ffffff	5	ns32332
>>0	belong&0x00ffffff	6	m68k
#				7	x86
>>0	belong&0x00ffffff	7
>>>4	belong&0x0000000f	3		i386
>>>4	belong&0x0000000f	4		i486
>>>>4	belong&0x00fffff0	0
>>>>4	belong&0x00fffff0	0x80		\bsx
>>>4	belong&0x0000000f	5		i586
>>>4	belong&0x0000000f	6
>>>>4	belong&0x00fffff0	0		p6
>>>>4	belong&0x00fffff0	0x10		pentium_pro
>>>>4	belong&0x00fffff0	0x20		pentium_2_m0x20
>>>>4	belong&0x00fffff0	0x30		pentium_2_m3
>>>>4	belong&0x00fffff0	0x40		pentium_2_m0x40
>>>>4	belong&0x00fffff0	0x50		pentium_2_m5
>>>>4	belong&0x00fffff0	>0x50		pentium_2_m0x%lx
>>>4	belong&0x0000000f	7		celeron
>>>>4	belong&0x00fffff0	0x00		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x10		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x20		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x30		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x40		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x50		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x60
>>>>4	belong&0x00fffff0	0x70		\b_mobile
>>>>4	belong&0x00fffff0	>0x70		\b_m0x%lx
>>>4	belong&0x0000000f	8		pentium_3
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	0x10		\b_m
>>>>4	belong&0x00fffff0	0x20		\b_xeon
>>>>4	belong&0x00fffff0	>0x20		\b_m0x%lx
>>>4	belong&0x0000000f	9		pentiumM
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	>0x00		\b_m0x%lx
>>>4	belong&0x0000000f	10		pentium_4
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	0x10		\b_m
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%lx
>>>4	belong&0x0000000f	11		itanium
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	0x10		\b_2
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%lx
>>>4	belong&0x0000000f	12		xeon
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	0x10		\b_mp
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%lx
>>>4	belong&0x0000000f	>12		ia32 family=%ld
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	>0x00		model=%lx
>>0	belong&0x00ffffff	8	mips
>>>4		belong&0x00ffffff	1	R2300
>>>4		belong&0x00ffffff	2	R2600
>>>4		belong&0x00ffffff	3	R2800
>>>4		belong&0x00ffffff	4	R2000a
>>>4		belong&0x00ffffff	5	R2000
>>>4		belong&0x00ffffff	6	R3000a
>>>4		belong&0x00ffffff	7	R3000
>>>4		belong&0x00ffffff	>7	subarchitecture=%ld
>>0	belong&0x00ffffff	9	ns32532
>>0	belong&0x00ffffff	10	mc98000
>>0	belong&0x00ffffff	11	hppa
>>>4		belong&0x00ffffff	0	7100
>>>4		belong&0x00ffffff	1	7100LC
>>>4		belong&0x00ffffff	>1	subarchitecture=%ld
>>0	belong&0x00ffffff	12	arm
>>>4		belong&0x00ffffff	0
>>>4		belong&0x00ffffff	1	subarchitecture=%ld
>>>4		belong&0x00ffffff	2	subarchitecture=%ld
>>>4		belong&0x00ffffff	3	subarchitecture=%ld
>>>4		belong&0x00ffffff	4	subarchitecture=%ld
>>>4		belong&0x00ffffff	5	\b_v4t
>>>4		belong&0x00ffffff	6	\b_v6
>>>4		belong&0x00ffffff	7	\b_v5tej
>>>4		belong&0x00ffffff	8	\b_xscale
>>>4		belong&0x00ffffff	9	\b_v7
>>>4		belong&0x00ffffff	10	\b_v7f
>>>4		belong&0x00ffffff	11	subarchitecture=%ld
>>>4		belong&0x00ffffff	12	\b_v7k
>>>4		belong&0x00ffffff	>12	subarchitecture=%ld
#				13	m88k
>>0	belong&0x00ffffff	13
>>>4		belong&0x00ffffff	0	mc88000
>>>4		belong&0x00ffffff	1	mc88100
>>>4		belong&0x00ffffff	2	mc88110
>>>4		belong&0x00ffffff	>2	mc88000 subarchitecture=%ld
>>0	belong&0x00ffffff	14	sparc
>>0	belong&0x00ffffff	15	i860g
>>0	belong&0x00ffffff	16	alpha
>>0	belong&0x00ffffff	17	rs6000
>>0	belong&0x00ffffff	18	ppc
>>>4		belong&0x00ffffff	0
>>>4		belong&0x00ffffff	1	\b_601
>>>4		belong&0x00ffffff	2	\b_602
>>>4		belong&0x00ffffff	3	\b_603
>>>4		belong&0x00ffffff	4	\b_603e
>>>4		belong&0x00ffffff	5	\b_603ev
>>>4		belong&0x00ffffff	6	\b_604
>>>4		belong&0x00ffffff	7	\b_604e
>>>4		belong&0x00ffffff	8	\b_620
>>>4		belong&0x00ffffff	9	\b_650
>>>4		belong&0x00ffffff	10	\b_7400
>>>4		belong&0x00ffffff	11	\b_7450
>>>4		belong&0x00ffffff	100	\b_970
>>>4		belong&0x00ffffff	>100	subarchitecture=%ld
>>0	belong&0x00ffffff	>18	architecture=%ld
>0	belong&0x01000000	0x01000000
#
# 64-bit ABIs.
#
>>0	belong&0x00ffffff	0	64-bit architecture=%ld
>>0	belong&0x00ffffff	1	64-bit architecture=%ld
>>0	belong&0x00ffffff	2	64-bit architecture=%ld
>>0	belong&0x00ffffff	3	64-bit architecture=%ld
>>0	belong&0x00ffffff	4	64-bit architecture=%ld
>>0	belong&0x00ffffff	5	64-bit architecture=%ld
>>0	belong&0x00ffffff	6	64-bit architecture=%ld
>>0	belong&0x00ffffff	7	x86_64
>>>4		belong&0x00ffffff	0	subarchitecture=%ld
>>>4		belong&0x00ffffff	1	subarchitecture=%ld
>>>4		belong&0x00ffffff	2	subarchitecture=%ld
>>>4		belong&0x00ffffff	3
>>>4		belong&0x00ffffff	4	\b_arch1
>>>4		belong&0x00ffffff	>4	subarchitecture=%ld
>>0	belong&0x00ffffff	8	64-bit architecture=%ld
>>0	belong&0x00ffffff	9	64-bit architecture=%ld
>>0	belong&0x00ffffff	10	64-bit architecture=%ld
>>0	belong&0x00ffffff	11	64-bit architecture=%ld
>>0	belong&0x00ffffff	12	64-bit architecture=%ld
>>0	belong&0x00ffffff	13	64-bit architecture=%ld
>>0	belong&0x00ffffff	14	64-bit architecture=%ld
>>0	belong&0x00ffffff	15	64-bit architecture=%ld
>>0	belong&0x00ffffff	16	64-bit architecture=%ld
>>0	belong&0x00ffffff	17	64-bit architecture=%ld
>>0	belong&0x00ffffff	18	ppc64
>>>4		belong&0x00ffffff	0
>>>4		belong&0x00ffffff	1		\b_601
>>>4		belong&0x00ffffff	2		\b_602
>>>4		belong&0x00ffffff	3		\b_603
>>>4		belong&0x00ffffff	4		\b_603e
>>>4		belong&0x00ffffff	5		\b_603ev
>>>4		belong&0x00ffffff	6		\b_604
>>>4		belong&0x00ffffff	7		\b_604e
>>>4		belong&0x00ffffff	8		\b_620
>>>4		belong&0x00ffffff	9		\b_650
>>>4		belong&0x00ffffff	10		\b_7400
>>>4		belong&0x00ffffff	11		\b_7450
>>>4		belong&0x00ffffff	100		\b_970
>>>4		belong&0x00ffffff	>100		subarchitecture=%ld
>>0	belong&0x00ffffff	>18	64-bit architecture=%ld


0	name		mach-o-be
d12 104
a115 1
>4	use		mach-o-cpu
d125 1
a125 3
>12	belong		10		dSYM companion file
>12	belong		11		kext bundle
>12	belong		>11
d129 1
a129 2
0	lelong&0xfffffffe	0xfeedface	Mach-O
!:strength +1
d132 1
a132 2
0	belong&0xfffffffe	0xfeedface	Mach-O
!:strength +1
@


1.1.1.2.10.3
log
@Rebase to HEAD as of a few days ago.
@
text
@d3 1
a3 1
# $File: mach,v 1.19 2014/04/30 21:41:02 christos Exp $
d34 1
a34 1
>>>4		belong&0x00ffffff	>12	vax subarchitecture=%d
d54 1
a54 1
>>>>4	belong&0x00fffff0	>0x50		pentium_2_m0x%x
d56 6
a61 6
>>>>4	belong&0x00fffff0	0x00		\b_m0x%x
>>>>4	belong&0x00fffff0	0x10		\b_m0x%x
>>>>4	belong&0x00fffff0	0x20		\b_m0x%x
>>>>4	belong&0x00fffff0	0x30		\b_m0x%x
>>>>4	belong&0x00fffff0	0x40		\b_m0x%x
>>>>4	belong&0x00fffff0	0x50		\b_m0x%x
d64 1
a64 1
>>>>4	belong&0x00fffff0	>0x70		\b_m0x%x
d69 1
a69 1
>>>>4	belong&0x00fffff0	>0x20		\b_m0x%x
d72 1
a72 1
>>>>4	belong&0x00fffff0	>0x00		\b_m0x%x
d76 1
a76 1
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%x
d80 1
a80 1
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%x
d84 2
a85 2
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%x
>>>4	belong&0x0000000f	>12		ia32 family=%d
d87 1
a87 1
>>>>4	belong&0x00fffff0	>0x00		model=%x
d96 1
a96 1
>>>4		belong&0x00ffffff	>7	subarchitecture=%d
d102 1
a102 1
>>>4		belong&0x00ffffff	>1	subarchitecture=%d
d105 4
a108 4
>>>4		belong&0x00ffffff	1	subarchitecture=%d
>>>4		belong&0x00ffffff	2	subarchitecture=%d
>>>4		belong&0x00ffffff	3	subarchitecture=%d
>>>4		belong&0x00ffffff	4	subarchitecture=%d
d115 1
a115 1
>>>4		belong&0x00ffffff	11	subarchitecture=%d
d117 1
a117 1
>>>4		belong&0x00ffffff	>12	subarchitecture=%d
d123 2
a124 2
>>>4		belong&0x00ffffff	>2	mc88000 subarchitecture=%d
>>0	belong&0x00ffffff	14	SPARC
d142 2
a143 2
>>>4		belong&0x00ffffff	>100	subarchitecture=%d
>>0	belong&0x00ffffff	>18	architecture=%d
d148 7
a154 7
>>0	belong&0x00ffffff	0	64-bit architecture=%d
>>0	belong&0x00ffffff	1	64-bit architecture=%d
>>0	belong&0x00ffffff	2	64-bit architecture=%d
>>0	belong&0x00ffffff	3	64-bit architecture=%d
>>0	belong&0x00ffffff	4	64-bit architecture=%d
>>0	belong&0x00ffffff	5	64-bit architecture=%d
>>0	belong&0x00ffffff	6	64-bit architecture=%d
d156 3
a158 3
>>>4		belong&0x00ffffff	0	subarchitecture=%d
>>>4		belong&0x00ffffff	1	subarchitecture=%d
>>>4		belong&0x00ffffff	2	subarchitecture=%d
d161 11
a171 11
>>>4		belong&0x00ffffff	>4	subarchitecture=%d
>>0	belong&0x00ffffff	8	64-bit architecture=%d
>>0	belong&0x00ffffff	9	64-bit architecture=%d
>>0	belong&0x00ffffff	10	64-bit architecture=%d
>>0	belong&0x00ffffff	11	64-bit architecture=%d
>>0	belong&0x00ffffff	12	64-bit architecture=%d
>>0	belong&0x00ffffff	13	64-bit architecture=%d
>>0	belong&0x00ffffff	14	64-bit architecture=%d
>>0	belong&0x00ffffff	15	64-bit architecture=%d
>>0	belong&0x00ffffff	16	64-bit architecture=%d
>>0	belong&0x00ffffff	17	64-bit architecture=%d
d186 2
a187 2
>>>4		belong&0x00ffffff	>100		subarchitecture=%d
>>0	belong&0x00ffffff	>18	64-bit architecture=%d
d205 1
a205 1
>>12	belong		x		filetype=%d
@


1.1.1.2.4.1
log
@sync with head
@
text
@d3 1
a3 1
# $File: mach,v 1.12 2012/11/01 04:26:40 christos Exp $
d9 1
a9 2

0	name		mach-o-bed
d11 48
d61 1
a61 14
>4	belong		1
>>8	belong		0		vax
>>8	belong		1		vax11/780
>>8	belong		2		vax11/785
>>8	belong		3		vax11/750
>>8	belong		4		vax11/730
>>8	belong		5		uvaxI
>>8	belong		6		uvaxII
>>8	belong		7		vax8200
>>8	belong		8		vax8500
>>8	belong		9		vax8600
>>8	belong		10		vax8650
>>8	belong		11		vax8800
>>8	belong		12		uvaxIII
d66 7
a72 21
>4	belong		6		m68k
>4	belong		7
>>8	belong		3		i386
>>8	belong		4		i486
>>8	belong		132		i486sx
>>8	belong		5		i586
>>8	belong		8		pentium_3
>>8	belong		9		pentiumM
>>8	belong		10		pentiumIV
>>8	belong		11		itanium
>>8	belong		12		xeon
>>8	belong		14		pentiumIV_M
>>8	belong		15		itanium2
>>8	belong		21		pentiumpro
>>8	belong		23		pentiumIII
>>8	belong		24		pentium_3_M
>>8	belong		25		pentiumV
>>8	belong		26		xeon_mp
>>8	belong		40		pentium_3_xeon
>>8	belong		113		celeron
>>8	belong		119		celeron_mobile
a73 7
>>8	belong		1		R2300
>>8	belong		2		R2600
>>8	belong		3		R2800
>>8	belong		4		R2000a
>>8	belong		5		R2000
>>8	belong		6		R3000a
>>8	belong		7		R3000
d75 1
a75 1
>4	belong		10		mc98000
d77 2
a78 15
>>8	belong		0		7100
>>8	belong		1		7100LC
>4	belong		12
>>8	belong		0		arm
>>8	belong		1		arm_v4t
>>8	belong		2		arm_v6
>>8	belong		3		arm_v5tej
>>8	belong		4		arm_xscale
>>8	belong		5		arm_v7
>>8	belong		6		arm_v7f
>>8	belong		7		arm_v7k
>4	belong		13
>>8	belong		0		mc88000
>>8	belong		1		mc88100
>>8	belong		2		mc88110
d80 2
a81 2
>4	belong		15		i860g
>4	belong		16		alpha
d83 2
a84 31
>4	belong		18
>>8	belong		0		ppc
>>8	belong		1		ppc_601
>>8	belong		2		ppc_602
>>8	belong		3		ppc_603
>>8	belong		4		ppc_603e
>>8	belong		5		ppc_603ev
>>8	belong		6		ppc_604
>>8	belong		7		ppc_604e
>>8	belong		8		ppc_620
>>8	belong		9		ppc_650
>>8	belong		10		ppc_7400
>>8	belong		11		ppc_7450
>>8	belong		100		ppc_970
>4	belong		16777223
>>8	belong		3		x86_64
>>8	belong		4		x86_64_arch1
>4	belong		16777234
>>8	belong		0		ppc64
>>8	belong		1		ppc64_601
>>8	belong		2		ppc64_602
>>8	belong		3		ppc64_603
>>8	belong		4		ppc64_603e
>>8	belong		5		ppc64_603ev
>>8	belong		6		ppc64_604
>>8	belong		7		ppc64_604e
>>8	belong		8		ppc64_620
>>8	belong		9		ppc64_650
>>8	belong		10		ppc64_7400
>>8	belong		11		ppc64_7450
>>8	belong		100		ppc64_970
a86 18
>12	belong		1		object
>12	belong		2		executable
>12	belong		3		fixed virtual memory shared library
>12	belong		4		core
>12	belong		5		preload executable
>12	belong		6		dynamically linked shared library
>12	belong		7		dynamic linker
>12	belong		8		bundle
>12	belong		9		dynamically linked shared library stub
>12	belong		>9
>>12	belong		x		filetype=%ld

#
0	lelong&0xfffffffe	0xfeedface	Mach-O 
>0	use	\^mach-o-be

0	belong&0xfffffffe	0xfeedface	Mach-O 
>0	use	mach-o-be
@


1.1.1.2.4.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d3 1
a3 1
# $File: mach,v 1.17 2013/03/07 02:22:52 christos Exp $
a8 4
# if set, it's for the 64-bit version of the architecture
# yes, this is separate from the low-order magic number bit
# it's also separate from the "64-bit libraries" bit in the
# upper 8 bits of the CPU subtype
d10 1
a10 177
0	name	mach-o-cpu
>0	belong&0x01000000	0
#
# 32-bit ABIs.
#
#				1	vax
>>0	belong&0x00ffffff	1
>>>4		belong&0x00ffffff	0	vax
>>>4		belong&0x00ffffff	1	vax11/780
>>>4		belong&0x00ffffff	2	vax11/785
>>>4		belong&0x00ffffff	3	vax11/750
>>>4		belong&0x00ffffff	4	vax11/730
>>>4		belong&0x00ffffff	5	uvaxI
>>>4		belong&0x00ffffff	6	uvaxII
>>>4		belong&0x00ffffff	7	vax8200
>>>4		belong&0x00ffffff	8	vax8500
>>>4		belong&0x00ffffff	9	vax8600
>>>4		belong&0x00ffffff	10	vax8650
>>>4		belong&0x00ffffff	11	vax8800
>>>4		belong&0x00ffffff	12	uvaxIII
>>>4		belong&0x00ffffff	>12	vax subarchitecture=%ld
>>0	belong&0x00ffffff	2	romp
>>0	belong&0x00ffffff	3	architecture=3
>>0	belong&0x00ffffff	4	ns32032
>>0	belong&0x00ffffff	5	ns32332
>>0	belong&0x00ffffff	6	m68k
#				7	x86
>>0	belong&0x00ffffff	7
>>>4	belong&0x0000000f	3		i386
>>>4	belong&0x0000000f	4		i486
>>>>4	belong&0x00fffff0	0
>>>>4	belong&0x00fffff0	0x80		\bsx
>>>4	belong&0x0000000f	5		i586
>>>4	belong&0x0000000f	6
>>>>4	belong&0x00fffff0	0		p6
>>>>4	belong&0x00fffff0	0x10		pentium_pro
>>>>4	belong&0x00fffff0	0x20		pentium_2_m0x20
>>>>4	belong&0x00fffff0	0x30		pentium_2_m3
>>>>4	belong&0x00fffff0	0x40		pentium_2_m0x40
>>>>4	belong&0x00fffff0	0x50		pentium_2_m5
>>>>4	belong&0x00fffff0	>0x50		pentium_2_m0x%lx
>>>4	belong&0x0000000f	7		celeron
>>>>4	belong&0x00fffff0	0x00		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x10		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x20		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x30		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x40		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x50		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x60
>>>>4	belong&0x00fffff0	0x70		\b_mobile
>>>>4	belong&0x00fffff0	>0x70		\b_m0x%lx
>>>4	belong&0x0000000f	8		pentium_3
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	0x10		\b_m
>>>>4	belong&0x00fffff0	0x20		\b_xeon
>>>>4	belong&0x00fffff0	>0x20		\b_m0x%lx
>>>4	belong&0x0000000f	9		pentiumM
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	>0x00		\b_m0x%lx
>>>4	belong&0x0000000f	10		pentium_4
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	0x10		\b_m
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%lx
>>>4	belong&0x0000000f	11		itanium
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	0x10		\b_2
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%lx
>>>4	belong&0x0000000f	12		xeon
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	0x10		\b_mp
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%lx
>>>4	belong&0x0000000f	>12		ia32 family=%ld
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	>0x00		model=%lx
>>0	belong&0x00ffffff	8	mips
>>>4		belong&0x00ffffff	1	R2300
>>>4		belong&0x00ffffff	2	R2600
>>>4		belong&0x00ffffff	3	R2800
>>>4		belong&0x00ffffff	4	R2000a
>>>4		belong&0x00ffffff	5	R2000
>>>4		belong&0x00ffffff	6	R3000a
>>>4		belong&0x00ffffff	7	R3000
>>>4		belong&0x00ffffff	>7	subarchitecture=%ld
>>0	belong&0x00ffffff	9	ns32532
>>0	belong&0x00ffffff	10	mc98000
>>0	belong&0x00ffffff	11	hppa
>>>4		belong&0x00ffffff	0	7100
>>>4		belong&0x00ffffff	1	7100LC
>>>4		belong&0x00ffffff	>1	subarchitecture=%ld
>>0	belong&0x00ffffff	12	arm
>>>4		belong&0x00ffffff	0
>>>4		belong&0x00ffffff	1	subarchitecture=%ld
>>>4		belong&0x00ffffff	2	subarchitecture=%ld
>>>4		belong&0x00ffffff	3	subarchitecture=%ld
>>>4		belong&0x00ffffff	4	subarchitecture=%ld
>>>4		belong&0x00ffffff	5	\b_v4t
>>>4		belong&0x00ffffff	6	\b_v6
>>>4		belong&0x00ffffff	7	\b_v5tej
>>>4		belong&0x00ffffff	8	\b_xscale
>>>4		belong&0x00ffffff	9	\b_v7
>>>4		belong&0x00ffffff	10	\b_v7f
>>>4		belong&0x00ffffff	11	subarchitecture=%ld
>>>4		belong&0x00ffffff	12	\b_v7k
>>>4		belong&0x00ffffff	>12	subarchitecture=%ld
#				13	m88k
>>0	belong&0x00ffffff	13
>>>4		belong&0x00ffffff	0	mc88000
>>>4		belong&0x00ffffff	1	mc88100
>>>4		belong&0x00ffffff	2	mc88110
>>>4		belong&0x00ffffff	>2	mc88000 subarchitecture=%ld
>>0	belong&0x00ffffff	14	sparc
>>0	belong&0x00ffffff	15	i860g
>>0	belong&0x00ffffff	16	alpha
>>0	belong&0x00ffffff	17	rs6000
>>0	belong&0x00ffffff	18	ppc
>>>4		belong&0x00ffffff	0
>>>4		belong&0x00ffffff	1	\b_601
>>>4		belong&0x00ffffff	2	\b_602
>>>4		belong&0x00ffffff	3	\b_603
>>>4		belong&0x00ffffff	4	\b_603e
>>>4		belong&0x00ffffff	5	\b_603ev
>>>4		belong&0x00ffffff	6	\b_604
>>>4		belong&0x00ffffff	7	\b_604e
>>>4		belong&0x00ffffff	8	\b_620
>>>4		belong&0x00ffffff	9	\b_650
>>>4		belong&0x00ffffff	10	\b_7400
>>>4		belong&0x00ffffff	11	\b_7450
>>>4		belong&0x00ffffff	100	\b_970
>>>4		belong&0x00ffffff	>100	subarchitecture=%ld
>>0	belong&0x00ffffff	>18	architecture=%ld
>0	belong&0x01000000	0x01000000
#
# 64-bit ABIs.
#
>>0	belong&0x00ffffff	0	64-bit architecture=%ld
>>0	belong&0x00ffffff	1	64-bit architecture=%ld
>>0	belong&0x00ffffff	2	64-bit architecture=%ld
>>0	belong&0x00ffffff	3	64-bit architecture=%ld
>>0	belong&0x00ffffff	4	64-bit architecture=%ld
>>0	belong&0x00ffffff	5	64-bit architecture=%ld
>>0	belong&0x00ffffff	6	64-bit architecture=%ld
>>0	belong&0x00ffffff	7	x86_64
>>>4		belong&0x00ffffff	0	subarchitecture=%ld
>>>4		belong&0x00ffffff	1	subarchitecture=%ld
>>>4		belong&0x00ffffff	2	subarchitecture=%ld
>>>4		belong&0x00ffffff	3
>>>4		belong&0x00ffffff	4	\b_arch1
>>>4		belong&0x00ffffff	>4	subarchitecture=%ld
>>0	belong&0x00ffffff	8	64-bit architecture=%ld
>>0	belong&0x00ffffff	9	64-bit architecture=%ld
>>0	belong&0x00ffffff	10	64-bit architecture=%ld
>>0	belong&0x00ffffff	11	64-bit architecture=%ld
>>0	belong&0x00ffffff	12	64-bit architecture=%ld
>>0	belong&0x00ffffff	13	64-bit architecture=%ld
>>0	belong&0x00ffffff	14	64-bit architecture=%ld
>>0	belong&0x00ffffff	15	64-bit architecture=%ld
>>0	belong&0x00ffffff	16	64-bit architecture=%ld
>>0	belong&0x00ffffff	17	64-bit architecture=%ld
>>0	belong&0x00ffffff	18	ppc64
>>>4		belong&0x00ffffff	0
>>>4		belong&0x00ffffff	1		\b_601
>>>4		belong&0x00ffffff	2		\b_602
>>>4		belong&0x00ffffff	3		\b_603
>>>4		belong&0x00ffffff	4		\b_603e
>>>4		belong&0x00ffffff	5		\b_603ev
>>>4		belong&0x00ffffff	6		\b_604
>>>4		belong&0x00ffffff	7		\b_604e
>>>4		belong&0x00ffffff	8		\b_620
>>>4		belong&0x00ffffff	9		\b_650
>>>4		belong&0x00ffffff	10		\b_7400
>>>4		belong&0x00ffffff	11		\b_7450
>>>4		belong&0x00ffffff	100		\b_970
>>>4		belong&0x00ffffff	>100		subarchitecture=%ld
>>0	belong&0x00ffffff	>18	64-bit architecture=%ld


0	name		mach-o-be
d12 104
a115 1
>4	use		mach-o-cpu
d125 1
a125 3
>12	belong		10		dSYM companion file
>12	belong		11		kext bundle
>12	belong		>11
d129 1
a129 2
0	lelong&0xfffffffe	0xfeedface	Mach-O
!:strength +1
d132 1
a132 2
0	belong&0xfffffffe	0xfeedface	Mach-O
!:strength +1
@


1.1.1.3
log
@from ftp.astron.com
@
text
@d3 1
a3 1
# $File: mach,v 1.12 2012/11/01 04:26:40 christos Exp $
d9 1
a9 2

0	name		mach-o-bed
d11 48
d61 1
a61 14
>4	belong		1
>>8	belong		0		vax
>>8	belong		1		vax11/780
>>8	belong		2		vax11/785
>>8	belong		3		vax11/750
>>8	belong		4		vax11/730
>>8	belong		5		uvaxI
>>8	belong		6		uvaxII
>>8	belong		7		vax8200
>>8	belong		8		vax8500
>>8	belong		9		vax8600
>>8	belong		10		vax8650
>>8	belong		11		vax8800
>>8	belong		12		uvaxIII
d66 7
a72 21
>4	belong		6		m68k
>4	belong		7
>>8	belong		3		i386
>>8	belong		4		i486
>>8	belong		132		i486sx
>>8	belong		5		i586
>>8	belong		8		pentium_3
>>8	belong		9		pentiumM
>>8	belong		10		pentiumIV
>>8	belong		11		itanium
>>8	belong		12		xeon
>>8	belong		14		pentiumIV_M
>>8	belong		15		itanium2
>>8	belong		21		pentiumpro
>>8	belong		23		pentiumIII
>>8	belong		24		pentium_3_M
>>8	belong		25		pentiumV
>>8	belong		26		xeon_mp
>>8	belong		40		pentium_3_xeon
>>8	belong		113		celeron
>>8	belong		119		celeron_mobile
a73 7
>>8	belong		1		R2300
>>8	belong		2		R2600
>>8	belong		3		R2800
>>8	belong		4		R2000a
>>8	belong		5		R2000
>>8	belong		6		R3000a
>>8	belong		7		R3000
d75 1
a75 1
>4	belong		10		mc98000
d77 2
a78 15
>>8	belong		0		7100
>>8	belong		1		7100LC
>4	belong		12
>>8	belong		0		arm
>>8	belong		1		arm_v4t
>>8	belong		2		arm_v6
>>8	belong		3		arm_v5tej
>>8	belong		4		arm_xscale
>>8	belong		5		arm_v7
>>8	belong		6		arm_v7f
>>8	belong		7		arm_v7k
>4	belong		13
>>8	belong		0		mc88000
>>8	belong		1		mc88100
>>8	belong		2		mc88110
d80 2
a81 2
>4	belong		15		i860g
>4	belong		16		alpha
d83 2
a84 31
>4	belong		18
>>8	belong		0		ppc
>>8	belong		1		ppc_601
>>8	belong		2		ppc_602
>>8	belong		3		ppc_603
>>8	belong		4		ppc_603e
>>8	belong		5		ppc_603ev
>>8	belong		6		ppc_604
>>8	belong		7		ppc_604e
>>8	belong		8		ppc_620
>>8	belong		9		ppc_650
>>8	belong		10		ppc_7400
>>8	belong		11		ppc_7450
>>8	belong		100		ppc_970
>4	belong		16777223
>>8	belong		3		x86_64
>>8	belong		4		x86_64_arch1
>4	belong		16777234
>>8	belong		0		ppc64
>>8	belong		1		ppc64_601
>>8	belong		2		ppc64_602
>>8	belong		3		ppc64_603
>>8	belong		4		ppc64_603e
>>8	belong		5		ppc64_603ev
>>8	belong		6		ppc64_604
>>8	belong		7		ppc64_604e
>>8	belong		8		ppc64_620
>>8	belong		9		ppc64_650
>>8	belong		10		ppc64_7400
>>8	belong		11		ppc64_7450
>>8	belong		100		ppc64_970
a86 18
>12	belong		1		object
>12	belong		2		executable
>12	belong		3		fixed virtual memory shared library
>12	belong		4		core
>12	belong		5		preload executable
>12	belong		6		dynamically linked shared library
>12	belong		7		dynamic linker
>12	belong		8		bundle
>12	belong		9		dynamically linked shared library stub
>12	belong		>9
>>12	belong		x		filetype=%ld

#
0	lelong&0xfffffffe	0xfeedface	Mach-O 
>0	use	\^mach-o-be

0	belong&0xfffffffe	0xfeedface	Mach-O 
>0	use	mach-o-be
@


1.1.1.4
log
@import file-5.14
changes are "name" + "use" keyword features, bug fixes
@
text
@d3 1
a3 1
# $File: mach,v 1.17 2013/03/07 02:22:52 christos Exp $
a8 4
# if set, it's for the 64-bit version of the architecture
# yes, this is separate from the low-order magic number bit
# it's also separate from the "64-bit libraries" bit in the
# upper 8 bits of the CPU subtype
d10 1
a10 177
0	name	mach-o-cpu
>0	belong&0x01000000	0
#
# 32-bit ABIs.
#
#				1	vax
>>0	belong&0x00ffffff	1
>>>4		belong&0x00ffffff	0	vax
>>>4		belong&0x00ffffff	1	vax11/780
>>>4		belong&0x00ffffff	2	vax11/785
>>>4		belong&0x00ffffff	3	vax11/750
>>>4		belong&0x00ffffff	4	vax11/730
>>>4		belong&0x00ffffff	5	uvaxI
>>>4		belong&0x00ffffff	6	uvaxII
>>>4		belong&0x00ffffff	7	vax8200
>>>4		belong&0x00ffffff	8	vax8500
>>>4		belong&0x00ffffff	9	vax8600
>>>4		belong&0x00ffffff	10	vax8650
>>>4		belong&0x00ffffff	11	vax8800
>>>4		belong&0x00ffffff	12	uvaxIII
>>>4		belong&0x00ffffff	>12	vax subarchitecture=%ld
>>0	belong&0x00ffffff	2	romp
>>0	belong&0x00ffffff	3	architecture=3
>>0	belong&0x00ffffff	4	ns32032
>>0	belong&0x00ffffff	5	ns32332
>>0	belong&0x00ffffff	6	m68k
#				7	x86
>>0	belong&0x00ffffff	7
>>>4	belong&0x0000000f	3		i386
>>>4	belong&0x0000000f	4		i486
>>>>4	belong&0x00fffff0	0
>>>>4	belong&0x00fffff0	0x80		\bsx
>>>4	belong&0x0000000f	5		i586
>>>4	belong&0x0000000f	6
>>>>4	belong&0x00fffff0	0		p6
>>>>4	belong&0x00fffff0	0x10		pentium_pro
>>>>4	belong&0x00fffff0	0x20		pentium_2_m0x20
>>>>4	belong&0x00fffff0	0x30		pentium_2_m3
>>>>4	belong&0x00fffff0	0x40		pentium_2_m0x40
>>>>4	belong&0x00fffff0	0x50		pentium_2_m5
>>>>4	belong&0x00fffff0	>0x50		pentium_2_m0x%lx
>>>4	belong&0x0000000f	7		celeron
>>>>4	belong&0x00fffff0	0x00		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x10		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x20		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x30		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x40		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x50		\b_m0x%lx
>>>>4	belong&0x00fffff0	0x60
>>>>4	belong&0x00fffff0	0x70		\b_mobile
>>>>4	belong&0x00fffff0	>0x70		\b_m0x%lx
>>>4	belong&0x0000000f	8		pentium_3
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	0x10		\b_m
>>>>4	belong&0x00fffff0	0x20		\b_xeon
>>>>4	belong&0x00fffff0	>0x20		\b_m0x%lx
>>>4	belong&0x0000000f	9		pentiumM
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	>0x00		\b_m0x%lx
>>>4	belong&0x0000000f	10		pentium_4
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	0x10		\b_m
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%lx
>>>4	belong&0x0000000f	11		itanium
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	0x10		\b_2
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%lx
>>>4	belong&0x0000000f	12		xeon
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	0x10		\b_mp
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%lx
>>>4	belong&0x0000000f	>12		ia32 family=%ld
>>>>4	belong&0x00fffff0	0x00
>>>>4	belong&0x00fffff0	>0x00		model=%lx
>>0	belong&0x00ffffff	8	mips
>>>4		belong&0x00ffffff	1	R2300
>>>4		belong&0x00ffffff	2	R2600
>>>4		belong&0x00ffffff	3	R2800
>>>4		belong&0x00ffffff	4	R2000a
>>>4		belong&0x00ffffff	5	R2000
>>>4		belong&0x00ffffff	6	R3000a
>>>4		belong&0x00ffffff	7	R3000
>>>4		belong&0x00ffffff	>7	subarchitecture=%ld
>>0	belong&0x00ffffff	9	ns32532
>>0	belong&0x00ffffff	10	mc98000
>>0	belong&0x00ffffff	11	hppa
>>>4		belong&0x00ffffff	0	7100
>>>4		belong&0x00ffffff	1	7100LC
>>>4		belong&0x00ffffff	>1	subarchitecture=%ld
>>0	belong&0x00ffffff	12	arm
>>>4		belong&0x00ffffff	0
>>>4		belong&0x00ffffff	1	subarchitecture=%ld
>>>4		belong&0x00ffffff	2	subarchitecture=%ld
>>>4		belong&0x00ffffff	3	subarchitecture=%ld
>>>4		belong&0x00ffffff	4	subarchitecture=%ld
>>>4		belong&0x00ffffff	5	\b_v4t
>>>4		belong&0x00ffffff	6	\b_v6
>>>4		belong&0x00ffffff	7	\b_v5tej
>>>4		belong&0x00ffffff	8	\b_xscale
>>>4		belong&0x00ffffff	9	\b_v7
>>>4		belong&0x00ffffff	10	\b_v7f
>>>4		belong&0x00ffffff	11	subarchitecture=%ld
>>>4		belong&0x00ffffff	12	\b_v7k
>>>4		belong&0x00ffffff	>12	subarchitecture=%ld
#				13	m88k
>>0	belong&0x00ffffff	13
>>>4		belong&0x00ffffff	0	mc88000
>>>4		belong&0x00ffffff	1	mc88100
>>>4		belong&0x00ffffff	2	mc88110
>>>4		belong&0x00ffffff	>2	mc88000 subarchitecture=%ld
>>0	belong&0x00ffffff	14	sparc
>>0	belong&0x00ffffff	15	i860g
>>0	belong&0x00ffffff	16	alpha
>>0	belong&0x00ffffff	17	rs6000
>>0	belong&0x00ffffff	18	ppc
>>>4		belong&0x00ffffff	0
>>>4		belong&0x00ffffff	1	\b_601
>>>4		belong&0x00ffffff	2	\b_602
>>>4		belong&0x00ffffff	3	\b_603
>>>4		belong&0x00ffffff	4	\b_603e
>>>4		belong&0x00ffffff	5	\b_603ev
>>>4		belong&0x00ffffff	6	\b_604
>>>4		belong&0x00ffffff	7	\b_604e
>>>4		belong&0x00ffffff	8	\b_620
>>>4		belong&0x00ffffff	9	\b_650
>>>4		belong&0x00ffffff	10	\b_7400
>>>4		belong&0x00ffffff	11	\b_7450
>>>4		belong&0x00ffffff	100	\b_970
>>>4		belong&0x00ffffff	>100	subarchitecture=%ld
>>0	belong&0x00ffffff	>18	architecture=%ld
>0	belong&0x01000000	0x01000000
#
# 64-bit ABIs.
#
>>0	belong&0x00ffffff	0	64-bit architecture=%ld
>>0	belong&0x00ffffff	1	64-bit architecture=%ld
>>0	belong&0x00ffffff	2	64-bit architecture=%ld
>>0	belong&0x00ffffff	3	64-bit architecture=%ld
>>0	belong&0x00ffffff	4	64-bit architecture=%ld
>>0	belong&0x00ffffff	5	64-bit architecture=%ld
>>0	belong&0x00ffffff	6	64-bit architecture=%ld
>>0	belong&0x00ffffff	7	x86_64
>>>4		belong&0x00ffffff	0	subarchitecture=%ld
>>>4		belong&0x00ffffff	1	subarchitecture=%ld
>>>4		belong&0x00ffffff	2	subarchitecture=%ld
>>>4		belong&0x00ffffff	3
>>>4		belong&0x00ffffff	4	\b_arch1
>>>4		belong&0x00ffffff	>4	subarchitecture=%ld
>>0	belong&0x00ffffff	8	64-bit architecture=%ld
>>0	belong&0x00ffffff	9	64-bit architecture=%ld
>>0	belong&0x00ffffff	10	64-bit architecture=%ld
>>0	belong&0x00ffffff	11	64-bit architecture=%ld
>>0	belong&0x00ffffff	12	64-bit architecture=%ld
>>0	belong&0x00ffffff	13	64-bit architecture=%ld
>>0	belong&0x00ffffff	14	64-bit architecture=%ld
>>0	belong&0x00ffffff	15	64-bit architecture=%ld
>>0	belong&0x00ffffff	16	64-bit architecture=%ld
>>0	belong&0x00ffffff	17	64-bit architecture=%ld
>>0	belong&0x00ffffff	18	ppc64
>>>4		belong&0x00ffffff	0
>>>4		belong&0x00ffffff	1		\b_601
>>>4		belong&0x00ffffff	2		\b_602
>>>4		belong&0x00ffffff	3		\b_603
>>>4		belong&0x00ffffff	4		\b_603e
>>>4		belong&0x00ffffff	5		\b_603ev
>>>4		belong&0x00ffffff	6		\b_604
>>>4		belong&0x00ffffff	7		\b_604e
>>>4		belong&0x00ffffff	8		\b_620
>>>4		belong&0x00ffffff	9		\b_650
>>>4		belong&0x00ffffff	10		\b_7400
>>>4		belong&0x00ffffff	11		\b_7450
>>>4		belong&0x00ffffff	100		\b_970
>>>4		belong&0x00ffffff	>100		subarchitecture=%ld
>>0	belong&0x00ffffff	>18	64-bit architecture=%ld


0	name		mach-o-be
d12 104
a115 1
>4	use		mach-o-cpu
d125 1
a125 3
>12	belong		10		dSYM companion file
>12	belong		11		kext bundle
>12	belong		>11
d129 1
a129 2
0	lelong&0xfffffffe	0xfeedface	Mach-O
!:strength +1
d132 1
a132 2
0	belong&0xfffffffe	0xfeedface	Mach-O
!:strength +1
@


1.1.1.4.8.1
log
@Rebase.
@
text
@d3 1
a3 1
# $File: mach,v 1.19 2014/04/30 21:41:02 christos Exp $
d34 1
a34 1
>>>4		belong&0x00ffffff	>12	vax subarchitecture=%d
d54 1
a54 1
>>>>4	belong&0x00fffff0	>0x50		pentium_2_m0x%x
d56 6
a61 6
>>>>4	belong&0x00fffff0	0x00		\b_m0x%x
>>>>4	belong&0x00fffff0	0x10		\b_m0x%x
>>>>4	belong&0x00fffff0	0x20		\b_m0x%x
>>>>4	belong&0x00fffff0	0x30		\b_m0x%x
>>>>4	belong&0x00fffff0	0x40		\b_m0x%x
>>>>4	belong&0x00fffff0	0x50		\b_m0x%x
d64 1
a64 1
>>>>4	belong&0x00fffff0	>0x70		\b_m0x%x
d69 1
a69 1
>>>>4	belong&0x00fffff0	>0x20		\b_m0x%x
d72 1
a72 1
>>>>4	belong&0x00fffff0	>0x00		\b_m0x%x
d76 1
a76 1
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%x
d80 1
a80 1
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%x
d84 2
a85 2
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%x
>>>4	belong&0x0000000f	>12		ia32 family=%d
d87 1
a87 1
>>>>4	belong&0x00fffff0	>0x00		model=%x
d96 1
a96 1
>>>4		belong&0x00ffffff	>7	subarchitecture=%d
d102 1
a102 1
>>>4		belong&0x00ffffff	>1	subarchitecture=%d
d105 4
a108 4
>>>4		belong&0x00ffffff	1	subarchitecture=%d
>>>4		belong&0x00ffffff	2	subarchitecture=%d
>>>4		belong&0x00ffffff	3	subarchitecture=%d
>>>4		belong&0x00ffffff	4	subarchitecture=%d
d115 1
a115 1
>>>4		belong&0x00ffffff	11	subarchitecture=%d
d117 1
a117 1
>>>4		belong&0x00ffffff	>12	subarchitecture=%d
d123 2
a124 2
>>>4		belong&0x00ffffff	>2	mc88000 subarchitecture=%d
>>0	belong&0x00ffffff	14	SPARC
d142 2
a143 2
>>>4		belong&0x00ffffff	>100	subarchitecture=%d
>>0	belong&0x00ffffff	>18	architecture=%d
d148 7
a154 7
>>0	belong&0x00ffffff	0	64-bit architecture=%d
>>0	belong&0x00ffffff	1	64-bit architecture=%d
>>0	belong&0x00ffffff	2	64-bit architecture=%d
>>0	belong&0x00ffffff	3	64-bit architecture=%d
>>0	belong&0x00ffffff	4	64-bit architecture=%d
>>0	belong&0x00ffffff	5	64-bit architecture=%d
>>0	belong&0x00ffffff	6	64-bit architecture=%d
d156 3
a158 3
>>>4		belong&0x00ffffff	0	subarchitecture=%d
>>>4		belong&0x00ffffff	1	subarchitecture=%d
>>>4		belong&0x00ffffff	2	subarchitecture=%d
d161 11
a171 11
>>>4		belong&0x00ffffff	>4	subarchitecture=%d
>>0	belong&0x00ffffff	8	64-bit architecture=%d
>>0	belong&0x00ffffff	9	64-bit architecture=%d
>>0	belong&0x00ffffff	10	64-bit architecture=%d
>>0	belong&0x00ffffff	11	64-bit architecture=%d
>>0	belong&0x00ffffff	12	64-bit architecture=%d
>>0	belong&0x00ffffff	13	64-bit architecture=%d
>>0	belong&0x00ffffff	14	64-bit architecture=%d
>>0	belong&0x00ffffff	15	64-bit architecture=%d
>>0	belong&0x00ffffff	16	64-bit architecture=%d
>>0	belong&0x00ffffff	17	64-bit architecture=%d
d186 2
a187 2
>>>4		belong&0x00ffffff	>100		subarchitecture=%d
>>0	belong&0x00ffffff	>18	64-bit architecture=%d
d205 1
a205 1
>>12	belong		x		filetype=%d
@


1.1.1.5
log
@import file-5.19

2014-06-09   9:04  Christos Zoulas <christos@@zoulas.com>

	* Misc buffer overruns and missing buffer size tests in cdf parsing
	  (Francisco Alonso, Jan Kaluza)

2014-06-02  14:50  Christos Zoulas <christos@@zoulas.com>

	* Enforce limit of 8K on regex searches that have no limits
	* Allow the l modifier for regex to mean line count. Default
	  to byte count. If line count is specified, assume a max
	  of 80 characters per line to limit the byte count.
	* Don't allow conversions to be used for dates, allowing
	  the mask field to be used as an offset.

2014-05-30  12:51  Christos Zoulas <christos@@zoulas.com>

	* Make the range operator limit the length of the
	  regex search.

2014-05-14  19:23  Christos Zoulas <christos@@zoulas.com>

	* PR/347: Windows fixes
	* PR/352: Hangul word processor recognition
	* PR/354: Encoding irregularities in text files

2014-05-06  6:12  Christos Zoulas <christos@@zoulas.com>

	* Fix uninitialized title in CDF files (Jan Kaluza)

2014-05-04  14:55  Christos Zoulas <christos@@zoulas.com>

	* PR/351: Fix compilation of empty files

2014-04-30  17:39  Christos Zoulas <christos@@zoulas.com>

	* Fix integer formats: We don't specify 'l' or
	  'h' and 'hh' specifiers anymore, only 'll' for
	  quads and nothing for the rest. This is so that
	  magic writing is simpler.

2014-04-01  15:25  Christos Zoulas <christos@@zoulas.com>

	* PR/341: Jan Kaluza, fix memory leak
	* PR/342: Jan Kaluza, fix out of bounds read

2014-03-28  15:25  Christos Zoulas <christos@@zoulas.com>

	* Fix issue with long formats not matching fmtcheck
@
text
@d3 1
a3 1
# $File: mach,v 1.19 2014/04/30 21:41:02 christos Exp $
d34 1
a34 1
>>>4		belong&0x00ffffff	>12	vax subarchitecture=%d
d54 1
a54 1
>>>>4	belong&0x00fffff0	>0x50		pentium_2_m0x%x
d56 6
a61 6
>>>>4	belong&0x00fffff0	0x00		\b_m0x%x
>>>>4	belong&0x00fffff0	0x10		\b_m0x%x
>>>>4	belong&0x00fffff0	0x20		\b_m0x%x
>>>>4	belong&0x00fffff0	0x30		\b_m0x%x
>>>>4	belong&0x00fffff0	0x40		\b_m0x%x
>>>>4	belong&0x00fffff0	0x50		\b_m0x%x
d64 1
a64 1
>>>>4	belong&0x00fffff0	>0x70		\b_m0x%x
d69 1
a69 1
>>>>4	belong&0x00fffff0	>0x20		\b_m0x%x
d72 1
a72 1
>>>>4	belong&0x00fffff0	>0x00		\b_m0x%x
d76 1
a76 1
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%x
d80 1
a80 1
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%x
d84 2
a85 2
>>>>4	belong&0x00fffff0	>0x10		\b_m0x%x
>>>4	belong&0x0000000f	>12		ia32 family=%d
d87 1
a87 1
>>>>4	belong&0x00fffff0	>0x00		model=%x
d96 1
a96 1
>>>4		belong&0x00ffffff	>7	subarchitecture=%d
d102 1
a102 1
>>>4		belong&0x00ffffff	>1	subarchitecture=%d
d105 4
a108 4
>>>4		belong&0x00ffffff	1	subarchitecture=%d
>>>4		belong&0x00ffffff	2	subarchitecture=%d
>>>4		belong&0x00ffffff	3	subarchitecture=%d
>>>4		belong&0x00ffffff	4	subarchitecture=%d
d115 1
a115 1
>>>4		belong&0x00ffffff	11	subarchitecture=%d
d117 1
a117 1
>>>4		belong&0x00ffffff	>12	subarchitecture=%d
d123 2
a124 2
>>>4		belong&0x00ffffff	>2	mc88000 subarchitecture=%d
>>0	belong&0x00ffffff	14	SPARC
d142 2
a143 2
>>>4		belong&0x00ffffff	>100	subarchitecture=%d
>>0	belong&0x00ffffff	>18	architecture=%d
d148 7
a154 7
>>0	belong&0x00ffffff	0	64-bit architecture=%d
>>0	belong&0x00ffffff	1	64-bit architecture=%d
>>0	belong&0x00ffffff	2	64-bit architecture=%d
>>0	belong&0x00ffffff	3	64-bit architecture=%d
>>0	belong&0x00ffffff	4	64-bit architecture=%d
>>0	belong&0x00ffffff	5	64-bit architecture=%d
>>0	belong&0x00ffffff	6	64-bit architecture=%d
d156 3
a158 3
>>>4		belong&0x00ffffff	0	subarchitecture=%d
>>>4		belong&0x00ffffff	1	subarchitecture=%d
>>>4		belong&0x00ffffff	2	subarchitecture=%d
d161 11
a171 11
>>>4		belong&0x00ffffff	>4	subarchitecture=%d
>>0	belong&0x00ffffff	8	64-bit architecture=%d
>>0	belong&0x00ffffff	9	64-bit architecture=%d
>>0	belong&0x00ffffff	10	64-bit architecture=%d
>>0	belong&0x00ffffff	11	64-bit architecture=%d
>>0	belong&0x00ffffff	12	64-bit architecture=%d
>>0	belong&0x00ffffff	13	64-bit architecture=%d
>>0	belong&0x00ffffff	14	64-bit architecture=%d
>>0	belong&0x00ffffff	15	64-bit architecture=%d
>>0	belong&0x00ffffff	16	64-bit architecture=%d
>>0	belong&0x00ffffff	17	64-bit architecture=%d
d186 2
a187 2
>>>4		belong&0x00ffffff	>100		subarchitecture=%d
>>0	belong&0x00ffffff	>18	64-bit architecture=%d
d205 1
a205 1
>>12	belong		x		filetype=%d
@


1.1.1.5.10.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
# $File: mach,v 1.23 2015/10/15 21:51:22 christos Exp $
d109 9
a117 13
>>>4		belong&0x00ffffff	5	\bv4t
>>>4		belong&0x00ffffff	6	\bv6
>>>4		belong&0x00ffffff	7	\bv5tej
>>>4		belong&0x00ffffff	8	\bxscale
>>>4		belong&0x00ffffff	9	\bv7
>>>4		belong&0x00ffffff	10	\bv7f
>>>4		belong&0x00ffffff	11	\bv7s
>>>4		belong&0x00ffffff	12	\bv7k
>>>4		belong&0x00ffffff	13	\bv8
>>>4		belong&0x00ffffff	14	\bv6m
>>>4		belong&0x00ffffff	15	\bv7m
>>>4		belong&0x00ffffff	16	\bv7em
>>>4		belong&0x00ffffff	>16	subarchitecture=%d
a160 1
>>>4		belong&0x00ffffff	8	\b_haswell
d166 1
a166 3
>>0	belong&0x00ffffff	12	arm64
>>>4		belong&0x00ffffff	0
>>>4		belong&0x00ffffff	1	\bv8
a205 28
>24	belong		>0		\b, flags:<
>>24	belong		&0x0000001	\bNOUNDEFS
>>24	belong		&0x0000002	\b|INCRLINK
>>24	belong		&0x0000004	\b|DYLDLINK
>>24	belong		&0x0000008	\b|BINDATLOAD
>>24	belong		&0x0000010	\b|PREBOUND
>>24	belong		&0x0000020	\b|SPLIT_SEGS
>>24	belong		&0x0000040	\b|LAZY_INIT
>>24	belong		&0x0000080	\b|TWOLEVEL
>>24	belong		&0x0000100	\b|FORCE_FLAT
>>24	belong		&0x0000200	\b|NOMULTIDEFS
>>24	belong		&0x0000400	\b|NOFIXPREBINDING
>>24	belong		&0x0000800	\b|PREBINDABLE
>>24	belong		&0x0001000	\b|ALLMODSBOUND
>>24	belong		&0x0002000	\b|SUBSECTIONS_VIA_SYMBOLS
>>24	belong		&0x0004000	\b|CANONICAL
>>24	belong		&0x0008000	\b|WEAK_DEFINES
>>24	belong		&0x0010000	\b|BINDS_TO_WEAK
>>24	belong		&0x0020000	\b|ALLOW_STACK_EXECUTION
>>24	belong		&0x0040000	\b|ROOT_SAFE
>>24	belong		&0x0080000	\b|SETUID_SAFE
>>24	belong		&0x0100000	\b|NO_REEXPORTED_DYLIBS
>>24	belong		&0x0200000	\b|PIE
>>24	belong		&0x0400000	\b|DEAD_STRIPPABLE_DYLIB
>>24	belong		&0x0800000	\b|HAS_TLV_DESCRIPTORS
>>24	belong		&0x1000000	\b|NO_HEAP_EXECUTION
>>24	belong		&0x2000000	\b|APP_EXTENSION_SAFE
>>24	belong		x		\b>
a209 1
!:mime application/x-mach-binary
a213 1
!:mime application/x-mach-binary
@


1.1.1.5.6.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
# $File: mach,v 1.23 2015/10/15 21:51:22 christos Exp $
d109 9
a117 13
>>>4		belong&0x00ffffff	5	\bv4t
>>>4		belong&0x00ffffff	6	\bv6
>>>4		belong&0x00ffffff	7	\bv5tej
>>>4		belong&0x00ffffff	8	\bxscale
>>>4		belong&0x00ffffff	9	\bv7
>>>4		belong&0x00ffffff	10	\bv7f
>>>4		belong&0x00ffffff	11	\bv7s
>>>4		belong&0x00ffffff	12	\bv7k
>>>4		belong&0x00ffffff	13	\bv8
>>>4		belong&0x00ffffff	14	\bv6m
>>>4		belong&0x00ffffff	15	\bv7m
>>>4		belong&0x00ffffff	16	\bv7em
>>>4		belong&0x00ffffff	>16	subarchitecture=%d
a160 1
>>>4		belong&0x00ffffff	8	\b_haswell
d166 1
a166 3
>>0	belong&0x00ffffff	12	arm64
>>>4		belong&0x00ffffff	0
>>>4		belong&0x00ffffff	1	\bv8
a205 28
>24	belong		>0		\b, flags:<
>>24	belong		&0x0000001	\bNOUNDEFS
>>24	belong		&0x0000002	\b|INCRLINK
>>24	belong		&0x0000004	\b|DYLDLINK
>>24	belong		&0x0000008	\b|BINDATLOAD
>>24	belong		&0x0000010	\b|PREBOUND
>>24	belong		&0x0000020	\b|SPLIT_SEGS
>>24	belong		&0x0000040	\b|LAZY_INIT
>>24	belong		&0x0000080	\b|TWOLEVEL
>>24	belong		&0x0000100	\b|FORCE_FLAT
>>24	belong		&0x0000200	\b|NOMULTIDEFS
>>24	belong		&0x0000400	\b|NOFIXPREBINDING
>>24	belong		&0x0000800	\b|PREBINDABLE
>>24	belong		&0x0001000	\b|ALLMODSBOUND
>>24	belong		&0x0002000	\b|SUBSECTIONS_VIA_SYMBOLS
>>24	belong		&0x0004000	\b|CANONICAL
>>24	belong		&0x0008000	\b|WEAK_DEFINES
>>24	belong		&0x0010000	\b|BINDS_TO_WEAK
>>24	belong		&0x0020000	\b|ALLOW_STACK_EXECUTION
>>24	belong		&0x0040000	\b|ROOT_SAFE
>>24	belong		&0x0080000	\b|SETUID_SAFE
>>24	belong		&0x0100000	\b|NO_REEXPORTED_DYLIBS
>>24	belong		&0x0200000	\b|PIE
>>24	belong		&0x0400000	\b|DEAD_STRIPPABLE_DYLIB
>>24	belong		&0x0800000	\b|HAS_TLV_DESCRIPTORS
>>24	belong		&0x1000000	\b|NO_HEAP_EXECUTION
>>24	belong		&0x2000000	\b|APP_EXTENSION_SAFE
>>24	belong		x		\b>
a209 1
!:mime application/x-mach-binary
a213 1
!:mime application/x-mach-binary
@


1.1.1.6
log
@2017-02-10  12:24  Christos Zoulas <christos@@zoulas.com>

	* release 5.30

2017-02-07  23:27  Christos Zoulas <christos@@zoulas.com>

	* If we exceeded the offset in a search return no match
	  (Christoph Biedl)
	* Be more lenient on corrupt CDF files (Christoph Biedl)

2017-02-04  16:46  Christos Zoulas <christos@@zoulas.com>

	* pacify ubsan sign extension (oss-fuzz/524)

2017-02-01  12:42  Christos Zoulas <christos@@zoulas.com>

	* off by one in cdf parsing (PR/593)
	* report debugging sections in elf (PR/591)

2016-11-06  10:52  Christos Zoulas <christos@@zoulas.com>

	* Allow @@@@@@ in extensions
	* Add missing overflow check in der magic (Jonas Wagner)

2016-10-25  10:40  Christos Zoulas <christos@@zoulas.com>

	* release 5.29

2016-10-24  11:20  Christos Zoulas <christos@@zoulas.com>

	* der getlength overflow (Jonas Wagner)
	* multiple magic file load failure (Christoph Biedl)

2016-10-17  11:26  Christos Zoulas <christos@@zoulas.com>

	* CDF parsing improvements (Guy Helmer)

2016-07-20   7:26  Christos Zoulas <christos@@zoulas.com>

	* Add support for signed indirect offsets

2016-07-18   7:41  Christos Zoulas <christos@@zoulas.com>

	* cat /dev/null | file - should print empty (Christoph Biedl)

2016-07-05  15:20  Christos Zoulas <christos@@zoulas.com>

	* Bump string size from 64 to 96.

2016-06-13  20:20  Christos Zoulas <christos@@zoulas.com>

	* PR/556: Fix separators on annotations.

2016-06-13  19:40  Christos Zoulas <christos@@zoulas.com>

	* release 5.28
	* fix leak on allocation failure

2016-06-01   1:20  Christos Zoulas <christos@@zoulas.com>

	* PR/555: Avoid overflow for offset > nbytes
	* PR/550: Segv on DER parsing:
	    - use the correct variable for length
	    - set offset to 0 on failure.

2016-05-13  12:00  Christos Zoulas <christos@@zoulas.com>

	* release 5.27

2016-04-18   9:35  Christos Zoulas <christos@@zoulas.com>

	* Errors comparing DER entries or computing offsets
	  are just indications of malformed non-DER files.
	  Don't print them.
	* Offset comparison was off-by-one.
	* Fix compression code (Werner Fink)
	* Put new bytes constant in the right file (not the generated one)

2016-04-16  18:34  Christos Zoulas <christos@@zoulas.com>

	* release 5.26

2016-03-31  13:50  Christos Zoulas <christos@@zoulas.com>

	* make the number of bytes read from files configurable.

2016-03-21  13:40  Christos Zoulas <christos@@zoulas.com>

	* Add bounds checks for DER code (discovered by Thomas Jarosch)
	* Change indirect recursion limit to indirect use count and
	  bump from 15 to 50 to prevent abuse.

2016-03-13  20:39  Christos Zoulas <christos@@zoulas.com>

	* Add -00 which prints filename\0description\0

2016-03-01  13:28  Christos Zoulas <christos@@zoulas.com>

	* Fix ID3 indirect parsing

2016-01-19  10:18  Christos Zoulas <christos@@zoulas.com>

	* add DER parsing capability

2015-11-13  10:35  Christos Zoulas <christos@@zoulas.com>

	* provide dprintf(3) for the OS's that don't have it.

2015-11-11  16:25  Christos Zoulas <christos@@zoulas.com>

	* redo the compression code report decompression errors

2015-11-10  23:25  Christos Zoulas <christos@@zoulas.com>

	* REG_STARTEND code is not working as expected, delete it.

2015-11-09  16:05  Christos Zoulas <christos@@zoulas.com>

	* Add zlib support if we have it.

2015-11-05  11:22  Christos Zoulas <christos@@zoulas.com>

	* PR/492: compression forking was broken with magic_buffer.

2015-09-16   9:50  Christos Zoulas <christos@@zoulas.com>

	* release 5.25

2015-09-11  13:25  Christos Zoulas <christos@@zoulas.com>

	* add a limit to the length of regex searches

2015-09-08   9:50  Christos Zoulas <christos@@zoulas.com>

	* fix problems with --parameter (Christoph Biedl)

2015-07-11  10:35  Christos Zoulas <christos@@zoulas.com>

	* Windows fixes PR/466 (Jason Hood)

2015-07-09  10:35  Christos Zoulas <christos@@zoulas.com>

	* release 5.24

2015-06-11   8:52  Christos Zoulas <christos@@zoulas.com>

	* redo long option encoding to fix off-by-one in 5.23

2015-06-10  13:50  Christos Zoulas <christos@@zoulas.com>

	* release 5.23

2015-06-09  16:10  Christos Zoulas <christos@@zoulas.com>

	* Fix issue with regex range for magic with offset
	* Always return true from mget with USE (success to mget not match
	  indication). Fixes mime evaluation after USE magic
	* PR/459: Don't insert magic entries to the list if there are parsing
	  errors for them.

2015-06-03  16:00  Christos Zoulas <christos@@zoulas.com>

	* PR/455: Add utf-7 encoding

2015-06-03  14:30  Christos Zoulas <christos@@zoulas.com>

	* PR/455: Implement -Z, look inside, but don't report on compression
	* PR/454: Fix allocation error on bad magic.

2015-05-29  10:30  Christos Zoulas <christos@@zoulas.com>

	* handle MAGIC_CONTINUE everywhere, not just in softmagic

2015-05-21  14:30  Christos Zoulas <christos@@zoulas.com>

	* don't print descriptions for NAME types when mime.

2015-04-09  15:59  Christos Zoulas <christos@@zoulas.com>

	* Add --extension to list the known extensions for this file type
	  Idea by Andrew J Roazen

2015-02-14  12:23  Christos Zoulas <christos@@zoulas.com>

	* Bump file search buffer size to 1M.

2015-01-09  14:35  Christos Zoulas <christos@@zoulas.com>

	* Fix multiple issues with date formats reported by Christoph Biedl:
		- T_LOCAL meaning was reversed
		- Arithmetic did not work
	  Also stop adjusting daylight savings for gmt printing.

2015-01-05  13:00  Christos Zoulas <christos@@zoulas.com>

	* PR/411: Fix memory corruption from corrupt cdf file.
@
text
@d3 1
a3 1
# $File: mach,v 1.23 2015/10/15 21:51:22 christos Exp $
d109 9
a117 13
>>>4		belong&0x00ffffff	5	\bv4t
>>>4		belong&0x00ffffff	6	\bv6
>>>4		belong&0x00ffffff	7	\bv5tej
>>>4		belong&0x00ffffff	8	\bxscale
>>>4		belong&0x00ffffff	9	\bv7
>>>4		belong&0x00ffffff	10	\bv7f
>>>4		belong&0x00ffffff	11	\bv7s
>>>4		belong&0x00ffffff	12	\bv7k
>>>4		belong&0x00ffffff	13	\bv8
>>>4		belong&0x00ffffff	14	\bv6m
>>>4		belong&0x00ffffff	15	\bv7m
>>>4		belong&0x00ffffff	16	\bv7em
>>>4		belong&0x00ffffff	>16	subarchitecture=%d
a160 1
>>>4		belong&0x00ffffff	8	\b_haswell
d166 1
a166 3
>>0	belong&0x00ffffff	12	arm64
>>>4		belong&0x00ffffff	0
>>>4		belong&0x00ffffff	1	\bv8
a205 28
>24	belong		>0		\b, flags:<
>>24	belong		&0x0000001	\bNOUNDEFS
>>24	belong		&0x0000002	\b|INCRLINK
>>24	belong		&0x0000004	\b|DYLDLINK
>>24	belong		&0x0000008	\b|BINDATLOAD
>>24	belong		&0x0000010	\b|PREBOUND
>>24	belong		&0x0000020	\b|SPLIT_SEGS
>>24	belong		&0x0000040	\b|LAZY_INIT
>>24	belong		&0x0000080	\b|TWOLEVEL
>>24	belong		&0x0000100	\b|FORCE_FLAT
>>24	belong		&0x0000200	\b|NOMULTIDEFS
>>24	belong		&0x0000400	\b|NOFIXPREBINDING
>>24	belong		&0x0000800	\b|PREBINDABLE
>>24	belong		&0x0001000	\b|ALLMODSBOUND
>>24	belong		&0x0002000	\b|SUBSECTIONS_VIA_SYMBOLS
>>24	belong		&0x0004000	\b|CANONICAL
>>24	belong		&0x0008000	\b|WEAK_DEFINES
>>24	belong		&0x0010000	\b|BINDS_TO_WEAK
>>24	belong		&0x0020000	\b|ALLOW_STACK_EXECUTION
>>24	belong		&0x0040000	\b|ROOT_SAFE
>>24	belong		&0x0080000	\b|SETUID_SAFE
>>24	belong		&0x0100000	\b|NO_REEXPORTED_DYLIBS
>>24	belong		&0x0200000	\b|PIE
>>24	belong		&0x0400000	\b|DEAD_STRIPPABLE_DYLIB
>>24	belong		&0x0800000	\b|HAS_TLV_DESCRIPTORS
>>24	belong		&0x1000000	\b|NO_HEAP_EXECUTION
>>24	belong		&0x2000000	\b|APP_EXTENSION_SAFE
>>24	belong		x		\b>
a209 1
!:mime application/x-mach-binary
a213 1
!:mime application/x-mach-binary
@


1.1.1.7
log
@2021-03-30  20:21  Christos Zoulas <christos@@zoulas.com>

	* release 5.40

2021-02-05  16:31  Christos Zoulas <christos@@zoulas.com>

	* PR/234: Add limit to the number of bytes to scan for encoding
	* PR/230: Fix /T (trim flag) for regex

2021-02-01  12:31  Christos Zoulas <christos@@zoulas.com>
	* PR/77: Trim trailing separator.

2020-12-17  15:44  Christos Zoulas <christos@@zoulas.com>

	* PR/211: Convert system read errors from corrupt ELF
	  files into human readable error messages

2020-12-08  16:24  Christos Zoulas <christos@@zoulas.com>

	* fix multithreaded decompression file descriptor issue
	  by using close-on-exec (Denys Vlasenko)

2020-06-27  11:58  Christos Zoulas <christos@@zoulas.com>

	* Exclude surrogate pairs from utf-8 detection (Michael Liu)

2020-06-25  12:53  Christos Zoulas <christos@@zoulas.com>

	* Include # to the list of ignored format chars (Werner Fink)
@
text
@d3 1
a3 1
# $File: mach,v 1.28 2020/12/12 20:01:47 christos Exp $
a13 3
# Reference:	https://opensource.apple.com/source/cctools/cctools-949.0.1/
#               include/mach-o/loader.h
# display CPU type as string like: i386 x86_64 ... armv7 armv7k ...
d15 1
a15 1
>0	belong&0xff000000	0
d142 1
a142 1
>>>4		belong&0x00ffffff	9	\b_750
d148 1
a148 1
>0	belong&0xff000000	0x01000000
a173 9
>>>4		belong&0x00ffffff	2	\be
>>>>7		ubyte&0xff		>0	(caps:
>>>>7		ubyte&0xff		<0x80	0x%02x
>>>>7		ubyte&0xc0		0x80	PAC
>>>>>7		ubyte&0x3f		x	\b%02d
>>>>7		ubyte&0xc0		0xc0	PAK
>>>>>7		ubyte&0x3f		x	\b%02d
>>>>7		ubyte&0xff		x	\b)
>>>4		belong&0x00ffffff	>2	subarchitecture=%d
d195 1
a195 27
>0	belong&0xff000000	0x02000000
#
# 64_32-bit ABIs.
#
>>0	belong&0x00ffffff	0	64_32-bit architecture=%d
>>0	belong&0x00ffffff	1	64_32-bit architecture=%d
>>0	belong&0x00ffffff	2	64_32-bit architecture=%d
>>0	belong&0x00ffffff	3	64_32-bit architecture=%d
>>0	belong&0x00ffffff	4	64_32-bit architecture=%d
>>0	belong&0x00ffffff	5	64_32-bit architecture=%d
>>0	belong&0x00ffffff	6	64_32-bit architecture=%d
>>0	belong&0x00ffffff	7	64_32-bit architecture=%d
>>0	belong&0x00ffffff	8	64_32-bit architecture=%d
>>0	belong&0x00ffffff	9	64_32-bit architecture=%d
>>0	belong&0x00ffffff	10	64_32-bit architecture=%d
>>0	belong&0x00ffffff	11	64_32-bit architecture=%d
>>0	belong&0x00ffffff	12	64_32-bit arm
>>>4		belong&0x00ffffff	0
>>>4		belong&0x00ffffff	1	\bv8
>>>4		belong&0x00ffffff	>1	subarchitecture=%d
>>0	belong&0x00ffffff	13	64_32-bit architecture=%d
>>0	belong&0x00ffffff	14	64_32-bit architecture=%d
>>0	belong&0x00ffffff	15	64_32-bit architecture=%d
>>0	belong&0x00ffffff	16	64_32-bit architecture=%d
>>0	belong&0x00ffffff	17	64_32-bit architecture=%d
>>0	belong&0x00ffffff	18	64_32-bit architecture=%d
>>0	belong&0x00ffffff	>18	64_32-bit architecture=%d
a200 3
# GRR: Does not work for Mach-O with 2 architectures; instead display oo
#!:ext	o
!:ext	o/
a201 3
# the executables normally have no file extension like perl,
# but exceptions like perl5.18 perl5.16
!:ext	16/18/
a205 3
# GRR: Does not work for Mach-O with 2 architectures; instead display dylibdylib
#!:ext	dylib
!:ext	dylib/
a207 2
# normally name extension bundle; but exceptions like: AMDil_r700.dylib 
!:ext	bundle/dylib/
d214 26
a239 29
>>24	belong		&0x00000001	\bNOUNDEFS
>>24	belong		&0x00000002	\b|INCRLINK
>>24	belong		&0x00000004	\b|DYLDLINK
>>24	belong		&0x00000008	\b|BINDATLOAD
>>24	belong		&0x00000010	\b|PREBOUND
>>24	belong		&0x00000020	\b|SPLIT_SEGS
>>24	belong		&0x00000040	\b|LAZY_INIT
>>24	belong		&0x00000080	\b|TWOLEVEL
>>24	belong		&0x00000100	\b|FORCE_FLAT
>>24	belong		&0x00000200	\b|NOMULTIDEFS
>>24	belong		&0x00000400	\b|NOFIXPREBINDING
>>24	belong		&0x00000800	\b|PREBINDABLE
>>24	belong		&0x00001000	\b|ALLMODSBOUND
>>24	belong		&0x00002000	\b|SUBSECTIONS_VIA_SYMBOLS
>>24	belong		&0x00004000	\b|CANONICAL
>>24	belong		&0x00008000	\b|WEAK_DEFINES
>>24	belong		&0x00010000	\b|BINDS_TO_WEAK
>>24	belong		&0x00020000	\b|ALLOW_STACK_EXECUTION
>>24	belong		&0x00040000	\b|ROOT_SAFE
>>24	belong		&0x00080000	\b|SETUID_SAFE
>>24	belong		&0x00100000	\b|NO_REEXPORTED_DYLIBS
>>24	belong		&0x00200000	\b|PIE
>>24	belong		&0x00400000	\b|DEAD_STRIPPABLE_DYLIB
>>24	belong		&0x00800000	\b|HAS_TLV_DESCRIPTORS
>>24	belong		&0x01000000	\b|NO_HEAP_EXECUTION
>>24	belong		&0x02000000	\b|APP_EXTENSION_SAFE
>>24	belong		&0x04000000	\b|NLIST_OUTOFSYNC_WITH_DYLDINFO
>>24	belong		&0x08000000	\b|SIM_SUPPORT
>>24	belong		&0x80000000	\b|DYLIB_IN_CACHE
@


1.1.1.8
log
@Import file-5.43+; last was file-5.40

2022-09-20  17:12  Christos Zoulas <christos@@zoulas.com>

	* fixed various clustefuzz issues

2022-09-19  15:54  Christos Zoulas <christos@@zoulas.com>

	* Fix error detection for decompression code (Vincent Mihalkovic)

2022-09-15  13:50  Christos Zoulas <christos@@zoulas.com>

	* Add MAGIC_NO_COMPRESS_FORK and use it to produce a more
	  meaningful error message if we are sandboxing.

2022-09-15  10:45  Christos Zoulas <christos@@zoulas.com>

	* Add built-in lzip decompression support (Michal Gorny)

2022-09-14  10:35  Christos Zoulas <christos@@zoulas.com>

	* Add built-in zstd decompression support (Martin Rodriguez Reboredo)

2022-09-13  14:55  Christos Zoulas <christos@@zoulas.com>

	* release 5.43

2022-09-10   9:17  Christos Zoulas <christos@@zoulas.com>

	* Add octal indirect magic (Michal Gorny)

2022-08-17  11:43  Christos Zoulas <christos@@zoulas.com>

	* PR/374: avoid infinite loop in non-wide code (piru)
	* PR/373: Obey MAGIC_CONTINUE with multiple magic files (vismarli)

2022-07-26  11:10  Christos Zoulas <christos@@zoulas.com>

	* Fix bug with large flist (Florian Weimer)

2022-07-07  13:21  Christos Zoulas <christos@@zoulas.com>

        * PR/364: Detect non-nul-terminated core filenames from QEMU
	  (mam-ableton)

2022-07-04  15:45  Christos Zoulas <christos@@zoulas.com>

	* PR/359: Add support for http://ndjson.org/ (darose)
	* PR/362: Fix wide printing (ro-ee)
	* PR/358: Fix width for -f - (jpalus)
	* PR/356: Fix JSON constant parsing (davewhite)

2022-06-10   9:40  Christos Zoulas <christos@@zoulas.com>

	* release 5.42

2022-05-31  14:50   Christos Zoulas <christos@@zoulas.com>

	* PR/348: add missing cases to prevent file from aborting on
	  random magic files.

2022-05-27  21:05   Christos Zoulas <christos@@zoulas.com>

	* PR/351: octalify filenames when not raw before printing.

2022-04-18  17:51   Christos Zoulas <christos@@zoulas.com>

	* fix regex cacheing bug (Dirk Mueller)
	* merge file_regcomp and file_regerror() to simplify the code
	  and reduce memory requirements for storing regexes (Dirk Mueller)

2022-03-19  12:56   Christos Zoulas <christos@@zoulas.com>

	* cache regex (Dirk Mueller)
	* detect filesystem full by flushing output (Dirk Mueller)

2021-11-19  12:36   Christos Zoulas <christos@@zoulas.com>

	* implement running decompressor programs using
	  posix_spawnp(2) instead of vfork(2)

2021-10-24  11:51   Christos Zoulas <christos@@zoulas.com>

	* Add support for msdos dates and times

2021-10-20   9:55   Christos Zoulas <christos@@zoulas.com>

	* use the system byte swapping functions if available (Werner Fink)

2021-10-18  11:57  Christos Zoulas <christos@@zoulas.com>

	* release 5.41

2021-09-23  03:51  Christos Zoulas <christos@@zoulas.com>

	* Avinash Sonawane: Fix tzname detection

2021-09-03  09:17  Christos Zoulas <christos@@zoulas.com>

	* Fix relationship tests with "search" magic, don't short circuit
	  logic

2021-07-13  01:06  Christos Zoulas <christos@@zoulas.com>

	* Fix memory leak in compile mode

2021-07-01  03:51  Christos Zoulas <christos@@zoulas.com>

	* PR/272: kiefermat: Only set returnval = 1 when we printed something
	  (in all cases print or !print). This simplifies the logic and fixes
	  the issue in the PR with -k and --mime-type there was no continuation
	  printed before the default case.

2021-06-30  13:07  Christos Zoulas <christos@@zoulas.com>

	* PR/270: Don't translate unprintable characters in %s magic formats
	  when -r
	* PR/269: Avoid undefined behavior with clang (adding offset to NULL)

2021-05-09  18:38  Christos Zoulas <christos@@zoulas.com>

	* Add a new flag (f) that requires that the match is a full word,
	   not a partial word match.
	* Add varint types (unused)

2021-04-19  17:17  Christos Zoulas <christos@@zoulas.com>

	* PR/256: mutableVoid: If the file is less than 3 bytes, use the file
	  length to determine type
	* PR/259: aleksandr.v.novichkov: mime printing through indirect magic
	  is not taken into account, use match directly so that it does.

2021-04-04  17:02  Christos Zoulas <christos@@zoulas.com>

	* count the total bytes found not the total byte positions
	  in order to determine encoding (Anatol Belski)
@
text
@d3 1
a3 1
# $File: mach,v 1.29 2021/04/26 15:56:00 christos Exp $
d57 1
a57 1
>>>>4	belong&0x00fffff0	>0x50		pentium_2_m%#x
d59 6
a64 6
>>>>4	belong&0x00fffff0	0x00		\b_m%#x
>>>>4	belong&0x00fffff0	0x10		\b_m%#x
>>>>4	belong&0x00fffff0	0x20		\b_m%#x
>>>>4	belong&0x00fffff0	0x30		\b_m%#x
>>>>4	belong&0x00fffff0	0x40		\b_m%#x
>>>>4	belong&0x00fffff0	0x50		\b_m%#x
d67 1
a67 1
>>>>4	belong&0x00fffff0	>0x70		\b_m%#x
d72 1
a72 1
>>>>4	belong&0x00fffff0	>0x20		\b_m%#x
d75 1
a75 1
>>>>4	belong&0x00fffff0	>0x00		\b_m%#x
d79 1
a79 1
>>>>4	belong&0x00fffff0	>0x10		\b_m%#x
d83 1
a83 1
>>>>4	belong&0x00fffff0	>0x10		\b_m%#x
d87 1
a87 1
>>>>4	belong&0x00fffff0	>0x10		\b_m%#x
d179 1
a179 1
>>>>7		ubyte&0xff		<0x80	%#02x
@


1.1.1.1.2.1
log
@file mach was added on branch jym-xensuspend on 2009-05-13 18:51:57 +0000
@
text
@d1 84
@


1.1.1.1.2.2
log
@Sync with HEAD.

Second commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@a0 84
#------------------------------------------------------------
# Mach has two magic numbers, 0xcafebabe and 0xfeedface.
# Unfortunately the first, cafebabe, is shared with
# Java ByteCode, so they are both handled in the file "cafebabe".
# The "feedface" ones are handled herein.
#------------------------------------------------------------
0	lelong&0xfffffffe	0xfeedface	Mach-O
>0	byte		0xcf		64-bit
>12	lelong		1		object
>12	lelong		2		executable
>12	lelong		3		fixed virtual memory shared library
>12	lelong		4		core
>12	lelong		5		preload executable
>12	lelong		6		dynamically linked shared library
>12	lelong		7		dynamic linker
>12	lelong		8		bundle
>12	lelong		9		dynamically linked shared library stub
>12	lelong		>9
>>12	lelong		x		filetype=%ld
>4	lelong		<0
>>4	lelong		x		architecture=%ld
>4	lelong		1		vax
>4	lelong		2		romp
>4	lelong		3		architecture=3
>4	lelong		4		ns32032
>4	lelong		5		ns32332
>4	lelong		6		m68k
>4	lelong		7		i386
>4	lelong		8		mips
>4	lelong		9		ns32532
>4	lelong		10		architecture=10
>4	lelong		11		hppa
>4	lelong		12		acorn
>4	lelong		13		m88k
>4	lelong		14		sparc
>4	lelong		15		i860-big
>4	lelong		16		i860
>4	lelong		17		rs6000
>4	lelong		18		ppc
>4	lelong		16777234	ppc64
>4	lelong		>16777234
>>4	lelong		x		architecture=%ld
#
0	belong&0xfffffffe	0xfeedface	Mach-O
>3	byte		0xcf		64-bit
>12	belong		1		object
>12	belong		2		executable
>12	belong		3		fixed virtual memory shared library
>12	belong		4		core
>12	belong		5		preload executable
>12	belong		6               dynamically linked shared library
>12	belong		7               dynamic linker
>12	belong		8		bundle
>12	belong		9		dynamically linked shared library stub
>12	belong		>9
>>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
# from NeXTstep 3.0 <mach/machine.h>
# i.e. mc680x0_all, ignore
# >>8	belong		1		(mc68030)
>>8	belong		2		(mc68040)
>>8	belong		3		(mc68030 only)
>4	belong		7		i386
>4	belong		8		mips
>4	belong		9		ns32532
>4	belong		10		architecture=10
>4	belong		11		hppa
>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		ppc
>4	belong		16777234	ppc64
>4	belong		>16777234
>>4	belong		x		architecture=%ld
@


