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 [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/