delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/21/01:27:09

Message-ID: <000401c00ae5$4f4b5720$3538bcca@tm.net.my>
From: "ObiGuan Kenobi" <jgfw AT iname DOT com>
To: <djgpp AT delorie DOT com>
References: <001901c009c8$d8fde140$0439bcca AT tm DOT net DOT my> <9743-Sat19Aug2000213143+0300-eliz AT is DOT elta DOT co DOT il> <003301c00a22$0dc739e0$d5616acb AT tm DOT net DOT my> <2110-Sun20Aug2000085842+0300-eliz AT is DOT elta DOT co DOT il> <001d01c00a7a$e9531d00$f839bcca AT tm DOT net DOT my> <8296-Sun20Aug2000120325+0300-eliz AT is DOT elta DOT co DOT il>
Subject: Re: DJGPP on Windows ME
Date: Mon, 21 Aug 2000 03:23:05 +0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Reply-To: djgpp AT delorie DOT com

> > From: "ObiGuan Kenobi" <jgfw AT iname DOT com>
> > Date: Sun, 20 Aug 2000 15:47:33 +0800
> >
> > I have downloaded djlsr203.zip and did as you instructed and tried to
> > compile it. The compiler complains that stub.h is missing. Where can I find
> > this file?
>
> Sorry, that's my bad: I forgot about that file.
>
> This file is generated by the library build procedure, but since you
> didn't invoke that procedure, it was not created.  I attach the file
> below; simply cut it out and put it on stub.h in the same directory
> where you are working on this.

It seems that _rename( ) function from libc has some problems after using gdb. And one thing I forgotten to tell you.
Windows ME uses DOS 8.0, rather than DOS 7.1 that Win95b and Win98 uses. Not just stubify.exe is effected but ar.exe which
uses _rename () is effected too.

This is what I found out. I think the _rename( ) function has no problem renaming from filename X to Y if Y doesn't exist.
If Y exist, then _rename() will fail. Below is the output of the test I did. The words in the brackets are my own comments.
Hope it is useful.

(test.exe doesn't exist at this point)
D:\>stubify test.000

(a test.exe was created from test.000)
D:\>stubify test.000
rename of test.001 to test.exe failed.
The error was: Invalid argument (EINVAL)
(renaming failure and test.exe from test.000 was deleted)

D:\>stubify test.000
(renaming success)

D:\>stubify test.000
rename of test.002 to test.exe failed.
The error was: Invalid argument (EINVAL)
(renaming failure and previous test.exe was deleted)


D:\>stubify test.000
(renaming success)

D:\>stubify test.000
rename of test.003 to test.exe failed.
The error was: Invalid argument (EINVAL)
(renaming failure and previous test.exe was deleted)

(and it goes on and on)


- Raw text -


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