diff options
author | ache <ache@FreeBSD.org> | 1996-02-13 02:32:36 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-02-13 02:32:36 +0000 |
commit | 5ab0a6f9b3ab538a162c42bfe4d84727d20da20c (patch) | |
tree | 460c5323fcbc862f626c38f9c7caf4cd58d29fa5 /sys/dev/mcd | |
parent | 89cd3c7ebfbbe30008e551b01e1f8dabe9360016 (diff) | |
download | FreeBSD-src-5ab0a6f9b3ab538a162c42bfe4d84727d20da20c.zip FreeBSD-src-5ab0a6f9b3ab538a162c42bfe4d84727d20da20c.tar.gz |
Implement CDIOCSTART
Diffstat (limited to 'sys/dev/mcd')
-rw-r--r-- | sys/dev/mcd/mcd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/mcd/mcd.c b/sys/dev/mcd/mcd.c index e751464..2e98212 100644 --- a/sys/dev/mcd/mcd.c +++ b/sys/dev/mcd/mcd.c @@ -40,7 +40,7 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: mcd.c,v 1.69 1996/02/03 00:06:49 ache Exp $ + * $Id: mcd.c,v 1.70 1996/02/03 14:33:56 ache Exp $ */ static char COPYRIGHT[] = "mcd-driver (C)1993 by H.Veit & B.Moore"; @@ -634,7 +634,9 @@ MCD_TRACE("ioctl called 0x%x\n", cmd); case CDIOCSTART: if (!(cd->flags & MCDVALID)) return ENXIO; - return EINVAL; + if (mcd_setmode(unit, MCD_MD_COOKED) != 0) + return EIO; + return 0; case CDIOCSTOP: if (!(cd->flags & MCDVALID)) return ENXIO; |