lkml.org 
[lkml]   [2009]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] Remove or convert empty ioctls ?
> "no particular value" is highly subjective, and I think unprovable, 
> without an exhaustive survey of userland programs interacting with
> kernel drivers. Userland programs often interact with a -class- of
> drivers, expecting predictable behavior from a DoThisThing ioctl, with
> EINVAL or "other weird error code" returned intentionally.
>
> Changing the return codes seems quite unwise.

We've changed lots of them to -ENOTTY over the past few years, nobody has
even noticed (you included ;))

SuS says an unknown ioctl code returns -ENOTTY.

Alan


\
 
 \ /
  Last update: 2009-10-15 17:07    [W:0.048 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site