[perl] sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK) fails
Tobias Rehbein
tobias.rehbein at web.de
Thu Mar 26 14:53:11 PDT 2009
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090326/9538edad/attachment.pgp
More information about the freebsd-questions
mailing list