Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3E2BD16A.93D63093@phekda.freeserve.co.uk> Date: Mon, 20 Jan 2003 10:37:30 +0000 From: Richard Dawe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: _createnew References: <200301192132 DOT h0JLWrS25230 AT brother DOT ludd DOT luth DOT se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. Martin Str|mberg wrote: > > According to Richard Dawe: > > Martin Stromberg wrote: > > > _creatnew does not honour the flags passed to it - it always opens it > > > read-write mode > > > If we really think we should do something, how about this for > > > implementation: set some fd_props to say that only reading is allowed > > > (and if somebody reads there's nothing to read as it's empty). > > > > I'm not sure I like that. Wouldn't it be better (more consistent) to rely > > on DOS to maintain this information? > > Yes, if possible. But remember the potential race condition. Which potential race condition? Do you mean the one I describe in this mail (the last one listed for _creatnew on the 2.04 status page): http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp-workers/2002/04/05/08:00:44 Or is there another one? Thanks, bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]