From: Martin Stromberg 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 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 > > > 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