diff options
author | 1996-06-09 19:40:12 +0000 | |
---|---|---|
committer | 1996-06-09 19:40:12 +0000 | |
commit | 4b64fdbffb4d96823e6e6fd33ca64213a78dd1dc (patch) | |
tree | 6605db295ae70cd47f929d6ebbf0570a16d50a1f /sys/dev/isa/mcd.c | |
parent | Import of binutils, gas, ld & gprof from Cygnus 960609 tree (diff) | |
download | wireguard-openbsd-4b64fdbffb4d96823e6e6fd33ca64213a78dd1dc.tar.xz wireguard-openbsd-4b64fdbffb4d96823e6e6fd33ca64213a78dd1dc.zip |
support MTIOCTOP's MTOFFL to mean "eject"
Diffstat (limited to 'sys/dev/isa/mcd.c')
-rw-r--r-- | sys/dev/isa/mcd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/isa/mcd.c b/sys/dev/isa/mcd.c index d5287af366f..90ba7e0fd2d 100644 --- a/sys/dev/isa/mcd.c +++ b/sys/dev/isa/mcd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mcd.c,v 1.14 1996/06/01 09:35:35 deraadt Exp $ */ +/* $OpenBSD: mcd.c,v 1.15 1996/06/09 19:40:12 deraadt Exp $ */ /* $NetBSD: mcd.c,v 1.49 1996/05/12 23:53:11 mycroft Exp $ */ /* @@ -67,6 +67,7 @@ #include <sys/stat.h> #include <sys/uio.h> #include <sys/ioctl.h> +#include <sys/mtio.h> #include <sys/cdio.h> #include <sys/errno.h> #include <sys/disklabel.h> @@ -632,6 +633,10 @@ mcdioctl(dev, cmd, addr, flag, p) return EINVAL; case CDIOCSTOP: return mcd_stop(sc); + case MTIOCTOP: + if (((struct mtop *)addr)->mt_op != MTOFFL) + return EIO; + /* FALLTHROUGH */ case CDIOCEJECT: /* FALLTHROUGH */ case DIOCEJECT: return mcd_eject(sc); |