Re: [RFC] ioctl(2) return value

From: Andi Kleen (ak@suse.de)
Date: Thu Sep 21 2000 - 06:36:39 EST


On Thu, Sep 21, 2000 at 01:33:14PM +0200, Andries Brouwer wrote:
> 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.

Not only Sun does, Linux does too (e.g. in various networking ioctls)
I would just fix the man page.

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



This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:24 EST