delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/05/30/00:48:46

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Tue, 30 May 2000 00:47:10 -0400
MIME-Version: 1.0
Subject: Re: tmpfile in DJGPP
Message-ID: <39330F8E.32385.4BB8B1@localhost>
In-reply-to: <200005300200.WAA11609@qnx.com>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Somebody was going to come up with a hack where the unlink()/remove()
> was delayed until termination of the program or close()/fclose().

I came up with a way, and I use it with Bash 2.04 to provide a function that 
essentially marks a file handle as 'remove-on-close'. I then use this 
function to implement a pipe() replacement. This all works, but it also 
requires changes to dup and dup2 to handle FSEXTs.

- Raw text -


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