Messages in this thread | | | Subject | Re: [RFC][PATCH] inotify 0.10.0 | From | Ray Lee <> | Date | Tue, 28 Sep 2004 14:39:13 -0700 |
| |
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
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |