[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libcdio-devel] FreeBSD ioctl fixes
From: |
Diego 'Flameeyes' Pettenò |
Subject: |
[Libcdio-devel] FreeBSD ioctl fixes |
Date: |
Sat, 23 Jul 2005 19:43:29 +0200 |
User-agent: |
KMail/1.8.1 |
Hi,
Also if reading capabilities is still an issue right now, as the ioctl isn't
implemented, I've still been able to use it to eject/close tray of
ATAPI-configured CD-Roms (works also better than the CAM mode as they get a
"Device not ready" when trying to eject an empty CD-Rom drive both with CAM
and bsd's eject command).
To do so, I needed the attached patch (that I'm going to apply on Gentoo's
0.75-r1 version), which makes use of the already open file descriptor instead
of opening a new one (else we have two file descriptor open, so when it
launch the ioctl to eject the device it results busy because of the other
fd).
It also cleanup the comment about the result as it seems to be inverted (at
least, the code gets fuzzy if it returned 1 on success.
HTH,
--
Diego "Flameeyes" Pettenò
Gentoo Developer - http://dev.gentoo.org/~flameeyes/
(Gentoo/FreeBSD, Video, Gentoo/AMD64, Sound, PAM)
libcdio-0.75-freebsd.patch
Description: Text Data
pgp3UOoZDZju8.pgp
Description: PGP signature
- [Libcdio-devel] FreeBSD ioctl fixes,
Diego 'Flameeyes' Pettenò <=