[perl] sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK) fails
Robert Huff
roberthuff at rcn.com
Thu Mar 26 15:17:49 PDT 2009
Glen Barber writes:
> > I have a perl script which seems to work fine under Linux but
> > fails on FreeBSD. The Problem is the line:
> >
> > sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK)
> >
> > After this line the following evaluates to true:
> >
> > $! eq "No such file or directory."
> >
>
> I may be wrong, but shouldn't that be '/dev/acd0' ?
/dev/cd0 = SCSI CD-ROM (and maybe other stuff).
I don't know if that's what the OP has, but it is a possible
value.
Robert Huff
More information about the freebsd-questions
mailing list