head	1.1;
access;
symbols
	rpm-4_4:1.1.0.2
	file-4_20:1.1;
locks; strict;
comment	@# @;


1.1
date	2007.05.09.19.38.34;	author jbj;	state Exp;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2007.05.09.19.38.34;	author jbj;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2007.05.10.17.39.22;	author jbj;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Virgin file-4.20.
@
text
@#------------------------------------------------------------------------------
# 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
>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.2.1
log
@file cafebabe was added on branch rpm-4_4 on 2007-05-10 17:39:22 +0000
@
text
@d1 21
@


1.1.2.2
log
@Upgrade to file-4.20 internal.
@
text
@a0 21
#------------------------------------------------------------------------------
# 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
>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
@


