summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1999-08-22 08:16:21 +0000
committerJason Downs <downsj@cvs.openbsd.org>1999-08-22 08:16:21 +0000
commitf31df129831b38e978bd209b675811c080e6a4d4 (patch)
tree245003a00f998080265ae88d30e0e01e1657d3d4 /sys/arch/i386
parentd79aa618196d0a490565275773070c84d4c90d94 (diff)
Add noop MOUSEIOCSCOOKED and ENODEV MOUSEIOCSRAW ioctls, as suggested by
Matthieu Herrb.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/isa/lms.c9
-rw-r--r--sys/arch/i386/isa/mms.c9
2 files changed, 16 insertions, 2 deletions
diff --git a/sys/arch/i386/isa/lms.c b/sys/arch/i386/isa/lms.c
index 345fd75c5dc..0c4c31d51a9 100644
--- a/sys/arch/i386/isa/lms.c
+++ b/sys/arch/i386/isa/lms.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lms.c,v 1.11 1999/01/13 07:26:01 niklas Exp $ */
+/* $OpenBSD: lms.c,v 1.12 1999/08/22 08:16:20 downsj Exp $ */
/* $NetBSD: lms.c,v 1.30 1996/10/21 22:27:41 thorpej Exp $ */
/*-
@@ -289,6 +289,13 @@ lmsioctl(dev, cmd, addr, flag, p)
error = copyout(&info, addr, sizeof(struct mouseinfo));
break;
+ case MOUSEIOCSRAW:
+ error = ENODEV;
+ break;
+
+ case MOUSEIOCSCOOKED: /* Do nothing. */
+ break;
+
default:
error = EINVAL;
break;
diff --git a/sys/arch/i386/isa/mms.c b/sys/arch/i386/isa/mms.c
index 3f747ca4ef4..391d523655c 100644
--- a/sys/arch/i386/isa/mms.c
+++ b/sys/arch/i386/isa/mms.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mms.c,v 1.9 1999/01/13 07:26:01 niklas Exp $ */
+/* $OpenBSD: mms.c,v 1.10 1999/08/22 08:16:20 downsj Exp $ */
/* $NetBSD: mms.c,v 1.24 1996/05/12 23:12:18 mycroft Exp $ */
/*-
@@ -265,6 +265,13 @@ mmsioctl(dev, cmd, addr, flag, p)
error = copyout(&info, addr, sizeof(struct mouseinfo));
break;
+ case MOUSEIOCSRAW:
+ error = ENODEV;
+ break;
+
+ case MOUSEIOCSCOOKED: /* Do nothing. */
+ break;
+
default:
error = EINVAL;
break;