delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/08/13/14:34:52

From: "Robert van der Boon" <rjvdboon AT europe DOT com>
To: djgpp-workers AT delorie DOT com
Date: Sun, 13 Aug 2000 20:29:08 +0200
Subject: Re: [zippo-workers]
In-reply-to: <7458-Sun13Aug2000163410+0300-eliz@is.elta.co.il>
References: <3996784D DOT 2A1EEF2F AT phekda DOT freeserve DOT co DOT uk> (message from Richard Dawe on Sun, 13 Aug 2000 11:28:29 +0100)
X-mailer: Pegasus Mail for Win32 (v3.12a)
Message-ID: <0deaa4334180d80NET090S@hetnet.nl>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019