Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Mar 2009 22:15:12 +0000
From:      Bruce Cran <bruce@cran.org.uk>
To:        Robert Huff <roberthuff@rcn.com>
Cc:        Glen Barber <glen.j.barber@gmail.com>, freebsd-questions@freebsd.org
Subject:   Re: [perl] sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK) fails
Message-ID:  <20090326221512.63b20c9f@gluon.draftnet>
In-Reply-To: <18891.65290.334463.362126@jerusalem.litteratus.org>
References:  <20090326212045.GB3134@sushi.pseudo.local> <4ad871310903261456g2924d8cai6569e4cd739c1c49@mail.gmail.com> <18891.65290.334463.362126@jerusalem.litteratus.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Thu, 26 Mar 2009 18:17:46 -0400
Robert Huff <roberthuff@rcn.com> wrote:

>=20
> Glen Barber writes:
>=20
> >  > I have a perl script which seems to work fine under Linux but
> >  > fails on FreeBSD.  The Problem is the line:
> >  >
> >  > =A0 =A0 =A0 =A0sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK)
> >  >
> >  > After this line the following evaluates to true:
> >  >
> >  > =A0 =A0 =A0 =A0$! eq "No such file or directory."
> >  >
> > =20
> >  I may be wrong, but shouldn't that be '/dev/acd0' ?
>=20
> 	/dev/cd0 =3D SCSI CD-ROM (and maybe other stuff).
>=20
> 	I don't know if that's what the OP has, but it is a possible
> value.

cd0 is also what you get if you use atapicam (ATAPI is SCSI over ATA
from what I remember) - for example cdrecord has traditionally used it
when writing CDs. Apparently the OP has the issue both when using
atapicam (/dev/cd0) and the normal ata node /dev/acd0.

--=20
Bruce Cran



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20090326221512.63b20c9f>