Subject: Re: ioctl and EOPNOTSUPP
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 06/04/2003 21:42:12
In article <200306050431.58951.ianzag@megasignal.com>,
Ian Zagorskih <ianzag@megasignal.com> wrote:
>On Wednesday 04 June 2003 13:25, Simon Burge wrote:
>
>According to:
>
>http://www.opengroup.org/onlinepubs/007904975/basedefs/errno.h.html#tag_13_10
>
>...both ENOTTY and EOPNOTSUP are required by POSIX.

Read carefully. EOPNOTSUP is only meaningful on sockets, not as the return
value of ioctl(). In fact, if you look at the man page for ioctl(), you'll see
that EOPNOTSUP is not supposed to be returned by ioctl().

I don't the ENOTTY kitchensink approach but the standards mandate otherwise.

christos