[lkml]   [2000]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] ioctl(2) return value
On Thu, Sep 21, 2000 at 11:43:07AM +0200, Abramo Bagnara wrote:

> In ALSA we use the return value from ioctl as a simple way to return a
> positive number to user space (if the return value is less than 0 we got
> error, of course)
> We got the doubt that this break some unknown standards or some linux
> conventions or Linus taste (at a first glance I'm unable to find
> precedents inside kernel tree).

The current manpage says:

On success, zero is returned. On error, -1 is returned,
and errno is set appropriately.

Adding: "except on ALSA where certain other return values are used"
would be really ugly.

But you are right, Sun uses other return values with STREAMS ioctls.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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