From owner-freebsd-questions Mon Dec 4 11:37:55 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA25329 for questions-outgoing; Mon, 4 Dec 1995 11:37:55 -0800 Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id LAA25312 for ; Mon, 4 Dec 1995 11:37:47 -0800 Received: (from julian@localhost) by ref.tfs.com (8.6.12/8.6.9) id LAA06118; Mon, 4 Dec 1995 11:36:47 -0800 From: Julian Elischer Message-Id: <199512041936.LAA06118@ref.tfs.com> Subject: Re: Audio from cdrom To: paul@netcraft.co.uk Date: Mon, 4 Dec 1995 11:36:46 -0800 (PST) Cc: msmith@atrad.adelaide.edu.au, questions@freebsd.org In-Reply-To: <199512041500.PAA23322@server.netcraft.co.uk> from "Paul Richards" at Dec 4, 95 03:00:43 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 903 Sender: owner-questions@freebsd.org Precedence: bulk > > In reply to Michael Smith who said > > > I hacked the code so that it did do a drive query and the SCSI_INQUIRY > command failed! Regardless of non-standard audio commands I suspect > there's something more generic wrong if I can't even get the drive > to tell me what it is. you have to open the control device fopr the cdrom to get the ioctls to work.. in other words in needs to open /dev/rcd0.ctl, not /dev/cd0 this is because User-level scsi commands are genericaly dangerous and we demsnd that to use them , you need have specific permissions (e.g. read/write perms on the control device) julian > > I'm open to ideas but I can't do any work on this until next weekend because > I'm back at work and the box is at home. > > > -- > Paul Richards, Netcraft Ltd. > Internet: paul@netcraft.co.uk, http://www.netcraft.co.uk > Phone: 0370 462071 (Mobile), +44 1225 447500 (work) >