delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/09/19/08:43:25

From: Martin Stromberg <Martin DOT Stromberg AT lu DOT erisoft DOT se>
Message-Id: <200009191242.OAA00239@lws256.lu.erisoft.se>
Subject: Re: O_APPEND
To: djgpp-workers AT delorie DOT com
Date: Tue, 19 Sep 2000 14:42:33 +0200 (MET DST)
In-Reply-To: <200009182052.QAA22284@envy.delorie.com> from "DJ Delorie" at Sep 18, 2000 04:52:35 PM
X-Mailer: ELM [version 2.5 PL3]
MIME-Version: 1.0
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

> 
> > Well how can I expect to preserve the O_APPEND flag here if I don't do
> > it as above? Or is my idea to make __file_handle_modes an array of
> > unsigned short instead of char completely wrong?
> 
> "oldmode & ~(text|binary)" returns all the flags *except* text and
> binary.  It will preserve the O_APPEND flag.

Uuuh! Stupid me. Of course!


Right,

						MartinS

- Raw text -


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