From owner-freebsd-hackers Sat Aug 9 10:52:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA04901 for hackers-outgoing; Sat, 9 Aug 1997 10:52:10 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id KAA04895 for ; Sat, 9 Aug 1997 10:52:07 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id TAA28859; Sat, 9 Aug 1997 19:52:06 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id TAA18417; Sat, 9 Aug 1997 19:48:23 +0200 (MET DST) Message-ID: <19970809194822.LQ34226@uriah.heep.sax.de> Date: Sat, 9 Aug 1997 19:48:22 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@FreeBSD.ORG Cc: szoli@caesar.elte.hu (MEMPHISTO) Subject: Re: CD-ROM data tracks References: X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from MEMPHISTO on Jul 26, 1997 17:29:51 +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As MEMPHISTO wrote: Oh, i'm afraid we don't have a Dr. Faustus here. :) > I'd just like to know how can I check if a track on a CD is data or > audio track?(via ioctl, of course). There are a number of ioctls for CD-ROMs. See the command cdcontrol(1) for a sample implementation using them. What you're asking for is `cdcontrol info': j@uriah 109% cdcontrol info No CD device name specified. Defaulting to /dev/cd0c. (XXX silly message) Starting track = 1, ending track = 1, TOC size = 18 bytes track start duration block length type ------------------------------------------------- 1 0:02.00 73:51.44 0 332219 data 170 73:51.44 - 332219 - - (170 is the CD leadout, by definition.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)