On Sun, 8 May 2005, R. Bernstein wrote:
> > BSDI uses "O_RDONLY | O_NONBLOCK".
>
> So line 218 of lib/driver/bsdi.c should become
> p_env->gen.fd = open (p_env->gen.source_name, O_RDONLY|O_NONBLOCK, 0);
That would be fine.
> Right now there is only O_RDONLY.
The only time it makes a difference is when the drive is empty. If
there's a disc in the drive then both methods will work. But if the
drive is empty then the kernel will fail the open unless you specify
O_NONBLOCK (in a way that's saying you want to talk to the drive
rather than the media).
Cheers,
Steven
_______________________________________________
Libcdio-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/libcdio-devel