Date: Thu, 26 Mar 2009 22:20:45 +0100 From: Tobias Rehbein <tobias.rehbein@web.de> To: freebsd-questions@freebsd.org Subject: [perl] sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK) fails Message-ID: <20090326212045.GB3134@sushi.pseudo.local>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hi all.
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."
/dev/cd0 is readable and writable for me. I rebooted multiple times and tried
with and without atapicam.
sysopen(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
--
Tobias Rehbein
PGP key: 4F2AE314
server: keys.gnupg.net
fingerprint: ECDA F300 1B6E 9B87 8524 8663 E8B6 3138 4F2A E314
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)
iEYEARECAAYFAknL8a0ACgkQ6LYxOE8q4xSqIACgv6j2NXnUG63dprhTK/vnuenm
qdgAnA+CN/PVph3N/b/LscYfPibxe48x
=KpC4
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090326212045.GB3134>
