delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/02/16/00:59:27

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Fri, 16 Feb 2001 00:58:40 -0500
MIME-Version: 1.0
Subject: Re: O_TEMPORARY
Message-ID: <3A8C7B40.5144.6753FD@localhost>
References: <3A8A98EE DOT 30071 DOT A8D978 AT localhost>
In-reply-to: <Pine.SUN.3.91.1010215131243.27892J-100000@is>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com

> Another aspect that I think needs to be considered is the situation
> where the same file is opened once with O_TEMPORARY, and then again
> without O_TEMPORARY.  Do we want the file to be removed when the first
> (temporary) handle is closed?  (This is one reason why I asked above
> about the docs of this feature on other platforms.)

I think I can now answer this question. While downloading the packages needed 
for mingw, I accessed the online MSDN. It's tempting to cut-n-paste the 
documentation for FILE_FLAG_DELETE_ON_CLOSE, but no telling what terms and 
conditions have been placed on reproducing portions of it. But in essence it 
says that a file opened with the flag is to be deleted after all handles are 
closed, including handles opened without the flag.

Mark

- Raw text -


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