lkml.org 
[lkml]   [2004]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH] inotify 0.10.0
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.372 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site