lkml.org 
[lkml]   [2000]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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:

RETURN VALUE
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.

Andries
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site