Subject: Re: New read & write syscalls
To: Chris G. Demetriou <cgd@netbsd.org>
From: Bill Studenmund <wrstuden@nas.nasa.gov>
List: tech-kern
Date: 06/30/1999 14:16:43
On 30 Jun 1999, Chris G. Demetriou wrote:

> Bill Studenmund <wrstuden@nas.nasa.gov> writes:
> > > Why would extra flags to open()/fcntl(F_[GS]ETFL,...) be the wrong
> > > thing?
> > 
> > fcntl maybe....
> 
> Why not open as well?  I mean, right now it looks like the flags
> settable with fcntl(F_SETFL,...) can all be specified at open-time as
> well.

True...B

> If the user knows they want an altnerate mode, why do they have to
> make two calls?
> 
> 
> > Well, since I'd be the one to pass it around, it's interesting to me. ;-)
> > This interface makes the application programmer do most all of the work.
> 
> Is it actually much work to do it via open/fcntl flags?

Not that I see how to do it. :-)

Take care,

Bill