Skip navigation.
 
mlCD ioctl problems
FROM : Nigel Pearson
DATE : Wed Dec 18 21:49:01 2002

   On 10.2.2, this:

int                bSize;
dk_cd_read_toc_t    myTOC;

if ( ioctl(fh->fd, DKIOCGETBLOCKSIZE, &bSize) < 0 )
   D(bug("ioctl(DKIOCGETBLOCKSIZE) failed: %s\n", strerror(errno)));
else
   D(bug("ioctl(DKIOCGETBLOCKSIZE) got: %d\n", bSize));

if ( ioctl(fh->fd, DKIOCCDREADTOC, &myTOC) < 0 )
{
   D(bug("ioctl(DKIOCCDREADTOC) failed: %s\n", strerror(errno)));
   return false;
}


   reports:

ioctl(DKIOCGETBLOCKSIZE) got: 2352
ioctl(DKIOCCDREADTOC) failed: Invalid argument


   Any ideas?

--
| Nigel Pearson, <email_removed>  | "In this city I confess
| Telstra BI&D, Sydney, Australia        |  god is mammon, more is less
|  Office: 8255 4222    Fax:  8255 3153  |  off like lemmings at the
gun
|  Mobile: 0408 664435  Home: 9792 6998  |  I know better, still I run"


Related mailsAuthorDate
mlCD ioctl problems Nigel Pearson Dec 18, 21:49
mlRe: CD ioctl problems Evan Jones Dec 19, 22:42
mlRe: CD ioctl problems Nigel Pearson Dec 22, 22:43