Subject: Re: New read & write syscalls
To: Bill Studenmund <wrstuden@nas.nasa.gov>
From: Chris G. Demetriou <cgd@netbsd.org>
List: tech-kern
Date: 06/30/1999 14:08:21
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.

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?



cgd
-- 
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.