Add IS_ISSOCK() or S_ISLNK() macros for Rock-Ridge when environment
doesn't have it, e.g. MSYS 1.0.10 with MinGW 3.4.2.
Go over --enable settings. --disable-cpp-progs now works.
Require libcddb 1.0.1 or better
Allegedly this works better than the CAM mode eject; CAM gets the error
"Device not ready" when trying to eject an empty CD-ROM drive.
We make use of an already open file descriptor to the CD-ROM 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).
Also corrects the documentation comment about the return value.
set as big endian although it appeared not to, possibly because of
SCSI emulation.
We now test for SCSIness in addition to ATAPIness as both can occur.
Added field in cdrom_device structure for SCSIness and that's tested
before unconditionally setting drive bigendian-ness.
1. Fix a crash, which happened when cdtext_get() was called for an emtp=
y
(i.e. NULL) field.
2. Add another function cdtext_get_const(), which returns a const point=
er
and avoids too much strcpying (apps may want only to TEST if a
field is present or have their own string management routines).
1. In the function is_cdrom_linux(...) in the file lib/driver/gnu_linux.c,
the CDROMREADTOCHDR ioctl gets called, which fails when the drive is
empty. The CDROM_GET_CAPABILITY ioctl always succeeds for CDrom drives
and fails for hard disks etc.
2. For some reason, at least my (GNU/Linux 2.6.10) Kernel fails to
open empty drives, when only O_RDONLY is used. Changing the open flag to
O_RDONLY|O_NONBLOCK, the call succeeds also for emtpy drives.
By the way, the cdrom header file in the kernel says explicitely,
that O_RDONLY|O_NONBLOCK should used whenever a cdrom is touched.
rocky: also made a change to eject to continue even if we can't get
the drive status -- which we can't with an empty CD-ROM drive.
Test sequence number only for valid blocks.
cdtext_private.h: add enumeration to facilitate debugging
cdtext.c: On Windows CD-Text was off by 4. Hack for this.