[gamin] Re: [RFC][PATCH] inotify 0.10.0



On Tue, 2004-09-28 at 16:47 -0400, Robert Love wrote:
> On Tue, 2004-09-28 at 16:40 -0400, John McCutchan wrote:
> 
> > If the ioctl() based interface is so bad, we could change it to a
> > write() based interface.
> 
> What baffles me is that a write() interface is infinitely more type
> unsafe, arbitrary, and uncontrolled than an ioctl() one.

The word "Huh?" comes to mind, for some reason.

It's just as easy to pass crap via ioctl() as write(). Regardless, I'm
not the Arbiter Of Taste on this topic. I'm merely following what I
believe to be the prevailing (<cough>Linus</cough>) sentiments are
regarding ioctl()s.

Well, that, and I personally find write(fd, &x, sizeof x) a cleaner
interface. My personal preference is of little importance on this topic,
however.

Ray




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]