From 5ad569a8f45da3f08e3c10b833fa352d852b6fbb Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Sat, 27 May 2006 23:59:08 +0000 Subject: unknown ioctl is ENOTTY not EINVAL --- sys/arch/sparc/dev/be.c | 4 ++-- sys/arch/sparc/dev/hme.c | 4 ++-- sys/arch/sparc/dev/if_ie.c | 4 ++-- sys/arch/sparc/dev/qe.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'sys') diff --git a/sys/arch/sparc/dev/be.c b/sys/arch/sparc/dev/be.c index 11837d898f1..50a5126a552 100644 --- a/sys/arch/sparc/dev/be.c +++ b/sys/arch/sparc/dev/be.c @@ -1,4 +1,4 @@ -/* $OpenBSD: be.c,v 1.39 2006/03/25 22:41:41 djm Exp $ */ +/* $OpenBSD: be.c,v 1.40 2006/05/27 23:59:07 jason Exp $ */ /* * Copyright (c) 1998 Theo de Raadt and Jason L. Wright. @@ -640,7 +640,7 @@ beioctl(ifp, cmd, data) splx(s); return error; } - error = EINVAL; + error = ENOTTY; break; } splx(s); diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c index bde14564916..559f66e6c50 100644 --- a/sys/arch/sparc/dev/hme.c +++ b/sys/arch/sparc/dev/hme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hme.c,v 1.52 2006/03/25 22:41:41 djm Exp $ */ +/* $OpenBSD: hme.c,v 1.53 2006/05/27 23:59:07 jason Exp $ */ /* * Copyright (c) 1998 Jason L. Wright (jason@thought.net) @@ -468,7 +468,7 @@ hmeioctl(ifp, cmd, data) error = ifmedia_ioctl(ifp, ifr, &sc->sc_mii.mii_media, cmd); break; default: - error = EINVAL; + error = ENOTTY; } sc->sc_if_flags = ifp->if_flags; diff --git a/sys/arch/sparc/dev/if_ie.c b/sys/arch/sparc/dev/if_ie.c index b0472a0cde1..68b77ebd3da 100644 --- a/sys/arch/sparc/dev/if_ie.c +++ b/sys/arch/sparc/dev/if_ie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ie.c,v 1.35 2006/04/16 00:46:32 pascoe Exp $ */ +/* $OpenBSD: if_ie.c,v 1.36 2006/05/27 23:59:07 jason Exp $ */ /* $NetBSD: if_ie.c,v 1.33 1997/07/29 17:55:38 fair Exp $ */ /*- @@ -2012,7 +2012,7 @@ ieioctl(ifp, cmd, data) break; default: - error = EINVAL; + error = ENOTTY; } splx(s); return error; diff --git a/sys/arch/sparc/dev/qe.c b/sys/arch/sparc/dev/qe.c index 1dd81f668cb..f3599a03a7c 100644 --- a/sys/arch/sparc/dev/qe.c +++ b/sys/arch/sparc/dev/qe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qe.c,v 1.29 2006/03/25 22:41:41 djm Exp $ */ +/* $OpenBSD: qe.c,v 1.30 2006/05/27 23:59:07 jason Exp $ */ /* * Copyright (c) 1998, 2000 Jason L. Wright. @@ -659,7 +659,7 @@ qeioctl(ifp, cmd, data) splx(s); return (error); } - error = EINVAL; + error = ENOTTY; break; } splx(s); -- cgit v1.2.3