magic

Bjorn Gustavsson <>
Tue Nov 30 20:28:30 CET 1999


Try this:

# OTP R3-R4
0	string		\0177BEAM!	Old Erlang BEAM file
>6	short		>0		- version %d

# OTP R5 and onwards
0	string		FOR1		
>8	string		BEAM		Erlang BEAM file

# 4.2 version may have a copyright notice!!
4	string		Tue Jan 22 14:32:44 MET 1991	Erlang JAM file - version 4.2
79	string		Tue Jan 22 14:32:44 MET 1991	Erlang JAM file - version 4.2

4	string		1.0 Fri Feb 3 09:55:56 MET 1995	Erlang JAM file - version 4.3

/Björn

Klacke <> writes:

> 
> Anybody's got a nice magic file that works with the
> new beam files for r6b. (That is, a magic file which 
> makes the `file' command to return nice info about 
> beam versions)
> 
> ??
> 
> 
> /klacke
> 
> 
> -- 
> Claes Wikstrom                          <>
> Bluetail AB                             http://www.bluetail.com
> 
> 

-- 
Björn Gustavsson            Ericsson Utvecklings AB
      ÄT2/UAB/F/P
			    BOX 1505
		 	    125 25 Älvsjö



More information about the erlang-questions mailing list