delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/05/00:53:24

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Tue, 5 Jun 2001 00:52:48 -0400
MIME-Version: 1.0
Subject: Re: file append problem
Message-ID: <3B1C2D60.31887.5DA06F@localhost>
In-reply-to: <2593-Mon04Jun2001214907+0300-eliz@is.elta.co.il>
References: <200106041203 DOT OAA11068 AT mother DOT ludd DOT luth DOT se> (message from Martin Str|mberg on Mon, 4 Jun 2001 14:03:56 +0200 (MEST))
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

> > Perhaps there's a third. In dup2 make sure the append flags are in sync?

They could also be synced before _flsbuf and friends call _write. But I think 
Eli has the simpler solution (#4?):

> the problem is > that we have two flags, where we should have had one.

I also wonder if the _remove_on_close member in FILE could be eliminated too 
since that functionality duplicates the O_TEMPORARY flag.

Out,
Mark

- Raw text -


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