Skip site navigation (1)Skip section navigation (2)
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

--zx4FCpZtqtKETZ7O
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi all.

I have a perl script which seems to work fine under Linux but fails on Free=
BSD.
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 tri=
ed
with and without atapicam.=20

        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
--=20
Tobias Rehbein

PGP key:         4F2AE314
    server:      keys.gnupg.net
    fingerprint: ECDA F300 1B6E 9B87 8524  8663 E8B6 3138 4F2A E314

--zx4FCpZtqtKETZ7O
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEARECAAYFAknL8a0ACgkQ6LYxOE8q4xSqIACgv6j2NXnUG63dprhTK/vnuenm
qdgAnA+CN/PVph3N/b/LscYfPibxe48x
=KpC4
-----END PGP SIGNATURE-----

--zx4FCpZtqtKETZ7O--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090326212045.GB3134>