Re: LANANA: To Pending Device Number Registrants

Alan Cox
2001-05-15T21:03:09Z

> > else
> > error
>
> Ugh. You do this?

Lots of apps do it - hdparm, mt-st, lilo

> The fix, I think, is to make the ioctl commands much more regular. That is
> probably true in general, and fixing that would hopefully fix the need for
> horrible code like the above.

Definitely. Some of it would remain but it becomes

if(ioctl(foo)==-EOPNOTSUPP)
bang_it_nby_hand()