delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/03/06:37:40

Date: Mon, 3 Jun 2002 13:30:40 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: 9$$DJREN.$$T Rename bug?
In-Reply-To: <3cfafd35$1@duster.adelaide.on.net>
Message-ID: <Pine.SUN.3.91.1020603132746.21774A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 3 Jun 2002, Peter Cassidy wrote:

> I have a DOS application that uses the djgpp libc libraries, and throws
> files around a bit (writing to temporary files and renaming them to the
> final name).  Occasionally (and seemingly at random) I end up with the file
> 9$$DJREN.$$T floating around.

Is this plain DOS or Windows?  If it's Windows, the temporary file's name 
should be 9$$djren$$.$$temp$$.  If it's plain DOS, and you don't have 
some kind of LFN TSR loaded, such temporary files should not be produced 
at all.

> So my question is: under what circumstances would this happen?  Is it my
> fault and I need to use the 'rename' call in a different way?  Or does it
> indicate a bug in the djgpp libraries?

It's some kind of bug.  Please try to find a sequence of actions that 
consistently causes such files to be left around.

- Raw text -


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