Subject: ioctl and EOPNOTSUPP
To: None <tech-kern@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-kern
Date: 06/04/2003 23:25:41
We have around 16 ioctl handlers that return EOPNOTSUPP for an error
instead of ENOTTY.  SUSv3/Posix doesn't list EOPNOTSUPP as an error,
either does our man page for ioctl(2).  This will fix one of Matt
Thomas' PCTS Posix test failures.

A bit of mkid playing shows potential problems in:

	arch/amiga/dev/kbd.c
	arch/atari/dev/kbd.c
	arch/dreamcast/dev/maple/mms.c
	arch/x68k/dev/kbd.c
	arch/x68k/dev/pow.c
	coda/coda_vnops.c
	dev/mm.c
	dev/radio.c
	miscfs/fdesc/fdesc_vnops.c
	net/route.c
	netatalk/at_control.c
	netinet/if_arp.c
	netinet/in.c
	netinet6/in6.c
	netiso/iso.c
	netns/ns.c

No one have any problems with changing any of these handlers to return
ENOTTY?

Simon.
--
Simon Burge                                   <simonb@wasabisystems.com>
NetBSD Development, Support and Service:   http://www.wasabisystems.com/