head	1.5;
access;
symbols
	RELENG_8_4:1.5.0.2
	RELENG_9_1_0_RELEASE:1.4.10.1
	RELENG_9_1:1.4.10.1.0.2
	RELENG_9_1_BP:1.4.10.1
	RELENG_8_3_0_RELEASE:1.4
	RELENG_8_3:1.4.0.14
	RELENG_8_3_BP:1.4
	RELENG_9_0_0_RELEASE:1.4
	RELENG_9_0:1.4.0.12
	RELENG_9_0_BP:1.4
	RELENG_9:1.4.0.10
	RELENG_9_BP:1.4
	RELENG_7_4_0_RELEASE:1.1.1.1
	RELENG_8_2_0_RELEASE:1.4
	RELENG_7_4:1.1.1.1.0.14
	RELENG_7_4_BP:1.1.1.1
	RELENG_8_2:1.4.0.8
	RELENG_8_2_BP:1.4
	RELENG_8_1_0_RELEASE:1.4
	RELENG_8_1:1.4.0.6
	RELENG_8_1_BP:1.4
	RELENG_7_3_0_RELEASE:1.1.1.1
	RELENG_7_3:1.1.1.1.0.12
	RELENG_7_3_BP:1.1.1.1
	RELENG_8_0_0_RELEASE:1.4
	RELENG_8_0:1.4.0.4
	RELENG_8_0_BP:1.4
	RELENG_8:1.4.0.2
	RELENG_8_BP:1.4
	RELENG_7_2_0_RELEASE:1.1.1.1
	RELENG_7_2:1.1.1.1.0.10
	RELENG_7_2_BP:1.1.1.1
	RELENG_7_1_0_RELEASE:1.1.1.1
	RELENG_6_4_0_RELEASE:1.1.1.1.6.1
	RELENG_7_1:1.1.1.1.0.8
	RELENG_7_1_BP:1.1.1.1
	RELENG_6_4:1.1.1.1.6.1.0.2
	RELENG_6_4_BP:1.1.1.1.6.1
	RELENG_7_0_0_RELEASE:1.1.1.1
	file_4_23__r1_46:1.1.1.1
	RELENG_6:1.1.1.1.0.6
	file_4_23:1.1.1.1
	RELENG_7_0:1.1.1.1.0.4
	RELENG_7_0_BP:1.1.1.1
	RELENG_7:1.1.1.1.0.2
	RELENG_7_BP:1.1.1.1
	file_4_21:1.1.1.1
	file_4_19:1.1.1.1
	ZOULAS:1.1.1;
locks; strict;
comment	@# @;


1.5
date	2012.04.19.03.20.13;	author obrien;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	2009.05.18.22.34.33;	author delphij;	state Exp;
branches
	1.4.10.1;
next	1.3;

1.3
date	2009.05.04.00.37.44;	author obrien;	state Exp;
branches;
next	1.2;

1.2
date	2009.01.02.03.10.55;	author obrien;	state Exp;
branches;
next	1.1;

1.1
date	2007.05.24.16.12.22;	author obrien;	state Exp;
branches
	1.1.1.1;
next	;

1.5.2.1
date	2012.04.19.03.20.13;	author svnexp;	state dead;
branches;
next	1.5.2.2;

1.5.2.2
date	2013.03.28.13.00.44;	author svnexp;	state Exp;
branches;
next	;

1.4.10.1
date	2012.07.02.08.48.58;	author obrien;	state Exp;
branches;
next	;

1.1.1.1
date	2007.05.24.16.12.22;	author obrien;	state Exp;
branches
	1.1.1.1.6.1;
next	;

1.1.1.1.6.1
date	2008.01.24.15.47.31;	author rafan;	state Exp;
branches;
next	;


desc
@@


1.5
log
@SVN rev 234449 on 2012-04-19 03:20:13Z by obrien

Update file(1) to version 5.11.
@
text
@
#------------------------------------------------------------------------------
# $File: cafebabe,v 1.8 2009/09/19 16:28:08 christos Exp $
# Cafe Babes unite!
#
# Since Java bytecode and Mach-O fat-files have the same magic number, the test
# must be performed in the same "magic" sequence to get both right.  The long
# at offset 4 in a mach-O fat file tells the number of architectures; the short at
# offset 4 in a Java bytecode file is the JVM minor version and the
# short at offset 6 is the JVM major version.  Since there are only 
# only 18 labeled Mach-O architectures at current, and the first released 
# Java class format was version 43.0, we can safely choose any number
# between 18 and 39 to test the number of architectures against
# (and use as a hack). Let's not use 18, because the Mach-O people
# might add another one or two as time goes by...
#
0	belong		0xcafebabe
!:mime	application/x-java-applet
>4	belong		>30		compiled Java class data,
>>6	beshort		x	        version %d.
>>4	beshort		x       	\b%d
# Which is which?
#>>4	belong		0x032d		(Java 1.0)
#>>4	belong		0x032d		(Java 1.1)
>>4	belong		0x002e		(Java 1.2)
>>4	belong		0x002f		(Java 1.3)
>>4	belong		0x0030		(Java 1.4)
>>4	belong		0x0031		(Java 1.5)
>>4	belong		0x0032		(Java 1.6)


0	belong		0xcafebabe
>4	belong		1		Mach-O fat file with 1 architecture
>4	belong		>1
>>4	belong		<20		Mach-O fat file with %ld architectures

0	belong		0xcafed00d	JAR compressed with pack200,
>>5	byte		x		version %d.
>>4	byte		x		\b%d
!:mime	application/x-java-pack200
@


1.5.2.1
log
@file cafebabe was added on branch RELENG_8_4 on 2013-03-28 13:00:44 +0000
@
text
@d1 40
@


1.5.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 38
#------------------------------------------------------------------------------
# Cafe Babes unite!
#
# Since Java bytecode and Mach-O fat-files have the same magic number, the test
# must be performed in the same "magic" sequence to get both right.  The long
# at offset 4 in a mach-O fat file tells the number of architectures; the short at
# offset 4 in a Java bytecode file is the JVM minor version and the
# short at offset 6 is the JVM major version.  Since there are only 
# only 18 labeled Mach-O architectures at current, and the first released 
# Java class format was version 43.0, we can safely choose any number
# between 18 and 39 to test the number of architectures against
# (and use as a hack). Let's not use 18, because the Mach-O people
# might add another one or two as time goes by...
#
0	belong		0xcafebabe
!:mime	application/x-java-applet
>4	belong		>30		compiled Java class data,
>>6	beshort		x	        version %d.
>>4	beshort		x       	\b%d
# Which is which?
#>>4	belong		0x032d		(Java 1.0)
#>>4	belong		0x032d		(Java 1.1)
>>4	belong		0x002e		(Java 1.2)
>>4	belong		0x002f		(Java 1.3)
>>4	belong		0x0030		(Java 1.4)
>>4	belong		0x0031		(Java 1.5)
>>4	belong		0x0032		(Java 1.6)


0	belong		0xcafebabe
>4	belong		1		Mach-O fat file with 1 architecture
>4	belong		>1
>>4	belong		<20		Mach-O fat file with %ld architectures

0	belong		0xcafed00d	JAR compressed with pack200,
>>5	byte		x		version %d.
>>4	byte		x		\b%d
!:mime	application/x-java-pack200
@


1.4
log
@SVN rev 192350 on 2009-05-18 22:34:33Z by delphij

Merge vendor/file/dist@@192348, bringing FILE 5.03 to 8-CURRENT.

Security:	CVE-2009-1515
@
text
@d1 1
d3 1
@


1.4.10.1
log
@SVN rev 237983 on 2012-07-02 08:48:58Z by obrien

MFC: r234449: update file(1) to version 5.11.
@
text
@a0 1

a1 1
# $File: cafebabe,v 1.8 2009/09/19 16:28:08 christos Exp $
@


1.3
log
@SVN rev 191771 on 2009-05-04 00:37:44Z by obrien

Merge vendor/file/dist@@191739, bringing FILE 5.00 to 8-CURRENT.
@
text
@d20 9
@


1.2
log
@SVN rev 186691 on 2009-01-02 03:10:55Z by obrien

Record that base/vendor/file/dist@@186675 was merged.
Merge base/vendor/file/dist@@186675@@186690, bringing FILE 4.26 to 8-CURRENT.
@
text
@d15 1
a15 2
0	beshort		0xcafe
>2	beshort         0xbabe
d17 10
a26 7
>>2	belong		>30		compiled Java class data,
>>>6	beshort		x	        version %d.
>>>4	beshort		x       	\b%d
>>4	belong		1		Mach-O fat file with 1 architecture
>>4	belong		>1
>>>4	belong		<20		Mach-O fat file with %ld architectures
>2	beshort		0xd00d		JAR compressed with pack200,
@


1.1
log
@Initial revision
@
text
@d15 13
a27 7
0	belong		0xcafebabe
>4	belong		>30		compiled Java class data,
>>6     beshort		x	        version %d.
>>4     beshort		x       	\b%d
>4	belong		1		Mach-O fat file with 1 architecture
>4	belong		>1
>>4	belong		<20		Mach-O fat file with %ld architectures
@


1.1.1.1
log
@Virgin import of Christos Zoulas's FILE 4.19.
@
text
@@


1.1.1.1.6.1
log
@MFC file 4.21
@
text
@@

