www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/04/22/05:59:35

Date: Thu, 22 Apr 1999 12:00:49 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Alain Magloire <alainm AT rcsm DOT ece DOT mcgill DOT ca>
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: <Pine.SUN.3.91.990422120021.15748W-100000@is>
MIME-Version: 1.0
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

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.

- Raw text -


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