Date: Thu, 26 Mar 2009 18:17:46 -0400 From: Robert Huff <roberthuff@rcn.com> To: Glen Barber <glen.j.barber@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: [perl] sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK) fails Message-ID: <18891.65290.334463.362126@jerusalem.litteratus.org> In-Reply-To: <4ad871310903261456g2924d8cai6569e4cd739c1c49@mail.gmail.com> References: <20090326212045.GB3134@sushi.pseudo.local> <4ad871310903261456g2924d8cai6569e4cd739c1c49@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Glen Barber writes: > > 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' ? =09/dev/cd0 =3D SCSI CD-ROM (and maybe other stuff). =09I don't know if that's what the OP has, but it is a possible value. =09=09=09=09Robert Huff
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18891.65290.334463.362126>