From owner-freebsd-hackers Mon Jul 28 23:55:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA17135 for hackers-outgoing; Mon, 28 Jul 1997 23:55:58 -0700 (PDT) Received: from konig.elte.hu (konig.elte.hu [157.181.6.22]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA17091 for ; Mon, 28 Jul 1997 23:55:36 -0700 (PDT) Received: from localhost (sebesty@localhost) by konig.elte.hu (8.8.3/8.7.3/7s) with SMTP id IAA11524 for ; Tue, 29 Jul 1997 08:55:10 +0200 Date: Tue, 29 Jul 1997 08:55:10 +0200 (MET DST) From: Zoltan Sebestyen X-Sender: sebesty@konig To: freebsd-hackers@freebsd.org Subject: communcating with cdrom Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I'm porting a cdplayer to FreeBSD and run into several problems. The first one was that in FreeBSD there are no constants describing a cdrom's tracks wether they are audio or data tracks. Now I've found out that the control tag of cd_toc_entry structure is 4, if the track in question is a data track, at least for ATAPI devices. But I still have some questions. This cdplayer allows to mount the first data track of the cd, if there's any but it seems that FreeBSD doesn't allow to open the device (actually it's /dev/wcd0c) for ioctl calls and to mount the same device at the same time. Is this true? Should I redirect the ioctl calls to the raw device (/dev/rwcd0c) instead of the block one? Another problem is that I just can't close the tray of the cdrom neither with the CDIOCCLOSE ioctl call nor with the button on the cdrom player after opening it. If I closed the open device, I could close the cd manually, but it didn't solve the problem, because with the tray open I can't open the device again. If you can help me, please let me know. Thanks in advance -------------------------------------------------------------------------------- Sebestyen Zoltan It all seems so stupid, it makes me want to give up. szoli@caesar.elte.hu But why should I give up, when it all seems so stupid?