Date: Thu, 22 Apr 1999 12:00:49 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Alain Magloire cc: djgpp-workers AT delorie DOT com Subject: Re: A workaround for Unix-style temporary files In-Reply-To: <199904211454.KAA26575@mccoy2.ECE.McGill.CA> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 21 Apr 1999, Alain Magloire wrote: > Technically the unlink() is correct, file removal with unlink() is well > defined within POSIX definition : Alas, neither DOS nor Windows 9X don't comply. > What makes it so attractive on Un*x and other POSIX syst. is that > the behaviour will be consistent even when the program crash. You > could use atexit() to cleanup, but when the program die unexpectedly > its hard to cleanup without coorporation of the OS. Exactly. Therefore, any DJGPP-specific solution to this problem, even if we decide to include it, won't be able to remove the temporaries in all cases.