From: Martin Str|mberg Message-Id: <200106041203.OAA11068@mother.ludd.luth.se> Subject: Re: file append problem To: djgpp-workers AT delorie DOT com Date: Mon, 4 Jun 2001 14:03:56 +0200 (MEST) In-Reply-To: <3B1AD91B.15461.664B37@localhost> from "Mark E." at Jun 04, 2001 12:40:59 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Precedence: bulk According to Mark E.: > I see two solutions: > 1) Have _flsbuf (and other places where _IOAPPEND is checked) check whether > the underlying fd has its append flag set before calling _write. > 2) Add logic to _write to check whether a file descriptor's append flag is > set and take action. Perhaps there's a third. In dup2 make sure the append flags are in sync? Right, MartinS