Re: LANANA: To Pending Device Number Registrants

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 15 May 2001 21:58:46 +0100 (BST)


> > 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()

-
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/