[Vm-dev] ImageFormat updates

K K Subbu kksubbu.ml at gmail.com
Sun Apr 30 16:56:18 UTC 2017


Hi,

Is there an Inbox to upload patches to VMMaker for review?

I generated a small fix to ImageFormat to generate magic pattern checks 
at offset 512 also. I think some old Etoys images use this offset with a 
launch script stuffed in the first 512 bytes. Is this deprecated now?

I also feel 'unix' should be dropped from the method's name. file(1) 
utility originated in Unix but is related to file contents and not to 
kernel. It should be available for Mac/Win too.

I have also attached the resulting magic file and a workspace script to 
generate a bunch of test header files to test the magic file. e.g.

  $ file -m magic *.image

Regards .. Subbu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: magictestfiles-kks.st
Type: application/squeak-changeset
Size: 780 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20170430/880c2956/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: magicfixes-kks.1.cs
Type: text/x-csharp
Size: 1285 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20170430/880c2956/attachment-0001.bin>
-------------- next part --------------
# Smalltalk image file formats
0	lelong	6502	Smalltalk squeak image  (%d)
!:mime application/squeak-image
512	lelong	6502	Smalltalk squeak image  (%d)
!:mime application/squeak-image
0	belong	6502	Smalltalk squeak image  (%d)
!:mime application/squeak-image
512	belong	6502	Smalltalk squeak image  (%d)
!:mime application/squeak-image
0	lelong	6504	Smalltalk cog image +C (%d)
!:mime application/cog-image
512	lelong	6504	Smalltalk cog image +C (%d)
!:mime application/cog-image
0	belong	6504	Smalltalk cog image +C (%d)
!:mime application/cog-image
512	belong	6504	Smalltalk cog image +C (%d)
!:mime application/cog-image
0	lelong	68000	Smalltalk squeak64 image  (%d)
!:mime application/squeak64-image
512	lelong	68000	Smalltalk squeak64 image  (%d)
!:mime application/squeak64-image
4	belong	68000	Smalltalk squeak64 image  (%d)
!:mime application/squeak64-image
516	belong	68000	Smalltalk squeak64 image  (%d)
!:mime application/squeak64-image
0	lelong	68002	Smalltalk cog64 image +C (%d)
!:mime application/cog64-image
512	lelong	68002	Smalltalk cog64 image +C (%d)
!:mime application/cog64-image
4	belong	68002	Smalltalk cog64 image +C (%d)
!:mime application/cog64-image
516	belong	68002	Smalltalk cog64 image +C (%d)
!:mime application/cog64-image
0	lelong	6505	Smalltalk cog image +C+NF (%d)
!:mime application/cog-image
512	lelong	6505	Smalltalk cog image +C+NF (%d)
!:mime application/cog-image
0	belong	6505	Smalltalk cog image +C+NF (%d)
!:mime application/cog-image
512	belong	6505	Smalltalk cog image +C+NF (%d)
!:mime application/cog-image
0	lelong	68003	Smalltalk cog64 image +C+NF (%d)
!:mime application/cog64-image
512	lelong	68003	Smalltalk cog64 image +C+NF (%d)
!:mime application/cog64-image
4	belong	68003	Smalltalk cog64 image +C+NF (%d)
!:mime application/cog64-image
516	belong	68003	Smalltalk cog64 image +C+NF (%d)
!:mime application/cog64-image
0	lelong	6521	Smalltalk spur image +C+NF (%d)
!:mime application/spur-image
512	lelong	6521	Smalltalk spur image +C+NF (%d)
!:mime application/spur-image
0	belong	6521	Smalltalk spur image +C+NF (%d)
!:mime application/spur-image
512	belong	6521	Smalltalk spur image +C+NF (%d)
!:mime application/spur-image
0	lelong	68019	Smalltalk spur64 image +C+NF (%d)
!:mime application/spur64-image
512	lelong	68019	Smalltalk spur64 image +C+NF (%d)
!:mime application/spur64-image
4	belong	68019	Smalltalk spur64 image +C+NF (%d)
!:mime application/spur64-image
516	belong	68019	Smalltalk spur64 image +C+NF (%d)
!:mime application/spur64-image
0	lelong	68021	Smalltalk spur64 image +C+NF+Tag (%d)
!:mime application/spur64-image
512	lelong	68021	Smalltalk spur64 image +C+NF+Tag (%d)
!:mime application/spur64-image
4	belong	68021	Smalltalk spur64 image +C+NF+Tag (%d)
!:mime application/spur64-image
516	belong	68021	Smalltalk spur64 image +C+NF+Tag (%d)
!:mime application/spur64-image



More information about the Vm-dev mailing list