Mail Archives: djgpp-workers/2000/08/13/14:34:52
On 13 Aug 00, at 16:34, Eli Zaretskii wrote:
> > On 13 Aug 2000 at 11:28:29 +0100 Richard Dawe wrote:
> > * How do you know info/*.inf is an info file and not, for example, a
> > Windows .inf file?
>
> A file from the DJGPP .zip file should not be a Windows .inf file.
> You can also search it for telltale signatures that every Info file
> has.
Most notably ^_\nFile: and ^_\nIndirect: (^_ == 0x1F), right?
> > [ Incidentally, is there a port of the 'file' program ]
> > [ (available on Linux) to DJGPP? ]
>
> No, and the problem is not the program, but its data base of magic
> numbers/strings. Someone needs to craft that.
This seems to work on my computer. Releasing 'file' ported to DJGPP is
something I'v wanted to do for a long time, but I never seem to get to
it. (Version 3.31 doesn't use getopt_long, works almost out of the box.
I think I only found some binary/text issues, but these are easy enough
to solve.)
#------------------------------------------------------------------------------
# dosdjgpp: file(1) magic for DJGPP compiled files
#
# v1, uses GO32.exe as stub (entry by ????)
0x200 string \247Y DOS-executable compiled w/DJGPP v1, w/out GO32-stub
0x400 string \247\204 DOS-executable compiled w/DJGPP v1, w/GO32-stub
# v >2, uses DPMI & small(2k) stub (Robert vd Boon, rjvdboon AT europe DOT com)
0x200 string go32stub DOS-executable compiled w/DJGPP
>0x20c string >0 (stub v%.4s)
>>0x8b2 string djp [compressed w/%s
>>>&1 string >\0 %.4s]
>>0x8ad string UPX [compressed w/%s
>>>&1 string >\0 %.4s]
>>0x1c string pmodedj stubbed with %s
I hope this helps. I am not so sure about the DJGPP v1 stuff. I don't
have such files on my computer anymore ;-(
Greetings,
Robert
rjvdboon AT europe DOT com
Renkum: bijna zo mooi als Bilderdam...
- Raw text -