delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/01/20/06:03:20.2

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 <rich AT phekda DOT freeserve DOT co DOT uk>
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>
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/ ]

- Raw text -


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