Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Mar 2009 17:56:31 -0400
From:      Glen Barber <glen.j.barber@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: [perl] sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK) fails
Message-ID:  <4ad871310903261456g2924d8cai6569e4cd739c1c49@mail.gmail.com>
In-Reply-To: <20090326212045.GB3134@sushi.pseudo.local>
References:  <20090326212045.GB3134@sushi.pseudo.local>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Thu, Mar 26, 2009 at 5:20 PM, Tobias Rehbein <tobias.rehbein@web.de> wro=
te:
> Hi all.
>
> I have a perl script which seems to work fine under Linux but fails on Fr=
eeBSD.
> 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."
>

I may be wrong, but shouldn't that be '/dev/acd0' ?

> /dev/cd0 is readable and writable for me. I rebooted multiple times and t=
ried
> with and without atapicam.
>
> =A0 =A0 =A0 =A0sysopen(CD, "/dev/acd0", O_RDONLY | O_NONBLOCK)
>
> fails either. So what's up here? Is sysopen a linuxism?
>
> Any help is greatly appreciated.
>
> Regards Tobias


--=20
Glen Barber



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