Re: [PATCH] watchdog: use ENOTTY instead of ENOIOCTLCMD in ioctl()

From: Alan Cox
Date: Sat Sep 09 2006 - 11:50:34 EST


Ar Sad, 2006-09-09 am 17:34 +0200, ysgrifennodd Samuel Tardieu:
> Return ENOTTY instead of ENOIOCTLCMD in user-visible ioctl() results
>
> The watchdog drivers used to return ENOIOCTLCMD for bad ioctl() commands.
> ENOIOCTLCMD should not be visible by the user, so use ENOTTY instead.
>
> Signed-off-by: Samuel Tardieu <sam@xxxxxxxxxxx>


Acked-by: Alan Cox <alan@xxxxxxxxxx>

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